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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page language="c#" Inherits="Discuz.Web.Admin.medalsloggird" Codebehind="forum_medalsloggird.aspx.cs" %>
  2. <%@ Register TagPrefix="cc2" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  4. <%@ Register TagPrefix="cc4" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html>
  7. <head>
  8. <title></title>
  9. <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  10. <link href="../styles/calendar.css" type="text/css" rel="stylesheet" />
  11. <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />        
  12. <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
  13. <script type="text/javascript" src="../js/common.js"></script>
  14. <script type="text/javascript" src="../js/modalpopup.js"></script>
  15. <script type="text/javascript">
  16. function Check(form)
  17. {
  18. CheckAll(form);
  19. checkedEnabledButton(form,'id','DelRec')
  20. }
  21. function DeleteMode2SetStatus()
  22. {
  23. document.getElementById("DelRec").disabled = 
  24. !(document.getElementById("radio2").checked && document.getElementById("deleteNum").value != "");
  25. }
  26. function DeleteMode3SetStatus()
  27. {
  28. document.getElementById("DelRec").disabled = 
  29. !(document.getElementById("radio3").checked && document.getElementById("deleteFrom_deleteFrom").value != "");
  30. }
  31. </script>
  32. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  33. </head>
  34. <body>
  35. <form id="Form1" method="post" runat="server">
  36. <cc1:Hint id="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
  37. <div class="ManagerForm">
  38. <fieldset>
  39. <legend style="background:url(../images/icons/icon19.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. <cc4:Calendar id="postdatetimeStart" runat="server" ReadOnly="True" ScriptPath="../js/calendar.js"></cc4:Calendar> -
  45. <cc4:Calendar id="postdatetimeEnd" runat="server" ReadOnly="True" ScriptPath="../js/calendar.js"></cc4:Calendar>
  46. </td>
  47. <td class="vtop"></td>
  48. </tr>
  49. <tr><td class="item_title" colspan="2">原因</td></tr>
  50. <tr>
  51. <td class="vtop rowform">
  52.  <cc2:TextBox id="reason" runat="server" RequiredFieldType="暂无校验" width="250"></cc2:TextBox>
  53. </td>
  54. <td class="vtop"></td>
  55. </tr>
  56. <tr><td class="item_title" colspan="2">管理员名称</td></tr>
  57. <tr>
  58. <td class="vtop rowform">
  59.  <cc2:TextBox id="Username" runat="server" RequiredFieldType="暂无校验" width="200"></cc2:TextBox>
  60. </td>
  61. <td class="vtop">多用户名中间请用半角逗号 "," 分割</td>
  62. </tr>
  63. </table>
  64. <div class="Navbutton"><cc1:Button ID="SearchLog" runat="server" Text="开始搜索" ButtonImgUrl="../images/search.gif"></cc1:Button></div>
  65. </fieldset>
  66. </div>
  67. <cc1:datagrid id="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged" PageSize="15" >
  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="id" type="checkbox" onclick="checkedEnabledButton(this.form,'id','DelRec')" value="<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>" name="id" />
  73. </ItemTemplate>
  74. </asp:TemplateColumn>
  75. <asp:BoundColumn DataField="id" HeaderText="id [递增]" Visible="false" ></asp:BoundColumn>
  76. <asp:BoundColumn DataField="adminid" HeaderText="操作者" Visible="false"></asp:BoundColumn>
  77. <asp:TemplateColumn HeaderText="操作者">
  78. <ItemTemplate>
  79. <a href="../../userinfo.aspx?userid=<%# DataBinder.Eval(Container, "DataItem.adminid").ToString() %>" target="_blank">
  80. <%# DataBinder.Eval(Container, "DataItem.adminname").ToString() %>
  81. </a>
  82. </ItemTemplate>
  83. </asp:TemplateColumn>
  84. <asp:BoundColumn DataField="postdatetime" HeaderText="时间" ></asp:BoundColumn>
  85. <asp:TemplateColumn HeaderText="操作者">
  86. <ItemTemplate>
  87. <a href="../../userinfo.aspx?userid=<%# DataBinder.Eval(Container, "DataItem.uid").ToString() %>" target="_blank">
  88. <%# DataBinder.Eval(Container, "DataItem.username").ToString()%>
  89. </a>
  90. </ItemTemplate>
  91. </asp:TemplateColumn>
  92. <asp:BoundColumn DataField="uid" HeaderText="uid" Visible="false"></asp:BoundColumn>
  93. <asp:BoundColumn DataField="actions" HeaderText="动作" ></asp:BoundColumn>
  94. <asp:BoundColumn DataField="medals"  HeaderText="勋章" ></asp:BoundColumn>
  95. <asp:TemplateColumn HeaderText="勋章">
  96. <ItemTemplate>
  97. <%# Medals(DataBinder.Eval(Container, "DataItem.medals").ToString())%>
  98. </ItemTemplate>
  99. </asp:TemplateColumn>
  100. <asp:BoundColumn DataField="reason"  HeaderText="原因" ></asp:BoundColumn>
  101. </Columns>
  102. </cc1:datagrid>
  103. <div class="Navbutton">
  104. <input type="radio" name="deleteMode" checked="checked" onclick="changeDeleteModeState(1,this.form)" value="chkall" id="radio1" />
  105. <input title="选中/取消" type="checkbox" name="chkall1" id="chkall1" onclick="document.getElementById('chkall').click()" />全选/取消全选
  106. &nbsp;&nbsp;<input type="radio" name="deleteMode" onclick="changeDeleteModeState(2,this.form)" value="deleteNum" id="radio2" />
  107. 保留最新<cc2:TextBox id="deleteNum" runat="server" RequiredFieldType="暂无校验" size="5" MaxLength="5" Enabled="true" onkeyup="DeleteMode2SetStatus()"></cc2:TextBox>条记录
  108. &nbsp;&nbsp;<input type="radio" name="deleteMode" onclick="changeDeleteModeState(3,this.form)" value="deleteFrom" id="radio3" />
  109. 删除<cc4:Calendar id="deleteFrom" runat="server" ReadOnly="True" ScriptPath="../js/calendar.js" Enabled="False"></cc4:Calendar>之前的记录
  110. &nbsp;&nbsp;<cc1:Button id="DelRec" runat="server" Text=" 删 除 "   ButtonImgUrl="../images/del.gif" Enabled="false"
  111.  OnClientClick="if(!confirm('你确认要删除所选的勋章授予日志记录吗?')) return false;"></cc1:Button>
  112. </div>
  113. <script type="text/javascript">
  114. document.getElementById("deleteFrom_deleteFrom").onkeyup = DeleteMode3SetStatus;
  115. document.getElementById("deleteFrom_deleteFrom").onchange = DeleteMode3SetStatus;
  116. </script>
  117. </form>
  118. <%=footer%>
  119. </body>
  120. </html>