<%@ page language="C#" autoeventwireup="true" inherits="PointCartinfo, App_Web_f0bcuwxw" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<!DOCTYPE HTML>
<html>
<head runat="server">
<title>积分商品一步式购物车</title>
<link href="../App_Themes/UserThem/style.css" rel="stylesheet" type="text/css" />
<link href="../App_Themes/UserThem/user_user.css" rel="stylesheet" type="text/css" />
<script src="JS/ajaxrequest.js"></script>
<script type="text/javascript">
    var ajax = new AJAXRequest();
    function keydo(ids) {
        var num = document.getElementById("num" + ids).value;
        var prolists = document.getElementById("prolists").value;
        ajax.get(
    "/ShopCart/UpdateShopCar.aspx?cid=" + ids + "&num=" + num + "&menu=update&prolist=" + prolists,
    function (obj) {
        var pri = obj.responseText;
        if (pri != null) {
            var prics = pri.split('|');
            if (prics != null && prics.length > 1) {
                document.getElementById("price" + ids).innerText = prics[1];
                document.getElementById("alljiage").innerText = prics[0];
                document.getElementById("alljiage2").innerText = prics[0];
            }
        }
    }
    );
    }
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="main" class="rg_inout">
    <h1>第一步:加入购物车<span>[<asp:Label ID="Label1" runat="server" BorderWidth="0px" ForeColor="Red"></asp:Label>]</span><img src="/user/images/regl1.gif" /></h1>
      <div class="cart_lei">
        <ul>
        <li class="i0">编号</li>
        <li class="i1">商品名称</li>
        <li class="i2">商品属性</li>
        <li class="i3">单位</li>
        <li class="i4">数量</li>
        <li class="i5">市场价</li>
        <li class="i6">零售价</li>
        <li class="i7">折扣</li>
        <li class="i8">积分</li>
        <li class="i9">操作</li>
    </ul>
    </div>
    
 <div class="cart_con">
    <asp:Repeater ID="cartinfo" runat="server" OnItemDataBound="cartinfo_ItemDataBound">
    <ItemTemplate>
        <ul <%#(Eval("Bindpro","{0}")=="")?"":"style=background-color:#E6E6E6"%> >
            <li class="i0"><%#getprono(Eval("proid","{0}"))%></li>
            <li class="i1"><%#GetProtype(DataBinder.Eval(Container, "DataItem.proid", "{0}"))%><a href='Shop.aspx?ID=<%#Eval("proid")%>'  target="_blank"><%#Eval("proname")%></a></li>
            <li class="i2"><%#Eval("Attribute")%><%--<%#getproinfo(Eval("proid","{0}"))%>--%></li>
            <li class="i3"><%#getProUnit(DataBinder.Eval(Container, "DataItem.proid", "{0}"))%></li>
            <li class="i4"><input id='num<%#Eval("id") %>' value='<%#DataBinder.Eval(Container, "DataItem.pronum", "{0}")%>' style="width: 30px" height='20px' onblur="keydo('<%#Eval("id") %>')" /></li>
            <li class="i5"><%#getjiage(Eval("proclass","{0}"),"1",DataBinder.Eval(Container, "DataItem.proid", "{0}"))%></li>
            <li class="i6"><%#getjiage(Eval("proclass", "{0}"), "2", DataBinder.Eval(Container, "DataItem.proid", "{0}"))%></li>
            <li class="i7"><%#getproscheme(Eval("ID","{0}"))%></li>
            <li class="i8"><span id='price<%#Eval("id") %>' name='price<%#Eval("id") %>'><%#getprojia(Eval("ID","{0}"))%></span></li>
            <li class="i9"><a href="PointCartinfo.aspx?menu=del&cid=<%#Eval("id")%>" onclick="return confirm('不可恢复性删除数据,你确定将该数据删除吗？');">移除</a></li>
            <div class="clear"></div>
        </ul>
        <asp:Repeater ID="Repeater2" runat="server">
          <ItemTemplate>
            <ul>
                <li class="i0"><%#getproimg(Eval("id","{0}"))%></li>
                <li class="i1"><%#GetProtype(DataBinder.Eval(Container, "DataItem.id", "{0}"))%><%#Eval("proname")%></li>
                <li class="i2"><%#getProUnit(DataBinder.Eval(Container, "DataItem.id", "{0}"))%></li>
                <li class="i3"></li>
                <li class="i4"><%#getjiage(Eval("proclass","{0}"),"1", DataBinder.Eval(Container, "DataItem.id", "{0}"))%></li>
                <li class="i5"><%#getjiage(Eval("proclass", "{0}"), "2", DataBinder.Eval(Container, "DataItem.id", "{0}"))%></li>
                <li class="i6"><%#getprojia(Eval("ID","{0}"))%></li>
                <li class="i7"><a href="PointCartinfo.aspx?menu=del&cid=<%#Eval("id")%>" onclick="return confirm('不可恢复性删除数据,你确定将该数据删除吗？');">移除</a></li>
                <div class="clear"></div>
                </ul>
            </ItemTemplate>
        </asp:Repeater>
        </ItemTemplate>
    </asp:Repeater>
    </div>
    
    <asp:HiddenField ID="prolists" runat="server" />
    <div>
        <li style="width: 100%; text-align: center;">共
            <asp:Label ID="Allnum" runat="server" Text=""></asp:Label>
            个商品
            <asp:Label ID="Toppage" runat="server" Text="" />
            <asp:Label ID="Nextpage" runat="server" Text="" />
            <asp:Label ID="Downpage" runat="server" Text="" />
            <asp:Label ID="Endpage" runat="server" Text="" />
            页次：<asp:Label ID="Nowpage" runat="server" Text="" />/<asp:Label ID="PageSize" runat="server"
                Text="" />页
            <asp:Label ID="pagess" runat="server" Text="" />个商品/页 转到第<asp:DropDownList ID="DropDownList1"
                runat="server" AutoPostBack="True">
            </asp:DropDownList>
            页</li>
    </div>

    <div class="cart_title">收货人信息</div>
    <div style="height:120px;">
        <ul>
            <li style="width: 25%; text-align: right; float: left">收货人姓名:</li>
            <li style="width: 25%; text-align: center; float: left"><asp:Literal ID="txtHuoName" runat="server"></asp:Literal></li>
            <li style="width: 25%; text-align: right; float: left">电子邮件地址:</li>
            <li style="width: 25%; text-align: center; float: left"><asp:Literal ID="txtEmail" runat="server"></asp:Literal></li>
            <li style="width: 25%; text-align: right; float: left">详细地址:</li>
            <li style="width: 25%; text-align: center; float: left"><asp:Literal ID="txtJiedao" runat="server"></asp:Literal></li>
            <li style="width: 25%; text-align: right; float: left">邮政编码:</li>
            <li style="width: 25%; text-align: center; float: left"><asp:Literal ID="txtZipCode" runat="server"></asp:Literal></li>
            <li style="width: 25%; text-align: right; float: left">电话:</li>
            <li style="width: 25%; text-align: center; float: left"><asp:Literal ID="txtPhone" runat="server"></asp:Literal></li>
            <li style="width: 25%; text-align: right; float: left">手机:</li>
            <li style="width: 25%; text-align: center; float: left"><asp:Literal ID="txtMobile" runat="server"></asp:Literal></li>
            <li style="width: 25%; text-align: right; float: left">标志建筑:</li>
            <li style="width: 25%; text-align: center; float: left"></li>
            <li style="width: 25%; text-align: right; float: left">最佳送货时间:</li>
            <li style="width: 25%; text-align: center; float: left"></li>
        </ul>
        <asp:HiddenField ID="Receiver" runat="server" Value="" />
        <asp:HiddenField ID="Email" runat="server" Value="" />
        <asp:HiddenField ID="Phone" runat="server" Value="" />
        <asp:HiddenField ID="ZipCode" runat="server" Value="" />
        <asp:HiddenField ID="Mobile" runat="server" Value="" />
        <asp:HiddenField ID="Jiedao" runat="server" Value="" />
	    </div>
    
    
    <div class="cart_title">配送方式</div>

    <div>
        <ul>
            <li style="width: 10%; text-align: center;"></li>
            <li style="width: 20%; text-align: center;">名称</li>
            <li style="width: 48%; text-align: center;">描述</li>
            <li style="width: 10%; text-align: center;">费用</li>
            <li style="width: 10%; text-align: center;">税率</li>
        </div>
        <asp:Repeater ID="Repeater2" runat="server">
            <ItemTemplate>
                <ul>
                    <li style="width: 10%; text-align: center;"><input id="DeliverID<%#Eval("ID") %>" <%#Eval("selectto","{0}")=="1"?"checked":"" %> name="DeliverID" type="radio" value="<%#Eval("ID") %>" /></li>
                    <li style="width: 20%; text-align: center;"><%#Eval("deliname")%></li>
                    <li style="width: 48%; text-align: center;"><%#Eval("deliinfo")%></li>
                    <li style="width: 10%; text-align: center;"><%#Eval("delitype", "{0:F}")%></li>
                    <li style="width: 10%; text-align: center;"><%#Eval("shuilv", "{0:F}")%></li>
                </ul>
            </ItemTemplate>
        </asp:Repeater>
    
    <div class="cart_title">支付方式</div>
     <div>
        <ul>
            <li style="width: 10%; text-align: center;"></li>
            <li style="width: 20%; text-align: center;">名称</li>
            <li style="width: 48%; text-align: center;">描述</li>
            <li style="width: 20%; text-align: center;">支付手续费</li>
        </ul>
        <asp:Repeater ID="Repeater3" runat="server">
            <ItemTemplate>
                <ul style="background-color: #F6F6F6; width: 100%">
                    <li style="width: 10%; text-align: center;"><input id="PayPlatID<%#Eval("PayPlatID") %>" <%#Eval("IsDefault","{0}")=="True"?"checked":"" %> name="PayPlatID" type="radio" value="<%#Eval("PayPlatID") %>" /></li>
                    <li style="width: 20%; text-align: center;"><%#Eval("PayPlatName")%></li>
                    <li style="width: 48%; text-align: center;"><%#Eval("PayPlatinfo")%></li>
                    <li style="width: 20%; text-align: center;"><%#Eval("Rate")%></li>
                </ul>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    
    <div class="cart_title">其他信息</div>
    <div>
        <ul>
            <li style="width: 100%; text-align: center;">使用积分<asp:TextBox ID="ujifen" runat="server">0</asp:TextBox>
                您当前的可用积分为:<asp:Literal ID="liUserExp" runat="server"></asp:Literal>，本订单最多可以使用0 金币.
            </li>
            <li style="width: 100%; text-align: center;">开发票<input id="cbInv" type="checkbox" runat='server' />
            发票类型<asp:DropDownList ID="InvType" runat="server"> </asp:DropDownList> 
                发票抬头<asp:TextBox ID="txtInvinfo" runat="server"></asp:TextBox>
                发票内容<asp:TextBox ID="ddInv" runat="server" TextMode="MultiLine"  Width="250px" Height="50px"></asp:TextBox>
            </li>
            <li style="width: 100%; text-align: center;">订单附言：<asp:TextBox ID="txtremark" runat="server"  Height="57px" Width="509px"></asp:TextBox>
            </li>
            <li style="width: 100%; text-align: center;">缺货处理:
                <input id="Radio1" name="qh" type="radio" value="0" checked="checked" />等待所有商品备齐后再发
                <input id="Radio2" name="qh" type="radio" value="1" />取消订单
                <input id="Radio3" name="qh" type="radio" value="2" />与店主协商 </li>
        </ul>
    </div>
    <div style="float: left; width: 100%">
        <asp:Literal ID="ModelHtml" runat="server"></asp:Literal>
    </div>
    
    
    <div class="cart_title">费用总计</div>
    <div>
        <ul>
            <li style="width: 100%; text-align: center; height: auto; text-align: right">商品总价：<asp:Label ID="alljiage" runat="server" Text=""></asp:Label>
                <br />
                应付款积分： <asp:Label ID="alljiage2" runat="server" Text=""></asp:Label><br />
            </li>
        </ul>
    </div>
    
    <div class="jia">
        <ul>
            <li style="width: 250px; text-align: left;"></li>
            <li>&nbsp;</li><li style="width: 250px; text-align: left;">
                <asp:Button ID="Button1" runat="server" Text="去收银台结帐" OnClick="Button1_Click" />
                <asp:HiddenField ID="project" runat="server" />
                <asp:HiddenField ID="jifen" runat="server" />
                <asp:HiddenField ID="hfproclass" runat="server" />
            </li>
        </ul>
    </div>

    <div id="Div1" runat="server">促销内容:</div>
    <div id="Label2" runat="server"></div>
    <div id="Label3" runat="server" class="cart_lei">
        <ul>
            <li class="i0">选择</li>
            <li class="i3">ID</li>
            <li class="i2">图片</li>
            <li class="i1">商品名称</li>
            <li class="i4">单位</li>
            <li class="i5">数量</li>
            <li class="i6">市场价</li>
            <li class="i7">零售价</li>
            <li class="i8">优惠价</li>
        </ul>
        </div>
        
         <div class="cart_con">      
        <asp:Repeater ID="Repeater1" runat="server">
            <ItemTemplate>
                <ul>
                    <li class="i0"><input type="radio" name="projuct" value="<%#Eval("ID") %>" /></li>
                    <li class="i3"><%#Eval("ID") %></li>
                    <li class="i2"><%#getproimg(DataBinder.Eval(Container, "DataItem.id", "{0}"))%></li>
                    <li class="i1"><%#GetProtype(Eval("id", "{0}"))%><%#Eval("proname")%></li>
                    <li class="i4"><%#getProUnit(DataBinder.Eval(Container, "DataItem.id", "{0}"))%></li>
                    <li class="i5"></li>
                    <li class="i6"><%#shijia(DataBinder.Eval(Container, "DataItem.ShiPrice", "{0}"))%></li>
                    <li class="i7"><%#shijia(DataBinder.Eval(Container, "DataItem.LinPrice", "{0}"))%></li>
                    <li class="i8"><%#Getprojectjia(Eval("ID","{0}")) %></li>
                    <div class="clear"></div>
                </ul>
            </ItemTemplate>
        </asp:Repeater>
</div>
</div>

<div id="bottom">
<a href="/"><img src="<%Call.Label("{$LogoUrl/}"); %>" alt="<%Call.Label("{$SiteName/}"); %>" /></a>
<p>
<script language="javascript" type="text/javascript"> 
<!-- 
var year="";
mydate=new Date();
myyear=mydate.getYear();
year=(myyear > 200) ? myyear : 1900 + myyear;
document.write(year); 
--> 
</script>&copy;&nbsp;Copyright&nbsp; <%Call.Label("{$SiteName/}"); %> All rights reserved.</p>
</div>
</form>
</body>
</html>