| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <%Session.CodePage=65001%>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>网站后台管理登陆</title>
- <meta name="Keywords" content="网站后台管理系统,网站内容管理系统,asp网站后台管理系统,西安网站建设,西安网络公司" />
- <link rel="stylesheet" type="text/css" href="../bdcommx/css.css">
- </head>
- <body>
- <!--#include file="../bdcommx/connxyz.asp"-->
- <!--#include file="../bdcommx/jsall.asp"-->
- <%call log_chk()%>
- <%'---------------------------------删除文件
- If Request("act")="del" Then
- dname=request("dname")
- Fpath=request("Fpath")
- dname=Server.MapPath("../../"&Fpath&"/"&dname)
- Set fs = Server.CreateObject("Scripting.FileSystemObject")
- fs.deleteFile(dname)
- response.write"<SCRIPT language=JavaScript>alert('你已经删除了此文件');"
- response.write"this.location.href='Fcontentsees.asp?pages="&request("pages")&"&Fpath="&Fpath&"';</SCRIPT>"
- response.end
- Set fs = Nothing
- End if%>
- <table width="100%" height="42" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="4%" height="42" align="center" background="../images/top_bg2.jpg"><img src="../images/dian.gif" width="10" height="10" /></td>
- <td width="96%" background="../images/top_bg2.jpg" class="hui12">后台管理:>> 上传文件管理</td>
- </tr>
- </table><%
- Function ShowFileInfo(filespec)
- Dim fso,f
- Set fso = CreateObject("Scripting.FileSystemObject")
- Set f = fso.GetFile(filespec)
- ShowFileInfo = "Created:"& f.DateCreated
- End Function
- %>
- <%
- Function ShowFileInfo(filespec)
- Dim fso,f
- Set fso= CreateObject("Scripting.FileSystemObject")
- Set f= fso.GetFile(filespec)
- ShowFileInfo= "创建于:"&f.DateCreated
- End Function
- %>
- <table width="750" border="0" align="center" cellpadding="0" cellspacing="1" class="tab_bdr">
- <form id="form1" name="theForm" method="post" action="databack.asp?act=back">
- <tr>
- <td colspan="7" align="center" background="../images/bg2.jpg" class="tb_bg"><strong>已上传文件( <a href="Fmag.asp?Fpath=uploadfiles/title"><font color="#FF0000">缩略图管理</font></a> || <a href="Fcontent.asp?Fpath=fcheditor/attached/image"><font color="#FF0000">内容图片管理</font></a>)</strong></td>
- </tr>
- <tr>
- <td width="25%" height="26" align="center" class="NcB_bg">文件名</td>
- <td width="25%" align="center" class="NcB_bg">创建日期</td>
- <td width="25%" align="center" class="NcB_bg">大小</td>
- <td width="25%" align="center" class="NcB_bg">操作</td>
- </tr>
- <%
- dim count
- dim Fpath
- count = 0
- dname=request("dname")
- Fpath=request("Fpath")
- dname2=Server.MapPath("../../"&Fpath&"/"&dname)
- Fpaths=Fpath&"/"&dname
- set objfilesys=server.CreateObject("Scripting.filesystemobject")
- set myfolder=objfilesys.getfolder(dname2)
- set myfiles=myfolder.files
- dim pages,sPageSize,ecount,scount
- pages = (Request.QueryString("pages"))
- if pages = "" or not IsNumeric(pages) Then pages = 1
- dim objfilesys
- dim myfolders
- dim myfile
- dim filecount, pagecount'准备分页
- sPageSize = 12'每页显示数
- filecount = clng(myfiles.count)
- pagecount = clng(filecount / sPageSize)
- if pagecount=0 then pagecount=1
- pages = clng(pages)
- scount = (pages-1) * sPageSize + 1
- ecount = pages * sPageSize
- %>
- <%
- for each myfile in myfiles
- fp = cstr(myfile.path)
- count = count +1
- if scount <= count and ecount >= count Then
- %>
- <tr>
- <td width="25%" height="26" align="center" class="NcB_bg"><%=myfile.name%></td>
- <td width="25%" align="center" class="NcB_bg"><%=myfile.DateCreated%></td>
- <td width="25%" align="center" class="NcB_bg"><%=clng(myfile.Size/1024)%> K</td>
- <td width="25%" align="center" class="NcB_bg"><a href="Fsee.asp?dname=<%=myfile.name%>&pages=<%=pages%>&Fpath=<%=Fpaths%>">查看</a> || <a href="Fcontentsee.asp?dname=<%=myfile.name%>&act=del&pages=<%=pages%>&Fpath=<%=Fpaths%>">删除</a></td>
- </tr>
- <%
- end if
- next
- %>
- <tr>
- <td height="26" colspan="4" align="center" class="NcB_bg">
- 共 <%=pagecount%> 页 <%=filecount%> 个文件 || 当前第:<%=pages%> 页 ||
- <%
- for i=1 to pagecount
- %>
- <a href=Fcontentsee.asp?pages=<%=i%>&Fpath=<%=Fpath%>&dname=<%=request("dname")%>><%if pages=i then%><font color="#FF0000"><%=i%></font><%else%><%=i%><%end if%></a>
- <%next%></td>
- </tr> </form>
- </table>
- </body>
- </html>
|