<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" AutoEventWireup="true"
    CodeFile="Index.aspx.cs" Inherits="Member_Index" Title="会员商务中心" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="Server">

    <script type="text/javascript">
        var timerID = null;
        var timerRunning = false;
        function stopclock (){
        if(timerRunning)
        clearTimeout(timerID);
        timerRunning = false;}
        function startclock () {
        stopclock();
        showtime();}
        function showtime () {
        var now = new Date();
        var hours = now.getHours();
        var minutes = now.getMinutes();
        var seconds = now.getSeconds();
        var timeValue = "" +((hours >= 12) ? "下午" : "上午" );
        document.getElementById("lblNowDate").innerHTML=timeValue;
        timerID = setTimeout("showtime()",1000);
        timerRunning = true;}
    </script>

    <div style="float: left; width: 795px;">
        <div class="banner">
            <img src="images/banner.jpg" /></div>
        <div class="index_box">
            <ul>
                <li class="top">
                    <asp:Label ID="lblGrade" runat="server"></asp:Label>
                </li>
                <li class="lie" id="Introduce" runat="server"></li>
                <li class="lie">咨询热线：<asp:Label ID="lblHotTel" runat="server"></asp:Label></li></ul>
        </div>
        <div class="index_box">
            <ul>
                <li class="top"><span id="lblNowDate" runat="server"></span>好！您共有<asp:Label ID="lblMesage"
                    runat="server" ForeColor="red" Font-Bold="true"></asp:Label>条提醒</li><li class="lie">
                        您有<asp:Label ID="lblUnreadMesage" runat="server" ForeColor="red"></asp:Label>条未读询盘留言&nbsp;<a
                            href="Message/ReceiveMessage.aspx" style="text-decoration: underline">点此查看</a>
                        您有<asp:Label ID="lblUnaudited" runat="server" ForeColor="red"></asp:Label>条供应信息未通过审核&nbsp;<a
                            href="Trade/SupplyManage.aspx" style="text-decoration: underline">立即查看</a> </li>
                <li class="lie">您有<asp:Label ID="lblPastDue" runat="server" ForeColor="red"></asp:Label>
                    条供应信息已过期&nbsp;&nbsp;<a href="Trade/SupplyManage.aspx" style="text-decoration: underline">立即重发</a></li></ul>
        </div>
        <div class="nav_index">
            <div class="nav_left">
                <div class="nav_left_title">
                    <span>行业资讯</span></div>
                <div class="nav_left_text">
                    <asp:DataList ID="dlstConsultative" runat="server" RepeatDirection="Horizontal" RepeatColumns="1">
                        <ItemTemplate>
                            <table>
                                <tr>
                                    <td width="300px">
                                        <a href="../News/Detail.aspx?id=<%# Eval("ID") %>" target="_blank">
                                            <%# Eval("Title") %>
                                        </a>
                                    </td>
                                    <td>
                                        (<%# Convert.ToDateTime(Eval("AddDate")).ToString("yyyy/MM/dd",System.Globalization.DateTimeFormatInfo.InvariantInfo) %>)
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                </div>
            </div>
            <div class="nav_right">
                <div class="nav_right_left">
                    <div class="nav_right_title">
                        公司动态</div>
                    <div class="nav_right_text">
                        <asp:DataList ID="dlstNews" runat="server" RepeatDirection="Horizontal" RepeatColumns="1">
                            <ItemTemplate>
                                <table>
                                    <tr>
                                        <td>
                                            <%# Eval("Title")%>
                                        </td>
                                        <td>
                                            (<%# Convert.ToDateTime(Eval("AddDate")).ToString("yyyy/MM/dd",System.Globalization.DateTimeFormatInfo.InvariantInfo) %>)
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:DataList>
                    </div>
                </div>
                <div class="nav_right_left" style="margin-top: 10px;">
                    <div class="nav_right_title">
                        展会资讯
                    </div>
                    <div class="nav_right_text">
                        <asp:DataList ID="dlstExpoNews" runat="server" RepeatDirection="Horizontal" RepeatColumns="1"
                            CellPadding="0" CellSpacing="0">
                            <ItemTemplate>
                                <table>
                                    <tr>
                                        <td>
                                            <%# Eval("Title")%>
                                        </td>
                                        <td>
                                            (<%# Convert.ToDateTime(Eval("AddDate")).ToString("yyyy/MM/dd",System.Globalization.DateTimeFormatInfo.InvariantInfo) %>)
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:DataList></div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
