<%@ Page language="c#" Inherits="temp.Admin.SystemUsers" CodeFile="systemusers.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>AdminPwd</title>
		<LINK href="adminstyle.css" type="text/css" rel="stylesheet">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体">
				<table cellSpacing="0" width="98%" border="0" class="table_1">
					<tr>
						<td style="WIDTH: 61px">用户名:</td>
						<td><asp:textbox id="textadduser" runat="server" Width="72px"></asp:textbox></td>
						<td>姓名:</td>
						<td><asp:textbox id="Textrealname" runat="server" Width="80px"></asp:textbox></td>
						<td><asp:imagebutton id="btnadduser" runat="server" ImageUrl="img/adduser.gif"></asp:imagebutton></td>
						<td><IMG style="WIDTH: 24px; HEIGHT: 27px" height="27" src="/WebApplication2/Admin/img/jz.gif"
								width="24"></td>
						<td style="HEIGHT: 24px" width="48%"><IMG height="2" src="img/arc_a1.gif" width="380"></td>
					</tr>
					<TR>
						<TD colSpan="7"><span class="STYLE3">用户名规则</span>：由<span class="STYLE1">字母（a-z)</span>，<span class="STYLE1">数字(0-9)</span>，<font face="宋体">组</font>成;<span class="STYLE4">用户名不能有空隔</span>！
							<asp:regularexpressionvalidator id="RegularExpressionValidator1" runat="server" ErrorMessage="用户名不合法！" ValidationExpression="\w{1,15}"
								Display="None" ControlToValidate="textadduser"></asp:regularexpressionvalidator><asp:validationsummary id="ValidationSummary1" runat="server" ShowSummary="False" ShowMessageBox="True"
								DisplayMode="List"></asp:validationsummary></TD>
					</TR>
				</table>
				<asp:Panel ID="p2" Runat="server" Width="100%">
					<asp:DataGrid id="DataGrid1" Width="98%" Runat="server" AutoGenerateColumns="False">
						<AlternatingItemStyle BackColor="#Fafff7"></AlternatingItemStyle>
						<ItemStyle BackColor="#fafff7"></ItemStyle>
						<HeaderStyle BackColor="#66cc00" Height="25"></HeaderStyle>
						<Columns>
							<asp:BoundColumn DataField="UserName" HeaderText="用户名"></asp:BoundColumn>
							<asp:BoundColumn DataField="Name" HeaderText="姓名"></asp:BoundColumn>
							<asp:TemplateColumn HeaderText="状态">
								<ItemTemplate>
									<%#DataBinder.Eval(Container.DataItem,"Appearance").ToString()=="1"? "正常":"锁定"%>
								</ItemTemplate>
							</asp:TemplateColumn>
							<asp:TemplateColumn HeaderText="角色">
								<ItemTemplate>
									<%#DataBinder.Eval(Container.DataItem,"Role").ToString()==""? "未知":DataBinder.Eval(Container.DataItem,"Role").ToString().Substring(0,1)=="0"? "超级管理员":DataBinder.Eval(Container.DataItem,"Role").ToString().Substring(0,1)=="1"? "管理员":"用户"%>
								</ItemTemplate>
							</asp:TemplateColumn>
							<asp:BoundColumn DataField="Register" HeaderText="登录时间"></asp:BoundColumn>
							<asp:BoundColumn DataField="RegisterIp" HeaderText="登录IP"></asp:BoundColumn>
							<asp:TemplateColumn HeaderText="编辑">
								<ItemTemplate>
									<asp:ImageButton ID="imgedit" Runat="server" CommandArgument="edit" ImageUrl="img/edit.gif"></asp:ImageButton>
								</ItemTemplate>
							</asp:TemplateColumn>
							<asp:TemplateColumn HeaderText="删除">
								<ItemTemplate>
									<asp:ImageButton ID="imgdelete" Runat="server" CommandArgument="delete" ImageUrl="img/del.gif"></asp:ImageButton>
								</ItemTemplate>
							</asp:TemplateColumn>
						</Columns>
					</asp:DataGrid>
				</asp:Panel>
				<asp:panel id="pl1" Runat="server" Width="100%" Height="2px">
					<TABLE class="table_1" cellSpacing="0" width="98%" border="0">
						<TR class="td2">
							<TD align="center" colSpan="6" height="25">
								<asp:linkbutton id="LinkButton1" runat="server" CommandArgument="frist" onclick="gopage">首页</asp:linkbutton>&nbsp;|
								<asp:linkbutton id="LinkButton2" runat="server" CommandArgument="pre" onclick="gopage">上一页</asp:linkbutton>&nbsp;|
								<asp:linkbutton id="LinkButton3" runat="server" CommandArgument="next" onclick="gopage">下一页</asp:linkbutton>&nbsp;|
								<asp:linkbutton id="LinkButton4" runat="server" CommandArgument="end" onclick="gopage">尾页</asp:linkbutton>&nbsp;
								<asp:label id="Label1" runat="server">0</asp:label>/
								<asp:label id="Label2" runat="server">0</asp:label>&nbsp;记录数共:
								<asp:label id="Label3" runat="server" ForeColor="Red">0</asp:label>&nbsp;条&nbsp;第
								<asp:dropdownlist id="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"></asp:dropdownlist>页</TD>
						</TR>
					</TABLE>
				</asp:panel><asp:panel id="Panel2" runat="server" Visible="False" Width="100%" Height="479px">
					<TABLE class="table_1" id="Table3" cellSpacing="1" cellPadding="1" width="98%" border="0">
						<TR>
							<TD align="right" colSpan="4">
								<asp:ImageButton id="imgclose" ImageUrl="img/close.gif" Runat="server"></asp:ImageButton></TD>
						</TR>
						<TR>
							<TD class="td1">当前编辑用户:
								<asp:Label id="lbusername" Runat="server" ForeColor="#0000ff" Visible="True"></asp:Label></TD>
						</TR>
						<TR style="COLOR: #000000">
							<TD class="td1">用户状态:</TD>
						</TR>
						<TR>
							<TD class="td2">
								<asp:RadioButtonList id="rd" Runat="server" RepeatDirection="Horizontal">
									<asp:ListItem Value="1">正常</asp:ListItem>
									<asp:ListItem Value="2">锁定</asp:ListItem>
								</asp:RadioButtonList></TD>
						</TR>
						<TR style="FONT-SIZE: 10pt; COLOR: #0000ff">
							<TD class="td1">用户角色</TD>
						</TR>
						<TR>
							<TD class="td2">
								<asp:RadioButtonList id="rd2" Width="152px" Runat="server" Height="108px" AutoPostBack="True">
									<asp:ListItem Value="0#">超级管理员</asp:ListItem>
									<asp:ListItem Value="1#">管理员</asp:ListItem>
								</asp:RadioButtonList></TD>
						</TR>
						<TR>
							<TD class="td1">用户权限:</TD>
						</TR>
						<TR>
							<TD class="td2" style="HEIGHT: 88px" colSpan="4">
								<asp:CheckBoxList id="CheckBoxList1" runat="server" Width="600" Height="70" RepeatDirection="Horizontal"
									RepeatColumns="5">
									<asp:ListItem Value="2#">广告主管理</asp:ListItem>
									<asp:ListItem Value="3#">网站主管理</asp:ListItem>
									<asp:ListItem Value="4#">网站主网站管理</asp:ListItem>
									<asp:ListItem Value="5#">用户状态</asp:ListItem>
									<asp:ListItem Value="6#">广告结算</asp:ListItem>
									<asp:ListItem Value="7#">账户支付</asp:ListItem>
									<asp:ListItem Value="8#">日志管理</asp:ListItem>
									<asp:ListItem Value="9#">广告列表</asp:ListItem>
									<asp:ListItem Value="10#">详细广告位</asp:ListItem>
									<asp:ListItem Value="11#">申请投放广告</asp:ListItem>
									<asp:ListItem Value="12#">每日广告统计</asp:ListItem>
									<asp:ListItem Value="13#">广告点击详细</asp:ListItem>
									<asp:ListItem Value="14#">明细数据</asp:ListItem>
									<asp:ListItem Value="15#">手工导入数据</asp:ListItem>
									<asp:ListItem Value="16#">网站公告</asp:ListItem>
									<asp:ListItem Value="17#">模版管理</asp:ListItem>
									<asp:ListItem Value="18#">系统用户管理</asp:ListItem>
								</asp:CheckBoxList></TD>
						</TR>
						<TR>
							<TD class="td1">用户描述:</TD>
						</TR>
						<TR>
							<TD class="td2">
								<asp:TextBox id="textremark" Runat="server" TextMode="MultiLine"></asp:TextBox></TD>
						</TR>
						<TR>
							<TD class="td1">用户密码(<FONT color="#0000ff" size="2">注:空默认为原密码！</FONT>)</TD>
						</TR>
						<TR>
							<TD class="td2">新密码:
								<asp:TextBox id="textpwd1" runat="server" TextMode="Password"></asp:TextBox></TD>
						</TR>
						<TR>
							<TD class="td2" align="center">
								<asp:Button id="btnok" Runat="server" Text="修改权限" ></asp:Button></TD>
						</TR>
					</TABLE>
				</asp:panel>
				<br>
			</FONT>&nbsp;
		</form>
	</body>
</HTML>
