propjlist.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="x-ua-compatible" content="ie=7" />
  10. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  11. <title>用户管理面板 - <?=webname?></title>
  12. <? include("cssjs.html");?>
  13. <link href="css/sell.css" rel="stylesheet" type="text/css" />
  14. <script language="javascript">
  15. function ser(){
  16. location.href="propjlist.php?&st1="+document.getElementById("st1").value+"&ifhf="+document.getElementById("sd1").value;
  17. }
  18. function hfonc(x){
  19. layer.open({
  20. type: 2,
  21. shadeClose: true,
  22. area: ['622px', '215px'],
  23. title:["评价回复","text-align:left"],
  24. skin: 'layui-layer-rim', //加上边框
  25. content:['propjhf.php?id='+x, 'no']
  26. });
  27. }
  28. </script>
  29. </head>
  30. <body>
  31. <? include("../tem/top.html");?>
  32. <? include("top.php");?>
  33. <div class="yjcode">
  34. <? include("left.php");?>
  35. <!--RB-->
  36. <div class="userright">
  37. <ul class="wz">
  38. <li class="l1 l2"><a href="propjlist.php">商品评价</a></li>
  39. </ul>
  40. <!--白B-->
  41. <div class="rkuang">
  42. <div class="ksedi">
  43. <div class="d1">
  44. <a href="propjlist.php?ifhf=no" class="a1">查看所有未回复评价(共<?=returncount("yjcode_propj where selluserid=".$luserid." and (hf='' or hf is null)")?>个)</a>
  45. </div>
  46. <div class="d2">
  47. <input type="button" onclick="ser()" value="查询" class="btn" />
  48. <select id="sd1">
  49. <option value="">全部</option>
  50. <option value="no"<? if($_GET[ifhf]=="no"){?> selected="selected"<? }?>>未回复</option>
  51. <option value="yes"<? if($_GET[ifhf]=="yes"){?> selected="selected"<? }?>>已回复</option>
  52. </select>
  53. <span class="s1">回复情况:</span>
  54. <input type="text" id="st1" value="<?=$_GET[st1]?>" class="inp1" />
  55. <span class="s1">回复内容:</span>
  56. </div>
  57. </div>
  58. <?
  59. $ses=" where selluserid=".$luserid;
  60. if($_GET[ifhf]=="no"){$ses=$ses." and (hf='' or hf is null)";}
  61. if($_GET[ifhf]=="yes"){$ses=$ses." and hf<>''";}
  62. if($_GET[st1]!=""){$ses=$ses." and txt like '%".$_GET[st1]."%'";}
  63. $page=$_GET["page"];if($page==""){$page=1;}else{$page=intval($_GET["page"]);}
  64. pagef($ses,10,"yjcode_propj","order by sj desc");while($row=mysql_fetch_array($res)){
  65. while1("*","yjcode_pro where bh='".$row[probh]."'");$row1=mysql_fetch_array($res1);
  66. ?>
  67. <ul class="propjlist">
  68. <li class="l1">商品信息:</li>
  69. <li class="l2"><strong><a href="../product/view<?=$row1[id]?>.html" target="_blank"><?=$row1[tit]?></a></strong></li>
  70. <li class="l1">评价会员:</li>
  71. <li class="l3"><?=returnnc($row[userid])?></li>
  72. <li class="l1">评价类型:</li>
  73. <li class="l3">好评</li>
  74. <li class="l1">评价时间:</li>
  75. <li class="l3"><?=$row[sj]?></li>
  76. <li class="l1">描述评分:</li>
  77. <li class="l3"><?=$row[pf1]?>分</li>
  78. <li class="l1">发货评分:</li>
  79. <li class="l3"><?=$row[pf2]?>分</li>
  80. <li class="l1">售后评分:</li>
  81. <li class="l3"><?=$row[pf3]?>分</li>
  82. </ul>
  83. <ul class="propjlist1">
  84. <li class="l1">评价内容:</li>
  85. <li class="l2">
  86. <?=$row[txt]?><br>
  87. <?
  88. if(1==$row[iftp]){
  89. while2("*","yjcode_tp where bh='".$row[orderbh]."' order by xh asc");while($row2=mysql_fetch_array($res2)){$tp="../".str_replace(".","-1.",$row2[tp]);
  90. ?>
  91. <a href="../<?=$row2[tp]?>" target="_blank"><img src="<?=$tp?>" style="margin:5px 0 0 0;" width="50" height="50" /></a>&nbsp;&nbsp;
  92. <? }}?>
  93. </li>
  94. </ul>
  95. <ul class="propjlist1">
  96. <li class="l1">回复内容:</li>
  97. <li class="l2" style="cursor:pointer;" onclick="hfonc(<?=$row[id]?>)"><? if(empty($row[hf])){?><span class="hui">【暂未回复,点击进行回复】</span><? }else{?><span class="green">回复时间:<?=$row[hfsj]?><br>回复内容:<?=$row[hf]?></span><? }?></li>
  98. </ul>
  99. <? }?>
  100. <div class="npa">
  101. <?
  102. $nowurl="propjlist.php";
  103. $nowwd="ifhf=".$_GET[ifhf];
  104. require("page.php");
  105. ?>
  106. </div>
  107. <div class="clear clear15"></div>
  108. </div>
  109. <!--白E-->
  110. </div>
  111. <!--RE-->
  112. </div>
  113. <div class="clear clear15"></div>
  114. <? include("../tem/bottom.html");?>
  115. </body>
  116. </html>