<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true" ValidateRequest="false" 
    Codebehind="LogisticsAdd.aspx.cs" Inherits="PPFOR.Admin.Sys.WebConfig.LogisticsAdd" Title="添加物流公司" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server">    
<form action="LogisticsAdd.aspx" method="post" id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="fortable">
    <thead>   
        <tr>
            <td colspan="2" align="center">添加物流公司</td>
        </tr>    
    </thead>                   
        <tr>
            <td style="width:15%" align="right">物流公司名称：</td>
            <td>
                <asp:TextBox ID="PPFOR_companyName" runat="server" Width="300px" MaxLength="50"></asp:TextBox>                 
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" SetFocusOnError="true" ValidationExpression="^[^<>\x22]{2,50}$" Display="Dynamic" ControlToValidate="PPFOR_companyName"><br />物流公司名称长度必须在2至50个字符之间，且不能包含以下字符之一：<，>，"</asp:RegularExpressionValidator>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" SetFocusOnError="true" Display="Dynamic" ControlToValidate="PPFOR_companyName"><br />物流公司名称不能为空</asp:RequiredFieldValidator>              
            </td>
        </tr> 
        <tr>
            <td align="right">网址：</td>
            <td>
                <asp:TextBox ID="PPFOR_url" runat="server" MaxLength="255" Width="300px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" SetFocusOnError="true" ValidationExpression="^(http://([\w-]+\.)+[\w-]+(/[\w-./?%&=]*)?)|(/[\w-./?%&=]*)$" Display="Dynamic" ControlToValidate="PPFOR_url"><br />网址格式不符合</asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="PPFOR_url" Display="Dynamic" SetFocusOnError="true"><br />网址不能为空</asp:RequiredFieldValidator>                
            </td>
        </tr>  
        <tr>
            <td align="right">排序：</td>
            <td>
                <asp:TextBox ID="PPFOR_sort" runat="server" Text="0" MaxLength="4"></asp:TextBox>
                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="PPFOR_sort" Display="Dynamic" SetFocusOnError="true" Type="Integer" MinimumValue="-999" MaximumValue="9999">排序顺序只能填写-999至9999之间的整数</asp:RangeValidator>
            </td>
        </tr>                      
        <tr>
            <td colspan="2" style="width:100%; height:50px; display:none" align="center" valign="middle">
                <asp:Button ID="PPFOR_addLogistics" CssClass="inputbutton" runat="server" Text="添加" OnClick="PPFOR_addLogisticsClick"/>
                <input name="reset" type="reset" id="reset1" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" value="重置" />              
                <script type="text/javascript">
                    addButtonArray("<%= PPFOR_addLogistics.ClientID %>","reset1");
                </script>
            </td>
        </tr>           
    </table>
</form>
</asp:Content>
