⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_restore.asp

📁 5237 论坛.rar
💻 ASP
字号:
<!--#include file="Inc/Level012.asp" -->
<!--#include file="Connections/connY.asp" -->
<!--#include file="Inc/TimeFormat.asp" -->
<!--#include file="Inc/UBBCode.asp" -->
<!--#include file="Inc/SetCss.asp" -->
<html>
<head>
<title><%=Forum_Title%></title>
<meta http-equiv="Content-Type" content="text/html;">
<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<!--#include file="Inc/Css.asp" -->
<script language=Javascript src="Js/Menu.Js"></script>
<script language=Javascript src="Js/Button.Js"></script>
<script language=Javascript src="Js/Operate.Js"></script>
</head>
<body leftmargin="0" topmargin="0" bgcolor="<%=Forum_ColorList_BgColor%>" vlink="<%=Forum_Css_A_Link_Color%>" onLoad="MM_preloadImages('<%=Forum_Pic_Write2%>','<%=Forum_Pic_Vote2%>')">
<!--#include file="Inc/Top.asp" -->
<table width="<%=Forum_Width%>" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="<%=Forum_ColorList_BorderColor%>">
  <tr> 
    <td height="20" bgcolor="<%=Forum_ColorList_BgColor%>"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="font">
        <tr> 
          <td>&nbsp;您所在的位置: <a href="../" onfocus="this.blur()">首页</a> &gt;&gt; 
            <a href="List.asp" onFocus="this.blur()">讨论组</a> &gt;&gt; <font color="<%=Forum_ColorList_NavFontColor%>">论坛管理系统</font></td>
          <td width="18"> 
            <div align="center"></div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table width="<%=Forum_Width%>" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td height=1></td>
  </tr>
</table>
<table width="<%=Forum_Width%>" border="0" cellspacing="1" cellpadding="2" align="center" bgcolor="<%=Forum_ColorList_BorderColor%>" class="font">
  <tr> 
    <td valign="top" width="102" bgcolor="<%=Forum_ColorList_BgColor%>"> 
      <table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr>
		<td>
          <!--#include file="Inc/Menu.asp" -->
		</td>
        </tr>
      </table>
    </td>
    <td bgcolor="<%=Forum_ColorList_BgColor%>" valign="top"> <br>
        <table width="80%" border="0" cellspacing="1" cellpadding="2" align="center" class="font" bgcolor="<%=Forum_ColorList_BorderColor%>">
          <tr> 
            
          <td bgcolor="<%=Forum_ColorList_TitleColor%>" height="20"> 恢复数据库(FSO)</td>
          </tr>
          <tr> 
            
          <td bgcolor="<%=Forum_ColorList_BgColor%>" valign="top"> 1.在上面填写本程序的数据库路径全名,本程序的默认数据库文件为Data\Lz5237.MDB<br>
            2.所有路径都是相对与程序空间根目录的<b>相对路径</b> <br>
            ------------------------------------------------------------------------------- 
            <%
			If Request("Action")="RestoreNow" Then
			BData=Request.Form("BData")
			SData=Request.Form("SData")
			If BData="" Then
			Response.Write "<br> 请输入您要恢复成的数据库全名."	
			Else
			BData=Server.Mappath(BData)
			End If
			SData=Server.Mappath(SData)
			Set Fso=Server.CreateObject("Scripting.FileSystemObject")
			If Fso.FileExists(SData) Then  					
			Fso.CopyFile BData,SData
			Response.Write "<br> 成功恢复数据."
			Else
			Response.Write "<br> 备份目录下并无您的备份文件."	
			End if
			End If
			If Request("Action")="" Then
			%>
            <table width="100%" border="0" cellspacing="0" cellpadding="1" class="font">
              <form name="form1" method="post" action="Admin_Restore.asp?Action=RestoreNow">
                <tr> 
                  <td width="22%"> 备份数据库路径:</td>
                  <td width="78%"> 
                    <select name="BData" class="textfiled">
                      <%
					Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
					Set UploadFolder=objFSO.GetFolder(Server.MapPath("BackupData\"))
					Set UploadFiles=UploadFolder.Files
					For Each UpName In UploadFiles
					UpFileName="BackupData/"&UpName.Name
					response.write "<Option value='"&UpFileName&"'>"&UpFileName&"</Option>"
					Next
					Set UploadFolder=Nothing
					Set UploadFiles=Nothing
					Set ObjFSO=Nothing
					%>
                    </select>
                  </td>
                </tr>
                <tr> 
                  <td width="22%"> 当前数据库路径:</td>
                  <td width="78%"> 
                    <input type="text" name="SData" class="Textfiled" size="35" value="<%=DBNow%>">
                  </td>
                </tr>
                <tr> 
                  <td width="22%">&nbsp;</td>
                  <td width="78%"> <br>
                    <input type="submit" name="Submit" value="恢复数据" class="button" onFocus="this.blur()">
                  </td>
                </tr>
              </form>
            </table>
            <%
			End If
			%>
            <br>
            <br>
          </td>
          </tr>
        </table>
        <div align="center"><br>
      </div>
      <div align="center"></div>
    </td>
  </tr>
</table>
<!--#include file="Inc/Bottom.asp" -->
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -