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

数据库编程

开发平台:

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. <!--#include file="../../FS_Inc/Func_page.asp" -->
  6. <!--#include file="../lib/strlib.asp" -->
  7. <!--#include file="../lib/UserCheck.asp" -->
  8. <!--Copyright (c) 2006 Foosun Inc. Code by Einstein.liu-->
  9. <html xmlns="http://www.w3.org/1999/xhtml">
  10. <title>User Manage Center-网站内容管理系统</title>
  11. <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  12. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  13. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  14. <link href="../images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  15. <head>
  16. <script language="javascript" src="../../FS_Inc/CheckJs.js"></script>
  17. <script language="javascript" src="../../FS_Inc/prototype.js"></script>
  18. <script language="javascript" src="../../FS_Inc/PublicJS.js"></script>
  19. </head>
  20. <body>
  21. <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  22.   <tr>
  23.     <td><!--#include file="../top.asp" -->
  24.     </td>
  25.   </tr>
  26. </table>
  27. <table width="98%" height="135" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  28.   <tr class="back">
  29.     <td   colspan="2" class="xingmu" height="26"><!--#include file="../Top_navi.asp" -->
  30.     </td>
  31.   </tr>
  32.   <tr class="back">
  33.     <td width="18%" valign="top" class="hback"><div align="left">
  34.         <!--#include file="../menu.asp" -->
  35.       </div></td>
  36.     <td width="82%" valign="top" class="hback">
  37. <table width="100%" height="25" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  38.       <tr>
  39.         <td class="xingmu" colspan="6">稿件管理</td>
  40.       </tr>
  41.   <tr height="25">
  42. <td class="hback" align="center">
  43. <div id="myclass1">
  44. <select name="sel_myclass_1" onChange="getMyChildClass(this,1)">
  45. <option value="">所有专栏</option>
  46. <%
  47. Dim myClassRs
  48. Set myClassRs=User_Conn.execute("select ClassID,ClassCName,UserNumber from FS_ME_InfoClass where UserNumber='"&session("FS_UserNumber")&"' and parentid=0"&vbcrlf)
  49. while not myClassRs.eof
  50. Response.Write("<option value='"&myClassRs("classid")&"'>"&myClassRs("ClassCName")&"</option>"&vbcrlf)
  51. myClassRs.movenext
  52. wend
  53. myClassRs.close
  54. set myClassRs=nothing
  55. %>
  56. </select>
  57. </div>
  58. </td>
  59. <td class="hback" align="center"><div id="myclass2"></div></td>
  60. <td class="hback" align="center"><div id="myclass3"></div></td>
  61. <td class="hback" align="center"><div id="myclass4"></div></td>
  62. <td class="hback" align="center"><div id="myclass5"></div></td>
  63. <td class="hback" align="center"><div id="myclass6"></div></td>
  64.   </tr>
  65.       <tr>
  66.         <td class="hback" width="18%" align="center">
  67. <div id="class1">
  68. <select name="sel_class_1" onChange="getChildClass(this,1)">
  69. <option value="">所有稿件</option>
  70. <%
  71. Dim classRs
  72. Set classRs=Conn.execute("select id,ClassName from FS_NS_NewsClass where isConstr=1 and ReycleTF=0 and ParentID='0'")
  73. while not classRs.eof
  74. Response.Write("<option value='"&classRs("id")&"'>"&classRs("className")&"</option>"&vbcrlf)
  75. classRs.movenext
  76. wend
  77. %>
  78. </select>
  79. </div>
  80. </td>
  81. <td class="hback" width="18%" align="center"><div id="class2"></div></td>
  82. <td class="hback" width="18%" align="center"><div id="class3"></div></td>
  83. <td class="hback" width="18%" align="center"><div id="class4"></div></td>
  84. <td class="hback" width="18%" align="center"><div id="class5"></div></td>
  85. <td class="hback" width="12%" align="center">已审核<input type="checkbox" name="audit" value="1" onClick="audited(this)"></td>
  86.       </tr>
  87.       <tr>
  88.         <td class="hback" align="center" colspan="6"><iframe id="contrListFrame" src="contrList.asp?" frameborder="0" width="100%" height="500"></iframe></td>
  89.       </tr>
  90.     </table>
  91. </td>
  92.   </tr>
  93.   <tr class="back">
  94.     <td height="20"  colspan="2" class="xingmu"><div align="left">
  95.         <!--#include file="../Copyright.asp" -->
  96.       </div></td>
  97.   </tr>
  98. </table>
  99. <input type="hidden" name="hd_classid" value=""/>
  100. <input type="hidden" name="hd_audit" value=""/>
  101. <input type="hidden" name="hd_myclassid" value=""/>
  102. </body>
  103. </html>
  104. <%
  105. Set Fs_User = Nothing
  106. Set User_Conn=nothing
  107. Set Conn=nothing
  108. %>
  109. <script language="javascript">
  110. <!--
  111. function audited(Obj)
  112. {
  113. if(Obj.checked)
  114. {
  115. $('contrListFrame').src="contrList.asp?audit=1&classid="+$('hd_classid').value+"&myclass="+$('hd_myclassid').value
  116. }
  117. else
  118. {
  119. $('contrListFrame').src="contrList.asp?classid="+$('hd_classid').value+"&myclassid="+$('hd_myclassid').value
  120. }
  121. }
  122. function getChildClass(Obj,index)
  123. {
  124. var classid=Obj.value;
  125. if(classid=="class")return;
  126. if(classid=="")
  127. {
  128. var elements=Obj.parentNode.parentNode.parentNode.childNodes;
  129. for(var i=1;i<elements.length-1;i++)
  130. {
  131. var current=elements[i].firstChild;
  132. if(current.firstChild!=null)
  133. current.removeChild(current.firstChild)
  134. }
  135. }
  136. var container="class"+(index+1);
  137. $(container).innerHTML="<img src='../../sys_images/small_loading.gif'/>";
  138. var AjaxObj=new Ajax.Updater(container,'getClass.asp?and='+Math.random(),{method:'get',parameters:"index="+index+"&classid="+classid});
  139. $('contrListFrame').src="contrList.asp?audit="+$('hd_audit').value+"&classid="+classid+"&myclassid="+$('hd_myclassid').value;
  140. }
  141. //获得专栏子栏目
  142. function getMyChildClass(Obj,index)
  143. {
  144. var myclassid=Obj.value;
  145. if(myclassid=="myclass")return;
  146. if(myclassid=="")
  147. {
  148. var elements=Obj.parentNode.parentNode.parentNode.childNodes;
  149. for(var i=1;i<elements.length;i++)
  150. {
  151. var current=elements[i].firstChild;
  152. if(current.firstChild!=null)
  153. current.removeChild(current.firstChild);
  154. }
  155. }
  156. var container="myclass"+(index+1);
  157. $(container).innerHTML="<img src='../../sys_images/small_loading.gif'/>";
  158. var AjaxObj=new Ajax.Updater(container,'getMyClass.asp?and='+Math.random(),{method:'get',parameters:"index="+index+"&classid="+myclassid});
  159. $('contrListFrame').src="contrList.asp?audit="+$('hd_audit').value+"&classid="+$('hd_classid').value+"&myclassid="+myclassid;
  160. }
  161. -->
  162. </script>
  163. <!-- Powered by: FoosunCMS4.0系列,Company:Foosun Inc. -->