include("../config/conn.php"); include("../config/function.php"); include("../config/xy.php"); $sj=date("Y-m-d H:i:s"); $getstr=$_GET[str]; $uid=intval(returnsx("i")); $sqluser="select * from yjcode_user where zt=1 and shopzt=2 and id=".$uid;mysqli_set_charset($conn,"utf8");$resuser=mysqli_query($conn,$sqluser); if(!$rowuser=mysqli_fetch_array($resuser)){php_toheader("./");} $ses=" where zt=0 and ifxj=0 and userid=".$uid; $ty1id=returnsx("j"); $ty2id=returnsx("k"); if($ty1id!=-1){$ses=$ses." and myty1id=".$ty1id;$name1=returntypem(1,$ty1id);} if($ty2id!=-1){$ses=$ses." and myty2id=".$ty2id;} if(returnsx("s")!=-1){ $skey=safeEncoding(returnsx("s")); $a=preg_split("/\s/",$skey); $bs="("; for($i=0;$i<=count($a);$i++){ if(!empty($a[$i])){$bs=$bs."tit like '%".$a[$i]."%' and ";} } $ses=$ses." and ".$bs." tit<>'')"; } if(returnsx("p")!=-1){$page=returnsx("p");}else{$page=1;} $orderpx="order by lastsj desc"; $f=intval(returnsx("f")); if($f==1){$orderpx="order by xsnum asc";} elseif($f==11){$orderpx="order by xsnum desc";} elseif($f==2){$orderpx="order by pf1 asc";} elseif($f==21){$orderpx="order by pf1 desc";} elseif($f==3){$orderpx="order by money2 asc";} elseif($f==31){$orderpx="order by money2 desc";} elseif($f==4){$orderpx="order by lastsj asc";} elseif($f==41){$orderpx="order by lastsj desc";} $nserU="prolist"; ?>