mdb_restore.asp
来自「核心惊云下载系统」· ASP 代码 · 共 114 行
ASP
114 行
<%Admin="SysMdbCR"%>
<!--#include file="check.asp"-->
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<title>管理中心 - 下载系统(HTML版)</title>
<style>
td{font-size:9pt;line-height:160%}
body{font-size:9pt;line-height:160%}
a:link { color: #0033CC; text-decoration: none }
a:visited { color: #0033CC; text-decoration: none }
a:active { color: #FF0000; text-decoration: none }
a:hover { color: #000000; text-decoration: underline}
</style>
</head>
<body topmargin="4"><center>
<%
if request("type")="save" then
JyDownMDBname=request("JyDownMDBname")
JyDownMDBnameNew=request("JyDownMDBnameNew")
if JyDownMDBname="" or JyDownMDBnameNew="" then
JyDownMsg="错误:数据库名不能为空."
end if
if JyDownMDBname=JyDownMDBnameNew then
JyDownMsg="错误:文件名相同."
end if
if JyDownMsg="" then
Set fs=Server.CreateObject("Scripting.FileSystemObject")
If fs.FileExists(Server.MapPath("data_backup\"&JyDownMDBname&".asp")) Then
fs.CopyFile Server.MapPath("data_backup\"&JyDownMDBname&".asp"),Server.MapPath("data\"&JyDownMDBnameNew&".asp")
JyDownMsg="成功:成功恢复数据!"
Set fs=nothing
else
JyDownMsg="错误:无备份数据库文件!"
end if
end if
%>
<table border="0" cellspacing="0" width="400" cellpadding="0">
<tr>
<td width="100%"><font color="#FF0000">·</font><%=JyDownMsg%> 时间:<%=Now()%></td>
</tr>
</table>
<%end if%>
<table border="0" cellspacing="1" cellpadding="0" width="400" bgcolor="#e6e6e6">
<tr>
<td width="100%" bgcolor="#bbaadd" height="24"> <font color="#FFFFFF"><b>恢复数据</b></font></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF"> <font color="#FF0000">·</font><font color="#808080">"备份数据库"为默认文件名,如你备份的数据库名不是这个请更改.</font><br> <font color="#FF0000">·</font><font color="#808080">恢复的数据将会覆盖当前使用中的数据库.</font></td>
</tr>
<!--#include file="mdb_path_down_name.asp"-->
<form action="mdb_restore.asp?type=save&JyDownMDBnameNew=<%=MDBname%>" method="post">
<tr>
<td width="100%" bgcolor="#F7f7f7" height="24"> <font color="#000080"><b>软件数据恢复</b></font></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="24"> 备份数据库
<input name="JyDownMDBname" value="<%=MDBname%>_backup" size="20" style="border-style: solid; border-width: 1">.asp</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="24"> 目标数据库
<input disabled name="JyDownMDBnameNew" value="<%=MDBname%>" size="20" style="border-style: solid; border-width: 1">.asp</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="24">
<p align="center">
<input name="b1" type="submit" value="恢复数据"></p>
</td>
</form>
</tr>
<!--#include file="mdb_path_info_name.asp"-->
<form action="mdb_restore.asp?type=save&JyDownMDBnameNew=<%=MDBname%>" method="post">
<tr>
<td width="100%" bgcolor="#F7f7f7" height="24"> <font color="#000080"><b>文章数据恢复</b></font></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="24"> 备份数据库
<input name="JyDownMDBname" value="<%=MDBname%>_backup" size="20" style="border-style: solid; border-width: 1">.asp</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="24"> 目标数据库
<input disabled name="JyDownMDBnameNew" value="<%=MDBname%>" size="20" style="border-style: solid; border-width: 1">.asp</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="24">
<p align="center">
<input name="b1" type="submit" value="恢复数据"></p>
</td>
</form>
</tr>
<!--#include file="mdb_path_user_name.asp"-->
<form action="mdb_restore.asp?type=save&JyDownMDBnameNew=<%=MDBname%>" method="post">
<tr>
<td width="100%" bgcolor="#F7f7f7" height="24"> <font color="#000080"><b>用户数据恢复</b></font></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="24"> 备份数据库
<input name="JyDownMDBname" value="<%=MDBname%>_backup" size="20" style="border-style: solid; border-width: 1">.asp</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="24"> 目标数据库
<input disabled name="JyDownMDBnameNew" value="<%=MDBname%>" size="20" style="border-style: solid; border-width: 1">.asp</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="24">
<p align="center">
<input name="b1" type="submit" value="恢复数据"></p>
</td>
</form>
</tr>
</table>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?