<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Basket_Detail.aspx.cs" Inherits="TotCms.Web.Admin.Shop.Basket_Detail" %>
<%@ Register src="../UI/main_top.ascx" tagname="main_top" tagprefix="uc1" %>
<%@ Register assembly="TotCms.Controls" namespace="TotCms.Controls" tagprefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>查看订单</title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
      .style1
      {
        width: 100%;
      }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>    
      <uc1:main_top ID="main_top1" runat="server" />    
    </div>
    <table border="0" cellpadding="0" cellspacing="1" class="style1" bgcolor="#EEEEEE">
      <tr class="suphead" >
        <td height="25"colspan="2" align="center" bgcolor="#F3F3F3">
          订单详情</td>
      </tr>
      <tr>
        <td width="49%" height="25" bgcolor="#FFFFFF">
          &nbsp;总价：
          <asp:Label ID="lbTotalPrice" runat="server"  CssClass="red"></asp:Label>        </td>
        <td width="51%" bgcolor="#FFFFFF">&nbsp;下单日期：
        <asp:Label ID="OrderDate" runat="server" ></asp:Label></td>
      </tr>
      <tr>
        <td height="25" bgcolor="#FFFFFF">
          &nbsp;会员：
          <asp:Label ID="lbUserId" runat="server" ></asp:Label>        </td>
        <td bgcolor="#FFFFFF">&nbsp;发票抬头：
        <asp:Label ID="InvoiceTitle" runat="server" ></asp:Label></td>
      </tr>
      <tr>
        <td height="25" bgcolor="#FFFFFF">
          &nbsp;联系人：
          <asp:Label ID="lbMan" runat="server" ></asp:Label>        </td>
        <td bgcolor="#FFFFFF">&nbsp;手机：
        <asp:Label ID="Mobile" runat="server" ></asp:Label></td>
      </tr>
      <tr>
        <td height="25" bgcolor="#FFFFFF">
          &nbsp;电话：
          <asp:Label ID="Tel" runat="server" ></asp:Label>        </td>
        <td bgcolor="#FFFFFF">&nbsp;邮箱：
        <asp:Label ID="Mail" runat="server" ></asp:Label></td>
      </tr>
      <tr>
        <td height="25" bgcolor="#FFFFFF">
          &nbsp;地址：
          <asp:Label ID="Address" runat="server" ></asp:Label>        </td>
        <td bgcolor="#FFFFFF">&nbsp;邮编：
        <asp:Label ID="Postcode" runat="server" ></asp:Label></td>
      </tr>
      <tr>
        <td height="25" bgcolor="#FFFFFF">
          &nbsp;支付方式：
          <asp:Label ID="Paytype" runat="server" ></asp:Label>        </td>
        <td bgcolor="#FFFFFF">&nbsp;价格：
        <asp:Label ID="Price" runat="server" ></asp:Label></td>
      </tr>
      <tr>
        <td height="25" bgcolor="#FFFFFF">
          &nbsp;数量：
          <asp:Label ID="Nums" runat="server" ></asp:Label>
        &nbsp;重量：
        <asp:Label ID="Weight" runat="server" ></asp:Label></td>
        <td bgcolor="#FFFFFF">&nbsp;运费：
        <asp:Label ID="Freight" runat="server" ></asp:Label></td>
      </tr>
      <tr>
        <td height="25" colspan="2" bgcolor="#FFFFFF">
          &nbsp;优惠：
          <asp:TextBox ID="Discount" runat="server" Width="54px"></asp:TextBox>
          <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="确定" />                    </td>
      </tr>
      <tr>
        <td height="25" colspan="2" bgcolor="#FFFFFF">
         &nbsp; 快递号：
          <asp:TextBox ID="ExpressNo" runat="server"></asp:TextBox>
          <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="发货" />
        发货日期： <asp:Label ID="SendDate" runat="server" ></asp:Label></td>
      </tr>
    </table>
    <div><h2>明细</h2></div>
    <table cellpadding="0" cellspacing="1" border="0" width="100%">
      <asp:Repeater ID="RepeatList" runat="server">
        <HeaderTemplate>
          <tr class="suphead">
              <td>Id</td>
              <td>会员ID</td>
              <td>图</td>
              <td>名称</td>
              <td>价格</td>
              <td>折扣</td>
              <td>数量</td>
              <td>重量</td>
              <td>总计</td>
          </tr>
        </HeaderTemplate>
        <ItemTemplate>
          <tr class="lines">
            <td><asp:TextBox ID="ChkTxt" runat="server" CssClass="hidden" Text='<%# Eval("id") %>'></asp:TextBox></td>
            <td><div align="left">&nbsp;<a href="Basket_Detail.aspx?id=<%# Eval("UserId") %>" target="_blank"><%# Eval("UserId")%></a></div></td>
            <td><a href='/Goods/Show.aspx?id=<%# Eval("GoodsId")%>' target="_blank"><img src='<%# Eval("Photo")%>' width="50" height="50" /></a></td>
            <td><a href='/Goods/Show.aspx?id=<%# Eval("GoodsId")%>' target="_blank"><%# Eval("GoodsTitle")%></a></td>
            <td><%# Eval("Price")%></td>
            <td><%# Eval("Discount") %></td>
            <td><%# Eval("Nums") %></td>
            <td><%# Eval("Weight")%></td>
            <td><%# Convert.ToInt32(Eval("Nums")) * Convert.ToDecimal(Eval("Price"))%></td>
          </tr>
        </ItemTemplate>
      </asp:Repeater>      
    </table>
    <p align="center"><a href="javascript:history.back();">返回</a></p>
    </form>
</body>
</html>
