<%@ Page Language="C#" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Management" Assembly="Hishop.Web.Management" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Validator" Assembly="Hishop.Web.Validator" %>
<%@ Import Namespace="Hishop.SystemServices" %>
<!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>
    <Hishop:HeadContainer ID="HeadContainer1" runat="server" />
    <Hishop:PageTitle ID="PageTitle1" runat="server" />
    <link rel="stylesheet" href="../css/OrderDetails.css" type="text/css" />
    <link rel="stylesheet" href="../../Themes/default/zh-cn/style/pagevalidator.css" type="text/css" />
    <link rel="stylesheet" href="../css/Hishopv5.css" type="text/css" />
    <script type="text/javascript" src="../../utility/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../utility/validate/pagevalidator.js"></script>
    <script type="text/javascript" src="../js/Hishopv5.js"></script>
     <script src="../../utility/region.helper.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <Hishop:PrintData ID="PrintData" runat="server" >
                <SkinTemplate>
                   <Hishop:StatusMessage id="Status" runat="server" Visible="False" />
                   <div class="title_bt"><ul><li class="no"  id="1">打印快递单</li></ul></div>
                   <div class="cuent_mian"  id="a1">
                       <div class="title_b"><span class="spanA">&gt;</span><span class="spanC">&gt; </span><span class="spanD">收货人信息</span></div>
                       <div class="content">
                            <table>
                                <tr>
                                   <td align="right">收货人姓名：</td>
                                   <td><asp:TextBox runat="server" ID="txtShipTo" /></td>
                                   <td><div id="txtShipToTip" runat="server"></div>
                                   <Hishop:ValidateTarget ID="ValidateTarget1" ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtShipTo" Description="收货人名字不能为空，长度在2-20个字符之间">
                                        <Validators>
                                            <Hishop:InputStringClientValidator ErrorMessage="收货人名字不能为空，长度在2-20个字符之间" LowerBound="2" UpperBound="20" />
                                        </Validators>
                                   </Hishop:ValidateTarget></td>
                                </tr>        
                                <tr>
                                    <td align="right">E-Mail：</td>
                                    <td><asp:TextBox runat="server" ID="txtEmail" /></td>
                                    <td><div id="txtEmailTip" runat="server"></div>
                                    <Hishop:ValidateTarget ID="validateTarget2" ContainerId="ValidatorContainer" runat="server" Nullable="true"
                                        ControlToValidate="txtEmail" Description="请输入有效的电子邮件地址，电子邮件地址的长度在200个字符以内">
                                        <Validators>
                                            <Hishop:InputStringClientValidator ErrorMessage="请输入有效的电子邮件地址，电子邮件地址的长度在200个字符以内" LowerBound="3" UpperBound="200" Regex="(([a-zA-Z\\.0-9_-])+@([a-zA-Z0-9_-])+((\\.[a-zA-Z0-9_-]{2,3}){1,2}))" />
                                        </Validators>
                                    </Hishop:ValidateTarget></td>
                                </tr>
                                <tr>
                                    <td align="right">送货地址：</td>
                                    <td> <Hishop:RegionSelector runat="server" id="dropRegions" /></td>
                                    <td><div id="Div1" runat="server"></div>
                                </tr>           
                                <tr>
                                    <td align="right">详细地址：</td>
                                    <td><asp:TextBox runat="server" ID="txtAddress" /></td>
                                    <td><div id="txtAddressTip" runat="server"></div>
                                    <Hishop:ValidateTarget ID="validateTarget3" ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtAddress" Description="详细地址不能为空">
                                        <Validators>
                                            <Hishop:InputStringClientValidator ErrorMessage="详细地址不能为空" LowerBound="3" UpperBound="200" />
                                        </Validators>
                                    </Hishop:ValidateTarget></td>
                                </tr>        
                                <tr>
                                    <td align="right">邮编：</td>
                                    <td><asp:TextBox runat="server" ID="txtZipcode" /></td>
                                    <td><div id="txtZipcodeTip" runat="server"></div>
                                    <Hishop:ValidateTarget ID="validateTarget4" ContainerId="ValidatorContainer" runat="server" ControlToValidate="txtZipcode" Description="邮政编码不能为空">
                                        <Validators>
                                            <Hishop:InputStringClientValidator ErrorMessage="邮政编码不能为空" LowerBound="3" UpperBound="20" />
                                        </Validators>
                                    </Hishop:ValidateTarget></td>
                                </tr>        
                                <tr>
                                    <td align="right">联系电话：</td>
                                    <td><asp:TextBox runat="server" ID="txtTelphone" /></td>
                                    <td><div id="txtTelphoneTip" runat="server"></div>
                                    <Hishop:ValidateTarget ID="validateTarget5" ContainerId="ValidatorContainer" runat="server" Nullable="true" ControlToValidate="txtTelphone" Description="收货人的电话号码(区号-电话号码-分机)">
                                        <Validators>
                                            <Hishop:InputStringClientValidator ErrorMessage="收货人的电话号码(区号-电话号码-分机)" LowerBound="3" UpperBound="20" />
                                        </Validators>
                                    </Hishop:ValidateTarget></td>
                                </tr>        
                                <tr>
                                    <td align="right">手机：</td>
                                    <td><asp:TextBox runat="server" ID="txtCellphone" /></td>
                                    <td><div id="txtCellphoneTip" runat="server"></div>
                                    <Hishop:ValidateTarget ID="validateTarget6" ContainerId="ValidatorContainer" runat="server" Nullable="true" ControlToValidate="txtCellphone" Description="收货人的手机号码">
                                        <Validators>
                                            <Hishop:InputStringClientValidator ErrorMessage="收货人的手机号码" LowerBound="3" UpperBound="20" />
                                        </Validators>
                                    </Hishop:ValidateTarget></td>
                                </tr>
                                <tr>
                                    <td> </td>
                                    <td><asp:Button runat="server" ID="btnUpdateAddrdss" Text="修改" OnClientClick="return PageIsValid();" /></td>
                                </tr>      
                            </table>
                       </div>
                       <div class="title_b"><span class="spanA">&gt;</span><span class="spanC">&gt; </span><span class="spanD">发货人信息</span></div>
                       <div class="content">
                       <asp:Panel runat="server" ID="pnlSender">
                            <table>
                                 <tr>
                                   <td align="right">发货点选择：</td>
                                   <td><Hishop:ShippersDropDownList runat="server" ID="ddlShoperTag" /></td>
                                 </tr>
                                 <tr>
                                  <td align="right"> 发货人姓名：</td>  
                                  <td><asp:Literal runat="server" ID="litShipperName" /></td>            
                                 </tr>
                                 <tr>
                                    <td align="right">邮编：</td>
                                     <td><asp:Literal runat="server" ID="litShipperZipcode" /></td>
                                 </tr>
                                 <tr>
                                     <td align="right">联系电话：</td>
                                     <td><asp:Literal runat="server" ID="litShipperTelphone" /></td>  
                                 </tr>
                                 <tr>
                                    <td align="right"> 手机：</td>
                                     <td><asp:Literal runat="server" ID="litShipperCellphone" /></td>
                                 </tr>
                            </table>
                      </asp:Panel>
                      <asp:Panel runat="server" ID="pnlEmptySender">
                           <span><a href="AddShipper.aspx">您还没有添加发货人信息，请先点击这里添加发货人信息!</a></span>
                      </asp:Panel>
                       </div> 
                       <div class="title_b"><span class="spanA">&gt;</span><span class="spanC">&gt; </span><span class="spanD">选择快递单模板</span></div>
                       <div class="content">
                       <asp:Panel runat="server" ID="pnlTemplates">
                            <table>
                                 <tr>
                                   <td align="right">选择模版：</td>
                                   <td><asp:DropDownList runat="server" ID="ddlTemplates"></asp:DropDownList></td>
                                   <td><asp:Button runat="server" ID="btnPrint" Text="立即打印快递单" /></td>
                                 </tr>
                                
                            </table>
                      </asp:Panel>
                      <asp:Panel runat="server" ID="pnlEmptyTemplates">
                           <span><a href="AddExpressTemplate.aspx">您还没有添加快递单模板，请先点击这里添加快递单模板!</a></span>
                   </asp:Panel>
                  </div>
                </SkinTemplate>
            </Hishop:PrintData>
            <br />
        <div class="botCopyInfo">
            <hr style="width:500px;" />
            <Hishop:SiteCopyright ID="SiteCopyright1" runat="server" />
             <Hishop:ValidatorContainer runat="server" ID="ValidatorContainer" />
        </div>
        </div>
    </form>
</body>
</html>