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

📄 restore.asp

📁 购物系统时尚版.强大的后台文章编辑器的功能
💻 ASP
字号:
<!--#include file="chk.asp"-->
<%
if request("action")="Restore" then
	Dbpath=request.form("Dbpath")
	backpath=request.form("backpath")
	if dbpath="" then
	response.write "请输入您要恢复成的数据库全名"	
	else
	Dbpath=server.mappath(Dbpath)
	end if
	backpath=server.mappath(backpath)
	'Response.write Backpath
	Set Fso=server.createobject("scripting.filesystemobject")
	if fso.fileexists(dbpath) then  					
		fso.copyfile Dbpath,Backpath
		response.write "成功恢复数据!"
	else
		response.write "备份目录下并无您的备份文件!"	
	end if
else
%>
<html><head><title>数据恢复</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="style.css" rel=stylesheet type=text/css>
</head>
<body>
<!--#include file="TopManu.asp"-->

		 			<div align="center">
<table border="0" width="100%" id="table1" cellspacing="0" style="border-collapse: collapse" cellpadding="0">
	<tr>
		<td background="image/admintoptdbg.gif">
		<p align="left">
		<img border="0" src="image/title_arrow.bmp" width="17" height="27" align="absmiddle"><font color="#808080"><b>恢复数据( 需要FSO支持,FSO相关帮助请看微软网站 )</b></font></td>
	</tr>
</table>
		 			<table width="100%" cellspacing=0 style="border:1px solid #C0C0C0; border-collapse: collapse; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px" border="1" bordercolor="#CCCCCC" cellpadding="4">		  							  				
  				<form method="post" action="restore.asp?action=Restore">
  				<tr>
  					<td height=100 bgcolor="#F7F7F7" >
  						备份数据库路径(相对):
              
        <input type=text size=30 name=DBpath value="../jj_Databackup/byec_shop.mdb">
              &nbsp;&nbsp;<BR>
  						目标数据库路径(相对):
              
        <input type=text size=30 name=backpath value="../byfenglan#/byfenglanAC.mdb">
              <BR>填写您当前使用的数据库路径,如不想覆盖当前文件,可自行命名(注意路径是否正确),然后修改数据库连接文件,如果目标文件名和当&nbsp;前使用数据库名一致的话,不需修改
						数据库连接文件<BR>
              <input type=submit value="恢复数据">
               <br>-----------------------------------------------------------------------------------------------------------------------------<br>
在上面填写本程序的数据库路径全名,本程序的默认备份数据库文件为jj_Databackup\byec_shop.mdb,请按照您的备份文件自行修改。<br>
您可以用这个功能来备份您的法规数据,以保证您的数据安全!<br>
						<font color="#FF0000">注意:所有路径都是相对与程序空间根目录的相对路径</font>
  					</td>
  				</tr>	
  				</form>
  			</table>
					</div>
					<table border="0" width="760" id="table3" cellspacing="0" cellpadding="0" align=center>
	<tr>
		<td align=right><input TYPE="button" VALUE="刷新本页" ONCLICK="location.reload()"> </td>
	</tr>
</table>
<%end if%>
</body>
</html>

⌨️ 快捷键说明

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