<%@ Page CodeBehind="admin_admin_add.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.admin_admin_add" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<TITLE></TITLE>
		<LINK href="images/Site_Css.css" type="text/css" rel="stylesheet">
			<META http-equiv="Content-Type" content="text/html; charset=gb2312">
			<LINK href="images/Css.css" type="text/css" rel="stylesheet">
				<META content="MSHTML 6.00.6000.16544" name="GENERATOR">
				<style type="text/css">
.style4 { COLOR: #ff0000 }
</style>
	</HEAD>
	<BODY bgColor="#ffffff" topMargin="5" marginwidth="0" marginheight="0">
		<form name="Form1" method="post" id="Form1" runat="server">
			<DIV></DIV>
			<DIV>
				<TABLE cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
					<TBODY>
						<TR>
							<TD class="menubar_title"><IMG hspace="3" src="images/default.gif" align="absMiddle" vspace="3" border="0">&nbsp;<span class="td_title">添加管理员</span></TD>
							<TD class="menubar_readme_text" vAlign="bottom">&nbsp;</TD>
						</TR>
						<TR>
							<TD class="menubar_function_text" height="1">&nbsp;</TD>
							<TD class="menubar_menu_td" align="right">&nbsp;</TD>
						</TR>
						<TR>
							<TD colSpan="2" height="5"></TD>
						</TR>
					</TBODY></TABLE>
				<TABLE cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
					<TBODY>
						<TR>
							<TD background="images/tab_top_bg.gif" height="22">
								<TABLE cellSpacing="0" cellPadding="0" border="0">
									<TBODY>
										<TR> <!--按钮　Start-->
											<TD>
												<TABLE height="22" cellSpacing="0" cellPadding="0" border="0">
													<TBODY>
														<TR>
															<TD width="3"><IMG id="tabImgLeft__0" height="22" src="images/tab_unactive_left.gif" width="3"></TD>
															<TD class="tab" id="tabLabel__0" onClick="javascript:tabClick(0,1)" background="images/tab_active_bg.gif"
																UNSELECTABLE="on">添加管理员</TD>
															<TD width="3"><IMG id="tabImgRight__0" height="22" src="images/Menu/tab_active_right.gif" width="3"></TD>
														</TR>
													</TBODY></TABLE>
											</TD>
										</TR>
									</TBODY></TABLE>
							</TD>
						</TR>
						<TR>
							<TD bgColor="#ffffff">
								<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
									<TBODY>
										<TR>
											<TD width="1" background="images/tab_bg.gif"><IMG height="1" src="images/tab_bg.gif" width="1"></TD>
											<TD class="borderstyle" vAlign="top">
												<DIV id="tabContent__0">
													<TABLE width="100%" border="0" align="center" cellPadding="3" cellSpacing="1">
														<TBODY>
															<TR>
																<TD width="27%" class="table_body"><span class="a3-green">管理员登录名</span></TD>
																<TD width="73%" class="table_none"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><span class="style4">
																						<asp:TextBox id="adminname" runat="server" CssClass="tableTdtext"></asp:TextBox>
																						<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="请输入用户名" ControlToValidate="adminname"></asp:RequiredFieldValidator>
																					</span></font></font></font></font></TD>
															</TR>
															<TR>
																<TD class="table_body"><span class="a3-green">管理员登录密码</span></TD>
																<TD class="table_none"><span class="a3-green">
																		<asp:TextBox id="adminpass" runat="server" CssClass="tableTdtext" Width="150px" TextMode="Password"></asp:TextBox>
																		<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="请输入密码" ControlToValidate="adminpass"></asp:RequiredFieldValidator>
																	</span></TD>
															</TR>
															<TR>
																<TD class="table_body"><span class="a3-green">操作权限</span></TD>
																<TD class="table_none"><input name="type" type="radio" value="1" checked onClick="javascript:document.all.show1.style.display='none';"
																		id="type" runat="server"> 管理员 <input type="radio" name="type" value="0" onClick="javascript:document.all.show1.style.display='';">
																	设置权限
																</TD>
															</TR>
															<TR id="show1" style="DISPLAY: none">
																<TD class="table_body">权限</TD>
																<TD class="table_none"><p><STRONG>常规管理：</STRONG>
																		<asp:CheckBoxList id="l1" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
																			<asp:ListItem Value="a1">选项设置</asp:ListItem>
																			<asp:ListItem Value="a2">短消息管理</asp:ListItem>
																		</asp:CheckBoxList>
																		<BR>
																		<BR>
																		<STRONG>显示管理：</STRONG>
																		<asp:CheckBoxList id="l6" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
																			<asp:ListItem Value="f1">菜单添加管理</asp:ListItem>
																			<asp:ListItem Value="f2">公告添加管理</asp:ListItem>
																		</asp:CheckBoxList>
																		<BR>
																		<BR>
																		<STRONG>学校结构：</STRONG>
																		<asp:CheckBoxList id="l7" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
																			<asp:ListItem Value="g1">部门管理</asp:ListItem>
																		</asp:CheckBoxList>
																		<STRONG><FONT style="BACKGROUND-COLOR: #ffffff">
																				<BR>
																				<BR>
                                                                        <STRONG>类别设定：</STRONG>
																		<asp:CheckBoxList id="l10" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
																			<asp:ListItem Value="k1">类别设定</asp:ListItem>
																		</asp:CheckBoxList>
																		<STRONG><FONT style="BACKGROUND-COLOR: #ffffff">
																				<BR>
																				<BR>
																			</FONT></STRONG><STRONG>用户管理：</STRONG>
																		<asp:CheckBoxList id="l2" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
																			<asp:ListItem Value="b1">添加管理用户</asp:ListItem>
																			<asp:ListItem Value="b2">导入导出用户</asp:ListItem>
																		</asp:CheckBoxList>
																		<BR>
																		<BR>
																		<STRONG>文件管理：</STRONG>
																		<asp:CheckBoxList id="l3" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
																			<asp:ListItem Value="c1">指派管理员</asp:ListItem>
																			<asp:ListItem Value="c2">文件目录设定</asp:ListItem>
																			<asp:ListItem Value="c1">上传文件查看</asp:ListItem>
																			<asp:ListItem Value="c2">文件共享审核</asp:ListItem>
																		</asp:CheckBoxList>
																		<BR>
																		<BR>
																		<STRONG>管&nbsp;理&nbsp;员：</STRONG>
																		<asp:CheckBoxList id="l4" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
																			<asp:ListItem Value="d1">添加查看管理员</asp:ListItem>
																			<asp:ListItem Value="d2">管理日志</asp:ListItem>
																		</asp:CheckBoxList>
																		<BR>
																		<BR>
																		<STRONG>标签定义：</STRONG>
																		<asp:CheckBoxList id="l5" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
																			<asp:ListItem Value="e1">标签定义</asp:ListItem>
																		</asp:CheckBoxList>
																	</p>
																	<p><STRONG>存储分区：</STRONG>
																		<asp:CheckBoxList id="l8" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
																			<asp:ListItem Value="h1">添加管理存储分区</asp:ListItem>
																		</asp:CheckBoxList>
																	</p>
																	<p><STRONG>系统工具：</STRONG>
																		<asp:CheckBoxList id="l9" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
																			<asp:ListItem Value="i1">更新缓存</asp:ListItem>
																			<asp:ListItem Value="i2">数据清理</asp:ListItem>
																			<asp:ListItem Value="i3">执行SQL</asp:ListItem>
																			<asp:ListItem Value="i4">系统信息</asp:ListItem>
																			<asp:ListItem Value="i5">数据库维护</asp:ListItem>
																		</asp:CheckBoxList>
																	</p>
																</TD>
															</TR>
															<TR>
																<TD class="table_body"><span class="forumrow">只允许登陆IP列表</span></TD>
																<TD class="table_none"><div align="left">
																		<textarea name="allowip" cols="40" class="tableTdtext" rows="8" id="allowip" runat="server"></textarea>
																		<br>
																		<input type=button class="formbutton" value="添加自已当前IP" onClick="allowip.value+='\n<%=ip1%>'">
																		<%=ip2%>
																		<fieldset class="fieldset" style="MARGIN:2px">
																			<legend>
																				<B>添加说明</B></legend>
																			<ol>
																				<LI>
																					<b>清空不填写即允许所有IP登陆后台。</b>
																				<LI>
																					<b><font color="red">尽量采用IP段的方式，如：10.10.*.*。</font></b>
																				<LI>
																					<b>注意：提交后在下次登陆将会生效，若IP填错将会无法登陆后台。</b>
																				<LI>
																				添加IP后，该管理员访问IP必需符合允许IP列表才能登陆后台。
																				<LI>
																				您可以添加多个允许IP，每个IP用回车分隔，允许IP的书写方式如202.152.12.1就允许了202.152.12.1这个IP的登陆后台，如202.152.12.*就允许了以202.152.12开头的IP登陆后台。
																				<LI>
																					在添加多个IP的时候，请注意最后一个IP的后面不要加回车。</LI>
																			</ol>
																		</fieldset>
																	</div>
																</TD>
															</TR>
														</TBODY></TABLE>
												</DIV> <!--内容框End--></TD>
											<TD width="1" background="images/tab_bg.gif"><IMG height="1" src="images/tab_bg.gif" width="1"></TD>
										</TR>
									</TBODY></TABLE>
							</TD>
						</TR>
						<TR>
							<TD background="images/tab_bg.gif" bgColor="#ffffff"><IMG height="1" src="images/tab_bg.gif" width="1"></TD>
						</TR>
					</TBODY></TABLE> <!--选项卡 End--></DIV>
			<DIV>
				<div align="center"><span class="px14"><br>
						<asp:Button ID="Submit1" runat="server" Width="100px" class="formbutton" Text="添　加" onclick="Submit1_Click"></asp:Button>
					</span><br>
				</div>
			</DIV>
		</form>
		<SCRIPT language="javascript">
        function tabClick(idx,count) {
          for (i_tr = 0; i_tr < count; i_tr++) {
              var tabImgLeft = eval('document.all.tabImgLeft__' + idx);
              var tabImgRight = eval('document.all.tabImgRight__' + idx);
              var tabLabel = eval('document.all.tabLabel__' + idx);
              var tabContent = eval('document.all.tabContent__' + idx);

              tabImgLeft.src = 'images/tab_active_left.gif';
              tabImgRight.src = 'images/tab_active_right.gif';
              tabLabel.background = 'images/tab_active_bg.gif';
              tabContent.style.visibility = 'visible';
              tabContent.style.display = 'block';
          }
        }
        tabClick(0,1);
		</SCRIPT>
		<BR>
	</BODY>
</HTML>
