ShowClassNav.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../class/connect.php");
  4. include("../class/db_sql.php");
  5. include("../class/functions.php");
  6. $link=db_connect();
  7. $empire=new mysqlquery();
  8. //验证用户
  9. $lur=is_login();
  10. $logininid=$lur['userid'];
  11. $loginin=$lur['username'];
  12. $loginrnd=$lur['rnd'];
  13. $loginlevel=$lur['groupid'];
  14. $loginadminstyleid=$lur['adminstyleid'];
  15. //ehash
  16. $ecms_hashur=hReturnEcmsHashStrAll();
  17. $ecms=RepPostStr($_GET['ecms'],1);
  18. $classid=RepPostStr($_GET['classid'],1);
  19. $fcjsfile='../data/fc/cmsclass.js';
  20. $do_class=GetFcfiletext($fcjsfile);
  21. $do_class=str_replace("<option value='$classid'","<option value='$classid' selected",$do_class);
  22. //增加信息页导航
  23. if($ecms==1)
  24. {
  25. //$show="增加信息:<select name=\\\"select\\\" onchange=\\\"if(this.options[this.selectedIndex].value!=0){self.location.href='AddNews.php?".$ecms_hashur['ehref']."&bclassid=&classid='+this.options[this.selectedIndex].value+'&enews=AddNews';}\\\"><option value='0'>选择增加信息的栏目</option>".$do_class."</select>";
  26. //echo"<script>parent.document.getElementById(\"showclassnav\").innerHTML=\"".$show."\";</script>";
  27. $show="<select name='copyclassid[]' id='copyclassid[]' size='12' style='width:320' multiple>".$do_class."</select>";
  28. echo"<script>parent.document.getElementById(\"copyinfoshowclassnav\").innerHTML=\"".$show."\";</script>";
  29. }
  30. //所有信息列表
  31. elseif($ecms==2)
  32. {
  33. $show="<select name='addclassid' id='addclassid'><option value='0'>选择增加信息的栏目</option>".$do_class."</select>";
  34. echo"<script>parent.document.getElementById(\"showaddclassnav\").innerHTML=\"".$show."\";";
  35. $show="<select name='classid' id='classid'><option value='0'>所有栏目</option>".$do_class."</select>";
  36. echo"parent.document.getElementById(\"searchclassnav\").innerHTML=\"".$show."\";";
  37. $show="<select name='to_classid' id='to_classid'><option value='0'>选择要移动/复制的目标栏目</option>".$do_class."</select>";
  38. echo"parent.document.getElementById(\"moveclassnav\").innerHTML=\"".$show."\";</script>";
  39. }
  40. //信息列表
  41. elseif($ecms==3)
  42. {
  43. $show="<select name='to_classid' id='to_classid'><option value='0'>选择要移动/复制的目标栏目</option>".$do_class."</select>";
  44. echo"<script>parent.document.getElementById(\"moveclassnav\").innerHTML=\"".$show."\";</script>";
  45. }
  46. //插入附件
  47. elseif($ecms==4)
  48. {
  49. $show="<select name='searchclassid' id='searchclassid'><option value='all'>所有栏目</option>".$do_class."</select>";
  50. echo"<script>parent.document.getElementById(\"fileclassnav\").innerHTML=\"".$show."\";</script>";
  51. }
  52. //管理附件
  53. elseif($ecms==5)
  54. {
  55. $show="<select name='classid' id='classid'><option value='0'>所有栏目</option>".$do_class."</select>";
  56. echo"<script>parent.document.getElementById(\"listfileclassnav\").innerHTML=\"".$show."\";</script>";
  57. }
  58. //管理评论
  59. elseif($ecms==6)
  60. {
  61. $show="<select name='classid' id='classid'><option value='0'>所有栏目</option>".$do_class."</select>";
  62. echo"<script>parent.document.getElementById(\"listplclassnav\").innerHTML=\"".$show."\";</script>";
  63. }
  64. //选择关联字段
  65. elseif($ecms==7)
  66. {
  67. $show="<select name='addclassid' id='addclassid'><option value='0'>选择增加信息的栏目</option>".$do_class."</select>";
  68. echo"<script>parent.document.getElementById(\"showaddclassnav\").innerHTML=\"".$show."\";</script>";
  69. }
  70. db_close();
  71. $empire=null;
  72. ?>