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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Inherits="Discuz.Web.Admin.auditnewuser" Codebehind="forum_audituser.aspx.cs" AutoEventWireup="true" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Register TagPrefix="uc1" TagName="PageInfo" Src="../UserControls/PageInfo.ascx" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html>
  6. <head>
  7. <title>audituser</title>
  8. <link href="../styles/datagrid.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. <script type="text/javascript">
  12. function validate(form1)
  13. {
  14. var regbefore = document.getElementById("regbefore").value;
  15. if(regbefore != "" && !/^d+$/.test(regbefore))
  16. {
  17. alert("注册时间于多少天前项必须为数字!");
  18. document.getElementById("regbefore").value = "";
  19. document.getElementById('success').style.display = 'none'
  20. document.getElementById("searchuser").disabled = false;
  21. return false;
  22. }
  23. return true;
  24. }
  25. function Check(form)
  26. {
  27. CheckAll(form);
  28. checkedEnabledButton(form,'uid','SelectPass','SelectDelete');
  29. }
  30. </script>
  31. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  32. </head>
  33. <body>
  34. <form id="Form1" method="post" runat="server">
  35. <uc1:PageInfo id="info1" runat="server" Icon="Information"
  36.  Text="本功能仅在 Discuz!NT 选项 的 &quot;注册与访问控制&quot; - &quot;新用户注册验证&quot; 中设置为 &quot;人工审核&quot; 时才有效"></uc1:PageInfo>
  37. <div class="ManagerForm">
  38. <fieldset>
  39. <legend style="background:url(../images/icons/icon32.jpg) no-repeat 6px 50%;">查询等待验证用户</legend>
  40. <table width="100%">
  41. <tr><td class="item_title" colspan="2">用户名</td></tr>
  42. <tr>
  43. <td class="vtop rowform">
  44.   <cc1:TextBox id="searchusername" runat="server" Width="120px"></cc1:TextBox>
  45. </td>
  46. <td class="vtop"></td>
  47. </tr>
  48. <tr><td class="item_title" colspan="2">注册时间于多少天前</td></tr>
  49. <tr>
  50. <td class="vtop rowform">
  51.   <cc1:TextBox id="regbefore" runat="server" RequiredFieldType="数据校验" Width="50px"></cc1:TextBox>
  52. </td>
  53. <td class="vtop"></td>
  54. </tr>
  55. <tr><td class="item_title" colspan="2">注册 IP 开头 (如 192.168)</td></tr>
  56. <tr>
  57. <td class="vtop rowform">
  58.  <cc1:TextBox id="regip" runat="server" Width="100px"  ValidationExpression="^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])(.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0))*(.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0))*(.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9]))*$" RequiredFieldType="IP地址" >
  59. </cc1:TextBox>
  60. </td>
  61. <td class="vtop"></td>
  62. </tr>
  63. </table>
  64. <div class="Navbutton"><cc1:Button id="searchuser" runat="server" Text="查询等待验证用户" ValidateForm="true" onclick="searchuser_Click"/></div>
  65. </fieldset>
  66. </div>
  67. <cc1:datagrid id="DataGrid1" runat="server" PageSize="15" OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid">
  68. <Columns>
  69. <asp:TemplateColumn HeaderText="<input title='选中/取消选' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
  70. <HeaderStyle Width="20px" />
  71. <ItemTemplate>
  72. <input id="uid" onclick="checkedEnabledButton(this.form,'uid','SelectPass','SelectDelete')" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.uid").ToString() %>" name="uid" />
  73. </ItemTemplate>
  74. </asp:TemplateColumn>
  75. <asp:BoundColumn DataField="uid" SortExpression="uid"  HeaderText="用户ID" Visible="false"></asp:BoundColumn>
  76.   <asp:TemplateColumn HeaderText="用户名">
  77. <ItemTemplate>
  78. <a href="../../userinfo.aspx?userid=<%# DataBinder.Eval(Container, "DataItem.uid").ToString()%>" target="_blank">
  79. <%# DataBinder.Eval(Container, "DataItem.username").ToString()%>
  80. </a>
  81. <a href="../global/global_edituser.aspx?uid=<%# DataBinder.Eval(Container, "DataItem.uid").ToString()%>" >[编辑]</a>
  82. </ItemTemplate>
  83. </asp:TemplateColumn>
  84.   <asp:TemplateColumn HeaderText="昵称">
  85. <ItemTemplate>
  86. <a href="../global/global_edituser.aspx?uid=<%# DataBinder.Eval(Container, "DataItem.uid").ToString() %>" >
  87. <%# DataBinder.Eval(Container, "DataItem.nickname").ToString()%>
  88. </a>
  89. </ItemTemplate>
  90. </asp:TemplateColumn>
  91. <asp:BoundColumn DataField="joindate" SortExpression="joindate" HeaderText="注册时间" DataFormatString="{0:yyyy-MM-dd}"></asp:BoundColumn>
  92. <asp:BoundColumn DataField="regip" SortExpression="regip" HeaderText="注册IP"></asp:BoundColumn>
  93. <asp:BoundColumn DataField="credits" SortExpression="credits" HeaderText="积分"></asp:BoundColumn>
  94. <asp:BoundColumn DataField="email" SortExpression="email" HeaderText="邮箱"></asp:BoundColumn>
  95. <asp:BoundColumn DataField="accessmasks" SortExpression="accessmasks" HeaderText="特殊权限"></asp:BoundColumn>
  96. </Columns>
  97. </cc1:datagrid><br />
  98. <p style="text-align:right;">
  99. <cc1:Button id="SelectPass" runat="server" Text="通过选择的用户" Enabled="false"></cc1:Button>&nbsp;&nbsp;
  100. <cc1:Button id="SelectDelete" runat="server" Text="删除选择的用户" ButtonImgUrl="../images/del.gif" Enabled="false" OnClientClick="if(!confirm('你确认要删除所选用户吗?n删除后将不能恢复!')) return false;"></cc1:Button>&nbsp;&nbsp;
  101. <cc1:Button id="AllPass" runat="server" Text="全部通过"></cc1:Button>&nbsp;&nbsp;
  102. <cc1:Button id="AllDelete" runat="server" Text="全部删除" ButtonImgUrl="../images/del.gif" OnClientClick="if(!confirm('你确认要删除所有未通过审核用户吗?n删除后将不能恢复!')) return false;"></cc1:Button>&nbsp;&nbsp;
  103. <input type="checkbox" name="sendemail" id="sendemail" value="1" checked="checked" runat="server" />
  104. 发Email 通知被审核用户
  105. </p>
  106. </form>
  107. <%=footer%>
  108. </body>
  109. </html>