wdlist.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. $getstr=$_GET[str];
  5. $id=returnsx("i");
  6. while0("*","yjcode_pro where zt<>99 and id=".$id);if(!$row=mysql_fetch_array($res)){php_toheader("../");}
  7. ?>
  8. <html>
  9. <head>
  10. <meta http-equiv="x-ua-compatible" content="ie=7" />
  11. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  12. <title><?=$row[tit]?>相关问题 - <?=webname?></title>
  13. <? include("../tem/cssjs.html");?>
  14. <style type="text/css">
  15. body{background-color:#E8E6F0;}
  16. </style>
  17. </head>
  18. <body>
  19. <? include("../tem/top.html");?>
  20. <? include("../tem/top1.html");?>
  21. <div class="yjcode">
  22. <div class="dqwz">
  23. <ul class="u1">
  24. <li class="l1">
  25. 当前位置:<a href="<?=weburl?>">首页</a> > <a href="search_j<?=$row[ty1id]?>v.html"><?=returntype(1,$row[ty1id])?></a>
  26. <? if(0!=$row[ty2id]){?> > <a href="search_j<?=$row[ty1id]?>v_k<?=$row[ty2id]?>v.html"><?=returntype(2,$row[ty2id])?></a><? }?>
  27. <? if(0!=$row[ty3id]){?> > <a href="search_j<?=$row[ty1id]?>v_k<?=$row[ty2id]?>v_m<?=$row[ty3id]?>v.html"><?=returntype(3,$row[ty3id])?></a><? }?>
  28. > <?=$row[tit]?> 评价
  29. </li>
  30. </ul>
  31. </div>
  32. <div class="clear clear10"></div>
  33. <?
  34. if(returnsx("p")!=-1){$page=returnsx("p");}else{$page=1;}
  35. pagef(" where probh='".$row[bh]."' and (hftxt<>'')",20,"yjcode_wenda","order by sj desc");while($row=mysql_fetch_array($res)){
  36. $usertx="../upload/".$row[userid]."/user.jpg";
  37. if(!is_file($usertx)){$usertx="../user/img/nonetx.gif";}else{$usertx=$usertx."?id=".rnd_num(1000);}
  38. ?>
  39. <div class="allwdlist">
  40. <ul class="u1">
  41. <li class="l1"><span>问</span></li>
  42. <li class="l2"><?=$row[txt]?></li>
  43. <li class="l3"><?=returnjiami(returnnc($row[userid]))?> <?=$row[sj]?></li>
  44. </ul>
  45. <? if(!empty($row[hftxt])){?>
  46. <ul class="u2">
  47. <li class="l1"><span>答</span></li>
  48. <li class="l2"><?=$row[hftxt]?></li>
  49. <li class="l3">商家 <?=$row[hfsj]?></li>
  50. </ul>
  51. <? }?>
  52. </div>
  53. <? }?>
  54. <div class="npa">
  55. <?
  56. $nowurl="wdlist";
  57. $nowwd="";
  58. require("../tem/page.html");
  59. ?>
  60. </div>
  61. </div>
  62. <? include("../tem/bottom.html");?>
  63. </body>
  64. </html>