newstypelist.php 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. AdminSes_audit();
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="x-ua-compatible" content="ie=7" />
  10. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  11. <title><?=webname?>管理后台</title>
  12. <link href="css/basic.css" rel="stylesheet" type="text/css" />
  13. <link href="css/quanju.css" rel="stylesheet" type="text/css" />
  14. <script type="text/javascript" src="js/jquery.min.js"></script>
  15. <script language="javascript" src="js/basic.js"></script>
  16. <script language="javascript" src="js/layer.js"></script>
  17. <script language="javascript">
  18. function del(x){
  19. document.getElementById("chk"+x).checked=true;
  20. checkDEL(5,'yjcode_newstype')
  21. }
  22. </script>
  23. </head>
  24. <body>
  25. <? include("top.php");?>
  26. <script language="javascript">
  27. document.getElementById("menu1").className="a1";
  28. </script>
  29. <? if(!strstr($adminqx,",0,") && !strstr($adminqx,",0302,")){echo "<div class='noneqx'>无权限</div>";exit;}?>
  30. <div class="yjcode">
  31. <? $leftid=1;include("menu_quan.php");?>
  32. <div class="right">
  33. <div class="bqu1">
  34. <a class="a1" href="newstypelist.php">资讯分类</a>
  35. </div>
  36. <div class="rights">
  37. <strong>提示:</strong><br>
  38. 为了使网站的美观和实用性最佳,<span class="blue">我们推荐每个资讯分组能达到2级</span>。
  39. </div>
  40. <!--begin-->
  41. <ul class="ksedi">
  42. <li class="l2">
  43. <a href="newstype.php" class="a1">新增分类</a>
  44. <a href="javascript:checkDEL(5,'yjcode_newstype')" class="a2">删除</a>
  45. </li>
  46. </ul>
  47. <ul class="qjlistcap">
  48. <li class="l1"><input name="C2" type="checkbox" onclick="xuan()" /></li>
  49. <li class="l2">分类列表</li>
  50. <li class="l3">序号</li>
  51. <li class="l4">编辑时间</li>
  52. <li class="l5">操作</li>
  53. </ul>
  54. <?
  55. while1("*","yjcode_newstype where admin=1 order by xh asc");while($row1=mysql_fetch_array($res1)){
  56. $nu="newstype.php?action=update&id=".$row1[id];
  57. ?>
  58. <ul class="qjlist1">
  59. <li class="l1"><input name="C1" id="chk<?=$row1[id]?>" type="checkbox" value="<?=$row1[id]?>xcf0" /></li>
  60. <li class="l2"><a href="<?=$nu?>"><?=$row1[name1]?></a></li>
  61. <li class="l3"><?=$row1[xh]?></li>
  62. <li class="l4"><?=$row1[sj]?></li>
  63. <li class="l5">
  64. <a href="javascript:void(0);" onclick="del(<?=$row1[id]?>)">删除</a><span></span>
  65. <a class="add" href="newstype1.php?ty1id=<?=$row1[id]?>">添加子类</a><span></span>
  66. <a class="edi" href="<?=$nu?>">修改信息</a>
  67. </li>
  68. </ul>
  69. <?
  70. while2("*","yjcode_newstype where admin=2 and name1='".$row1[name1]."' order by xh asc");while($row2=mysql_fetch_array($res2)){
  71. $nu="newstype1.php?action=update&id=".$row2[id]."&ty1id=".$row1[id];
  72. ?>
  73. <ul class="qjlist2">
  74. <li class="l1"><input name="C1" id="chk<?=$row2[id]?>" type="checkbox" value="xcf<?=$row2[id]?>" /></li>
  75. <li class="l2">- <a href="<?=$nu?>"><?=$row2[name2]?></a></li>
  76. <li class="l3"><?=$row2[xh]?></li>
  77. <li class="l4"><?=$row2[sj]?></li>
  78. <li class="l5">
  79. <a href="javascript:void(0);" onclick="del(<?=$row2[id]?>)">删除</a><span></span>
  80. <a href="<?=$nu?>">修改信息</a>
  81. </li>
  82. </ul>
  83. <? }}?>
  84. <!--end-->
  85. </div>
  86. </div>
  87. <?php include("bottom.php");?>
  88. </body>
  89. </html>