?? 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 + -