📄 index.aspx
字号:
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
用户列表
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<style type="text/css">
.page
{
border: 0;
}
.page span
{
padding: 3px 8px 3px 8px;
font-size: 12px;
margin: 2px;
border: 2px solid #F0F0F0;
}
.page a
{
padding: 3px 8px 3px 8px;
border: 2px solid #F0F0F0;
margin: 2px;
float: left;
}
.page span
{
float: left;
background-color: #FF6C16;
border: solid 2px #FF6C16;
}
.page a:hover
{
border: solid 2px #FF6C16;
}
.page tr, .page table, .page td
{
border: none;
padding: 2px;
margin: 0px;
}
</style>
<table style="font-size: 9pt;">
<tr>
<th>
编号
</th>
<th>
用户名
</th>
<th>
密码
</th>
<th>
角色
</th>
<th>
Email
</th>
<th>
已审核
</th>
<th>
已停用
</th>
<th>
创建时间
</th>
<th>
登陆时间
</th>
<th>
查看权限
</th>
<th>
操作
</th>
</tr>
<% int i = 1;
foreach (SkyiSite.DBUtility.UserInfo item in ((IList<SkyiSite.DBUtility.UserInfo>)ViewData["AllUser"]))
{ %>
<tr>
<td>
<%= i.ToString() %>
</td>
<td>
<%= Html.Encode(item.membershipUser.UserName) %>
</td>
<td>
<%= Html.Encode( item.Password) %>
</td>
<td>
<%= Html.Encode(item.RoleName[0]) %>
</td>
<td>
<%= Html.Encode(item.membershipUser.Email) %>
</td>
<td>
<%= Html.CheckBox("IsAudited", item.ProfileInfo.IsAudited)%>
</td>
<td>
<%= Html.CheckBox("IsStoped", item.ProfileInfo.IsStoped)%>
</td>
<td>
<%= Html.Encode(String.Format("{0:d}", item.membershipUser.CreationDate)) %>
</td>
<td>
<%= Html.Encode(String.Format("{0:d}", item.membershipUser.LastLoginDate)) %>
</td>
<td>
<%= Html.ActionLink("查看权限","SelectFunctionForUser",new {id= SkyiSite.Tooltip.PassWordHelper.Instance.Encrypt_DES_String( item.membershipUser.UserName)}) %>
</td>
<td>
<%= Html.ActionLink("编辑", "UserEditor", new { id = SkyiSite.Tooltip.PassWordHelper.Instance.Encrypt_DES_String( item.membershipUser.UserName) })%>
|
<%= Html.ActionLink("删除", "DeleteUser", new { id = SkyiSite.Tooltip.PassWordHelper.Instance.Encrypt_DES_String( item.membershipUser.UserName)})%>
</td>
</tr>
<% i++;
} %>
</table>
<div class="page">
<%=ViewData["page"] %>
</div>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -