VocationClass.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:2k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../FS_Inc/Const.asp" -->
  3. <!--#include file="../FS_InterFace/MF_Function.asp" -->
  4. <!--#include file="../FS_Inc/Function.asp" -->
  5. <%
  6. Dim Conn,User_Conn
  7. ConnDataBase
  8. User_ConnDataBase
  9. %>
  10. <html xmlns="http://www.w3.org/1999/xhtml">
  11. <head><title>测试文件</title>
  12. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  13. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  14. <meta name="keywords" content="风讯,风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  15. <link href="images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  16. <script language="javascript" src="class_liandong.js"></script>
  17. </head>
  18. <body>
  19. <form name="form1" method="post">
  20. <SELECT NAME="vclass1" ID="vclass1" style="width:120px">
  21.      <OPTION selected></OPTION>
  22.     </SELECT>
  23. <SELECT NAME="vclass2" ID="vclass2" style="width:120px">
  24. <OPTION selected></OPTION>
  25.     </SELECT>
  26. <SELECT NAME="vclass3" ID="vclass3" style="width:120px">
  27.      <OPTION selected></OPTION>
  28.     </SELECT>
  29. <SELECT NAME="vclass4" ID="vclass4" style="width:120px">
  30.      <OPTION selected></OPTION>
  31.     </SELECT>
  32. </form>
  33. </body>
  34. </html>
  35. <script language="javascript">
  36. //联动菜单---行业类别
  37. //数据格式 ID,父级ID,名称
  38. var array=new Array();
  39. <%dim sql,rs,i
  40.   sql="select VCID,ParentID,vClassName from FS_ME_VocationClass"
  41.   set rs=User_Conn.execute(sql)
  42.   i=0
  43.   do while not rs.eof
  44. %>
  45. array[<%=i%>]=new Array("<%=rs("VCID")%>","<%=rs("ParentID")%>","<%=rs("vClassName")%>"); 
  46. <%
  47. rs.movenext
  48. i=i+1
  49. loop
  50. rs.close
  51. %>
  52. var liandong=new CLASS_LIANDONG_YAO(array)
  53. liandong.firstSelectChange("0","vclass1");
  54. liandong.subSelectChange("vclass1","vclass2");
  55. liandong.subSelectChange("vclass2","vclass3");
  56. liandong.subSelectChange("vclass3","vclass4");
  57. </script>