<%@ Page CodeBehind="admin_level_add.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Typhoto.admin_level_add" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>修改密码</title>
		<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>
						<span class="STYLE6">K</span>（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 width="21%" align="right" bgcolor="#4690b5"><span class="a3-green">相册个数：</span></td>
					<td bgcolor="#4690b5"><asp:textbox id="lalbumcount" runat="server" CssClass="tableTdtext" Width="150px">0</asp:textbox>（0为不限制）</FONT>
						<asp:requiredfieldvalidator id="Requiredfieldvalidator9" runat="server" ErrorMessage="请输入空间大小" ControlToValidate="lalbumcount"
							Display="Dynamic"></asp:requiredfieldvalidator>
						<asp:RegularExpressionValidator id="Regularexpressionvalidator7" runat="server" ControlToValidate="lalbumcount"
							ErrorMessage="请输入数字" ValidationExpression="^[0-9]{1,}$" Display="Dynamic"></asp:RegularExpressionValidator></td>
				</tr>
				<tr class="tableTd">
					<td width="21%" align="right" bgcolor="#4690b5"><span class="a3-green">照片个数：</span></td>
					<td bgcolor="#4690b5"><asp:textbox id="lphotocount" runat="server" CssClass="tableTdtext" Width="150px">0</asp:textbox>（0为不限制）</FONT>
						<asp:requiredfieldvalidator id="Requiredfieldvalidator12" runat="server" ErrorMessage="请输入空间大小" ControlToValidate="lphotocount"
							Display="Dynamic"></asp:requiredfieldvalidator>
						<asp:RegularExpressionValidator id="Regularexpressionvalidator11" runat="server" ControlToValidate="lphotocount"
							ErrorMessage="请输入数字" ValidationExpression="^[0-9]{1,}$" Display="Dynamic"></asp:RegularExpressionValidator></td>
				</tr>
				<tr class="tableTd">
					<td align="right" bgcolor="#4690b5">有效天数：</td>
					<td bgcolor="#4690b5"><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" bgcolor="#4690b5">好友个数：</td>
					<td bgcolor="#4690b5"><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="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">&nbsp;</td>
					<td><asp:checkbox id="TwoUrl" runat="server" Text="开启二级域名"></asp:checkbox>
					  <FONT face="宋体" color="#ff0000">（商业版功能）</FONT>
					  <asp:CheckBox ID="limit1" runat="server" Text="允许绑定顶级域名"></asp:CheckBox>
						<FONT face="宋体" color="#ff0000">（商业版功能）</FONT>
				    <asp:checkbox id="limit2" runat="server" Text='允许自行设定水印' Checked="True"></asp:checkbox>
						<asp:checkbox id="limit3" runat="server" Text='上传照片需要审核'></asp:checkbox>
						<asp:CheckBox ID="hide" runat="server" Text="此等级不在升级付费页面显示"></asp:CheckBox>
						<FONT face="宋体" color="#ff0000">（商业版功能）</FONT></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>
						（防盗链功能，转发除外）</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>
