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

📄 admin_list.asp

📁 功能:同前置顶. 置底. 搜索. 审核. 编辑. 悄悄话. 系统发信通知站长. 滚动公告或不用公告. 冷色暖色. 直接上传. UBB.在线设置 ... 管理用户:admin 密码:admin 本文来
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Config.asp"-->
<!--#include file="tou.asp"-->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>文件管理</title>
<link href="yes2.css" rel="stylesheet" type="text/css">
<script src="Images/up.Js"></script>
</head>

<body>
<%if request.cookies("picc")("picc2")<>"" then%>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0"><tr> 
          
    <td align="center" height="30">[<a href="../admin.asp">退回</a>]</td>
        </tr>
<form name="del" action="del.asp" method="post">
  <tr> 
    <td height="25"> <%
	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 = 5
		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
			fip = frst("ip").Value
			fpath = frst("filePath").Value
			fsize = frst("filesize").Value
			fhits = frst("hits").Value
			fuploadtime = frst("uploadTime").Value
'FileNameStr=Server.Mappath(fpath)
'Isize.GetImgSize Cstr(FileNameStr)
	%>
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
        <tr> 
          <td width="150"><div align="right"><font color="#FF0000">○○</font>名称:</div></td>
          <td><a href="<%=fpath%>" target="_NEWwIN"><%=ftitle%>( 文件大小:<%=fsize%> bytes)</a> </td>  
          <td width="20%">删除   
              <input type="checkbox" name="DelID" value="<%=fid&"|"&fpath%>">
          </td>
        </tr>
        <tr> 
          <td width="150"><div align="right">文件类型:</div></td>
          <td><%=ftype%></td>
            <td></td>
        </tr>
        <tr> 
          <td width="150"><div align="right">上传来自:</div></td>
          <td><%=fuploadtime%> [ <%=fip%> ]</td>
            <td>
<%
			Set Fs = Server.CreateObject("Scripting.FileSystemObject")
			If Fs.FileExists(server.mappath(fPath)) Then
			Response.Write("<img src=Images/f.gif")
			End If
			%>
</td>
        </tr>
        <tr> 
          <td width="150"><div align="right">文件说明:</div></td>
          <td colspan="2"><%=fdesc%></td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td height="1"></td>
          <td height="1" colspan="2"></td>
        </tr>
      </table>
      <%
		  	frst.movenext
		next
	  else
	  %> 
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
        <tr> 
          <td>还没有上传的内容</td>
        </tr>
      </table>
      <%
	  end if
	  frst.close
	  set frst = nothing
	  myconn.close
	  set myconn = nothing
	  %>
	  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
        <tr> 
            <td align="right" class="heading">有&nbsp;&nbsp;<img src="Images/f.gif">&nbsp;&nbsp;标记则代表文件存在  
              <%
		  If Page > 2 Then Response.Write ("<a href='?page=1'>首页</a><a href='?page="& Page - 1 &"'>上一页</a>")
		  If page < pages Then Response.Write ("&nbsp;<a href='?page="& Page + 1 &"'>下一页</a>&nbsp;<a href='?page="& Pages &"'>末页</a>")
		  %>
            选中所有<input name="chkall" type="checkbox" id="chkall" value="select" onclick=CheckAll(this.form)> 
              <input type="submit" name="Submit" value="删除所选"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td> 
        </tr>
      </table></td>
  </tr></form>
</table>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="25">&nbsp;</td>
  </tr>
</table>
</body>
</html>



 <%
else  
Response.Redirect "index.asp"
end if
%> 

⌨️ 快捷键说明

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