<%@ Page language="c#" Codebehind="UserManage.aspx.cs" AutoEventWireup="false" validateRequest="false" Inherits="TourOnline.BgManage.Sys.UserManage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>UserManage</title>
		<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">
		<link href='../Admin_Style.css' rel='stylesheet' type='text/css'>
		<script language="javascript">
			function SelectRole(roleId,roleName)
			{
				eval("var k = window.showModalDialog('SelectRole.aspx?RoleId=' + document.Form1." + roleId + ".value,'','help:no;status:no;dialogWidth:400px;dialogHeight:350px');");
				if(k != null)
				{
					eval("document.Form1." + roleName + ".value = k.roleName;");
					eval("document.Form1." + roleId +  ".value = k.roleId;");
					eval("document.Form1." + roleName + ".focus();");
					return false;
				}
				
			}
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="100%" border="0">
				<TR class='topbg'>
					<TD align="center" height="22"><FONT style="FONT-WEIGHT: bold" face="宋体">网站管理员管理</FONT>
					</TD>
				</TR>
				<TR>
					<TD class='tdbg' height="30">
						<b>管理导航：</b>&nbsp;&nbsp;&nbsp;<A href="UserManage.aspx">管理员管理</A>&nbsp;&nbsp; <a href="userAdd.aspx">
							添加新管理员</a></TD>
				</TR>
				<TR>
					<TD class='tdbg' height="1"><hr size="1" width="100%" color="#0650d2">
					</TD>
				</TR>
				<TR>
					<TD>
						<asp:datalist id="DataList1" runat="server" DataKeyField="UserId" ShowFooter="False" Width="100%"
							cellspacing="0" CellPadding="0" BorderWidth="0">
							<HeaderTemplate>
								<table width='100%' border='0' align='center' cellpadding='0' cellspacing='1' class="table1">
									<tr height='22'>
										<td width='5%' align='center' class='title'><strong>ID</strong></td>
										<td align='center' width='10%' class='title'><strong>登录名</strong></td>
										<td align='center' width='15%' class='title'><strong>真实姓名</strong></td>
										<td align='center' width='20%' class='title'><strong>电子邮件</strong></td>
										<td align='center' width='30%' class='title'><strong>角色</strong></td>
										<td width='20%' align='center' class='title'><strong>操作选项</strong></td>
									</tr>
								</table>
							</HeaderTemplate>
							<ItemTemplate>
								<TABLE cellSpacing="1" cellPadding="0" width="100%" align="center" border="0">
									<TR class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'"
										height="30">
										<TD align="center" width="5%"><%# Container.ItemIndex+1 %></TD>
										<TD align="center" width="10%">
											<asp:Label id=Label5 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.userName") %>'>
											</asp:Label></TD>
										<TD align="center" width="15%">
											<asp:Label id=Label6 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.userFirstName") %>'>
											</asp:Label></TD>
										<TD align="center" width="20%">
											<asp:Label id=Label7 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.userMail") %>'>
											</asp:Label></TD>
										<TD align="center" width="30%">
											<asp:Label id="Label8" runat="server"></asp:Label></TD>
										<TD align="center" width="20%">
											<asp:LinkButton id="LinkButton2" runat="server" CommandName="edit">编辑</asp:LinkButton><FONT face="宋体">&nbsp;
												<asp:LinkButton id="LinkButton3" runat="server" CommandName="del">删除</asp:LinkButton></FONT></TD>
									</TR>
								</TABLE>
							</ItemTemplate>
							<EditItemTemplate>
								<TABLE cellSpacing="1" cellPadding="0" width="100%" align="center" border="0">
									<TR class="tdbg" onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'"
										height="30">
										<TD align="center" width="10%"><%# Container.ItemIndex+1 %></TD>
										<TD align="center" width="10%">
											<asp:TextBox id=TextBox1 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.userName") %>'>
											</asp:TextBox></TD>
										<TD align="center" width="15%">
											<asp:TextBox id=TextBox2 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.userFirstName") %>'>
											</asp:TextBox></TD>
										<TD align="center" width="20%">
											<asp:TextBox id=TextBox3 runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.userMail") %>'>
											</asp:TextBox></TD>
										<TD align="center" width="30%">
											<asp:TextBox id="txtRoleName" runat="server"></asp:TextBox>
											<asp:LinkButton id="lbtnSelect" runat="server"> 选 择 </asp:LinkButton>
											<asp:TextBox id="txtRoleId" runat="server" Width="0px" Height="0px"></asp:TextBox></TD>
										<TD align="center" width="20%">
											<asp:LinkButton id="LinkButton5" runat="server" CommandName="update">更新</asp:LinkButton><FONT face="宋体">&nbsp;
												<asp:LinkButton id="LinkButton6" runat="server" CommandName="cancel">取消</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LinkButton4" runat="server" CommandName="del">删除</asp:LinkButton>
											</FONT>
										</TD>
									</TR>
								</TABLE>
							</EditItemTemplate>
						</asp:datalist>
						<FONT face="宋体"></FONT>
					</TD>
				</TR>
				<TR>
					<TD class='tdbg' height="1"><hr size="1" width="100%" color="#0650d2">
					</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
