<%@ Page Language="C#" MasterPageFile="~/Includes/MasterPage.master" AutoEventWireup="true" CodeFile="CheckOut.aspx.cs" Inherits="CheckOut" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style="text-align:center;">
<br />
         结算步骤 ：1 <font style="font-weight:bold">订单填写</font>  ----> 2 成功提交订单&nbsp;
         <br />
         <br />
    <div style="width:90%; border-width:2px; font-size:12px; vertical-align:middle; border-color:#ff65a0; border-style:solid">
      <table width="90%" border="0" bordercolor="white" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2" align="center" height="30px" valign="middle">
          <font style="font-size:16px; font-weight:bold">
          收货人信息
          </font>    
        </td>
      </tr>
      <tr>
        <td width="20%" align="center" valign="middle" style="height: 30px">
           收货人
        </td>
        <td width="80%" align="left" style="height: 30px">
           <asp:TextBox runat="Server" ID="acceptnametb"></asp:TextBox>
           <asp:RequiredFieldValidator runat="server" ID="acceptnametbrfv" ControlToValidate="acceptnametb" ErrorMessage="请输入收货人" Display="dynamic"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td width="20%"align="center" valign="middle" style="height: 30px">
           收货详细地址
        </td>
        <td width="80%" align="left" style="height: 30px">
           <asp:TextBox runat="server" ID="addresstb" Width="400px"></asp:TextBox>
           <asp:RequiredFieldValidator runat="server" ID="addresstbrfv" ControlToValidate="addresstb" ErrorMessage="请输入收货详细地址" Display="dynamic"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td width="20%" align="center" valign="middle" style="height: 30px">
           邮政编码
        </td>
        <td width="80%" align="left" style="height: 30px">
            <asp:TextBox runat="server" ID="postalcodetb"></asp:TextBox>
         <asp:RequiredFieldValidator runat="server" ID="postalcodetbrfv" ControlToValidate="postalcodetb" ErrorMessage="请输入邮政编码" Display="dynamic"></asp:RequiredFieldValidator>
          <asp:RegularExpressionValidator runat="server" ID="postalcodetbrev" ControlToValidate="postalcodetb"
              ErrorMessage="邮政编码格式错误" Display="dynamic" ValidationExpression="^[1-9][0-9]{5}$"></asp:RegularExpressionValidator>
        </td>
      </tr>
      <tr>
        <td width="20%" align="center" valign="middle" style="height: 30px">
            联系电话
        </td>
        <td width="80%" align="left" style="height: 30px">
            <asp:TextBox runat="server" ID="phonetb"></asp:TextBox>
            <asp:RequiredFieldValidator runat="server" ID="phonetbrfv" ControlToValidate="phonetb" ErrorMessage="请输入联系电话" Display="dynamic"></asp:RequiredFieldValidator>
             <asp:RegularExpressionValidator runat="server" ID="phonetbrev" ControlToValidate="phonetb"
              ErrorMessage="联系电话格式错误" Display="dynamic" ValidationExpression="(\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$"></asp:RegularExpressionValidator>
        </td>
      </tr>
      <tr>
        <td colspan="2" align="center" valign="middle" style="height: 30px">
           <font style="font-size:16px; font-weight:bold">
             送货方式
          </font>   
        </td>
      </tr>
      <tr>
        <td colspan="2" align="center" valign="middle">
            <asp:RadioButtonList ID="deliverylist" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Selected="true" Text="普通快递送货上门(支持货到付款)"></asp:ListItem>
                <asp:ListItem Text="普通邮递(不支持货到付款)"></asp:ListItem>
                <asp:ListItem Text="邮件特快专递(不支持货到付款)"></asp:ListItem>
            </asp:RadioButtonList>
            
        </td>
      </tr>
      <tr>
          <td colspan="2" align="center" valign="middle" style="height:30px">
              <font style="font-size:16px; font-weight:bold">
             付款方式
          </font>   
          </td>
      </tr>
      <tr>
        <td colspan="2" align="center" valign="middle">
             <asp:RadioButtonList ID="paymentlist" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Text="工商银行"></asp:ListItem>
                <asp:ListItem Text="建设银行"></asp:ListItem>
                <asp:ListItem Text="农业银行"></asp:ListItem>
                <asp:ListItem Text="交通银行"></asp:ListItem>
                 <asp:ListItem Selected="true" Text="货到付款"></asp:ListItem>
                 <asp:ListItem Text="支付宝"></asp:ListItem>
                 <asp:ListItem Text="财富通"></asp:ListItem>
            </asp:RadioButtonList>
            
        </td>
      </tr>
      <tr>
         <td colspan="2" align="center" valign="middle" height="40px">
             <font color="red">
                 请认真检查订单是否完整填写和填写正确再提交订单,以免造成不必要的麻烦
             </font>
         </td>
      </tr>
      <tr>
        <td colspan="2" height="40px" align="center" valign="middle">
            <asp:Button ID="addorderbt" runat="server" CssClass="go-wenbenkuang" Text="确认订单信息并提交订单" OnClick="addorderbt_Click" />
            <input type="button" value="返回购物车" class="go-wenbenkuang" onclick="window.location.href='cart.aspx'" />
        </td>
      </tr>
    </table>
    <br />
    </div>
    </div>
</asp:Content>

