ggview.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. while0("*","yjcode_gg where id=".$_GET[id]);if(!$row=mysql_fetch_array($res)){php_toheader("gglist.html");}
  5. checkdjl("c2",$row[id],"yjcode_gg");
  6. while1("*","yjcode_gg where sj>='".$row[sj]."' and id<>".$row[id]." and zt<>99 order by sj asc");
  7. if($row1=mysql_fetch_array($res1)){$pre="<a href='ggview".$row1[id].".html'>".$row1[tit]."</a>";}else{$pre="已是第一篇公告";}
  8. while1("*","yjcode_gg where sj<='".$row[sj]."' and id<>".$row[id]." and zt<>99 order by sj desc");
  9. if($row1=mysql_fetch_array($res1)){$nex="<a href='ggview".$row1[id].".html'>".$row1[tit]."</a>";}else{$nex="已是最后一篇公告";}
  10. ?>
  11. <html>
  12. <head>
  13. <meta http-equiv="x-ua-compatible" content="ie=7" />
  14. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  15. <meta name="keywords" content="<?=$row[wkey]?>">
  16. <meta name="description" content="<?=$row[wdes]?>">
  17. <title><?=$row[tit]?> - <?=webname?></title>
  18. <? include("../tem/cssjs.html");?>
  19. </head>
  20. <body>
  21. <? include("../tem/top.html");?>
  22. <? include("../tem/top1.html");?>
  23. <div class="yjcode">
  24. <? include("left.php");?>
  25. <!--开始-->
  26. <div class="helpright">
  27. <div class="wz">
  28. 您当前的位置:<a href="../">首页</a> <span>>></span>
  29. <a href="gglist.html">网站公告</a> <span>>></span>
  30. <?=$row[tit]?>
  31. </div>
  32. <h1 class="titcap fontyh"><a name="tit"><?=$row[tit]?></a></h1>
  33. <ul class="u1">
  34. <li class="l1">更新时间:<?=dateYMDHM($row[sj])?> 阅读次数:<?=$row[djl]?></li>
  35. <li class="l2" onMouseOver="objdis(1,'newm')" onMouseOut="objdis(0,'newm')">扫一扫,手机访问</li>
  36. </ul>
  37. <div id="newm" style="display:none;"><? $uw=weburl."help/ggview".$row[id].".html"; ?><img src="<?=weburl?>tem/getqr.php?u=<?=$uw?>&size=4" /></div>
  38. <div class="ntxt"><?=$row[txt]?></div>
  39. <div class="nxg">
  40. 上一篇:<?=$pre?><br>
  41. 下一篇:<?=$nex?>
  42. </div>
  43. </div>
  44. <!--结束-->
  45. </div>
  46. <? include("../tem/bottom.html");?>
  47. </body>
  48. </html>