Index_city.asp
Upload User: pengwei803
Upload Date: 2021-02-10
Package Size: 3311k
Code Size: 1k
Development Platform:

HTML/CSS

  1. <%
  2.     set rscity=server.createobject("adodb.recordset")
  3.     sqlcity="select top 13 * from Gu_shi ORDER BY id asc"
  4.     rscity.open sqlcity,conn,1,1
  5. %>
  6. <div align="center">
  7. <table cellpadding="0" cellspacing="0" width="960">
  8. <tr>
  9. <td height="25" width="85"><b>
  10. <a href="Index.asp"><%=ku_zongzhan%></a></b> 
  11. <font color="#C0C0C0">|</font></td>
  12. <td height="25" width="789" align="left">
  13. <%if Rscity.eof or Rscity.bof then
  14.     response.write"<div align='center'>还没有城市加入!<div>"
  15.     end if 
  16.     do while not rscity.eof
  17.     cname = rscity("class1")
  18.     %><a href="Index.asp?city=<%=rscity("id")%>"><%=cname%></a> 
  19. <font color="#C0C0C0">|</font> 
  20.     <% 
  21.     rscity.movenext  
  22.     loop
  23.     Rscity.Close
  24.     Set Rscity=Nothing
  25. %></td>
  26. <td height="25" width="87"><a href="Gu_city.asp">
  27. <font color="#0066FF">更多城市..</font></a></td>
  28. </tr>
  29. </table>
  30. </div>