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

📄 ddtaobao_database.asp

📁 校园二手交易系统,具有完备的后台操作以及应用功能!
💻 ASP
字号:
<!--#include file="../Inc/AdminChk.asp"-->
<!--#include file="Conn.asp"-->
<%
function fsoDbBack()
	on error resume next
	dim obj_fso,backdbpath
	backdbpath=Server.MapPath(request("bkDBdir") & "/"&request("bkDBname")&"")
	set obj_fso=Server.CreateObject("scripting.filesystemobject")
	obj_fso.copyfile Server.MapPath(datapath&datafile),backdbpath,true
	set obj_fso=nothing
	if err.number<>0 then
		fsoDbBack="<font color=red><b>备份失败,请确保服务器支持FSO,且 "&request("bkDBdir")&" 目录是存在的!</b></font>"
	else
		fsoDbBack="<font color=red><b>备份数据库成功,数据库已成功备份到 "&request("bkDBdir")&" 目录中!</b></font>"
	end if
end function
%>
<html>
<head>
<title>多多科技产品后台管理官方网站http://www.ddtaobao.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="keywords" content="多多科技产品后台管理官方网站http://www.ddtaobao.com">
<meta name="description" content="多多科技产品后台管理官方网站http://www.ddtaobao.com">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="img/admin_style.css">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="bgcolor">
<%if Request.Form("act")="" then%>
 <form method="post" action="" onsubmit="if(confirm('您现在就要备份网站数据库吗?')){return true}else{return false}">       
<div align="center">
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF" class="border">
  <tr align="center" >
    <td height=24 class="title" colspan="2"><font color="#000000">数据库备份管理
    </font>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#F6FcF9'">
    <td height=23  width="27%" align="right">备份目录:</td>
    <td height=23  width="72%" align="left">
	<input type=text size=20 name=bkDBdir value="../Databackup"> </td>
  </tr>
	<tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#F6FcF9'">
    <td height=23  width="27%" align="right">备份名称:</td>
    <td height=23  width="72%" align="left">
	<input type=text size=20 name=bkDBname value="<%=date()%>"> </td>
  </tr>
		<tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#F6FcF9'">
    <td height=23  width="100%" align="right" colspan="2">
	<p align="center">
	<input type="hidden" name="act" value="backupdb">
	<input type="submit" value="开始备份" style="width:96px" class="button"></td>
  </tr>
	</table>
</div>
</form>
<%end if%>
<%if Request.Form("act")="backupdb" then%>
<div align="center">
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF" class="border">
  <tr align="center" >
    <td height=24 class="title"><font color="#000000">数据库备份管理
    </font>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#F6FcF9'">
    <td height=23  width="100%" align="right">
	<p align="center"><%=fsoDbBack()%></td>
  </tr>
	<tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#F6FcF9'">
    <td height=23  width="100%" align="right">
	<p align="center">
	<input type="button" value="返回" style="width:56; height:20" class="button" onclick=javascript:history.go(-1)></td>
  </tr>
	</table>
</div>
<%end if%>
</body>
</html>

⌨️ 快捷键说明

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