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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="c#" Inherits="Discuz.Web.Admin.backupandrestore" Codebehind="global_backupandrestore.aspx.cs" %>
  2. <%@ Register TagPrefix="uc1" TagName="TextareaResize" Src="../UserControls/TextareaResize.ascx" %>
  3. <%@ Register TagPrefix="cc2" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  4. <%@ Register TagPrefix="cc1" 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/modalpopup.js"></script>
  14. <script type="text/javascript" src="../js/common.js"></script>
  15. <script type="text/javascript">
  16. function Check(form)
  17. {
  18. CheckAll(form);
  19. checkedEnabledButton(form,'id','DeleteBackup');
  20. }
  21. </script>
  22. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  23. </head>
  24. <body>
  25. <div class="ManagerForm">
  26. <form id="Form1" method="post" runat="server">
  27. <cc1:Hint ID="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
  28. <br />
  29. <cc2:DataGrid ID="Grid1" runat="server" ColumnSpan="4">
  30. <Columns>
  31. <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
  32. <headerstyle width="5%" />
  33. <itemtemplate>
  34. <input id="id" onclick="checkedEnabledButton(this.form,'id','DeleteBackup')" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.id").ToString() %>" name="id" />
  35. </itemtemplate>
  36. </asp:TemplateColumn>
  37. <asp:BoundColumn DataField="id" HeaderText="id [递增不重复]" Visible="false"></asp:BoundColumn>
  38. <asp:BoundColumn DataField="filename" HeaderText="文件名">
  39. <headerstyle width="25%" />
  40. </asp:BoundColumn>
  41. <asp:BoundColumn DataField="createtime" HeaderText="创建日期">
  42. <headerstyle width="20%" />
  43. </asp:BoundColumn>
  44. <asp:BoundColumn DataField="fullname" HeaderText="文件路径">
  45. <headerstyle width="30%" />
  46. </asp:BoundColumn>
  47. </Columns>
  48. </cc2:DataGrid>
  49. <p style="text-align:right;">
  50. <cc1:Button ID="Restore" runat="server" Text="开始数据库恢复" Visible="false"></cc1:Button>
  51. <button type="button" class="ManagerButton" id="Button2" onclick="BOX_show('neworedit');"><img src="../images/add.gif"/> 建立备份 </button>&nbsp;&nbsp;
  52. <cc1:Button ID="DeleteBackup" runat="server" Text="删除备份" ButtonImgUrl="../images/del.gif" Enabled="false" OnClientClick="if(!confirm('你确认要删除所选的数据库备份吗?')) return false;"></cc1:Button>
  53. </p>
  54. <div id="BOX_overlay" style="background: #000; position: absolute; z-index:100; filter:alpha(opacity=50);-moz-opacity: 0.6;opacity: 0.6;"></div>
  55. <div id="neworedit" style="display: none; background :#fff; padding:10px; border:1px solid #999; width:400px;">
  56. <fieldset>
  57. <legend style="background: url(../images/icons/icon39.jpg) no-repeat 6px 50%;">数据库备份</legend>
  58. <table cellspacing="0" cellpadding="4" width="100%" align="center">
  59. <tr>
  60. <td style="width: 70px;height:35px;">服务器名称:</td>
  61. <td>
  62. <cc1:TextBox ID="ServerName" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填" Text=""></cc1:TextBox>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td style="height:35px;">用户名:</td>
  67. <td>
  68. <cc1:TextBox ID="UserName" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填" Text=""></cc1:TextBox>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td style="height:35px;">备份的名称:</td>
  73. <td>
  74. <cc1:TextBox ID="backupname" runat="server" HintTitle="提示" HintInfo="系统会自动将扩展名定义为.config"
  75. RequiredFieldType="暂无校验" CanBeNull="可为空" Width="150" Text=""></cc1:TextBox>空格会被"_"代替
  76. </td>
  77. </tr>
  78. <tr>
  79. <td style="height:35px;">数据库名称:</td>
  80. <td>
  81. <cc1:TextBox ID="strDbName" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填" Text=""></cc1:TextBox>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td style="height:35px;">密码:</td>
  86. <td>
  87. <cc1:TextBox ID="Password" runat="server" RequiredFieldType="暂无校验" Text="" TextMode="Password"></cc1:TextBox>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td colspan="2" align="center" style="height:35px;">
  92. <cc1:Button ID="BackUP" runat="server" Text="开始备份数据库"></cc1:Button>&nbsp;&nbsp;
  93. <button type="button" class="ManagerButton" id="Button1" onclick="BOX_remove('neworedit');"><img src="../images/state1.gif"/> 取 消 </button>
  94. </td>
  95. </tr>
  96. </table>
  97. </fieldset>
  98. </div>
  99. </form>
  100. </div>
  101. <div id="setting" />
  102. <%=footer%>
  103. </body>
  104. </html>