Menu.asp
上传用户:yunfeng252
上传日期:2022-07-23
资源大小:12403k
文件大小:2k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <center>
  2. <table border="0" cellpadding="0" cellspacing="0" width="780" height="38">
  3.  <tr>
  4.   <td width="16" style="background-image:url('Style/<%=WebSiteStyle%>/T_Menu_LR.gif');background-position:0px 0px"></td>
  5.   <td width="748" style="background-image:url('Style/<%=WebSiteStyle%>/T_Menu_Bg.gif');background-position:0px 0px" align="right"><table border="0" cellpadding="0" cellspacing="0" width="" height="22"><tr>
  6. <td width="" align="center" valign="bottom"><a href="<%=WebSiteURL%>" class="WSMenu"><b>首页</b></a></td>
  7. <%
  8. dim rsMenu
  9. set rsMenu=Server.CreateObject("Adodb.RecordSet")
  10. GuSQL="select * from "&GuTablePrefix&"_Sort where So_Type='Sort' or So_Type='Other' order by So_Order asc"
  11. rsMenu.open GuSQL,GuConn,1,1
  12. if not(rsMenu.eof and rsMenu.bof) then
  13. do while not rsMenu.eof
  14. Response.write "<td width=""16"" style=""background-image:url('Style/"&WebSiteStyle&"/T_Menu_C.gif');background-position:0px 0px""></td>"
  15. Response.write "<td width="""" align=""center"" valign=""bottom"">"
  16. if rsMenu("So_Type")="Sort" then
  17. Response.write "<a href=""List.asp?So="&rsMenu("So_ID")&""" class=""WSMenu"">"
  18. else
  19. Response.write "<a href="""&rsMenu("So_OtherLink")&""" class=""WSMenu"" target=""_blank"">"
  20. end if
  21. Response.write "<b>"&rsMenu("So_Name")&"</b></a></td>"
  22. rsMenu.movenext
  23. loop
  24. end if
  25. rsMenu.Close
  26. set rsMenu=Nothing
  27. %></tr>
  28.  </table></td>
  29.   <td width="16" style="background-image:url('Style/<%=WebSiteStyle%>/T_Menu_LR.gif');background-position:right"></td>
  30.  </tr>
  31. </table>
  32. </center>