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

📄 yasuodata.asp

📁 人才招聘系统,用asp做的
💻 ASP
字号:
<!--#include file=usercookies.asp-->
<head>
<title>管理页面</title>
<link rel="stylesheet" type="text/css" href="../style.css">
</head>

<BODY>
<%
		dim rs,sql
		dim tmprs
		dim allarticle
		dim Maxid
		dim topic,username,dateandtime,body

%>
<table cellpadding=0 cellspacing=0 border=0 align=center>
  <tr>
    <td>
      <table cellpadding=3 cellspacing=0 border=1 width=100% bordercolor="#C0C0C0" style="border-collapse: collapse">
        <tr >
        </tr>
            <tr>
              <td width="100%" valign=top>
<table width=100% cellspacing=0 cellpadding=0 bordercolor="#C0C0C0" style="border-collapse: collapse" border="1">
<form action=yasuodata.asp>
<tr>
<td>
压缩数据库:<input type="text" name="dbpath" value=../db3.mdb size="20">&nbsp;        
<input type="submit" value="开始压缩"></td>
</tr>
<form>        
</table>        
<%        
Dim dbpath,boolIs97        
dbpath = request("dbpath")        
boolIs97 = request("boolIs97")        
        
If dbpath <> "" Then        
dbpath = server.mappath(dbpath)        
	response.write(CompactDB(dbpath,boolIs97))        
End If        
%>        
              </td>        
            </tr>        
        </table>        
        </td>        
    </tr>        
</table>        
<%        
%>        
<%        
Const JET_3X = 4        
        
Function CompactDB(dbPath, boolIs97)        
Dim fso, Engine, strDBPath        
strDBPath = left(dbPath,instrrev(DBPath,"\"))        
Set fso = CreateObject("Scripting.FileSystemObject")        
        
If fso.FileExists(dbPath) Then        
Set Engine = CreateObject("JRO.JetEngine")        
        
	If boolIs97 = "True" Then        
		Engine.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbpath, _        
		"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & "temp.mdb;" _        
		& "Jet OLEDB:Engine Type=" & JET_3X        
	Else        
		Engine.CompactDatabase "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbpath, _        
		"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & "temp.mdb"        
	End If        
        
fso.CopyFile strDBPath & "temp.mdb",dbpath        
fso.DeleteFile(strDBPath & "temp.mdb")        
Set fso = nothing        
Set Engine = nothing        
        
	CompactDB = "你的数据库, " & dbpath & ", 已经压缩成功!" & vbCrLf        
        
Else        
	CompactDB = "数据库名称或路径不正确. 请重试!" & vbCrLf        
End If        
        
End Function        
%>

⌨️ 快捷键说明

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