<%@ page language="C#" autoeventwireup="true" inherits="User_Shopfee_UserOrderinfo, App_Web_rkoaxl0e" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<!DOCTYPE HTML>
<html>
<head>
<title>填写订单信息</title>
<link href="../../App_Themes/UserThem/user_user.css" rel="stylesheet" type="text/css" />
<link href="../../App_Themes/UserThem/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../JS/jquery.js"></script>
</head>
<body>
<form id="form1" runat="server"> 
<div id="main" class="rg_inout"> 
<h1>第二步：填写订单信息&nbsp;<img src="../images/regl2.gif" width="242" height="14" /></h1>

<ul>
	<li style="width:150px;text-align:right;"><b><span style="color:#FF0000">*</span> 收货人姓名：</b></li>
	<li><asp:TextBox ID="Receiver" runat="server"></asp:TextBox></li>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"  Display="Dynamic" ControlToValidate="Receiver" ErrorMessage="收货人姓名不能为空!" SetFocusOnError="True" />
     <li style="margin-left:20px;"><asp:CheckBox ID="cbAdd" runat="server" style="vertical-align:-2px;"/><b>加入我的地址薄|</b>
            <a href="javascript:" onclick=" $('#otherUserLi').toggle();" style="color:red;">代购录入</a></li>
            <li id="otherUserLi" style="display:none;" runat="server">
            <asp:TextBox type="text" ID="otherUser" runat="server" OnPreRender="otherUserButton_Click" AutoPostBack="true"/>
            <span style="color:red;" id="Remind" runat="server">请输入对方用户名,回车确认</span></li>
    </ul>
    <div class="clear"></div>
    <ul>
        <li style="width: 150px; text-align: right;"><b><span style="color: #FF0000">*</span> 收货人地址：</b></li>
        <li>
            <asp:DropDownList ID="dddizhi" runat="server"
                OnSelectedIndexChanged="dddizhi_SelectedIndexChanged" AutoPostBack="True">
            </asp:DropDownList>
            <br />
    </ul>

    <ul>
        <li style="width: 150px; text-align: right;"><b><span style="color: #FF0000">*</span> 收货人详细地址：</b>                   </li>
        <li>
            <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" />
            <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged" />
            <asp:DropDownList ID="DropDownList3" runat="server" />
            <asp:TextBox ID="Jiedao" runat="server" Width="409px" CssClass="input_out"></asp:TextBox>
        </li>
        <li>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="DropDownList1" ErrorMessage="收货人所属省份!" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="DropDownList1" ErrorMessage="收货人所属城市!" SetFocusOnError="True"></asp:RequiredFieldValidator>
        </li>
    </ul>
    <ul>
        <li style="margin-left: 300px;">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="Jiedao"
                ErrorMessage="收货人地址不能为空!" SetFocusOnError="True" Display="Dynamic"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="Jiedao" ErrorMessage="地址过于简单，最少需要六个汉字，请补充详细" ValidationExpression="^.{6,}$" Display="Dynamic" SetFocusOnError="True"></asp:RegularExpressionValidator>
        </li>
    </ul>
    <div class="cleardiv" style="margin-top: 10px"></div>
    <ul style="margin-bottom: 20px">
        <li style="width: 150px; text-align: right;"><b>发票信息：</b></li>
        <li>
            <asp:TextBox ID="Invoice" runat="server" Height="46px" Width="331px" Rows="10"></asp:TextBox>
            <asp:CheckBox ID="Invoiceneeds" runat="server" Text="需开发票 " /></li>
    </ul>
    <ul id="payinfo" runat="server">
        <li style="width: 150px; text-align: right;"><b><span style="color: #FF0000">*</span> 付款方式：</b></li>
        <li></li>
        <li>&nbsp;<asp:DropDownList ID="Payment" runat="server"></asp:DropDownList></li>
    </ul>
    <ul>
        <li style="width: 150px; text-align: right;"><b><span style="color: #FF0000">*</span> 要求送货时间：</b></li>
        <li>&nbsp;<asp:DropDownList ID="Deliverytime" runat="server">
            <asp:ListItem Value="1">对送货时间没有特殊要求</asp:ListItem>
            <asp:ListItem Value="2">双休日或者周一至周五的晚上送达</asp:ListItem>
            <asp:ListItem Value="3">周一至周五的白天送达</asp:ListItem>
        </asp:DropDownList></li>
    </ul>
    <ul>
        <li style="width: 150px; text-align: right;"><b><span style="color: #FF0000">*</span> 收货人邮箱：</b></li>
        <li>&nbsp;<asp:TextBox ID="Email" runat="server"></asp:TextBox></li>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="Email"
            ErrorMessage="收货人邮箱不能为空!" SetFocusOnError="True"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="Email" ErrorMessage="邮件地址不规范" ValidationExpression="^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"></asp:RegularExpressionValidator>
    </ul>

    <div class="clear"></div>
    <ul>

        <li style="width: 150px; text-align: right;"><b><font color="#FF0000">*</font>联系电话：</b></li>
        <li>
            <asp:TextBox ID="Phone" runat="server"></asp:TextBox>
            格式:区号-号码
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Phone" Display="Dynamic" ErrorMessage="联系电话不能为空!" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="Phone"
                ErrorMessage="联系电话格式不正确!" SetFocusOnError="True" ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8}|(\(\d{4}\)|\d{4}-)?\d{8}|(\(\d{4}\)|\d{4}-)?\d{8}|(\(\d{4}\)|\d{4}-)?\d{7}|(\(\d{4}\)|\d{4}-)?\d{7}" Display="Dynamic"></asp:RegularExpressionValidator>

        </li>
    </ul>
    <ul>
        <li style="width: 150px; text-align: right;"><b><span style="color: #FF0000">*</span> 收货人手机：</b></li>
        <li>
            <asp:TextBox ID="Mobile" runat="server" MaxLength="11"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Mobile"
                Display="Dynamic" ErrorMessage="收货人手机不能为空!" SetFocusOnError="True" />
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="Mobile"
                ErrorMessage="手机号码格式不正确,必须是11位手机号!" ValidationExpression="^(\d{11})$" SetFocusOnError="True" />
        </li>
    </ul>
    <ul>
        <li style="width: 150px; text-align: right;"><b><span style="color: #FF0000">*</span> 邮政编码：</b></li>
        <li>
            <asp:TextBox ID="ZipCode" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="ZipCode" Display="Dynamic" ErrorMessage="邮政编码不能为空!" SetFocusOnError="True"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="ZipCode"
                ErrorMessage="邮政编码格式不正确!" ValidationExpression="^\d{6}$" SetFocusOnError="True"></asp:RegularExpressionValidator>

        </li>
    </ul>
    <ul>
        <li style="width: 150px; text-align: right;"><b><font color="#FF0000">*</font>送货方式：</b></li>
        <li>&nbsp;<asp:DropDownList ID="Delivery" runat="server" AutoPostBack="True"
            OnSelectedIndexChanged="Delivery_SelectedIndexChanged">
        </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Delivery" ErrorMessage="送货方式不能为空!" SetFocusOnError="True"></asp:RequiredFieldValidator></li>
    </ul>
    <ul>
        <li style="width: 150px; text-align: right;"><b><font color="#FF0000">*</font>运费：</b></li>
        <li>&nbsp;<asp:Label ID="lblYunFei" runat="server"></asp:Label></li>
        <li style="width: 150px; text-align: right;"></li>
        <li>&nbsp;</li>
        <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>
        <asp:HiddenField ID="projiect" runat="server" />
        <asp:HiddenField ID="prodectid" runat="server" />
        <asp:HiddenField ID="projectjiage" runat="server" />
        <asp:HiddenField ID="jifen" runat="server" />
        <asp:HiddenField ID="hfproclass" runat="server" />
        <asp:HiddenField ID="Mbool" runat="server" />
        <asp:HiddenField ID="AllMoney" runat="server" />
        <asp:HiddenField ID="XfMoney" runat="server" />
    </ul>
    <div class="clear"></div>
    <asp:Literal ID="ModelHtml" runat="server"></asp:Literal>
    <div class="clear"></div>
    <ul>
        <li style="width: 150px; text-align: right;">&nbsp;</li>
        <li>
            <asp:Button ID="Button1" runat="server" Text="提交订单" CssClass="i_bottom" OnClick="Button1_Click" />&nbsp;</li>
    </ul>
    <div class="clear"></div>
    </div>
    <div id="bottom">
        <a href="/">
            <img src="<%Call.Label("{$LogoUrl/}"); %>" alt="<%Call.Label("{$SiteName/}"); %>" /></a>
        <p>
    <script> 
        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>