main.asp
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:3k
源码类别:

家庭/个人应用

开发平台:

ASP/ASPX

  1. <!--#include file="articleconn.asp"-->
  2. <html>
  3. <head>
  4. <LINK href="img/style.css" type=text/css rel=stylesheet>
  5. </head>
  6. <body style="background-color: #FFFFFF" topmargin="0" leftmargin="0">
  7. <TABLE cellSpacing=0 width=774 border=1 height="61" style="border-collapse: collapse" bordercolor="#C0C0C0">
  8. <TBODY>
  9. <form name="form" onsubmit="javascript:return lbsong();" target="lbsong" action="list.asp">
  10. <TR align=middle>
  11. <TD width=123 background="img/topbg.gif" height="36">电影名称</TD>
  12. <TD width=36 background="img/topbg.gif" height="36">
  13.   <p align="center">类别</p>
  14. </TD>
  15. <TD width=49 background="img/topbg.gif" height="36">
  16.   <p align="center">日期</p>
  17. </TD>
  18. <TD width=111 background="img/topbg.gif" height="36">电影名称</TD>
  19. <TD width=36 background="img/topbg.gif" height="36">
  20.   <p align="center">类别</p>
  21. </TD>
  22. <TD width=51 background="img/topbg.gif" height="36">
  23.   <p align="center">日期</p>
  24. </TD>
  25. <TD width=114 background="img/topbg.gif" height="36">电影名称</TD>
  26. <TD width=36 background="img/topbg.gif" height="36">
  27.   <p align="center">类别</p>
  28. </TD>
  29. <TD width=51 background="img/topbg.gif" height="36">
  30.   <p align="center">日期</p>
  31. </TD></TR>
  32. <TR align=middle>
  33. <%
  34. dim i
  35. i=0
  36. page = request.querystring("Hits_Page")
  37. set rs=server.createobject("adodb.recordset") 
  38. sql="select articleid,title,typeid,dateandtime from learning where dateandtime<>date() order by dateandtime desc"
  39. rs.open sql,conn,1,1
  40. if rs.eof and rs.bof then
  41. response.write "<div align=center>未收录任何电影</div>"
  42. else
  43. rs.pagesize = "57"
  44. if page = "" or page < "1" then
  45. page = "1"
  46. end if
  47. if rs.pagecount > "0" then
  48. rs.absolutepage = page
  49. end if
  50. do while not rs.eof
  51. i=i+1
  52. if i > rs.pagesize then
  53. exit do
  54. end if
  55. %>
  56. <TD width=123 height="24" align="center" bgcolor="#EFEFEF" onmouseover="this.style.backgroundColor='#E2F1A6'" onmouseout="this.style.backgroundColor='#EFEFEF'">  <table border="0" cellpadding="0" cellspacing="0" width="120%">
  57.     <tr>
  58.       <td width="81%"><a href="#" onClick="window.open('movie.asp?id=<%=rs("articleid")%>','Lcmusic')" ><%=rs("title")%></a></td>
  59.     </tr>
  60.   </table>
  61. </TD>
  62. <TD height="5">
  63.   <p><%=rs("typeid")%></p>
  64. </TD>
  65. <TD width=51 height="5">
  66.   <table border="0" cellpadding="0" cellspacing="0" width="121%">
  67.     <tr>
  68.       <td width="100%"><font size="1"><%=rs("dateandtime")%></font></td>
  69.     </tr>
  70.   </table>
  71. </TD>
  72. <% if i mod 3 =0 then%>
  73. <TR align=middle>
  74. <%
  75. end if
  76. if i>=57 then exit do
  77. rs.movenext
  78. loop
  79. end if
  80. rs.close
  81. set rs=nothing
  82. conn.close
  83. set conn=nothing
  84. %>
  85. </TR>
  86. </form></TR>
  87. </TBODY></TABLE>
  88. <table border="0" cellpadding="0" cellspacing="0" id="table1" height="100%">
  89. <tr>
  90. <td> </td>
  91. </tr>
  92. <tr>
  93. <td><script src="http://www.1000n.com/tongji/count.asp?style=1"></script></td>
  94. </tr>
  95. </table>
  96. </body>
  97. </html>