?? rdownload_index.asp
字號(hào):
<%
'功能:查看所有檔案庫(kù)
%>
<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Const.asp"-->
<%
'response.buffer=false
'------------------------------------------------設(shè)置參數(shù)
LoginID=trim(session("LoginID")) : if LoginID="" then LoginID=0 '當(dāng)前用戶(hù)ID
ParentId=request("ParentId") : if ParentId="" then ParentId=0 '上級(jí)目錄ID
'------------------------------------------------
'------------------------------------------------取記錄
'取檔案庫(kù)記錄 (返回rs對(duì)象)
'
set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from tbioaDownload_sort where pid=0 order by ID"
rs.open sql,oConn,1,1
'------------------------------------------------
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/main.css" type=text/css>
<title>main</title>
<base target="FrmMain">
</head>
<body topmargin="10" leftmargin="10">
<!--#include file="menu.html"-->
<hr width="100%" size=1 color="#000000">
<%
if rs.RecordCount=0 then
response.write "<BR><BR>暫時(shí)為空!"
else
%>
<table border="0" width="100%" cellspacing="10" cellpadding="0"><tr>
<%dim r: r=0
while not rs.EOF '循環(huán)
if (r mod 2 = 0) then response.write ("</tr><tr>")
r=r+1
manageAuth=ReturnManage(rs("managermod"),rs("ID"),"manager","tbioaDownload_sort") '取當(dāng)級(jí)目錄管理權(quán)限
%>
<td width="50%" align="center" valign="top">
<table width="100%" cellspacing="1" cellpadding="2" class="tab">
<tr>
<td width="100%" class="tdTop">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="tdTop">
<p align="left"><img border="0" src="../images/icon_title.gif" align="left"><%=HtmlOut(rs("name"))%></p>
</td>
<td width="60" class="tdTop">
<%if manageAuth or returnqx("0402") then%>
<p align="left"><img border="0" src="../images/icon_edit.gif" align="left">
<a href="RDownload_edit.asp?id=<%=rs("ID")%>" class="linkTop">編輯</a></p>
<%end if%>
</td>
<td width="60" class="tdTop">
<%if manageAuth or returnqx("0402") then%>
<p align="left"><img border="0" src="../images/icon_dele.gif" align="left">
<a href="RDownload_dele.asp?id=<%=rs("ID")%>" onClick="return confirm('刪除檔案庫(kù)后,該檔案庫(kù)中的文件也將被刪除!\n建議將該文件移到其他檔案庫(kù)后再刪除。\n\n確定要?jiǎng)h除該檔案庫(kù)嗎?\n該操作不可恢復(fù)!')" class="linkTop">刪除</a></p>
<%end if%>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="25%" class="td1">
<table width="100%" cellspacing="3" cellpadding="2">
<tr>
<td class="td1"><img border="0" src="../images/icon_show.gif" align="left"><a href="file_index.asp?typeid=<%=rs("ID")%>">查詢(xún)文件</a></td>
<td class="td1"></td>
</tr>
<tr>
<td class="td1" colspan="2">創(chuàng)建時(shí)間:<%=rs("sdate")%> 修改時(shí)間:<%=rs("mdate")%></td>
</tr>
<tr><td class="tdBottom" colspan="2"></td></tr>
<tr>
<td class="td1" colspan="2"><%=HtmlOut(rs("remark"))%></td>
</tr>
<tr><td class="tdBottom" colspan="2"></td></tr>
</table>
</td>
</tr>
<tr>
<td width="25%" class="tdBottom">
</td>
</tr>
</table>
</td>
<%rs.MoveNext: wend%>
</tr></table>
<%
end if
rs.close
%>
</body>
</html>
<%'釋放對(duì)象變量
oConn.close
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -