<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Order.aspx.cs" Inherits="Order" %>

<%@ Register Src="WebControl/Top.ascx" TagName="Top" TagPrefix="uc1" %>
<%@ Register Src="WebControl/Foot.ascx" TagName="Foot" TagPrefix="uc2" %>
<%@ Register Src="WebControl/Left.ascx" TagName="Left" TagPrefix="uc3" %>

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>确认订单-B2C电子商务网站</title>
<meta name="keywords" content="网上鞋店，手机数码，护肤品，..." />
<meta name="description" content="BtoC购物网站为您提供最实惠的商品..." />

<link href="css/templatemo_style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />


</head>

<body>

<form runat="server" id="form2">
<center>

<div id="templatemo_body_wrapper">
<div id="templatemo_wrapper">
	<uc1:Top runat="server" ID="uctop" />
    
    <div id="templatemo_main">
    	<uc3:Left runat="server" ID="ucLeft" />
    	
        <div id="content" class="float_r">
        	<h5 style="text-align:left">首页 -》订单确认</h5>
        	<div class="content_half2 float_l checkout">
				<b>从原有收货地址中选择: </b>
                <asp:RadioButtonList ID="rblAddress" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="rblAddress_SelectedIndexChanged">                  
                </asp:RadioButtonList>     
            </div>
            <div class="cleaner"></div> 
        	<br /><br />        	
            <div class="content_half float_l checkout">
            <b>填写收货地址: </b>
            <br />
				收货人:  
                  <asp:TextBox ID="txtConsignee" runat="server" Text="" style="width:300px;"></asp:TextBox><font color="red">*</font>
                  <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="txtConsignee" ErrorMessage="请填写收货人！" ToolTip="请填写收货人！" Display="Dynamic"></asp:RequiredFieldValidator> 
                <br />
                <br />
                收货地址:
				<asp:TextBox ID="txtLiveAddress" runat="server" Text="" style="width:300px;"></asp:TextBox><font color="red">*</font>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtLiveAddress" ErrorMessage="请填写收货地址！" ToolTip="请填写收货地址！" Display="Dynamic"></asp:RequiredFieldValidator> 
                <br />
                <br />
                电话:
                <asp:TextBox ID="txtPhone" runat="server" Text="" style="width:300px;"></asp:TextBox><font color="red">*</font>                 
                <br />
                <br />
                邮编:
                <asp:TextBox ID="txtZipCode" runat="server" Text="" style="width:300px;"></asp:TextBox><font color="red">*</font>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtZipCode" ErrorMessage="请填写邮编！" ToolTip="请填写邮编！" Display="Dynamic"></asp:RequiredFieldValidator>
                  <br />
                  <br />
                 <asp:CheckBox ID="cbAddress" runat="server" Checked="true" Text="将此地址保存为常用收货地址" />
                  <br />               
                   <br />
                 备注:
                <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Text="" style="width:300px;" Rows="4"></asp:TextBox>
                  <br />
                  <br />
            </div>
            
            <div class="cleaner"></div> 
            <div class="content_half float_l checkout">     	
        	<b>订单明细: </b>
        	<table width="680px" cellspacing="0" cellpadding="5">
                   	  <tr bgcolor="#ddd">
                        	<th width="120" align="left" nowrap="nowrap" style="border-right:1px #ccc solid;">商品图片 </th> 
                        	<th align="left" nowrap="nowrap" style="border-right:1px #ccc solid;">商品名称 </th>
                        	<th width="80" align="left" nowrap="nowrap" style="border-right:1px #ccc solid;">商品编码 </th>
                       	  	<th width="50" align="left" nowrap="nowrap" style="border-right:1px #ccc solid;">数量 </th> 
                        	<th width="60" align="left" nowrap="nowrap" style="border-right:1px #ccc solid;">单价 </th> 
                        	<th width="60" align="left" nowrap="nowrap" style="border-right:1px #ccc solid;">金额 </th> 
                        	
                      </tr>
                      
                      <asp:Repeater ID="rptShopPingCar" runat="server" >
				         <ItemTemplate>
                    	     <tr>
                        	    <td align="left" style="border-bottom:1px #ccc solid; border-right:1px #ccc solid;"><a href='Productdetail.aspx?id=<%# Eval("ProductId") %>'><img src='Admin/Upfile/<%# Eval("ProductPic") %>' alt="Shoes 1" style="width:100px;"/></a></td> 
                        	    <td align="left" style="border-bottom:1px #ccc solid; border-right:1px #ccc solid;"><a href='Productdetail.aspx?id=<%# Eval("ProductId") %>'><%# Eval("ProductName") %> </a></td> 
                                <td align="left" style="border-bottom:1px #ccc solid; border-right:1px #ccc solid;"><%# Eval("ProductNo") %></td>                                
                                <td align="left" style="border-bottom:1px #ccc solid; border-right:1px #ccc solid;">
                                   <%#Eval("ProductNum") %>
                                </td>
                                <td align="left" style="border-bottom:1px #ccc solid; border-right:1px #ccc solid;">￥<%# Convert.ToDecimal(Eval("WebsitePrice")).ToString("00.00")%> </td> 
                                <td align="left" style="border-bottom:1px #ccc solid; border-right:1px #ccc solid;">￥<%# Convert.ToDecimal(Eval("ProductTotal")).ToString("00.00")%> </td>
						    </tr>   
						 </ItemTemplate>
			          </asp:Repeater>
			          <tr>
                        <td align="right" style="background:#ddd; font-weight:bold" colspan="6">
			              商品总金额： <asp:Literal ID="litSunMoney" runat="server" Text='0.00￥'></asp:Literal>   &nbsp;&nbsp;&nbsp;&nbsp;
			               <a href="Index.aspx" >接着去购物</a>  
			            </td>
			           </tr>
			    </table>
			     <br />               
                   <br />
			</div>
			
			<div class="cleaner"></div> 
            <div class="content_half float_l checkout"> 
            <asp:ImageButton ID="btntijiao" runat="server" ImageUrl="images/btn_Tijiao.jpg" Height="25px" Width="75px" OnClick="tijiao_Click" style="vertical-align:middle"/>
                <a href="Index.aspx"><img src="images/btn_Cancel.jpg" alt="" height="25px" width="75px" style="vertical-align:middle"/></a>
            </div>
        </div>
          
        <div class="cleaner"></div>
          
    </div> <!-- END of templatemo_main -->
    
    <uc2:Foot runat="server" ID="ucFoot" />
</div> <!-- END of templatemo_wrapper -->
</div> <!-- END of templatemo_body_wrapper -->

</center>

</form>
</body>
</html>
