%@language=vbscript codepage=936 %> <% option explicit response.buffer=true if trim(session("AdminName"))="" then response.write "对不起,此功能只有管理员才能使用。" response.end end if %> <% Const MaxPerPage=20 const SaveUpFilesPath_SoftPic="UploadSoftPic" const SaveUpFilesPath_Soft="UploadSoft" const SaveUpFilesPath="UploadThumbs" const SaveUpFilesPath2="UploadPhotos" dim strFileName dim Action dim totalPut,CurrentPage,TotalPages dim SavePath,TruePath,fso,theFolder,theFile,thisfile,FileCount,TotalSize,TotalSize_Page dim PhotoUrlID,strFileType Action=trim(Request("Action")) PhotoUrlID=trim(request("PhotoUrlID")) if PhotoUrlID="" then PhotoUrlID=0 else PhotoUrlID=Clng(PhotoUrlID) end if strFileName="Admin_PhotoSelect.asp?PhotoUrlID=" & PhotoUrlID select case PhotoUrlID case 999 SavePath = SaveUpFilesPath_SoftPic case 1000 SavePath = SaveUpFilesPath_Soft case 0 SavePath = SaveUpFilesPath case else SavePath = SaveUpFilesPath2 end select if right(SavePath,1)<>"/" then SavePath=SavePath&"/" '在目录后加(/) TruePath=Server.MapPath(SavePath) if request("page")<>"" then currentPage=cint(request("page")) else currentPage=1 end if %>
没有找到任何文件!
" exit sub end if totalPut=FileCount if currentpage<1 then currentpage=1 end if if (currentpage-1)*MaxPerPage>totalput then if (totalPut mod MaxPerPage)=0 then currentpage= totalPut \ MaxPerPage else currentpage= totalPut \ MaxPerPage + 1 end if end if if currentPage=1 then showContent showpage2 strFileName,totalput,MaxPerPage response.write "