p_my.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. '=========================================================
  5. ' File: p_my.asp
  6. ' Version:5.0
  7. ' Date: 2003-8-15
  8. ' Script Written by Leibo
  9. '=========================================================
  10. ' Copyright (C) 2003,2004 Mathren.com. All rights reserved.
  11. ' Web: http://www.mathren.com
  12. ' Email: webmaster@mathren.com
  13. '=========================================================
  14. if not founduser then
  15.    errmsg=errmsg+"<br>"+"<li>您没有<a href=login.asp target=_blank>登录</a>。"
  16. founderr=true
  17. end if
  18. stats="我上传的照片"
  19. dim picid,classname,classnum
  20. dim currentPage,totalrec,Pcount,page_count,endpage
  21. dim filename,filesize,picset,classid,addtime,postuser,postuserid,picinfo,hits
  22. dim abgcolor,altstr
  23. if founderr then
  24. call head()
  25. call head_var("","")
  26. call txl_error()
  27. else
  28. call head()
  29. call head_var("班级相册","p_index.asp")
  30. if founderr then
  31. call txl_error()
  32. else
  33. call main()
  34. if founderr then call txl_error()
  35. end if
  36. end if
  37. call foot()
  38. sub main()
  39. abgcolor="tablebody2"
  40. %>
  41. <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;">  
  42. <tr> 
  43. <td width=120 bgcolor=<%=txl_body(10)%> align="center" valign="top">
  44. <br>
  45. <a href=p_send.asp><img src="<%=txl_info(6)&txl_skinpic(10)%>"  height="25" border=0></a> <br><br>
  46. <a href=p_my.asp><img src="<%=txl_info(6)&txl_skinpic(11)%>"  height="25" border=0></a> <br><br>
  47. <br><br><br>
  48. <%
  49. set rs=server.createobject("adodb.recordset")
  50. sql="select classid,classname,classinfo from imgclass order by classid"
  51. rs.open sql,conn,1
  52. if rs.eof and rs.bof then
  53. response.write "<p>还没有设定班级照片类别</p>"
  54. else
  55. ClassNum=rs.recordcount
  56. do while not rs.eof
  57. 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>"
  58. rs.movenext
  59. loop
  60. end if
  61. %>
  62. </td>
  63. <td width=* bgcolor=<%=txl_body(10)%>  valign="top"><br>
  64. <table cellpaddin=0 cellspacing=0 border=5 bordercolor=<%=txl_body(21)%> width=98%>
  65. <tr>
  66. <%
  67. dim i
  68. i=1
  69. sql="select picid,filename,filesize,addtime,postuser,picinfo,hits from imgdata where postuserid="&userid&" order by addtime desc"
  70. set rs=conn.execute(sql)
  71. do while not rs.eof 
  72. altstr="&#13&#10  〓〓  "&rs("postuser")&"上传  〓〓  "
  73. altstr=altstr&"&#13&#10"
  74. altstr=altstr&"&#13&#10  照片大小:"&int(rs("filesize")/1024)
  75. altstr=altstr&"K"
  76. altstr=altstr&"&#13&#10  上传日期:"&rs("addtime")
  77. altstr=altstr&"&#13&#10  详细说明:"&rs("picinfo")
  78. altstr=altstr&"&#13&#10"
  79. response.write "<td height=100 width=""20%"" align=center>"
  80. 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;"
  81. response.write "</td>"
  82. if (i mod 5)=0 then response.write"</tr><tr>"
  83. i=i+1
  84. rs.movenext
  85. loop
  86. %>
  87.   </tr>
  88. </table>
  89. <br>
  90. </td>
  91. </tr>
  92. </table>
  93. <%
  94. end sub
  95. %>