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

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../../FS_Inc/Const.asp" -->
  3. <!--#include file="lib/cls_main.asp" -->
  4. <!--#include file="../../FS_Inc/Function.asp"-->
  5. <!--#include file="../../FS_InterFace/MF_Function.asp" -->
  6. <!--#include file="../../FS_InterFace/NS_Function.asp" -->
  7. <!--#include file="../../FS_Inc/Func_page.asp" -->
  8. <%'Copyright (c) 2006 Foosun Inc. Code by Einstein.Liu
  9. Dim Conn,Constr_stat_Rs,sql_cmd,classid
  10. MF_Default_Conn
  11. MF_Session_TF
  12. if not MF_Check_Pop_TF("NS034") then Err_Show
  13. classid=NoSqlHack(request.QueryString("classid"))
  14. Set Constr_stat_Rs=server.CreateObject(G_FS_RS)
  15. sql_cmd="Select id,ClassID,ClassName,ParentID from FS_NS_NewsClass where parentID='0' and isConstr=1"
  16. Constr_stat_Rs.open sql_cmd,Conn,1,1
  17. %>
  18. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  19. <html xmlns="http://www.w3.org/1999/xhtml">
  20. <head>
  21. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  22. <title>无标题文档</title>
  23. <link href="../images/skin/Css_<%=Session("Admin_Style_Num")%>/<%=Session("Admin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  24. <script language="JavaScript" type="text/JavaScript" src="../../FS_Inc/PublicJS.js"></script>
  25. <script language="javascript" type="text/javascript" src="../../FS_Inc/prototype.js"></script>
  26. </head>
  27. <body>
  28. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  29. <tr>
  30. <td align="left" class="xingmu">投稿统计<a href="../../help?Lable=NS_News_Stat" target="_blank" style="cursor:help;'" class="sd"><img src="../Images/_help.gif" border="0"></a></td>
  31. </tr>
  32. <tr>
  33. <td class="hback">
  34.  <span id="span_constrClass_0">
  35.   <!---联动菜单开始--->
  36.   <%
  37.    Response.Write("<select name=""sel_constrClass"" name=""sel_constrClass"" onchange=""getChildClass(this,0)"">")
  38. Response.Write("<option value="""">所有分类</option>")
  39. Dim p_temp_index
  40.    while not Constr_stat_Rs.eof
  41. Response.Write("<option value="""&Constr_stat_Rs("id")&""">"&Constr_stat_Rs("ClassName")&"</option>")
  42. Constr_stat_Rs.movenext
  43. wend 
  44. Response.Write("</select>")
  45.   %>
  46. </span>
  47. <span id="span_constrClass_1"></span>
  48. <span id="span_constrClass_2"></span>
  49. <span id="span_constrClass_3"></span>
  50. <span id="span_constrClass_4"></span>
  51. <span id="span_constrClass_5"></span>
  52. <span id="span_constrClass_6"></span>
  53. <span id="span_constrClass_7"></span>
  54. </td>
  55. </tr>
  56. <tr class="hback">
  57. <td colspan="10"><iframe id="contrList" src="Constr_stat_view.asp" frameborder="0" width="100%" height="600"></iframe></td>
  58. </tr>
  59. </table>
  60. </body>
  61. </html>
  62. <script language="JavaScript">
  63. //转到相应的分类下面
  64. function getChildClass(Obj,index)
  65. {
  66. var classid=Obj.value;
  67. if(classid=="")
  68. {
  69. var elements=Obj.parentNode.parentNode.childNodes;
  70. for(var i=2;i<elements.length-3;i++)
  71. {
  72. elements[i].innerHTML=""
  73. /*
  74. if(current.firstChild!=null)
  75. current.removeChild(current.firstChild);*/
  76. }
  77. }
  78. if("<%=classid%>"!="")
  79. {
  80. classid="<%=classid%>";
  81. }
  82. var container="span_constrClass_"+(index+1);
  83. $(container).innerHTML="<img src='../../sys_images/small_loading.gif'/>";
  84. var AjaxObj=new Ajax.Updater(container,'getClass.asp?and='+Math.random(),{method:'get',parameters:"index="+index+"&classid="+classid});
  85. $('contrList').src="constr_stat_view.asp?classid="+classid
  86. }
  87. </script>
  88. <%
  89. Constr_stat_Rs.close
  90. Conn.close
  91. Set Conn=nothing
  92. Set Constr_stat_Rs=nothing
  93. %>