<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true" CodeBehind="FileSet.aspx.cs" Inherits="PPFOR.Admin.ContentArea.Download.FileSet" Title="上传与下载配置" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" Runat="Server">
<form id="form1" action="FileSet.aspx" method="post" runat="server">
<asp:Label ID="PPFOR_fileSetBelongLan" runat="server" Enabled="false" Visible="false"></asp:Label>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="fortable">
    <thead>   
        <tr>
            <td colspan="2" align="center">上传配置</td>
        </tr>    
    </thead>                   
        <tr>
            <td align="right" style="width:20%">是否允许上传文件：</td>
            <td>
                <asp:RadioButton ID="PPFOR_fileAllow" runat="server" GroupName="fileSort" Text="是" Checked="true"  />&nbsp;
                <asp:RadioButton ID="PPFOR_fileDeny" runat="server" GroupName="fileSort" Text="否"   />
            </td>
        </tr>
        <tr>
            <td align="right">允许上传的最大文件大小：</td>
            <td>
                <asp:TextBox ID="PPFOR_maxSize" runat="server" MaxLength="4" Width="60px" ></asp:TextBox>(单位：MB)                
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" SetFocusOnError="true" Display="Dynamic" ControlToValidate="PPFOR_maxSize" ><br />最大文件大小不能为空</asp:RequiredFieldValidator>
                <asp:RangeValidator ID="RangeValidator1" runat="server" MinimumValue="0" MaximumValue="2047" Type="Integer" ControlToValidate="PPFOR_maxSize" Display="Dynamic" SetFocusOnError="true"><br />最大文件大小必须在0至2047之间</asp:RangeValidator>
            </td>
        </tr>  
        <tr>
            <td align="right">允许上传的文件类型：</td>
            <td>
                <asp:TextBox ID="PPFOR_fileFormat" runat="server" MaxLength="255" Width="300px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" SetFocusOnError="true" ValidationExpression='^([|]?[A-Za-z0-9]{1,7}([|][A-Za-z0-9]{1,7})*[|]?){1,255}$' Display="Dynamic" ControlToValidate="PPFOR_fileFormat"><br />文件类型必须为7位以内的字母和数字，多个文件类型以|（竖线）分隔</asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="PPFOR_fileFormat" Display="Dynamic" SetFocusOnError="true" ><br />文件类型不能为空</asp:RequiredFieldValidator></td>
        </tr> 
    </table> 
    <br />
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="fortable">    
    <thead>   
        <tr>
            <td colspan="2" align="center">下载配置</td>
        </tr>   
    </thead>          
        <tr>
            <td align="right" style="width:20%">下载失败跳转地址：</td>
            <td>
                <asp:TextBox ID="PPFOR_link" runat="server" MaxLength="255" Width="300px"></asp:TextBox>&nbsp;默认为跳转到首页
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" SetFocusOnError="true" ValidationExpression="^(http://([\w-]+\.)+[\w-]+(/[\w-./?:%&=]*)?)|(/[\w-./?:%&=]*)$" Display="Dynamic" ControlToValidate="PPFOR_link"><br />跳转地址格式不符合</asp:RegularExpressionValidator>
            </td>
        </tr>                
    </table>
    <br />
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="fortable" style="display:none;">    
    <tr>
        <td colspan="2" style="width:100%; height:50px; display:none;" align="center" valign="middle">
            <asp:Button ID="PPFOR_btnUpdate" CssClass="inputbutton" runat="server" Text="提交" OnClick="PPFOR_btnUpdate_Click"/>
            <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_btnUpdate.ClientID %>","reset1");
            </script>
        </td>
    </tr>    
    </table>
</form>
</asp:Content>
