user_photomanage.asp
来自「利用C++编写的网络跟踪代码」· ASP 代码 · 共 547 行 · 第 1/2 页
ASP
547 行
else
response.write "<p align='center'><br>此栏目的下一级子栏目中没有任何图片!<br></p>"
end if
else
totalPut=rsPhotoList.recordcount
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
showpage strFileName,totalput,MaxPerPage,true,true,"张图片"
else
if (currentPage-1)*MaxPerPage<totalPut then
rsPhotoList.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rsPhotoList.bookmark
showContent
showpage strFileName,totalput,MaxPerPage,true,true,"张图片"
else
currentPage=1
showContent
showpage strFileName,totalput,MaxPerPage,true,true,"张图片"
end if
end if
end if
rsPhotoList.close
set rsPhotoList=nothing
sub showContent
dim PhotoNum
PhotoNum=0
%>
<table width='100%' border="0" cellpadding="0" cellspacing="0">
<tr>
<form name="myform" method="Post" action="User_ArticleDel.asp" onsubmit="return ConfirmDel();">
<td> <table width="468" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr class="title" height="22">
<td height="22" width="30" align="center"> </td>
<td width="25" align="center" height="22"><strong>ID</strong></td>
<td width="120" align="center"><strong>缩略图</strong></td>
<td align="center" ><strong>图片名称</strong></td>
<td width="60" align="center" ><strong>图片大小</strong></td>
<td width="40" align="center" ><strong>已审核</strong></td>
<td width="60" align="center" ><strong>操作</strong></td>
</tr>
<%do while not rsPhotoList.eof%>
<tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'">
<td width="30" align="center"> <input name='PhotoID' type='checkbox' onclick="unselectall()" id="PhotoID" value='<%=cstr(rsPhotoList("PhotoID"))%>'>
</td>
<td width="25" align="center"><%=rsPhotoList("Photoid")%></td>
<td width="120" align="center"> <%response.write "<a href='Photo_Show.asp?PhotoID=" & rsPhotoList("PhotoID") & "' target=_blank><img src='" & rsPhotoList("PhotoUrl_Thumb") & "' width='100' border='0'></a>"%> </td>
<td> <%
if rsPhotoList("ClassID")<>ClassID then
response.write "<a href='" & FileName & "?ClassID=" & rsPhotoList("ClassID") & "'>[" & rsPhotoList("ClassName") & "]</a> "
end if
response.write "<a href='Photo_Show.asp?PhotoID=" & rsPhotoList("PhotoID") & "'"
response.write " title='图片名称:" & rsPhotoList("PhotoName") & vbcrlf & "图片作者:" & rsPhotoList("Author") & vbcrlf & "更新时间:" & rsPhotoList("UpdateTime") & vbcrlf
response.write "查看次数:" & rsPhotoList("Hits") & vbcrlf & "关 键 字:" & mid(rsPhotoList("Keyword"),2,len(rsPhotoList("Keyword"))-2) & vbcrlf & "推荐等级:"
if rsPhotoList("Stars")=0 then
response.write "无"
else
response.write string(rsPhotoList("Stars"),"★")
end if
response.write vbcrlf & "下载等级:"
if rsPhotoList("PhotoLevel")=9999 then
response.write "游客"
elseif rsPhotoList("PhotoLevel")=999 then
response.write "注册用户"
elseif rsPhotoList("PhotoLevel")=99 then
response.write "收费用户"
elseif rsPhotoList("PhotoLevel")=9 then
response.write "VIP用户"
elseif rsPhotoList("PhotoLevel")=5 then
response.write "管理员"
end if
response.write vbcrlf & "查看点数:" & rsPhotoList("PhotoPoint")
response.write "' target=_blank>" & rsPhotoList("PhotoName") & "</a>"
%> </td>
<td width="60" align="center"><%=rsPhotoList("PhotoSize") & " K"%></td>
<td width="40" align="center"> <%
if rsPhotoList("Passed")=true then
response.write "是"
else
response.write "否"
end if%> </td>
<td width="60" align="center"> <%if rsPhotoList("Passed")=False then%> <a href="User_PhotoModify.asp?PhotoID=<%=rsPhotoList("PhotoID")%>">修改</a>
<a href="User_PhotoDel.asp?PhotoID=<%=rsPhotoList("PhotoID")%>&Action=Del" onclick="return ConfirmDel();">删除</a>
<%end if%> </td>
</tr><tr><td height=6></td></tr>
<%
PhotoNum=PhotoNum+1
if PhotoNum>=MaxPerPage then exit do
rsPhotoList.movenext
loop
%>
</table>
<table width="98%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="317" height="30"><input name="chkAll" type="checkbox" id="chkAll2" onclick=CheckAll(this.form) value="checkbox">
选中本页显示的所有图片 </td>
<td width="151"><div align="center">
<input name="submit" type='submit' value='删除选定的图片' class="input2">
<input name="Action" type="hidden" id="Action2" value="Del">
</div></td>
</tr>
</table> </td>
</form>
</tr>
</table>
<%
end sub
if ClassID>0 and Child>0 then
%>
<table width="100%" height="5" border="0" cellpadding="0" cellspacing="0">
<tr>
<td></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class='border'>
<tr height="20" class='tdbg'>
<td width='172' align="right"><div align="left">【
<%response.write "<a href='" & strFileName & "'>" & ClassName & "</a>"%>
】子栏目导航:</div></td>
<td width="285">
<%call Admin_ShowChild()%>
</td>
</tr>
</table>
<%
end if
%>
<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="10" ></td>
</tr>
</table> </td>
</tr>
</table>
</td>
<td width="10" valign="top"> </td>
<td width="270" valign="top" bgcolor="#FFFFFF" class="tde">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td valign="top">
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#B6B6B6">
<tr>
<td valign="top">
<table width="100%" height="26" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="e1e1e1"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10%"><div align="center"><img src="imge/top1.gif" width="20" height="20"></div></td>
<td width="90%" valign="bottom" class="14">会员登录</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="11"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<% call ShowUserLogin() %>
</td>
</tr>
</table>
<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="15" ></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td valign="top"> <table width="100%" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#B6B6B6">
<tr>
<td valign="top"> <table width="100%" height="26" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="e1e1e1"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10%"><div align="center"><img src="imge/top1.gif" width="20" height="20"></div></td>
<td width="90%" valign="bottom" class="14">内容搜索</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="11"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<% call ShowSearchForm("photo_search.asp",1) %>
</td>
</tr>
</table>
<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="10" ></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" height="6" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="5" ></td>
</tr>
</table></td>
</tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="779"><table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5">
<% call ShowFriendSite(1,8,8,2)%>
</td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top" > <div align="left">
<% call ShowFriendSite(2,9,9,2)%>
</div></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="780" height="59" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="ebebeb">
<tr>
<td height="25" valign="bottom" bgcolor="#FF6600"> <table width="780" height="55" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#FFFFFF">
<% call Bottom() %>
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<%
call CloseConn()
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?