pjlist.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. include("../config/xy.php");
  5. $sj=date("Y-m-d H:i:s");
  6. $getstr=$_GET[str];
  7. $uid=returnsx("i");
  8. $sqluser="select * from yjcode_user where zt=1 and shopzt=2 and id=".$uid;mysql_query("SET NAMES 'GBK'");$resuser=mysql_query($sqluser);
  9. if(!$rowuser=mysql_fetch_array($resuser)){php_toheader("./");}
  10. $ses=" where selluserid=".$uid;
  11. if(returnsx("p")!=-1){$page=returnsx("p");}else{$page=1;}
  12. ?>
  13. <html>
  14. <head>
  15. <meta http-equiv="x-ua-compatible" content="ie=7" />
  16. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  17. <title><?=$rowuser[shopname]?>的网上店铺 - <?=webname?></title>
  18. <? include("../tem/cssjs.html");?>
  19. <link href="shop.css" rel="stylesheet" type="text/css" />
  20. </head>
  21. <body>
  22. <? include("top.php");?>
  23. <script language="javascript">
  24. document.getElementById("shopmenu1").className="a1";
  25. </script>
  26. <div class="bfb bfbshop">
  27. <div class="yjcode">
  28. <!--左B-->
  29. <? include("left.php");?>
  30. <!--左E-->
  31. <!--右B-->
  32. <div class="iright">
  33. <div class="rcap">
  34. <div class="d1">客户评价</div>
  35. </div>
  36. <?
  37. $a1=returncount("yjcode_propj where selluserid=".$uid." and pf1=1")+returncount("yjcode_propj where selluserid=".$uid." and pf2=1")+returncount("yjcode_propj where selluserid=".$uid." and pf3=1");
  38. $a2=returncount("yjcode_propj where selluserid=".$uid." and pf1=2")+returncount("yjcode_propj where selluserid=".$uid." and pf2=2")+returncount("yjcode_propj where selluserid=".$uid." and pf3=2");
  39. $a3=returncount("yjcode_propj where selluserid=".$uid." and pf1=3")+returncount("yjcode_propj where selluserid=".$uid." and pf2=3")+returncount("yjcode_propj where selluserid=".$uid." and pf3=3");
  40. $a4=returncount("yjcode_propj where selluserid=".$uid." and pf1=4")+returncount("yjcode_propj where selluserid=".$uid." and pf2=4")+returncount("yjcode_propj where selluserid=".$uid." and pf3=4");
  41. $a5=returncount("yjcode_propj where selluserid=".$uid." and pf1=5")+returncount("yjcode_propj where selluserid=".$uid." and pf2=5")+returncount("yjcode_propj where selluserid=".$uid." and pf3=5");
  42. $al=$a1+$a2+$a3+$a4+$a5;
  43. if($al==0){$a1v=0;$a2v=0;$a3v=0;$a4v=0;$a5v=0;}
  44. else{
  45. $a1v=sprintf("%.1f",$a1/$al*100);
  46. $a2v=sprintf("%.1f",$a2/$al*100);
  47. $a3v=sprintf("%.1f",$a3/$al*100);
  48. $a4v=sprintf("%.1f",$a4/$al*100);
  49. $a5v=sprintf("%.1f",$a5/$al*100);
  50. }
  51. $hp=returncount("yjcode_propj where selluserid=".$uid." and pjlx=1");
  52. $pa=returncount("yjcode_propj where selluserid=".$uid."");
  53. if($pa==0){$av="100";}else{$av=sprintf("%.2f",$hp/$pa*100);}
  54. ?>
  55. <ul class="pjcap">
  56. <li class="l1"><span>好评率</span><strong><?=$av?>%</strong></li>
  57. <li class="l1"><span>综合得分</span><strong><?=round(($mspf+$fhpf+$shpf)/3,2)?></strong></li>
  58. <li class="l2">描述相符:<span><?=$mspf?></span>分<br>发货速度:<span><?=$fhpf?></span>分<br>服务态度:<span><?=$shpf?></span>分</li>
  59. </ul>
  60. <div class="pjcap1">
  61. <ul class="u1">
  62. <li class="l1"><span class="s0"><img src="<?=weburl?>shop/img/pjf1.gif" /></span><span class="s1"><strong>1</strong>分</span><span class="s2" style="width:<?=returnjgdw($a1v*1.2,"",1)?>px"></span><span class="s3"><?=$a1v?>%</span></li>
  63. <li class="l1"><span class="s0"><img src="<?=weburl?>shop/img/pjf2.gif" /></span><span class="s1"><strong>2</strong>分</span><span class="s2" style="width:<?=returnjgdw($a2v*1.2,"",1)?>px"></span><span class="s3"><?=$a2v?>%</span></li>
  64. <li class="l1"><span class="s0"><img src="<?=weburl?>shop/img/pjf3.gif" /></span><span class="s1"><strong>3</strong>分</span><span class="s2" style="width:<?=returnjgdw($a3v*1.2,"",1)?>px"></span><span class="s3"><?=$a3v?>%</span></li>
  65. <li class="l1"><span class="s0"><img src="<?=weburl?>shop/img/pjf4.gif" /></span><span class="s1"><strong>4</strong>分</span><span class="s2" style="width:<?=returnjgdw($a4v*1.2,"",1)?>px"></span><span class="s3"><?=$a4v?>%</span></li>
  66. <li class="l1"><span class="s0"><img src="<?=weburl?>shop/img/pjf5.gif" /></span><span class="s1"><strong>5</strong>分</span><span class="s2" style="width:<?=returnjgdw($a5v*1.2,"",1)?>px"></span><span class="s3"><?=$a5v?>%</span></li>
  67. </ul>
  68. </div>
  69. <?
  70. pagef($ses,20,"yjcode_propj","order by sj desc");while($row=mysql_fetch_array($res)){
  71. $usertx="../upload/".$row[userid]."/user.jpg";
  72. if(!is_file($usertx)){$usertx="../user/img/nonetx.gif";}else{$usertx=$usertx."?id=".rnd_num(1000);}
  73. $pjlx=returnjgdw($row[pjlx],"",1);
  74. if($pjlx==1){$pj="好评";}
  75. elseif($pjlx==2){$pj="一般";}
  76. elseif($pjlx==3){$pj="差评";}
  77. ?>
  78. <div class="pj pj<?=$pjlx?>">
  79. <ul class="u1"><li class="l1"><img src="../user/img/nonetx.gif" width="50" height="50" /></li><li class="l2"><?=returnjiami(returnnc($row[userid]))?></li></ul>
  80. <ul class="u2">
  81. <li class="l1">
  82. <?=strip_tags($row[txt])?><br>
  83. <?
  84. if(1==$row[iftp]){
  85. while2("*","yjcode_tp where bh='".$row1[orderbh]."' order by xh asc");while($row2=mysql_fetch_array($res2)){$tp="../".str_replace(".","-1.",$row2[tp]);
  86. ?>
  87. <a href="../<?=$row[tp]?>" target="_blank"><img src="<?=$tp?>" width="50" height="50" /></a>&nbsp;&nbsp;
  88. <? }}?>
  89. </li>
  90. <li class="l3"><?=$row[sj]?></li>
  91. </ul>
  92. <div class="d2"><span class="s<?=$pjlx?>"><?=$pj?></span></div>
  93. </div>
  94. <? }?>
  95. <div class="npa">
  96. <?
  97. $nowurl="pjlist";
  98. $nowwd="";
  99. require("../tem/page.html");
  100. ?>
  101. </div>
  102. </div>
  103. <!--右E-->
  104. </div>
  105. </div>
  106. <? include("../tem/bottom.html");?>
  107. </body>
  108. </html>