adlist.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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/ad.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. </head>
  18. <body>
  19. <? include("top.php");?>
  20. <script language="javascript">
  21. document.getElementById("menu5").className="a1";
  22. </script>
  23. <? if(!strstr($adminqx,",0,") && !strstr($adminqx,",0602,")){echo "<div class='noneqx'>无权限</div>";exit;}?>
  24. <div class="yjcode">
  25. <? $leftid=1;include("menu_ad.php");?>
  26. <div class="right">
  27. <!--begin-->
  28. <ul class="ksedi">
  29. <li class="l2">
  30. <a href="ad_lx.php?bh=<?=$_GET[bh]?>&sm=<?=urlencode($_GET[sm])?>&must=<?=$_GET[must]?>" class="a1">添加广告</a>
  31. <a href="javascript:checkDEL(8,'yjcode_ad')" class="a2">删除</a>
  32. </li>
  33. </ul>
  34. <ul class="adlistcap">
  35. <li class="l1"><input name="C2" type="checkbox" onclick="xuan()" /></li>
  36. <li class="l2">广告信息</li>
  37. <li class="l3">序号</li>
  38. <li class="l4">编辑时间</li>
  39. <li class="l5">操作</li>
  40. </ul>
  41. <?
  42. autoAD($_GET[bh]);
  43. while0("*","yjcode_ad where adbh='".$_GET[bh]."' and zt<>99 order by xh asc");while($row=mysql_fetch_array($res)){
  44. if($row[type1]=="图片"){$na=strgb2312($row[aurl],0,50);}elseif($row[type1]=="代码"){$na="代码广告";}elseif($row[type1]=="文字"){$na=$row[aurl];}
  45. $aurl="ad.php?bh=".$row[bh]."&sm=".urlencode($_GET[sm])."&must=".$_GET[must]."&action=update";
  46. if(0==$row[zt]){$ztv="<span class='blue'>展示中</span>";}elseif(1==$row[zt]){$ztv="<span class='feng'>队列中</span>";}
  47. ?>
  48. <ul class="adlist">
  49. <li class="l1"><input name="C1" type="checkbox" value="<?=$row[bh]?>" /></li>
  50. <li class="l2"><a href="<?=$aurl?>"><?=$row[tit]?></a></li>
  51. <li class="l3"><?=$row[xh]?></li>
  52. <li class="l4"><?=$row[sj]?></li>
  53. <li class="l5"><a href="<?=$aurl?>">编辑</a></li>
  54. </ul>
  55. <?
  56. }
  57. ?>
  58. <!--end-->
  59. </div>
  60. </div>
  61. <?php include("bottom.php");?>
  62. </body>
  63. </html>