include("../config/conn.php"); include("../config/function.php"); $sj=date("Y-m-d H:i:s"); $getstr=$_GET[str]; //已有标签 $tit="服务市场"; $ses=" where zt=0 and ifxj=0"; $ty1id=intval(returnsx("j"));if($ty1id!=-1){ $sqlty1="select * from yjcode_servertype where admin=1 and zt=0 and id=".intval($ty1id);mysqli_set_charset($conn,"utf8");$resty1=mysqli_query($conn,$sqlty1);$rowty1=mysqli_fetch_array($resty1); $ty1name=$rowty1[name1]; $ses=$ses." and ty1id=".$ty1id; $tit=$ty1name; } $ty2id=intval(returnsx("k"));if($ty2id!=-1){ $sqlty2="select * from yjcode_servertype where admin=2 and zt=0 and id=".$ty2id;mysqli_set_charset($conn,"utf8");$resty2=mysqli_query($conn,$sqlty2);$rowty2=mysqli_fetch_array($resty2); $ty2name=$rowty2[name2]; $ses=$ses." and ty2id=".$ty2id; $tit=$tit."_".$ty2name; } 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<>'')"; $tit=$tit."/".$skey; } $px="order by lastsj desc"; $pxv=returnsx("f"); if($pxv==1){$px="order by lastsj asc";} elseif($pxv==2){$px="order by xsnum desc";} elseif($pxv==3){$px="order by xsnum asc";} elseif($pxv==4){$px="order by djl desc";} elseif($pxv==5){$px="order by djl asc";} elseif($pxv==6){$px="order by money1 desc";} elseif($pxv==7){$px="order by money1 asc";} elseif($pxv==8){$px="order by lastsj desc";} elseif($pxv==9){$px="order by lastsj asc";} if(returnsx("p")!=-1){$page=returnsx("p");}else{$page=1;} ?>