serverlist.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. $sj=date("Y-m-d H:i:s");
  6. $sqluser="select * from yjcode_user where uid='".$_SESSION[SHOPUSER]."' and shopzt=2";mysql_query("SET NAMES 'GBK'");$resuser=mysql_query($sqluser);
  7. if(!$rowuser=mysql_fetch_array($resuser)){php_toheader("openshop3.php");}
  8. $ses=" where zt<>99 and userid=".$rowuser[id];
  9. if($_GET[zt]=="1"){$ses=$ses." and zt=1";}
  10. elseif($_GET[zt]=="2"){$ses=$ses." and zt=2";}
  11. elseif($_GET[zt]=="0"){$ses=$ses." and zt=0";}
  12. if($_GET[t1v]!=""){$ses=$ses." and tit like '%".$_GET[t1v]."%'";}
  13. $t2v=$_GET[t2v];if(is_numeric($t2v)){$ses=$ses." and id=".$t2v;}
  14. $t3v=$_GET[t3v];if(is_numeric($t3v)){$ses=$ses." and money1>=".$t3v."";}
  15. $t4v=$_GET[t4v];if(is_numeric($t4v)){$ses=$ses." and money1<=".$t4v."";}
  16. $t5v=$_GET[t5v];if(is_numeric($t5v)){$ses=$ses." and xsnum>=".$t5v."";}
  17. $t6v=$_GET[t6v];if(is_numeric($t6v)){$ses=$ses." and xsnum<=".$t6v."";}
  18. if($_GET[sd1v]!=""){$ses=$ses." and ty1id=".$_GET[sd1v]."";}
  19. if($_GET[ifxj]=="1"){$ses=$ses." and ifxj=1";$ncapv=3;}
  20. if($_GET[page]!=""){$page=$_GET[page];}else{$page=1;}
  21. ?>
  22. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  23. <html xmlns="http://www.w3.org/1999/xhtml">
  24. <head>
  25. <meta http-equiv="x-ua-compatible" content="ie=7" />
  26. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  27. <title>用户管理面板 - <?=webname?></title>
  28. <? include("cssjs.html");?>
  29. <link href="css/sell.css" rel="stylesheet" type="text/css" />
  30. <script language="javascript">
  31. function psel(){
  32. str="t1v="+document.getElementById("t1").value;
  33. str=str+"&t2v="+document.getElementById("t2").value;
  34. str=str+"&t3v="+document.getElementById("t3").value;
  35. str=str+"&t4v="+document.getElementById("t4").value;
  36. str=str+"&t5v="+document.getElementById("t5").value;
  37. str=str+"&t6v="+document.getElementById("t6").value;
  38. str=str+"&sd1v="+document.getElementById("sd1").value;
  39. location.href="serverlist.php?"+str;
  40. }
  41. </script>
  42. </head>
  43. <body>
  44. <? include("../tem/top.html");?>
  45. <? include("top.php");?>
  46. <div class="yjcode">
  47. <? include("left.php");?>
  48. <!--RB-->
  49. <div class="userright">
  50. <ul class="wz">
  51. <li class="l1 l2"><a href="serverlist.php">服务列表</a></li>
  52. </ul>
  53. <!--搜索B-->
  54. <div class="prosel">
  55. <ul class="u1">
  56. <li class="l1">服务名称:</li>
  57. <li class="l2"><input type="text" value="<?=$_GET[t1v]?>" id="t1" class="inp" style="width:194px;" /></li>
  58. <li class="l1">服务ID:</li>
  59. <li class="l2"><input type="text" value="<?=$_GET[t2v]?>" id="t2" class="inp" style="width:194px;"/></li>
  60. <li class="l1">服务类目:</li>
  61. <li class="l2">
  62. <select id="sd1"class="inp" >
  63. <option value="">不限</option>
  64. <? while1("*","yjcode_servertype where admin=1 and zt=0 order by xh asc");while($row1=mysql_fetch_array($res1)){?>
  65. <option value="<?=$row1[id]?>"<? if($row1[id]==$_GET[sd1v]){?> selected="selected"<? }?>><?=$row1[name1]?></option>
  66. <? }?>
  67. </select>
  68. </li>
  69. <li class="l1">价格:</li>
  70. <li class="l2"><input type="text" class="inp" value="<?=$_GET[t3v]?>" style="width:80px;" id="t3" /><span class="fd">到</span><input type="text" class="inp" value="<?=$_GET[t4v]?>" style="width:80px;" id="t4"/></li>
  71. <li class="l1">总销量:</li>
  72. <li class="l2"><input type="text" class="inp" value="<?=$_GET[t5v]?>" style="width:80px;" id="t5"/><span class="fd">到</span><input type="text" class="inp" value="<?=$_GET[t6v]?>" style="width:80px;" id="t6"/></li>
  73. <li class="ltj"><input type="button" onclick="psel()" class="bt1" value="搜索" /> <input type="button" onclick="gourl('productlist.php')" class="bt2" value="重置" /></li>
  74. </ul>
  75. </div>
  76. <!--搜索E-->
  77. <!--白B-->
  78. <div class="rkuang">
  79. <ul class="procz">
  80. <li class="l1"><label><input name="C2" type="checkbox" onclick="xuan()" /> 全选</label></li>
  81. <li class="l2">
  82. <a href="javascript:void(0);" onclick="NcheckDEL(1,'yjcode_server')" class="a1">批量上/下架</a>
  83. <a href="javascript:void(0);" onclick="NcheckDEL(19,'yjcode_server')" class="a1">删除选中</a>
  84. <a href="javascript:void(0);" onclick="NcheckDEL(18,'yjcode_server')" class="a1">更新服务</a>
  85. <span class="fd">说明:更新一个服务将消耗<strong class="feng"><?=$rowcontrol[sxjf]?></strong>积分,您剩余<strong class="blue"><?=$rowuser[jf]?></strong>积分 【<a href="jfbank.php">兑换积分</a>】</span>
  86. </li>
  87. <li class="l3"><a href="serverlx.php">+添加新服务</a></li>
  88. </ul>
  89. <ul class="serveru1">
  90. <li class="l1">服务信息(共找到<?=returncount("yjcode_server".$ses)?>个)</li>
  91. <li class="l2">售价(元)</li>
  92. <li class="l3">关注</li>
  93. <li class="l4">销量</li>
  94. <li class="l5">最近更新</li>
  95. <li class="l6">操作</li>
  96. </ul>
  97. <?
  98. pagef($ses,10,"yjcode_server","order by lastsj desc");while($row=mysql_fetch_array($res)){
  99. $au1="server.php?bh=".$row[bh];
  100. $au2="../serve/view".$row[id].".html";
  101. if(0==$row[ifxj]){$xjv="&nbsp;";}else{$xjv="<span class='red'>已下架</span>";}
  102. ?>
  103. <ul class="serveru2">
  104. <li class="l1"><input name="C1" type="checkbox" value="<?=$row[bh]?>" /></li>
  105. <li class="l2">
  106. 服务编码:<?=$row[bh]?>&nbsp;&nbsp;&nbsp;&nbsp;
  107. 所属类目:<?=returnservertype(1,$row[ty1id])." - ".returnservertype(2,$row[ty2id])?>
  108. </li>
  109. <li class="l3"><?=$xjv?></li>
  110. <li class="l4">
  111. <a href="<?=$au2?>" target="_blank"><img border="0" src="<?=returntp("bh='".$row[bh]."' order by xh asc","-1")?>" onerror="this.src='img/none60x60.gif'" /></a>
  112. </li>
  113. <li class="l5"><a href="<?=$au2?>" target="_blank" class="a1"><?=returntitdian($row["tit"],75)?></a><br><?=returnztv($row[zt],$row[ztsm])?></li>
  114. <li class="l6"><strong class="feng"><?=$row[money1]?>元</strong></li>
  115. <li class="l7"><?=$row[djl]?></li>
  116. <li class="l8"><?=$row[xsnum]?></li>
  117. <li class="l9"><?=$row[lastsj]?></li>
  118. <li class="l10">
  119. <a href="<?=$au1?>" class="a1">修改</a>
  120. <a href="<?=$au2?>" target="_blank" class="a2">预览</a>
  121. </li>
  122. </ul>
  123. <? }?>
  124. <?
  125. $nowurl="serverlist.php";
  126. $nowwd="zt=".$_GET[zt]."&t1v=".$_GET[t1v]."&t2v=".$_GET[t2v]."&t3v=".$_GET[t3v]."&t4v=".$_GET[t4v]."&t5v=".$_GET[t5v]."&t6v=".$_GET[t6v]."&sd1v=".$_GET[sd1]."&ifxj=".$_GET[ifxj];
  127. include("page.php");
  128. ?>
  129. <div class="clear clear15"></div>
  130. </div>
  131. <!--白E-->
  132. </div>
  133. <!--RE-->
  134. </div>
  135. <div class="clear clear15"></div>
  136. <? include("../tem/bottom.html");?>
  137. </body>
  138. </html>