📄 cz-upfilelist.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="CZ-UPFILEConfig.asp"-->
<%
if session("admin_name")="" then
response.redirect "../login.asp"
response.end
end if
%>
<html>
<head>
<title>up-filelist</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style.css" rel="stylesheet" type="text/css">
<script src="czUpfile.Js"></script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (up-filelist.psd) -->
<!-- End ImageReady Slices -->
<br>
<br>
<div align="center"><form name="del" action="cz-upfile_del.asp?id=<%=id%>" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td height="25" width="708"> <a href="cz-upfile_main.asp" target="BoardList"><strong><img src="../images/pics/next.gif" border="0"><img src="../images/pics/next.gif" border="0"><font color="#FF0000">上传属性设置</font></strong></a>
<%
set frst = Server.CreateObject("adodb.recordset")
sql = "select * from info order by uploadtime desc"
frst.open sql,myconn,1,1
fcount = frst.recordcount
if fcount > 0 then
''显示参数
dim tbbgcolor
''分页参数
dim maxperpage,pages,page
maxperpage = 3
frst.pagesize = maxperpage
pages = frst.pagecount
''页面参数设置
page = Request.QueryString("page")
if not isnumeric(page) then page = 1 else page = cint(page)
if page < 1 then page = 1
if page > pages then page = pages
frst.absolutepage = page
''显示内容
'Set Isize=Server.CreateObject("WinImg.ImgSize")
for i = 1 to maxperpage
if frst.eof then exit for
if i mod 2 = 0 then tbbgcolor = "" else tbbgcolor = "#0066cc"
fid = frst("id").Value
ftitle = frst("fileTitle").Value
fdesc = frst("fileDesc").Value
ftype = frst("fileType").Value
fpath = frst("filePath").Value
fsize = frst("filesize").Value
fhits = frst("hits").Value
fuploadtime = frst("uploadTime").Value
%>
<br>
<br>
<div align="center">
<center>
<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="336699" style="border-collapse: collapse">
<tr class="text">
<td width="20%" height="25" background="../images/pics/tile_sub.gif" bgcolor="#FFFFFF">
<div align="center"><font color="#FFFFFF"><b> 文件名称:</b></font></div></td>
<td width="60%" background="../images/pics/tile_sub.gif" bgcolor="#FFFFFF"><a href="<%=fpath%>" target="_NEWwIN"><font color="#FFFFFF"><%=ftitle%>( 文件大小:<%=fsize%> bytes)</font></a> </td>
<td width="20%" background="../images/pics/tile_sub.gif" bgcolor="#FFFFFF">
<div align="center">
<input type="checkbox" name="DelID" value="<%=fid&"|"&fpath%>">
</div></td>
</tr>
<tr class="text">
<td bgcolor="#FFFFFF" height="12"> <div align="center"><font color="#333333"><b>
文件类型:</b></font></div></td>
<td bgcolor="#FFFFFF" height="12"><%=ftype%></td>
<td bgcolor="#FFFFFF" height="12"> <div align="center"><a href="cz-upfileEdit.asp?ID=<%=Fid%>">编辑</a></div></td>
</tr>
<tr class="text">
<td bgcolor="#FFFFFF" height="12"> <div align="center"><font color="#333333"><b>
上传日期:</b></font></div></td>
<td bgcolor="#FFFFFF" height="12"><%=fuploadtime%></td>
<td bgcolor="#FFFFFF" height="12"> <div align="center">
<%
Set Fs = Server.CreateObject("Scripting.FileSystemObject")
If Fs.FileExists(server.mappath(fPath)) Then
Response.Write("<img src=../images/isexists.gif")
End If
%>
</div></td>
</tr>
<tr class="text">
<td bgcolor="#FFFFFF" height="12"> <div align="center"><font color="#333333"><b>
文件说明:</b></font></div></td>
<td colspan="2" bgcolor="#FFFFFF" height="12"><%=fdesc%></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25" colspan="3"><img src="../images/pics/seperator.gif" width="100%" height="1"></td>
</tr>
</table>
</center>
</div>
<%
frst.movenext
next
else
%>
<table width="708" border="0" align="center" cellpadding="3" cellspacing="0">
<tr class="text">
<td width="702"><div align="center"><b><font color="#666666">检测得出:暂无相关上传数据及相关文件存在服务器内</font></b>!</div></td>
</tr>
</table>
<%
end if
frst.close
set frst = nothing
myconn.close
set myconn = nothing
%>
<table width="707" border="0" align="center" cellpadding="3" cellspacing="0">
<tr class="text">
<td align="right" class="heading" width="701"><font color="#FF0000">有<img src="../images/isexists.gif" width="16" height="16">标记则代表文件存在
<%
If Page >=1 Then Response.Write ("<a href='?page=1'>首页</a> <a href='?page="& Page - 1 &"'>上一页</a>")
If page < pages Then Response.Write (" <a href='?page="& Page + 1 &"'>下一页</a> <a href='?page="& Pages &"'>末页</a>")
%>
选中所有</font>
<input name="chkall" type="checkbox" id="chkall" value="select" onclick=CheckAll(this.form)>
<input type="submit" name="Submit" value="删除所选"> </td>
</tr>
</table></td>
</tr>
</table>
</form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -