global_usergrid.aspx
上传用户:wenllgg125
上传日期:2020-04-09
资源大小:7277k
文件大小:8k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="c#" Inherits="Discuz.Web.Admin.usergrid" Codebehind="global_usergrid.aspx.cs" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  4. <html>
  5. <head>
  6. <title>用户列表</title>
  7. <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  8. <link href="../styles/calendar.css" type="text/css" rel="stylesheet" />
  9. <script type="text/javascript" src="../js/common.js"></script>
  10. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
  11. <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
  12. <script type="text/javascript" src="../js/modalpopup.js"></script>
  13. <script type="text/javascript">
  14. function Check(form,checked)
  15. {
  16. CheckByName(form,'uid',checked);
  17. checkedEnabledButton(form,'uid','StopTalk','DeleteUser')
  18. }
  19. </script>
  20. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  21. </head>
  22. <body>
  23. <form id="Form1" method="post" runat="server">
  24. <div class="ManagerForm">
  25. <fieldset>
  26. <legend style="background: url(../images/icons/icon32.jpg) no-repeat 6px 50%;">搜索用户</legend>
  27. <asp:Panel ID="searchtable" runat="server" Visible="true">
  28. <table width="100%">
  29. <tr><td class="item_title">用户名</td><td class="item_title">昵称</td></tr>
  30. <tr>
  31. <td class="vtop rowform">
  32.  <cc1:TextBox ID="Username" runat="server" RequiredFieldType="暂无校验" Width="100"></cc1:TextBox>&nbsp;模糊查找<input id="islike" type="checkbox" value="1" name="cins" runat="server" />
  33. </td>
  34. <td class="vtop rowform">
  35. <cc1:TextBox ID="nickname" runat="server" RequiredFieldType="暂无校验" Width="150"></cc1:TextBox>
  36. </td>
  37. </tr>
  38. <tr><td class="item_title">用户组</td><td class="item_title">用户ID (UID)</td></tr>
  39. <tr>
  40. <td class="vtop rowform">
  41.  <cc1:DropDownList ID="UserGroup" runat="server"></cc1:DropDownList>
  42. </td>
  43. <td class="vtop rowform">
  44. <cc1:TextBox ID="uid" runat="server" RequiredFieldType="暂无校验" Width="100"></cc1:TextBox>&nbsp;
  45.             <asp:RegularExpressionValidator ID="homephone" runat="SERVER" ControlToValidate="uid" ErrorMessage="输入错误" ValidationExpression="^([1-9]*,)*[0-9]*$">
  46. </asp:RegularExpressionValidator>格式:1,2,3
  47. </td>
  48. </tr>
  49. <tr><td class="item_title">用户积分</td><td class="item_title">注册日期</td></tr>
  50. <tr>
  51. <td class="vtop rowform">
  52.  大于或等于:<cc1:TextBox ID="credits_start" runat="server" RequiredFieldType="数据校验" Size="8" MaxLength="9"></cc1:TextBox>&nbsp;&nbsp;
  53.              小于或等于:<cc1:TextBox ID="credits_end" runat="server" RequiredFieldType="数据校验" Size="8" MaxLength="9"></cc1:TextBox>
  54. </td>
  55. <td class="vtop rowform">
  56. 从&nbsp;<cc1:Calendar ID="joindateStart" runat="server" ReadOnly="False" ScriptPath="../js/calendar.js"> </cc1:Calendar>
  57.             到&nbsp;<cc1:Calendar ID="joindateEnd" runat="server" ReadOnly="False" ScriptPath="../js/calendar.js"></cc1:Calendar>&nbsp;
  58.             使用日期查找<input id="ispostdatetime" type="checkbox" value="1" name="cins" runat="server" />
  59. </td>
  60. </tr>
  61. <tr><td class="item_title">最后登录IP</td><td class="item_title">用户发帖数</td></tr>
  62. <tr>
  63. <td class="vtop rowform">
  64.  <cc1:TextBox ID="lastip" runat="server" RequiredFieldType="IP地址" Width="150"></cc1:TextBox>
  65. </td>
  66. <td class="vtop rowform">
  67.   大于或等于:<cc1:TextBox ID="posts" runat="server" RequiredFieldType="数据校验" Width="80"></cc1:TextBox>
  68. </td>
  69. </tr>
  70. <tr><td class="item_title">用户精华帖数</td><td class="item_title">Email 包含</td></tr>
  71. <tr>
  72. <td class="vtop rowform">
  73.   大于或等于:<cc1:TextBox ID="digestposts" runat="server" RequiredFieldType="数据校验" Width="80"></cc1:TextBox>
  74. </td>
  75. <td class="vtop rowform">
  76.   <cc1:TextBox ID="email" runat="server" RequiredFieldType="暂无校验" Width="150"></cc1:TextBox>
  77. </td>
  78. </tr>
  79. </table>
  80. <div class="Navbutton"> <cc1:Button ID="Search" runat="server" Text="开始搜索"></cc1:Button></div>
  81. </asp:Panel>
  82. <cc1:Button ID="ResetSearchTable" runat="server" Text="重设搜索条件" Visible="False"></cc1:Button>
  83. </fieldset>
  84. </div>
  85. <table width="100%">
  86. <tr>
  87. <td>
  88. <cc1:DataGrid ID="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged" align="center">
  89. <Columns>
  90. <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form,this.checked)' type='checkbox' name='chkall' id='chkall' />">
  91. <HeaderStyle Width="20px" />
  92. <ItemTemplate>
  93. <%# DataBinder.Eval(Container, "DataItem.uid").ToString() != "1" ? "<input id="uid" onclick="checkedEnabledButton(this.form,'uid','StopTalk','DeleteUser')" type="checkbox" value="" + DataBinder.Eval(Container, "DataItem.uid").ToString() + "" name="uid">" : ""%>
  94. </ItemTemplate>
  95. </asp:TemplateColumn>
  96. <asp:TemplateColumn HeaderText="">
  97. <ItemTemplate>
  98. <a href="#" onclick="javascript:window.location.href='global_edituser.aspx?uid=<%# DataBinder.Eval(Container, "DataItem.uid").ToString()%>&condition=<%=ViewState["condition"]==null?"":Discuz.Common.Utils.HtmlEncode(ViewState["condition"].ToString().Replace("'","~^").Replace("%","~$"))%>';">编辑</a>
  99. </ItemTemplate>
  100. </asp:TemplateColumn>
  101. <asp:TemplateColumn HeaderText="">
  102. <ItemTemplate>
  103. <a href="#" onclick="javascript:window.location.href='global_givemedals.aspx?uid=<%# DataBinder.Eval(Container, "DataItem.uid").ToString()%>&condition=<%=ViewState["condition"]==null?"":Discuz.Common.Utils.HtmlEncode(ViewState["condition"].ToString().Replace("'","~^").Replace("%","~$"))%>';">勋章</a>
  104. </ItemTemplate>
  105. </asp:TemplateColumn>
  106. <asp:BoundColumn DataField="uid" HeaderText="用户ID" Visible="false"></asp:BoundColumn>
  107. <asp:TemplateColumn HeaderText="用户名">
  108. <ItemTemplate>
  109. <a href="../../userinfo-<%# DataBinder.Eval(Container, "DataItem.uid")%>.aspx" target="_blank"><%# DataBinder.Eval(Container, "DataItem.username")%></a>
  110. </ItemTemplate>
  111. </asp:TemplateColumn>
  112. <asp:TemplateColumn HeaderText="头像">
  113. <ItemTemplate>
  114. <img src="../../tools/avatar.aspx?uid=<%# DataBinder.Eval(Container, "DataItem.uid")%>&size=small" onerror="this.onerror=null;this.src='../../templates/default/images/noavatar_small.gif';" />
  115. </ItemTemplate>
  116. </asp:TemplateColumn>
  117. <asp:BoundColumn DataField="grouptitle" HeaderText="所属组"></asp:BoundColumn>
  118. <asp:BoundColumn DataField="nickname" HeaderText="昵称"></asp:BoundColumn>
  119. <asp:BoundColumn DataField="posts" HeaderText="发帖数"></asp:BoundColumn>
  120. <asp:BoundColumn DataField="joindate" HeaderText="注册时间" DataFormatString="{0:yyyy-MM-dd}"></asp:BoundColumn>
  121. <asp:BoundColumn DataField="credits" HeaderText="积分"></asp:BoundColumn>
  122. <asp:BoundColumn DataField="email" HeaderText="邮箱"></asp:BoundColumn>
  123. <asp:TemplateColumn HeaderText="最后活动/上次访问时间">
  124. <ItemTemplate>
  125. <%# DataBinder.Eval(Container, "DataItem.lastactivity")%><br /><%# DataBinder.Eval(Container, "DataItem.lastvisit")%>
  126. </ItemTemplate>
  127. </asp:TemplateColumn>
  128. </Columns>
  129. </cc1:DataGrid>
  130. </td>
  131. </tr>
  132. </table>
  133. <div class="Navbutton">
  134. <table style="float:right">
  135. <tr>
  136. <td><cc1:Button ID="StopTalk" runat="server" Text=" 禁 言 " designtimedragdrop="247" Enabled="false"></cc1:Button>&nbsp;&nbsp;</td>
  137. <td><cc1:Button ID="DeleteUser" runat="server" Text=" 删 除 " ButtonImgUrl="../images/del.gif" Enabled="false"></cc1:Button>&nbsp;&nbsp;</td>
  138. <td>
  139. <cc1:CheckBoxList ID="deltype" runat="server" RepeatColumns="1" RepeatLayout="flow">
  140. <asp:ListItem Value="1">删除但保留该用户所发帖子</asp:ListItem>
  141. <asp:ListItem Value="2">删除但保留该用户已发送的短消息</asp:ListItem>
  142. </cc1:CheckBoxList>
  143. </td>
  144. </tr>
  145. </table>              
  146. </div>
  147. </form>
  148. <%=footer%>
  149. </body>
  150. </html>