include("../config/conn.php"); include("../config/function.php"); sesCheck(); $sj=date("Y-m-d H:i:s"); $sqluser="select * from yjcode_user where uid='".$_SESSION[SHOPUSER]."' and shopzt=2";mysql_query("SET NAMES 'GBK'");$resuser=mysql_query($sqluser); if(!$rowuser=mysql_fetch_array($resuser)){php_toheader("openshop3.php");} $ses=" where zt<>99 and userid=".$rowuser[id]; if($_GET[zt]=="1"){$ses=$ses." and zt=1";} elseif($_GET[zt]=="2"){$ses=$ses." and zt=2";} elseif($_GET[zt]=="0"){$ses=$ses." and zt=0";} if($_GET[t1v]!=""){$ses=$ses." and tit like '%".$_GET[t1v]."%'";} $t2v=$_GET[t2v];if(is_numeric($t2v)){$ses=$ses." and id=".$t2v;} $t3v=$_GET[t3v];if(is_numeric($t3v)){$ses=$ses." and money1>=".$t3v."";} $t4v=$_GET[t4v];if(is_numeric($t4v)){$ses=$ses." and money1<=".$t4v."";} $t5v=$_GET[t5v];if(is_numeric($t5v)){$ses=$ses." and xsnum>=".$t5v."";} $t6v=$_GET[t6v];if(is_numeric($t6v)){$ses=$ses." and xsnum<=".$t6v."";} if($_GET[sd1v]!=""){$ses=$ses." and ty1id=".$_GET[sd1v]."";} if($_GET[ifxj]=="1"){$ses=$ses." and ifxj=1";$ncapv=3;} if($_GET[page]!=""){$page=$_GET[page];}else{$page=1;} ?>