view.php 2.1 KB

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