pjlist.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. $getstr=$_GET[str];
  5. $id=returnsx("i");
  6. while0("*","yjcode_server where id=".$id);if(!$row=mysql_fetch_array($res)){php_toheader("../");}
  7. $serverbh=$row[bh];
  8. ?>
  9. <html>
  10. <head>
  11. <meta http-equiv="x-ua-compatible" content="ie=7" />
  12. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  13. <meta name="keywords" content="<?=$row[wkey]?>">
  14. <meta name="description" content="<?=$row[wdes]?>">
  15. <title><?=$row[tit]?>评价 - <?=webname?></title>
  16. <? include("../tem/cssjs.html");?>
  17. </head>
  18. <body>
  19. <? include("../tem/top.html");?>
  20. <? include("../tem/top1.html");?>
  21. <div class="yjcode">
  22. <div class="morepj">
  23. <?
  24. if(returnsx("p")!=-1){$page=returnsx("p");}else{$page=1;}
  25. pagef(" where serverbh='".$serverbh."'",30,"yjcode_serverpj","order by sj desc");while($row=mysql_fetch_array($res)){
  26. $usertx="../upload/".$row[userid]."/user.jpg";
  27. if(!is_file($usertx)){$usertx="../user/img/nonetx.gif";}else{$usertx=$usertx."?id=".rnd_num(1000);}
  28. ?>
  29. <div class="pj pj<?=$row[pjlx]?>">
  30. <ul class="u1"><li class="l1"><img src="<?=$usertx?>" width="50" height="50" /></li><li class="l2"><?=returnjiami(returnnc($row[userid]))?></li></ul>
  31. <ul class="u2">
  32. <li class="l1">
  33. <?=$row[txt]?><br>
  34. <? if(1==$row[ifvideo]){?>
  35. <a href="<?="../upload/".$row[userid]."/".$row[orderbh]."/video.mp4"?>" target="_blank"><img src="../img/video.jpg" width="50" height="50" /></a>&nbsp;&nbsp;
  36. <? }?>
  37. <?
  38. if(1==$row[iftp]){
  39. while2("*","yjcode_tp where bh='".$row[orderbh]."' order by xh asc");while($row2=mysql_fetch_array($res2)){$tp="../".str_replace(".","-1.",$row2[tp]);
  40. ?>
  41. <a href="../<?=$row2[tp]?>" target="_blank"><img src="<?=$tp?>" width="50" height="50" /></a>&nbsp;&nbsp;
  42. <? }}?>
  43. </li>
  44. <? if(!empty($row[hf])){?><li class="l2">卖家回复:<?=$row[hf]?></li><? }?>
  45. <li class="l3"><?=$row[sj]?></li>
  46. </ul>
  47. <div class="d2">
  48. <? if(1==$row[pjlx]){?><span class="s1">好评</span><? }?>
  49. <? if(2==$row[pjlx]){?><span class="s2">中评</span><? }?>
  50. <? if(3==$row[pjlx]){?><span class="s3">差评</span><? }?>
  51. </div>
  52. <div class="d3">
  53. <img src="../img/x1.png" class="img1" width="76" height="15" />
  54. <? $pf=round(($row[pf1]+$row[pf2]+$row[pf3])/3,2);?>
  55. <div class="pf" style="width:<?=$pf/5*76?>px;"><img src="../img/x2.png" title="<?=$pf?>分" width="76" height="15" /></div>
  56. </div>
  57. </div>
  58. <? }?>
  59. <div class="npa">
  60. <?
  61. $nowurl="pjlist";
  62. $nowwd="";
  63. require("../tem/page.html");
  64. ?>
  65. </div>
  66. </div>
  67. </div>
  68. <? include("../tem/bottom.html");?>
  69. </body>
  70. </html>