目前分類:
if(isset($_GET['cls'])){ $cls=$_GET['cls']; $searchLink="cls=".$cls."&"; }else{ toindex(); } include "f.php"; include "page_money_show.php"; //丟得類別資料 $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://www.sxs.tw/xml/show_class.php"); curl_setopt($ch, CURLOPT_POST, true); // 啟用POST curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //可以使用 result curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query( array( "cls"=>$cls,"ck_code"=>$cd_key))); $class_result = urldecode(curl_exec($ch)); $class_list=explode("t8+8t",$class_result); curl_close($ch); $row['id']=$class_list[0]; $row['sortname']=$class_list[1]; //丟得類別資料 if($row['id']==""){ toindex(); } $order_link="order=".$_GET['order']."&"; if($_GET['order']=="time_desc"){ $order_str="ORDER BY `sortshow` ASC,`sno` DESC "; }else if($_GET['order']=="time_asc"){ $order_str="ORDER BY `sortshow` ASC,`sno` ASC"; }else if($_GET['order']=="money_desc"){ $order_str="ORDER BY `money` DESC"; }else if($_GET['order']=="money_asc"){ $order_str="ORDER BY `money` ASC"; }else{ $order_link=""; $order_str="ORDER BY `sortshow` ASC,`sno` DESC "; } if(($equipment=="smarty" and $_SESSION['computer_flag']!="true") or ($equipment=="computer" and $_SESSION['mobile_flag']=="true")){ $read_num=10; }else{ $read_num=80; } $moviepage=$_GET['p']; if($moviepage>0){ $page_title_str=" - 第(".$moviepage.")頁"; } $searchLink.=$order_link; $class_title=trim(strip_tags($row['sortname'])); if(empty($moviepage)) $moviepage=1; //丟得產品資料 $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://www.sxs.tw/xml/show_data.php"); curl_setopt($ch, CURLOPT_POST, true); // 啟用POST curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //可以使用 result curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query( array( "search_str"=>" and `sortid`='".$cls."' ","order_sql_str"=>$order_str,"moviepage"=>$moviepage,"read_num"=>$read_num,"ck_code"=>$cd_key))); $order_result = urldecode(curl_exec($ch)); $one_order=explode("t8+8t",$order_result); curl_close($ch); $allpage=$one_order[0]; $all_product_str=$one_order[1]; ?>