?? backup2.asp
字號:
<%
if session("username")="" then
%>
<script language="javascript">
top.location.href="../login.asp"
</script>
<%
response.end
end if
%>
<!-- #include file="../conn2.asp" -->
<!-- #include file="../const.asp" -->
<!-- #include file="../inc/md5.asp" -->
<html>
<head>
<title><%=dianming%> - 數(shù)據(jù)庫還原</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style2.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY>
<%
if fla5="0" then
%>
<br><center><font color="#FF0000">你不具備此權限,請與管理員聯(lián)系!</font></center>
<%
response.end
end if
%>
<%if request("hid1")="" then%>
<form name="form1">
<table width="98%" border="0" cellpadding="0" cellspacing="2" align="center">
<tr>
<td height="21"> <img src="../Images/ico/ico00.gif" width="32" height="32" hspace="2" vspace="2" align="absmiddle"><font size="+1"><strong> 數(shù)據(jù)庫還原</strong></font></td>
</tr>
</table>
<table width="98%" border="0" cellspacing="1" cellpadding="2" align="center" class="TableMenu">
<tr class="a1" style="color:#ffffff;font-size:12px;">
<th height="30" style="color:#ffffff;font-size:14px" colspan="2"><img src="../images/add.gif" border="0" hspace="2" align="absmiddle">數(shù)據(jù)庫還原</th>
</tr>
<tr bgcolor="#ececec">
<td align="center">
<input type="submit" value=" 確認還原數(shù)據(jù)庫 ">
<input type="hidden" name="hid1" value="ok"></td>
</tr>
</table>
</form>
<%
else
dbpath=server.mappath("../data/avonjxc.mdb")
dbpath2=server.mappath("../backup/avonjxc.mdb")
Set Fso=server.createobject("scripting.filesystemobject")
if fso.fileexists(dbpath2) then
fso.copyfile dbpath2,dbpath
Else
%>
<script language="javascript">
alert("您的數(shù)據(jù)庫沒有備份,無法還原!")
window.history.go(-1)
</script>
<%
response.end
End if
%>
<script language="javascript">
alert("還原數(shù)據(jù)庫成功!")
window.location.href="backup2.asp"
</script>
<%
end if
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -