<%@ Page CodeBehind="admin_level_add.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.admin_level_add" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>修改密码</title>
		<% @ Import Namespace="Webdisk" %>
		<link href="img/main.css" rel="stylesheet" type="text/css">
			<style type="text/css">
		.style4 { COLOR: #ff0000 }
		.style5 { FONT-WEIGHT: bold; COLOR: #ffffff }
		.STYLE6 { COLOR: #ff0000 }
		</style>
	</HEAD>
	<body>
		<form id="Form1" name="Form1" method="post" runat="server">
			<table border="0" cellspacing="1" cellpadding="3" align="center" width="100%">
              <tr>
                <td colSpan="3" class="td_title"><asp:Label id="add" runat="server" Font-Bold="True">添加</asp:Label>等级</td> 
              </tr>
              <tr class="tableTd">
                <td width="21%" align="right"><span class="forumrow"><span class="a3-green">等级名称</span> </span>：</td>
                <td width="79%"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><span class="style4">
                  <asp:textbox id="level" runat="server" CssClass="tableTdtext"></asp:textbox>
                  <asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ErrorMessage="请输入等级名" ControlToValidate="level"></asp:requiredfieldvalidator>
                  <INPUT id="hidlevel" type="hidden" name="Hidden1" runat="server">
                </span></font></font></font></font></td>
              </tr>
              <tr class="tableTd">
                <td width="21%" align="right"><span class="forumrow"><span class="a3-green">空间大小：</span></span></td>
                <td><asp:textbox id="spacesize" runat="server" CssClass="tableTdtext" Width="150px">0</asp:textbox>
                  M（0为不限制）</FONT>
                  <asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" ErrorMessage="请输入空间大小" ControlToValidate="spacesize"
							Display="Dynamic"></asp:requiredfieldvalidator>
                  <asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ControlToValidate="spacesize" ErrorMessage="请输入数字"
							ValidationExpression="^[0-9]{1,}$" Display="Dynamic"></asp:RegularExpressionValidator></td>
              </tr>
              <tr class="tableTd">
                <td align="right">上传大小：</td>
                <td><asp:TextBox ID="uploadsize" runat="server" CssClass="tableTdtext" Width="150px">0</asp:TextBox>
                  M（0为不限制）
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="请输入上传大小" ControlToValidate="uploadsize"
							Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="uploadsize" ErrorMessage="请输入数字"
							ValidationExpression="^[0-9]{1,}$" Display="Dynamic"></asp:RegularExpressionValidator></td>
              </tr>
              <tr class="tableTd">
                <td align="right">有效天数：</td>
                <td><asp:TextBox ID="enddate" runat="server" CssClass="tableTdtext" Width="50px">0</asp:TextBox>
                  天（0为不限制）
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="请输入有效期" ControlToValidate="enddate"
							Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="enddate" ErrorMessage="请输入数字"
							ValidationExpression="^[0-9]{1,}$" Display="Dynamic"></asp:RegularExpressionValidator></td>
              </tr>
              <tr class="tableTd">
                <td align="right">好友个数：</td>
                <td><asp:TextBox ID="FriendCount" runat="server" CssClass="tableTdtext" Width="50px">0</asp:TextBox>
                  个（0为不限制）
                    <asp:RequiredFieldValidator ID="Requiredfieldvalidator6" runat="server" ErrorMessage="请输入好友个数" ControlToValidate="FriendCount"
							Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="FriendCount"
							ErrorMessage="请输入数字" ValidationExpression="^[0-9]{1,}$" Display="Dynamic"></asp:RegularExpressionValidator></td>
              </tr>
              <tr class="tableTd">
                <td align="right">留言条数：</td>
                <td><asp:TextBox ID="LyCount" runat="server" CssClass="tableTdtext" Width="50px">0</asp:TextBox>
                  条（0为不限制）
                    <asp:RequiredFieldValidator ID="Requiredfieldvalidator7" runat="server" ErrorMessage="请输入留言条数" ControlToValidate="LyCount"
							Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="LyCount" ErrorMessage="请输入数字"
							ValidationExpression="^[0-9]{1,}$" Display="Dynamic"></asp:RegularExpressionValidator></td>
              </tr>
              <tr class="tableTd">
                <td align="right">短信条数：</td>
                <td><asp:TextBox ID="SmsCount" runat="server" CssClass="tableTdtext" Width="50px">0</asp:TextBox>
                  条（0为不限制）
                    <asp:RequiredFieldValidator ID="Requiredfieldvalidator8" runat="server" ErrorMessage="请输入短信条数" ControlToValidate="SmsCount"
							Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="SmsCount" ErrorMessage="请输入数字"
							ValidationExpression="^[0-9]{1,}$" Display="Dynamic"></asp:RegularExpressionValidator></td>
              </tr>
              <tr class="tableTd">
                <td align="right">下载速度：</td>
                <td><asp:TextBox ID="rate" runat="server" CssClass="tableTdtext" Width="50px">0</asp:TextBox>
                  K/秒以下（0为不限制）
                    <asp:RequiredFieldValidator ID="Requiredfieldvalidator9" runat="server" ErrorMessage="请输入下载速度" ControlToValidate="rate"
							Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" ControlToValidate="rate" ErrorMessage="请输入数字"
							ValidationExpression="^[0-9]{1,}$" Display="Dynamic"></asp:RegularExpressionValidator>
                    <FONT face="宋体" color="#ff0000">（商业版功能）</FONT></td>
              </tr>
                <tr class="tableTd">
                    <td align="right">
                        上传速度：
                    </td>
                    <td>
                        <asp:TextBox ID="uploadrate" runat="server" CssClass="tableTdtext" Width="50px">0</asp:TextBox>
                        K/秒以下（0为不限制）
                        <asp:RequiredFieldValidator ID="Requiredfieldvalidator13" runat="server" ErrorMessage="请输入上传速度"
                            ControlToValidate="uploadrate" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator12" runat="server"
                            ControlToValidate="rate" ErrorMessage="请输入数字" ValidationExpression="^[0-9]{1,}$"
                            Display="Dynamic"></asp:RegularExpressionValidator>
                    <FONT face="宋体" color="#ff0000">（商业版功能）</FONT></td>
                </tr>
              <tr class="tableTd">
                <td align="right">每日最大下载量：</td>
                <td><asp:TextBox ID="maxdown" runat="server" CssClass="tableTdtext" Width="50px">0</asp:TextBox>
                  M（0为不限制）
                    <asp:RequiredFieldValidator ID="Requiredfieldvalidator11" runat="server" ErrorMessage="请输入最大下载量" ControlToValidate="maxdown"
							Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" ControlToValidate="maxdown" ErrorMessage="请输入数字"
							ValidationExpression="^[0-9]{1,}$" Display="Dynamic"></asp:RegularExpressionValidator>
                    <FONT face="宋体" color="#ff0000">（商业版功能）</FONT></td>
              </tr>
              <tr class="tableTd">
                <td align="right">总共允许下载量：</td>
                <td><asp:TextBox ID="maxdowncount" runat="server" CssClass="tableTdtext" Width="50px">0</asp:TextBox>
                  M（0为不限制）
                    <asp:RequiredFieldValidator ID="Requiredfieldvalidator12" runat="server" ErrorMessage="请输入总共允许下载量" ControlToValidate="maxdowncount"
							Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="Regularexpressionvalidator11" runat="server" ControlToValidate="maxdowncount"
							ErrorMessage="请输入数字" ValidationExpression="^[0-9]{1,}$" Display="Dynamic"></asp:RegularExpressionValidator>
                    <FONT face="宋体" color="#ff0000">（商业版功能）</FONT></td>
              </tr>
              <tr class="tableTd">
                <td align="right">支付费用：</td>
                <td><asp:TextBox ID="money" runat="server" CssClass="tableTdtext" Width="50px">0</asp:TextBox>
                  元/
                    <select id="jd" name="jd" runat="server">
                      <option value="月" selected>月</option>
                      <option value="半年">半年</option>
                      <option value="年">年</option>
                    </select>
（0为免费）
<asp:RequiredFieldValidator ID="Requiredfieldvalidator10" runat="server" ErrorMessage="请输入支付费用" ControlToValidate="money"
							Display="Dynamic"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator9" runat="server" ControlToValidate="money" ErrorMessage="请输入数字"
							ValidationExpression="^[0-9]{1,}$" Display="Dynamic"></asp:RegularExpressionValidator>
<FONT face="宋体" color="#ff0000">（商业版功能）</FONT><br>
<span class="red">注：如为月，有效天数要改成30天；如为半年，有效天数要改成180天；如为一年，有效天数要改成365天。如果此处设置了费用，而有效天数为0天，代表付费一次永久使用。<br>
续费时为：新资费-（原资费-(原资费÷有效天数)×已使用天数）=要补的差价</span></td>
              </tr>
              <tr class="tableTd">
                <td align="right">排列次序：</td>
                <td><asp:TextBox ID="order" runat="server" CssClass="tableTdtext" Width="150px">0</asp:TextBox>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="请输入排列次序" ControlToValidate="order"
							Display="Dynamic"></asp:RequiredFieldValidator>
                  <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server" ControlToValidate="order" ErrorMessage="请输入数字"
							ValidationExpression="^[0-9]{1,}$" Display="Dynamic"></asp:RegularExpressionValidator></td>
              </tr>
              <tr class="tableTd">
                <td align="right">等级说明：</td>
                <td><asp:TextBox ID="sm" runat="server" CssClass="tableTdtext" Width="300px" TextMode="MultiLine"></asp:TextBox>
                （在升级/续费页面显示）</td>
              </tr>
              <tr class="tableTd">
                <td align="right"><FONT face="宋体" color="#ff0000">（商业版功能）</FONT></td>
                <td><asp:CheckBox ID="TwoUrl" runat="server" Text="开启二级域名"></asp:CheckBox>
                  <asp:CheckBox ID="ftp" runat="server" Text="开启FTP上传下载"></asp:CheckBox>
                  <asp:CheckBox ID="tools" runat="server" Text="开启下载工具下载"></asp:CheckBox>
                  <asp:CheckBox ID="hide" runat="server" Text="此等级不在升级付费页面显示"></asp:CheckBox>
                  <asp:checkbox id="mark" runat="server" Text='上传文件无需审核'></asp:checkbox>
                  <asp:checkbox id="onlymedown" runat="server" Text="自己下载时不统计流量（仅限制流量有效）"></asp:checkbox></td>
              </tr>
              <tr>
                <td colSpan="3" class="td_title">操作权限：</td>
              </tr>
              <tr class="tableTd">
                <td align="right"><font face="宋体">操作权限：</font></td>
                <td><asp:checkbox id="limit1" runat="server" Text="允许添加" Checked="True"></asp:checkbox>
                  <asp:checkbox id="limit2" runat="server" Text="允许修改" Checked="True"></asp:checkbox>
                  <asp:checkbox id="limit3" runat="server" Text="允许删除" Checked="True"></asp:checkbox>
                  <asp:checkbox id="limit4" runat="server" Text="允许上传" Checked="True"></asp:checkbox>
                  <asp:checkbox id="limit5" runat="server" Text="允许共享" Checked="True"></asp:checkbox>
                  <asp:checkbox id="limit6" runat="server" Text="允许下载" Checked="True"></asp:checkbox>
                  <asp:checkbox id="limit7" runat="server" Text="允许使用外部空间" Checked="True"></asp:checkbox>
                <asp:checkbox id="limit10" runat="server" Text="允许压缩/解压缩" Checked="True"></asp:checkbox>
                <asp:CheckBox ID="limit14" runat="server" Text="允许自己设置个人空间顶部广告" /></td>
              </tr>
              <tr>
                <td colSpan="3" class="td_title">下载权限：<FONT face="宋体" color="#ff0000">（商业版功能）</FONT></td>
              </tr>
              <tr class="tableTd">
                <td align="right">是否允许外部链接：</td>
                <td><asp:RadioButtonList ID="outlink" runat="server" Width="70px" RepeatLayout="Flow" Height="10px" RepeatDirection="Horizontal">
                  <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                  <asp:ListItem Value="0">否</asp:ListItem>
                </asp:RadioButtonList>
                （防盗链功能，<span class="STYLE6">无显示地址模式有效</span>，转发除外）</td>
              </tr>
              <tr class="tableTd">
                <td align="right">允许外链的来源网址：</td>
                <td><font face="宋体">
                  <asp:TextBox ID="fromurl1" runat="server" CssClass="tableTdtext" Width="300px" TextMode="MultiLine"></asp:TextBox>
                  <br>
外链为“否”时有效：指定支持哪些网址的外链，不在此内的则不能外链，留空为不限制网址，匹配域名，用半角,分隔</font></td>
              </tr>
              <tr class="tableTd">
                <td align="right">不允许外链的来源网址：</td>
                <td><font face="宋体">
                  <asp:TextBox ID="fromurl2" runat="server" CssClass="tableTdtext" Width="300px" TextMode="MultiLine"></asp:TextBox>
                  <br>
外链为“是”时有效：指定禁止哪些网址的外链，不在此内的则可以外链，留空为不限制网址，匹配域名，用半角,分隔</font></td>
              </tr>
              
              
              <tr class="tableTd">
                <td colspan="2" align="right"><span class="forumrow"><span class="px14">
                  <DIV align="center">
                    <asp:button id="Submit1" runat="server" Width="100px" Text="添　加" class="formbutton" onclick="Submit1_Click"></asp:button>
                    <asp:ValidationSummary id="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False"></asp:ValidationSummary>
</DIV>
                </span></span> </td>
              </tr>
            </table>
			</form>
	</body>
</HTML>
