📄 memberlist.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/ControlPanel/CPanel.master" AutoEventWireup="true"
CodeFile="MemberList.aspx.cs" Inherits="ControlPanel_Member_MemberList" Title="用户列表"
StylesheetTheme="MainStyle" %>
<%@ Register Src="~/UserControl/Count.ascx" TagName="Count" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<atlas:UpdatePanel runat="server" ID="Panel1">
<ContentTemplate>
<br />
<h3 style="text-align: center">
会员列表
<uc1:Count ID="Count1" runat="server" />
</h3>
<br />
<div align="center">
<div align="center">
<table width="750">
<tr>
<td style="width: 64px; height: 33px">
快速导航:
</td>
<td align="left" style="height: 33px">
<asp:Menu ID="mnu_MemberIndex" runat="server" BackColor="White" DynamicHorizontalOffset="2"
Font-Names="Verdana" Font-Size="12px" ForeColor="Black" StaticSubMenuIndent="10px"
Orientation="Horizontal" OnMenuItemClick="mnu_MemberIndex_MenuItemClick" BorderColor="Black"
BorderWidth="0px">
<Items>
<asp:MenuItem Text="所有用户" Value="all"></asp:MenuItem>
<asp:MenuItem Text="在线用户" Value="isOnline"></asp:MenuItem>
<asp:MenuItem Text="24h登陆" Value="24hLogin"></asp:MenuItem>
<asp:MenuItem Text="24h注册" Value="24hReg"></asp:MenuItem>
<asp:MenuItem Text="24h活动" Value="24hActive"></asp:MenuItem>
<asp:MenuItem Text="24h改变密码" Value="24hChangePassword"></asp:MenuItem>
<asp:MenuItem Text="已审核" Value="isApproved"></asp:MenuItem>
<asp:MenuItem Text="待审核" Value="isNotApproved"></asp:MenuItem>
<asp:MenuItem Text="被锁定" Value="isLocked"></asp:MenuItem>
</Items>
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" BorderColor="LightGray"
BorderStyle="Outset" BorderWidth="1px" />
<StaticSelectedStyle BackColor="CornflowerBlue" ForeColor="White" />
<StaticHoverStyle BackColor="#8080FF" ForeColor="White" />
<StaticMenuStyle BorderColor="Black" BorderStyle="Outset" BorderWidth="0px" />
</asp:Menu>
</td>
</tr>
<tr>
<td style="width: 64px; height: 25px">
搜索用户:
</td>
<td align="left" style="height: 25px">
<asp:TextBox ID="txt_UserName" runat="server"></asp:TextBox>
<asp:RadioButtonList ID="rbl_SearchCondition" runat="server" RepeatDirection="Horizontal"
RepeatLayout="Flow">
<asp:ListItem Value="userName" Selected="True">用户名</asp:ListItem>
<asp:ListItem Value="E-Mail">E-Mail</asp:ListItem>
</asp:RadioButtonList>
<asp:Button ID="btn_Search" runat="server" Text="搜索" OnClick="btn_Search_Click" />
</tr>
<tr>
<td colspan="2" style="height: 25px">
Tips:点击标题栏可以排序
</td>
</tr>
</table>
</div>
<asp:GridView ID="GridViewMemberUser" runat="server" AllowPaging="True" AutoGenerateColumns="False"
HorizontalAlign="Center" DataKeyNames="UserName" DataSourceID="ObjectDataSourceMembershipUser"
AllowSorting="True" CellPadding="4" ForeColor="#333333" GridLines="None" OnRowCreated="GridViewMemberUser_RowCreated">
<Columns>
<asp:BoundField DataField="UserName" HeaderText="用户名" ReadOnly="True" SortExpression="UserName" />
<asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
<asp:BoundField DataField="PasswordQuestion" HeaderText="PasswordQuestion" ReadOnly="True"
SortExpression="PasswordQuestion" Visible="False" />
<asp:BoundField DataField="CreationDate" HeaderText="创建时间" ReadOnly="True" SortExpression="CreationDate" />
<asp:BoundField DataField="LastLoginDate" HeaderText="最后登陆时间" SortExpression="LastLoginDate" />
<asp:CheckBoxField DataField="IsApproved" HeaderText="许可" SortExpression="IsApproved" />
<asp:CheckBoxField DataField="IsLockedOut" HeaderText="锁定" ReadOnly="True" SortExpression="IsLockedOut" />
<asp:BoundField DataField="LastLockoutDate" Visible="False" HeaderText="LastLockoutDate"
ReadOnly="True" SortExpression="LastLockoutDate" />
<asp:CheckBoxField DataField="IsOnline" Visible="False" HeaderText="IsOnline" ReadOnly="True"
SortExpression="IsOnline" />
<asp:BoundField DataField="LastActivityDate" HeaderText="最后活动时间" SortExpression="LastActivityDate"
Visible="False" />
<asp:BoundField DataField="LastPasswordChangedDate" HeaderText="最后改变密码时间" Visible="False"
ReadOnly="True" SortExpression="LastPasswordChangedDate" />
<asp:BoundField DataField="ProviderName" HeaderText="ProviderName" ReadOnly="True"
Visible="False" SortExpression="ProviderName" />
<asp:BoundField DataField="Comment" HeaderText="备注" SortExpression="Comment" />
<asp:TemplateField HeaderText="操作">
<ItemTemplate>
<asp:HyperLink ID="hyl_Edit" runat="server" NavigateUrl='<%# @"~/ControlPanel/Member/UserDetail.aspx?id=" + Eval("UserName") %>'>编辑</asp:HyperLink>
<asp:HyperLink ID="hyl_Roles" runat="server" NavigateUrl='<%# @"~/ControlPanel/Member/UserRoles.aspx?id=" + Eval("UserName") %>'>角色</asp:HyperLink>
<!--<asp:HyperLink ID="hyl_Finance" runat="server" NavigateUrl='<%# @"~/ControlPanel/Finance/Default.aspx?id=" + Eval("UserName") %>'>财务</asp:HyperLink>-->
</ItemTemplate>
</asp:TemplateField>
<asp:CommandField ShowDeleteButton="True" />
</Columns>
<EmptyDataTemplate>
<br />
<font color="red" size="2">没有此用户!!</font>
<br />
</EmptyDataTemplate>
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#EFF3FB" />
<EditRowStyle BackColor="#2461BF" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
<PagerSettings FirstPageText="第一页" LastPageText="最后页" Mode="NumericFirstLast" NextPageText="下一页"
PreviousPageText="上一页" />
</asp:GridView>
</ContentTemplate>
</atlas:UpdatePanel>
<atlasToolkit:DragPanelExtender ID="DPE1" runat="server">
<atlasToolkit:DragPanelProperties TargetControlID="Panel1" DragHandleID="GridViewMemberUser" />
</atlasToolkit:DragPanelExtender>
<atlasToolkit:UpdatePanelAnimationExtender ID="ae" runat="server">
<atlasToolkit:UpdatePanelAnimationProperties TargetControlID="Panel1">
<Animations>
<OnUpdating>
<Sequence>
<EnableAction AnimationTarget="effect_options" Enabled="false" />
<StyleAction Attribute="overflow" Value="hidden" />
</Sequence>
</OnUpdating>
<OnUpdated>
<Sequence>
<EnableAction AnimationTarget="effect_options" Enabled="true" />
</Sequence>
</OnUpdated>
</Animations>
</atlasToolkit:UpdatePanelAnimationProperties>
</atlasToolkit:UpdatePanelAnimationExtender>
<asp:ObjectDataSource ID="ObjectDataSourceMembershipUser" runat="server" DeleteMethod="Delete"
InsertMethod="Insert" SelectMethod="GetMembers" TypeName="MemberServerBLL.MembershipUserODS"
UpdateMethod="Update" SortParameterName="SortData">
<DeleteParameters>
<asp:ControlParameter ControlID="txt_UserName" DefaultValue="" Name="UserName"
PropertyName="Text" Type="String" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="email" Type="String" />
<asp:Parameter Name="isApproved" Type="Boolean" />
<asp:Parameter Name="comment" Type="String" />
<asp:Parameter Name="lastActivityDate" Type="DateTime" />
<asp:Parameter Name="lastLoginDate" Type="DateTime" />
</UpdateParameters>
<SelectParameters>
<asp:Parameter Name="returnAllApprovedUsers" Type="Boolean" DefaultValue="true" />
<asp:Parameter Name="returnAllNotApprovedUsers" Type="Boolean" DefaultValue="true" />
<asp:Parameter Name="sortData" Type="String" />
<asp:ControlParameter ControlID="txt_UserName" DefaultValue="" Name="usernameToFind"
PropertyName="Text" Type="String" />
<asp:Parameter Name="searchType" Type="string" DefaultValue="all" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="userName" Type="String" />
<asp:Parameter Name="isApproved" Type="Boolean" />
<asp:Parameter Name="comment" Type="String" />
<asp:Parameter Name="lastLockoutDate" Type="DateTime" />
<asp:Parameter Name="creationDate" Type="DateTime" />
<asp:Parameter Name="email" Type="String" />
<asp:Parameter Name="lastActivityDate" Type="DateTime" />
<asp:Parameter Name="providerName" Type="String" />
<asp:Parameter Name="isLockedOut" Type="Boolean" />
<asp:Parameter Name="lastLoginDate" Type="DateTime" />
<asp:Parameter Name="isOnline" Type="Boolean" />
<asp:Parameter Name="passwordQuestion" Type="String" />
<asp:Parameter Name="lastPasswordChangedDate" Type="DateTime" />
<asp:Parameter Name="password" Type="String" />
<asp:Parameter Name="passwordAnswer" Type="String" />
</InsertParameters>
</asp:ObjectDataSource>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -