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

📄 admin_redata.asp

📁 购物系统(本版为正式商业版
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Redirect "login.asp"
end if
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
if qx20<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限!</b></font></div>"
response.End
end if
%>
<!--#include file="../webconfig.asp"-->
<html>
<head>
<title>管理中心</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<LINK REL="stylesheet" HREF="../css.css" TYPE="text/css">
<style type="text/css">
<!--
.style4 {color: #000000}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/right_top2.gif">
  <tr>
    <td width="1%">&nbsp;</td>
    <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
        <tr>
          <td width="30%" style="font-size:14px;color:#ffffff"><span class="style4">&nbsp;<b>数据库恢复</b> </span></td>
          <td width="70%" align="right">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>
<br>
<%
if request("action")="Restore" then
	backpath=request.form("backpath")
	Dbpath=request.form("Dbpath")
	if dbpath="" then
	  response.write "<SCRIPT LANGUAGE=JavaScript>alert (' 请输入您要恢复成的数据库全名');window.location.href='admin_redata.asp';</script>"
  response.end
	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 Backpath,Dbpath
	response.write "<SCRIPT LANGUAGE=JavaScript>alert (' 成功恢复数据!');window.location.href='admin_redata.asp';</script>"
  response.end
	else
	response.write "<SCRIPT LANGUAGE=JavaScript>alert (' 备份目录下并无您的备份文件!');window.location.href='admin_redata.asp';</script>"
  response.end
	end if
else
%>
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#9DB2D4" style="border-collapse: collapse">
  <form action="" name="form1" method="post">
    <tr> 
      <td height="25" colspan="2" bgcolor="#C7D3E6">&nbsp;&nbsp;<B>恢复数据</B>( 需要FSO支持,FSO相关帮助请看微软网站 )</td>
    </tr>
    <tr valign="middle"> 
      <td bgcolor="#F0F3F8">	  &nbsp;&nbsp;备份数据库路径(相对):
              <input type=text size=30 name=backpath value="../databackup/shop.mdb" class="wenbenkuang">
              &nbsp;&nbsp;</td>
	</tr>
    <tr valign="middle">
      <td bgcolor="#F0F3F8">&nbsp;&nbsp;目标数据库路径(相对):
      <input type=text size=30 name=DBpath value="<%=db%>" class="wenbenkuang">        </td>
    </tr>
    <tr valign="middle">
      <td bgcolor="#F0F3F8">&nbsp;&nbsp;填写当前使用的数据库路径,不想覆盖当前文件,可自行命名,然后修改conn.asp文件,如果目标文件名和当前使用数据库名一致的话,不需修改conn.asp文件</td>
    </tr>
    <tr valign="middle">
      <td bgcolor="#F0F3F8">&nbsp;&nbsp;
        <input name="submit" type=submit class="go-wenbenkuang" value="恢复数据">
</td>
    </tr>
    <tr valign="middle">
      <td bgcolor="#F0F3F8">&nbsp;&nbsp;在上面填写本程序的数据库路径全名,本程序的默认备份数据库文件为../databackup/shop.mdb,请按照您的备份文件自行修改。<br>
&nbsp;&nbsp;您可以用这个功能来恢复您的法规数据,以保证您的数据安全!<br>
&nbsp;&nbsp;注意:所有路径都是相对与程序空间Data目录的相对路径 </td>
    </tr>
	<input type="hidden" name="action" value="Restore">
  </form>
</table>
<%end if%><br><br>
<!--#include file="copyright.asp"-->

⌨️ 快捷键说明

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