<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/User/Main.Master"
    CodeBehind="Default.aspx.cs" Inherits="OAWeb.User.Default" EnableViewState="true" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="/UserControls/UserLeft.ascx" TagName="TaskNav" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
    <style>
        th
        {
            text-align: center;
        }
    </style>
    <div class="w main">
        <div class="right">
            <div id="userinfo" class="m m3">
                <table style="width: 80%">
                    <tr>
                        <td style="border-right: 1px solid #E0E0E0; padding-right: 15px; padding-left: 10px;
                            vertical-align: top; width: 20%">
                            <a href="/user/userEdit.aspx"><img class="UserImg" src="/images/no-img_mid_.jpg" border="0" /></a>
                        </td>
                        <td style="padding-left: 15px; vertical-align: top;">
                            <table style="text-align: left; width: 100%">
                                <tr>
                                    <td class="username">
                                        <strong>
                                            <%= base.UserName %></strong> , 欢迎您！
                                    </td>
                                </tr>
                                <tr>
                                    <td style="padding-top: 10px;">
                                        <div class="member" id="memberInfo">
                                            <div class="rank r1">
                                                <s></s><a href="#" target="_blank">普通用户</a>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="padding-top: 10px; text-align: left">
                                        <table>
                                            <tr>
                                                <td>
                                                    <img src="/images/4.gif" />
                                                </td>
                                                <td>
                                                    <span>今年已消费：</span>￥0.00
                                                </td>
                                                <td style="padding-left: 10px">
                                                    <img src="/images/05.gif" width="17" />
                                                </td>
                                                <td style="padding-left: 10px">
                                                    <span>我的积分：</span> 0
                                                </td>
                                                <td style="padding-left: 10px">
                                                    <img src="/images/05.gif" width="17" />
                                                </td>
                                                <td style="padding-left: 10px">
                                                    <span style="">帐户余额：</span>￥0.00 <span style="margin-left: 5px; color: #005EA7"><a
                                                        href="AddAmount.aspx">余额充值</a></span>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="padding-top: 10px;">
                                        <div id="remind">
                                            <div class="oinfo">
                                                <dl class="fore" style="border-top: none">
                                                    <dt>订单提醒：</dt>
                                                    <dd>
                                                        <a href="#" clstag="click|keycount|myhome|shaidancount" id="sdCountHref" class="flk-03">
                                                            待付款商品(<span id="sdCount">0</span>)</a></dd>
                                                    <dd>
                                                        <a href="#" clstag="click|keycount|myhome|shaidancount" id="A1" class="flk-03">待确认商品(<span
                                                            id="Span1">0</span>)</a></dd>
                                                    <dd>
                                                        <span clstag="click|keycount|myhome|ordercount" id="orderCount"><a href="#" class="flk-03">
                                                            处理中订单(0)</a></span></dd>
                                                    <dd>
                                                        <a href="#" clstag="click|keycount|myhome|commentscount" id="reviewCountHref" class="flk-03">
                                                            待评价商品(<span id="reviewCount">0</span>)</a></dd>
                                                </dl>
                                                <dl>
                                                    <dt>消息提醒：</dt>
                                                    <dd>
                                                        <a href="#" clstag="click|keycount|myhome|messageCount" id="messageCountHref" class="flk-03">
                                                            待回复留言(<span id="messageCount">0</span>)</a></dd>
                                                    <dd>
                                                        <a href="#" clstag="click|keycount|myhome|notificationCount" id="notificationCountHref"
                                                            class="flk-03">已回复留言(<span id="notificationCount">0</span>)</a></dd>
                                                </dl>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
            <div style="margin-bottom: 15px; color: #505050; font-size: 15px;">
                <strong>最新订单</strong></div>
            <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
                GridLines="None" CellPadding="0" CssClass="table_list" EnableModelValidation="True"
                OnRowDataBound="gvData_RowDataBound">
                <RowStyle HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" />
                <Columns>
                    <asp:TemplateField HeaderText="订单号">
                        <ItemTemplate>
                            <asp:HyperLink ID="hypView" runat="server" Text='<%# Eval("OrderSN") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="商品">
                        <ItemTemplate>
                            <div id="DivProduct" runat="server">
                            </div>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" Width="280px" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="OrderTotal" HeaderText="订单金额" DataFormatString="￥{0:f2}">
                    </asp:BoundField>
                    <asp:BoundField DataField="OrderDate" HeaderText="下单时间"></asp:BoundField>
                    <asp:TemplateField HeaderText="收货人" Visible="false">
                        <ItemTemplate>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="交易状态" />
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <a href='/User/OrderView.aspx?Id=<%# Eval("Id") %>&ref=/User/OrderList.aspx'>详细</a>
                            <a href="/User/Pay.aspx">付款</a>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <div class="left">
            <uc1:TaskNav ID="TaskNav1" runat="server" />
        </div>
    </div>
</asp:Content>
