<%@ page language="C#" autoeventwireup="true" inherits="UserInfo_shopCart, App_Web_c9fkqznq" %>
<%@ Register Src="temp/top.ascx" TagName="pageTop" TagPrefix="uc1" %>
<%@ Register Src="temp/bottom.ascx" TagName="pageBottom" TagPrefix="uc1" %>
<%@ Register Src="temp/UserLeft.ascx" TagName="pageLeft" TagPrefix="uc1" %>
<%@ register tagname="FenYe" tagprefix="Uc1" src="/ascx/fenYe.ascx" %>
<!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>
<title>购物车 - 会员首页</title>
    <link href="../themes/letao/style.css" rel="stylesheet" type="text/css" />
<link href="green/css/style.css" rel="stylesheet" type="text/css" />
<link href="/css/fenye.css" rel="stylesheet" type="text/css" />
<script src="/js/calendar.js" type="text/javascript" charset="gb2312"></script>
<script src="/js/jscommon.js" type="text/javascript" charset="gb2312"></script>
<script type="text/javascript">
    function NumBor(input)
    {
        input.className="NumBor";
    }
    function NumNoBor(input)
    {
        input.className="NumNoBor";
    }
    function UpNum(input,Uid)
    {
        if(input.value == "")
        {
            alert("值不能为空！");
            return false;
        }
        var hidNum = document.getElementById("hidNum");
        hidNum.value = input.value;
        var hidSid = document.getElementById("hidSid");
        hidSid.value = Uid;
        
        var strUid = document.getElementById("btnUp");
        strUid.click();
    }
    
    function delSid(Uid)
    {
        if(confirm("确认删除购物车中的此商品！"))
        {
            var hidSid = document.getElementById("hidSid");
            hidSid.value = Uid;
            var strUid = document.getElementById("btnDel");
            strUid.click();
        }
    }
</script>
</head>
<body>
<uc1:pageTop runat="server" ID="PageTop" />
<div id="user_box">
  <uc1:pageLeft runat="server" ID="PageLeft" />
  <div id="user_box_right">
    <div class="clearfix usBox_y" style="_height:1%;">
      <h5 style="border-bottom:0;"><span style="padding-left:10px;">购物车</span></h5>
      <form id="Form1" runat="server">
      <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
      <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
      <ContentTemplate>
        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="bgTable">
          <tr class="bgWhite">
            <td>&nbsp;</td>
            <td>订单编号</td>
            <td>下单人</td>
            <%if (BlYouHui){ %><td>产品总金额</td>
            <td>优惠金额</td><%} %>
            <td>实付金额</td>
            <td>状态</td>
            <td>结单时间</td>
            <td>下单时间</td>
          </tr>
          <asp:DataList ID="DataList1" runat="server" RepeatLayout="Flow" OnSelectedIndexChanged="DataList1_SelectedIndexChanged">
            <ItemTemplate>
          <tbody>
          <tr class="bgWhite">
            <td align="center" width="20"><asp:LinkButton ID="LinkButton2" runat="server" CommandName="Select" CausesValidation="False" Text="+"></asp:LinkButton></td>
            <td><%#DataBinder.Eval(Container.DataItem, "shopNo")%></td>
            <td><%#DataBinder.Eval(Container.DataItem, "UserName")%></td>
            <%if (BlYouHui){ %><td><%#DataBinder.Eval(Container.DataItem, "ShouldPrice")%></td>
            <td><%#DataBinder.Eval(Container.DataItem, "YfPrice")%></td><%} %>
            <td>&nbsp;</td>
            <td align="center"><%#DataBinder.Eval(Container.DataItem, "BaseName")%></td>
            <td><%#DataBinder.Eval(Container.DataItem, "EndTime")%></td>
            <td><%#DataBinder.Eval(Container.DataItem, "ShopTime")%></td>
            <asp:Literal runat="server" ID="Uid" Visible='false' Text='<%#DataBinder.Eval(Container.DataItem, "Sid")%>'></asp:Literal>
            <asp:Literal runat="server" ID="LitshopStatus" Visible='false' Text='<%#DataBinder.Eval(Container.DataItem, "shopStatus")%>'></asp:Literal>
          </tr>
          <tr runat="server" id="trdetailCart">
            <td colspan="9" align="center">
              <asp:Literal runat="server" ID="LitChild"></asp:Literal>
            </td>
          </tr>
          </tbody>
          </ItemTemplate>
          </asp:DataList>
        </table>
        <input runat="server" type="hidden" id="hidNum" />
        <input runat="server" type="hidden" id="hidSid" />
        <asp:Button runat="server" ID="btnUp" CssClass="noneBtn" onclick="btnUp_Click" />
        <asp:Button runat="server" ID="btnDel" CssClass="noneBtn" onclick="btnDel_Click" />
        <%if (BlYouHui) { %><div class="Userfy" style="border-top:none; padding-left:10px;">
            请输入优惠券号：<asp:TextBox runat="server" ID="txtDCode"></asp:TextBox>
            <asp:Button runat="server" ID="BtnCheck" Text=" 检查 " onclick="BtnCheck_Click" /><br />
            <asp:Literal runat="server" ID="LitCp"></asp:Literal>
        </div><%} %>
        <div class="Userfy" style="border-top:none; padding-left:10px;">
            赠送积分：<b style="color:Red;"><asp:Literal runat="server" ID="litInt"></asp:Literal></b>
        </div>
        <div class="Userfy" style="border-top:none; padding-left:10px;">
            收货地址：<asp:Literal runat="server" ID="LitAddr"></asp:Literal>
            <asp:Literal runat="server" ID="LitAId" Visible="false"></asp:Literal>
            <asp:Literal runat="server" ID="LitAsheng" Visible="false"></asp:Literal>
            <asp:DropDownList runat="server" ID="DropAddr" Visible="false" AutoPostBack="true" 
                onselectedindexchanged="DropAddr_SelectedIndexChanged"></asp:DropDownList>
            <asp:Button runat="server" ID="SelAddr" Text=" 选择 " onclick="SelAddr_Click" />
            <asp:Button runat="server" ID="EditAddr" Text=" 编辑 " onclick="EditAddr_Click" />
        </div>
        <div class="Userfy" style="border-top:none; padding-left:10px;">
            请选择快递公司：<asp:DropDownList runat="server" ID="DropKd" AutoPostBack="true" 
                onselectedindexchanged="DropKd_SelectedIndexChanged" DataTextField="BaseName" DataValueField="Bid"></asp:DropDownList>
            <asp:Literal runat="server" ID="LitFreight"></asp:Literal>
        </div>
        <div class="Userfy" style="border-top:none; text-align:center;">
            <%if (BlYouHui) { %>产品总金额：<b style="color:Red;"><asp:Literal runat="server" ID="LitCount"></asp:Literal></b>
            优惠金额：<b style="color:Red;"><asp:Literal runat="server" ID="LitYh"></asp:Literal></b><%} %>
            运费：<b style="color:Red;"><asp:Literal runat="server" ID="LitYunFei" Text="0.00"></asp:Literal></b>
            应付金额：<b style="color:Red;"><asp:Literal runat="server" ID="LitSj"></asp:Literal></b>
            <asp:Button runat="server" ID="btnBuy" Text=" 确认支付 " OnClick="btnBuy_Click" />
        </div>
        </ContentTemplate>
        </asp:UpdatePanel>
      </form>
      <br />
    </div>
  </div>
</div>
<uc1:pageBottom runat="server" ID="PageBottom" />
</body>
</html>