📄 mdb_restore.asp
字号:
<%Admin="UserMailList"%>
<!--#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>
<form action="mdb_restore.asp?type=save&JyDownMDBnameNew=Count" 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="Count_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="Count" 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -