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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="c#" Inherits="Discuz.Web.Admin.detachtable" Codebehind="global_detachtable.aspx.cs" %>
  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>分表管理</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. <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)
  15. {
  16. CheckAll(form);
  17. checkedEnabledButton(form,'id','StartFullIndex')
  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. <uc1:PageInfo id="info1" runat="server" Icon="information"
  25. Text="帖子分表可以提高查看帖子的速度,但频繁分表也会带来用户使用上的不便. 一般以30-50万条帖子后另建新的分表为宜. <br />添加新分表后, 新主题的帖子将添加到新分表"></uc1:PageInfo>
  26. <uc1:PageInfo id="info2" runat="server" Icon="information" Text=""></uc1:PageInfo>
  27. <cc1:DataGrid ID="DataGrid1" runat="server" OnCancelCommand="DataGrid_Cancel" OnEditCommand="DataGrid_Edit"
  28. OnPageIndexChanged="DataGrid_PageIndexChanged" OnSortCommand="Sort_Grid" OnUpdateCommand="DataGrid_Update">
  29. <Columns>
  30. <asp:BoundColumn Visible="false" DataField="id" HeaderText="分表id"></asp:BoundColumn>
  31. <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
  32. <HeaderStyle Width="20px" />
  33. <ItemTemplate>
  34. <input id="id" type="checkbox" onclick="checkedEnabledButton(this.form,'id','StartFullIndex')" value="<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>" name="id" />
  35. </ItemTemplate>
  36. </asp:TemplateColumn>
  37. <asp:TemplateColumn HeaderText="分表名称">
  38. <ItemTemplate>
  39. <%=Discuz.Config.BaseConfigs.GetTablePrefix%>posts<%# DataBinder.Eval(Container, "DataItem.id").ToString()%>
  40. </ItemTemplate>
  41. </asp:TemplateColumn>
  42. <asp:BoundColumn DataField="description" HeaderText="分表描述"></asp:BoundColumn>
  43. <asp:TemplateColumn HeaderText="帖子表当前记录数">
  44. <ItemTemplate>
  45. <%# CurrentPostsCount(DataBinder.Eval(Container, "DataItem.id").ToString())%> 
  46. </ItemTemplate>
  47. </asp:TemplateColumn>
  48. <asp:TemplateColumn HeaderText="主题TID">
  49. <ItemTemplate>
  50. <%# DisplayTid(DataBinder.Eval(Container, "DataItem.mintid").ToString(),DataBinder.Eval(Container, "DataItem.maxtid").ToString())%> 
  51. </ItemTemplate>
  52. </asp:TemplateColumn>
  53. <asp:BoundColumn DataField="createdatetime" ReadOnly="True" HeaderText="分表时间"></asp:BoundColumn>
  54. </Columns>
  55. </cc1:DataGrid>
  56. <p style="text-align:right;">
  57. <button type="button" class="ManagerButton" id="Button2" onclick="BOX_show('neworedit');"><img src="../images/add.gif"/> 新建分表 </button>&nbsp;&nbsp;
  58. <cc1:Button ID="StartFullIndex" runat="server" Text="为选择的分表填充全文索引" Enabled="false"></cc1:Button>
  59. </p>
  60. <div id="BOX_overlay" style="background: #000; position: absolute; z-index:100; filter:alpha(opacity=50);-moz-opacity: 0.6;opacity: 0.6;"></div>
  61. <div id="neworedit" style="display: none; background :#fff; padding:10px; border:1px solid #999; width:350px;">
  62. <div class="ManagerForm">
  63. <fieldset>
  64. <legend style="background: url(../images/icons/icon10.jpg) no-repeat 6px 50%;">新建分表</legend>
  65. <table cellspacing="0" cellpadding="4" width="100%" align="center">
  66. <tr>
  67. <td style="width: 70px">分表描述:</td>
  68. <td>
  69. <cc1:TextBox ID="detachtabledescription" runat="server" HintInfo="长度少于50字" RequiredFieldType="暂无校验" Width="200px"></cc1:TextBox>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td align="center" colspan="2"><br />
  74. <cc1:Button ID="SaveInfo" runat="server" Text=" 添 加 "></cc1:Button>&nbsp;&nbsp;
  75. <button type="button" class="ManagerButton" id="Button1" onclick="BOX_remove('neworedit');"><img src="../images/state1.gif"/> 取 消 </button>
  76. </td>
  77. </tr>
  78. </table>
  79. </fieldset>
  80. </div>
  81. </div>
  82. </form>
  83. <cc1:Hint ID="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
  84. <div id="setting" />
  85. <%=footer%>
  86. </body>
  87. </html>