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

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="C#" CodeBehind="managemenubackupfile.aspx.cs" Inherits="Discuz.Web.Admin.managemenubackupfile" %>
  2. <%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html>
  5. <head>
  6.     <title>无标题页</title>
  7.     <link href="../styles/datagrid.css" type="text/css" rel="stylesheet" />
  8.     <link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />        
  9.     <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
  10.     <script type="text/javascript" src="../js/modalpopup.js"></script>
  11.     <script type="text/javascript" src="../js/common.js"></script>
  12.     <script type="text/javascript">
  13.         function Check(form)
  14.         {
  15.             CheckAll(form);
  16.             checkedEnabledButton(form,'backupname','Delbackupfile');
  17.         }
  18.     </script>
  19. <meta http-equiv="X-UA-Compatible" content="IE=7" />
  20. </head>
  21. <body>
  22. <br />
  23.     <form id="form1" runat="server">
  24.     <cc1:datagrid id="DataGrid1" runat="server">
  25.    <Columns>
  26.     <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
  27.         <HeaderStyle Width="20px" />
  28. <ItemTemplate>
  29. <input id="backupname" onclick="checkedEnabledButton(this.form,'backupname','Delbackupfile')" type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.backupname").ToString() %>" name="backupname" />
  30. </ItemTemplate>
  31. </asp:TemplateColumn>
  32.     <asp:BoundColumn DataField="backupdate" HeaderText="备份日期"></asp:BoundColumn>
  33.           <asp:TemplateColumn HeaderText="操作">
  34.             <ItemTemplate>
  35.                 <a href="managemenubackupfile.aspx?filename=<%# DataBinder.Eval(Container, "DataItem.backupname").ToString() %>" onclick='return confirm("您确认要将 <%# DataBinder.Eval(Container, "DataItem.backupdate").ToString() %> 的备份菜单恢复吗?nt注意:恢复将覆盖当前使用中的菜单!");'>恢复此备份</a>
  36.             </ItemTemplate>
  37.           </asp:TemplateColumn>
  38.       </Columns>
  39. </cc1:datagrid>
  40. <p style="text-align:right;">
  41.     <cc1:Button id="backupfile" runat="server" Text="备 份" ButtonImgUrl="../images/zip.gif" OnClick="backupfile_Click"></cc1:Button>&nbsp;&nbsp;
  42. <cc1:Button id="Delbackupfile" runat="server" Text="删 除" ButtonImgUrl="../images/del.gif" OnClick="Delbackupfile_Click" Enabled="false" ></cc1:Button>&nbsp;&nbsp;
  43.     <button type="button" class="ManagerButton" id="Button3" onclick="window.location='managemainmenu.aspx';"><img src="../images/arrow_undo.gif"/> 返 回</button>
  44. </p>
  45.     </form>
  46.     <%=footer%>
  47. </body>
  48. </html>