📄 mdb_copy.asp
字号:
<%Admin="SysSee"%>
<!--#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:120%}
body{font-size:9pt;line-height:120%}
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="6">
<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")
fs.CopyFile Server.MapPath("data\"&JyDownMDBname&".asp"),Server.MapPath("data_backup\"&JyDownMDBnameNew&".asp")
JyDownMsg="成功:已经成功备份数据库("&JyDownMDBnameNew&".asp)!"
Set fs=nothing
end if
%>
<table border="0" cellspacing="0" style="border-collapse: collapse" width="300" cellpadding="0">
<tr>
<td width="100%"><font color="#FF0000">·</font><%=JyDownMsg%> 时间:<%=Now()%></td>
</tr>
</table>
<%end if%>
<table border="0" cellspacing="1" style="border-collapse: collapse" width="300" bgcolor="#E6E6E6">
<tr>
<td width="100%" bgcolor="#BBAADD" height="26"><font color="#FFFFFF"><b> 备份数据库</b></font></td>
</tr>
<tr>
<td width="100%" bgcolor="#F7F7F7" height="22">
<font color="#000080"><b> 软件数据库备份</b></font></td>
</tr>
<!--#include file="mdb_path_down_name.asp"-->
<form action="mdb_copy.asp?type=save" method="post">
<tr>
<td width="100%" bgcolor="#FFFFFF" height="26">
原数据文件名
<input name="JyDownMDBname" value="<%=MDBname%>" size="20" style="border-style: solid; border-width: 1">.asp</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="26">
备份数据库名
<input name="JyDownMDBnameNew" value="<%=MDBname%>_backup" size="20" style="border-style: solid; border-width: 1">.asp</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="26">
<p align="center">
<input name="b1" type="submit" value="确认备份"></p>
</td>
</form>
</tr>
<tr>
<td width="100%" bgcolor="#F7F7F7" height="22">
<font color="#000080"><b> 文章数据库备份</b></font></td>
</tr>
<!--#include file="mdb_path_info_name.asp"-->
<form action="mdb_copy.asp?type=save" method="post">
<tr>
<td width="100%" bgcolor="#FFFFFF" height="26">
原数据文件名
<input name="JyDownMDBname" value="<%=MDBname%>" size="20" style="border-style: solid; border-width: 1">.asp</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="26">
备份数据库名
<input name="JyDownMDBnameNew" value="<%=MDBname%>_backup" size="20" style="border-style: solid; border-width: 1">.asp</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="26">
<p align="center">
<input name="b1" type="submit" value="确认备份"></p>
</td>
</form>
</tr>
<tr>
<td width="100%" bgcolor="#F7F7F7" height="22">
<font color="#000080"><b> 用户数据库备份</b></font></td>
</tr>
<!--#include file="mdb_path_user_name.asp"-->
<form action="mdb_copy.asp?type=save" method="post">
<tr>
<td width="100%" bgcolor="#FFFFFF" height="26">
原数据文件名
<input name="JyDownMDBname" value="<%=MDBname%>" size="20" style="border-style: solid; border-width: 1">.asp</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="26">
备份数据库名
<input name="JyDownMDBnameNew" value="<%=MDBname%>_backup" size="20" style="border-style: solid; border-width: 1">.asp</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" height="26">
<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 + -