p_more.asp
上传用户:comthink
上传日期:2021-05-06
资源大小:1280k
文件大小:3k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

HTML/CSS

  1. <!--#include file="conn.asp"-->
  2. <!-- #include file="inc/const.asp" -->
  3. <%
  4. if Cint(GroupSetting(17))=1 then
  5. Errmsg=Errmsg+"<br>"+"<li>您没有访问班级相册的权限,请<a href=login.asp>登陆</a>或者同管理员联系。"
  6. founderr=true
  7. end if
  8. dim picid,classname,classnum
  9. dim currentPage,totalrec,Pcount,page_count,endpage
  10. dim filename,filesize,picset,classid,addtime,postuser,postuserid,picinfo,hits
  11. dim abgcolor,altstr
  12. if request("classid")="" then
  13. Errmsg=Errmsg+"<br>"+"<li>请选定相应的照片。"
  14. founderr=true
  15. elseif not isInteger(request("classid")) then
  16. Errmsg=Errmsg+"<br>"+"<li>非法的照片参数。"
  17. founderr=true
  18. else
  19. classid=request("classid")
  20. end if
  21. if founderr then
  22. call head()
  23. call head_var("","")
  24. call txl_error()
  25. else
  26. set rs=conn.execute("select classname from imgclass where classid="&classid)
  27. if rs.bof or rs.eof then
  28. Errmsg=Errmsg+"<br>"+"<li>非法的照片参数。"
  29. founderr=true
  30. else
  31. classname=rs(0)
  32. end if
  33. stats=""&classname&""
  34. call head()
  35. call head_var("班级相册","p_index.asp")
  36. if founderr then
  37. call txl_error()
  38. else
  39. call main()
  40. if founderr then call txl_error()
  41. end if
  42. end if
  43. call foot()
  44. sub main()
  45. abgcolor="tablebody2"
  46. %>
  47. <table width="<%=txl_body(0)%>" cellpadding="0" cellspacing="0" align="center" style="border:1px <%=txl_body(9)%> solid; border-top-width: 0px; border-right-width: 1px; border-bottom-width: 0px; border-left-width: 1px;">  
  48. <tr> 
  49. <td width=120 bgcolor=<%=txl_body(10)%> align="center" valign="top">
  50. <br>
  51. <a href=p_send.asp><img src="<%=txl_info(6)&txl_skinpic(10)%>"  height="25" border=0></a> <br><br>
  52. <a href=p_my.asp><img src="<%=txl_info(6)&txl_skinpic(11)%>"  height="25" border=0></a> <br><br>
  53. <br><br><br>
  54. <%
  55. set rs=server.createobject("adodb.recordset")
  56. sql="select classid,classname,classinfo from imgclass order by classid"
  57. rs.open sql,conn,1
  58. if rs.eof and rs.bof then
  59. response.write "<p>还没有设定班级照片类别</p>"
  60. else
  61. ClassNum=rs.recordcount
  62. do while not rs.eof
  63. response.write "<a href=""p_more.asp?classid="&rs("classid")&""" title="""&rs("classinfo")&"""><img src="""&txl_info(7)&"dot02.gif"" border=0>&nbsp;"&rs("classname")&"</a><br><br>"
  64. rs.movenext
  65. loop
  66. end if
  67. %>
  68. </td>
  69. <td width=* bgcolor=<%=txl_body(10)%>  valign="top"><br>
  70. <table cellpaddin=0 cellspacing=0 border=5 bordercolor=<%=txl_body(21)%> width=98%>
  71. <tr>
  72. <%
  73. dim i
  74. i=1
  75. sql="select picid,filename,filesize,addtime,postuser,picinfo,hits from imgdata where classid="&classid&" order by addtime desc"
  76. set rs=conn.execute(sql)
  77. do while not rs.eof 
  78. altstr="&#13&#10  〓〓  "&rs("postuser")&"上传  〓〓  "
  79. altstr=altstr&"&#13&#10"
  80. altstr=altstr&"&#13&#10  照片大小:"&int(rs("filesize")/1024)
  81. altstr=altstr&"K"
  82. altstr=altstr&"&#13&#10  上传日期:"&rs("addtime")
  83. altstr=altstr&"&#13&#10  详细说明:"&rs("picinfo")
  84. altstr=altstr&"&#13&#10"
  85. response.write "<td height=100 width=""20%"" align=center>"
  86. response.write "<a href=""p_show.asp?id="&rs("picid")&""" target=_blank title="""&altstr&"""><img src="""&txl_info(12)&rs("filename")&""" border=0  width=100 height=85></a>&nbsp;&nbsp;"
  87. response.write "</td>"
  88. if (i mod 5)=0 then response.write"</tr><tr>"
  89. i=i+1
  90. rs.movenext
  91. loop
  92. %>
  93.   </tr>
  94. </table>
  95. <br>
  96. </td>
  97. </tr>
  98. </table>
  99. <%
  100. end sub
  101. %>