📄 accounts_users_list.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Accounts_Users_List.aspx.cs" Inherits="web.SubDocument.UserManage.UserList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Accounts_Users_List.aspx</title>
<link type="text/css" href="../../css/Main.css" rel="Stylesheet" />
<script type="text/javascript">
function CheckAll(chk,id)
{
var chkall=document.all[chk];
var div=document.all[id];
var chkalls=div.getElementsByTagName('INPUT');
var tralls=div.getElementsByTagName('TR');
for(var i=0;i<chkalls.length;i++)
{
if(chkalls[i].type=="checkbox")
{
if(chkall.checked)
{
chkalls[i].checked=true;
tralls[i].style.backgroundColor='#fffdd7';
}
else
{
chkalls[i].checked=false;
tralls[i].style.backgroundColor='#ffffff';
}
}
}
}
function MouseOver(e){
if(e.getElementsByTagName("input")[0].checked==false){
e.style.backgroundColor='#f0f0f0';
}
}
function MouseOut(e){
if(e.getElementsByTagName("input")[0].checked==false){
e.style.backgroundColor='#ffffff';
}
}
function ClickTr(e){
var box=e.getElementsByTagName("input")[0];
box.checked=!box.checked;
if(box.checked==true){
e.style.backgroundColor='#fffdd7';
}else{
e.style.backgroundColor='#f0f0f0';
document.getElementById("cbAll").checked=false;
}
}
function ClickCheckBox(e,evt)
{
//判断游览器类型,支持window.event为IE
if(window.event)
{
window.event.cancelBubble=true; //停止tr的onclick的冒泡事件,试用于IE
}
else
{
evt.stopPropagation(); //停止tr的onclick的冒泡事件,试用于其它浏览器
}
if(e.checked==true)
{
e.parentNode.parentNode.style.backgroundColor='#fffdd7';
}
else
{
e.parentNode.parentNode.style.backgroundColor='#f0f0f0';
document.getElementById("cbAll").checked=false;
}
}
function stopBublle(evt)
{
//判断游览器类型,支持window.event为IE
if(window.event)
{
window.event.cancelBubble=true; //停止tr的onclick的冒泡事件,试用于IE
}
else
{
evt.stopPropagation(); //停止tr的onclick的冒泡事件,试用于其它浏览器
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="title">
<div style="background-image: url(../../images/user16.gif);">
用户管理</div>
</div>
<div style="text-align:right; line-height:200%; background-color:#F7F7F7; margin-bottom:5px;">
<asp:Button ID="add" CssClass="btn_mouseout" onmouseover="this.className='btn_mouseover'"
onmouseout="this.className='btn_mouseout'" runat="server" Text="增 加" OnClick="add_Click" />
<asp:Button ID="edit" CssClass="btn_mouseout" onmouseover="this.className='btn_mouseover'"
onmouseout="this.className='btn_mouseout'" runat="server" Text="修 改" />
<asp:Button ID="delete" CssClass="btn_mouseout" onmouseover="this.className='btn_mouseover'"
onmouseout="this.className='btn_mouseout'" runat="server" Text="删 除" />
</div>
<div id="data">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<table id="DataList" cellspacing="1" cellpadding="1">
<tr>
<th class="i1">
<input id="cbAll" title="全选/全取消" onclick="CheckAll(this.id,'data');" type="checkbox"></th>
<th class="i2">
用户名</th>
<th class="i3">
真实姓名</th>
<th class="i4">
性别</th>
<th class="i5">
电话</th>
<th class="i6">
邮箱</th>
<th class="i7">
角色</th>
<th class="i8">
激活</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr onmouseover="MouseOver(this)" style="cursor: pointer" onclick="ClickTr(this)"
onmouseout="MouseOut(this)">
<td class="i1">
<input id="Checkbox1" type="checkbox" onclick="ClickCheckBox(this,event)"/>
</td>
<td class="i2" title="<%#DataBinder.Eval(Container.DataItem,"UserName") %>">
<a href="#" onclick="stopBublle()">
<%#DataBinder.Eval(Container.DataItem,"UserName") %>
</a>
</td>
<td class="i3">
<%#DataBinder.Eval(Container.DataItem,"TrueName") %>
</td>
<td class="i4">
<%#DataBinder.Eval(Container.DataItem,"Sex") %>
</td>
<td class="i5">
<%#DataBinder.Eval(Container.DataItem,"Phone") %>
</td>
<td class="i6" title="">
<%#DataBinder.Eval(Container.DataItem,"Email") %>
</td>
<td class="i7" title="">
<%#DataBinder.Eval(Container.DataItem,"EmployeeId") %>
</td>
<td class="i8" title="">
<%#DataBinder.Eval(Container.DataItem,"Activity") %>
</td>
</tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
</div>
<div style="margin-top:1px;">
<webdiyer:AspNetPager ID="AspNetPager1" runat="server" Width="100%" HorizontalAlign="right" PageSize="15" CssClass="PagerCss" ShowNavigationToolTip="true" ShowInputBox="Always" AlwaysShow="true" UrlPaging="false" PagingButtonType="image" NumericButtonType="text" ButtonImageExtension="gif" ImagePath="../../images/AspNetPager" ButtonImageNameExtension="n" DisabledButtonImageNameExtension="g" InputBoxClass="PagerInputCss" InputBoxStyle="text-align:center;" TextBeforeInputBox="转到:" TextAfterInputBox=" " SubmitButtonText="go" SubmitButtonClass="PagerButtonCss" ShowCustomInfoSection="left" PageIndexOutOfRangeErrorMessage="您所输入的页索引超出范围!" OnPageChanged="AspNetPager1_PageChanged">
</webdiyer:AspNetPager>
</div>
<!--控件样式演示
<asp:Button ID="Button" CssClass="btn_mouseout" onmouseover="this.className='btn_mouseover'"
onmouseout="this.className='btn_mouseout'" runat="server" Text="确 认" /><asp:TextBox
ID="TextBox1" CssClass="txt_lostfocus" onfocus="this.className='txt_getfocus'"
onblur="this.className='txt_lostfocus'" runat="server"></asp:TextBox>
<asp:DropDownList ID="DropDownList1" CssClass="dpl" runat="server">
</asp:DropDownList>
-->
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -