listuser.aspx

来自「一个工作流OA」· ASPX 代码 · 共 147 行

ASPX
147
字号
<%@ Page Language="C#" MasterPageFile="~/Admin/Default.Master" AutoEventWireup="true"
	CodeBehind="ListUser.aspx.cs" Inherits="Agile.OA.Web.Admin.ListUser" %>

<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">

	<script type="text/javascript">
	$(
		function()
		{
			$("#Users").agileTable(
				{
					target: "<%= this.Ids.ClientID %>"
				});
			
			$("#Users").tableHover(
				{
					rowClass: "Hover"
				});
		});
	</script>

	<table class="Container">
		<tr>
			<td class="Top">
				<input id="Add" type="button" class="Button" value="增 加" onclick="location.href='EditUser.aspx'" />&nbsp;&nbsp;&nbsp;
				<asp:Button ID="Delete" runat="server" Text="删 除" OnClientClick="return validateDelete('用户');"
					OnClick="Delete_Click" />&nbsp;&nbsp;&nbsp;
			</td>
		</tr>
		<tr>
			<td>
				<asp:ListView ID="Users" runat="server" ItemPlaceholderID="ItemContainer">
					<LayoutTemplate>
						<table id="Users" class="List">
							<thead>
								<tr>
									<th class="Choose">
										<input id="Header" type="checkbox" />
									</th>
									<th>
										名 称
									</th>
									<th>
										昵 称
									</th>
									<th>
										描 述
									</th>
									<th>
										密 码
									</th>
									<th>
										性 别
									</th>
									<th>
										电子邮件
									</th>
									<th>
										职 务
									</th>
									<th>
										部 门
									</th>
								</tr>
							</thead>
							<tbody id="ItemContainer" runat="server">
							</tbody>
						</table>
					</LayoutTemplate>
					<ItemTemplate>
						<tr>
							<td>
								<input id="Item" type="checkbox" title="<%# Eval("Id") %>" />
							</td>
							<td>
								<a href="EditUser.aspx?Id=<%# Eval("Id") %>">
									<%# Eval("Name") %></a>
							</td>
							<td>
								<%# Eval("Nickname") %>
							</td>
							<td>
								<%# Eval("Description") %>
							</td>
							<td>
								<%# Eval("Password") %>
							</td>
							<td>
								<%# Eval("Sex") %>
							</td>
							<td>
								<%# Eval("Email") %>
							</td>
							<td>
								<%# Eval("Duty") %>
							</td>
							<td>
								<%# Eval("Department.Name") %>
							</td>
						</tr>
					</ItemTemplate>
					<EmptyDataTemplate>
						<table id="Users" class="List">
							<thead>
								<tr>
									<th class="Choose">
									</th>
									<th>
										名 称
									</th>
									<th>
										昵 称
									</th>
									<th>
										描 述
									</th>
									<th>
										密 码
									</th>
									<th>
										性 别
									</th>
									<th>
										电子邮件
									</th>
									<th>
										职 务
									</th>
									<th>
										部 门
									</th>
								</tr>
							</thead>
						</table>
					</EmptyDataTemplate>
				</asp:ListView>
				<asp:HiddenField ID="Ids" runat="server" />
			</td>
		</tr>
		<tr>
			<td>
				<agile:Pager ID="Pager" runat="server" OnPageIndexChanged="Pager_PageIndexChanged" />
			</td>
		</tr>
	</table>
</asp:Content>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?