关键词:

站群” /> EOF; } else { $data=file_get_contents(‘http://suggestion.baidu.com/su?wd=’.$word); $data=mb_convert_encoding($data, ‘UTF-8’, ‘UTF-8,GBK,GB2312,BIG5’ ); $data_temp=strpos($data,”x”); $data=substr_replace($data,””,$data_temp,17); $data = trim($data,”);”); $data = trim($data,”{“); $data=preg_replace(“/q:.+?.e,/”,”, $data); $data = str_replace(“[“,””,$data); $data = str_replace(“]”,””,$data); $data = “[“.$data.”]”; $data = str_replace(“,”,”},s:”,$data); $data = str_replace(“s:”,”{\”s\”:”,$data);//复杂的处理,以符合json格式 $dc=json_decode($data); for ($n = 0; $n < = 9; $n++) { $wd[$n]=$dc[$n]->s; echo “”.$wd[$n]; } } ?> {this.form.submit;} this.form.clearrs.value=0;this.form.submit(
相关搜索
蛭石板的作用蛭石板生产厂家蛭石比重
蛭石保温板蛭石保温材料蛭石板可用外墙保温吗
蛭石生产厂家蛭石板价格蛭石板绝缘吗
===================== $data=str_replace("]});","",$data) ; $data = trim($data,");"); $data = trim($data,"{"); $data=preg_replace("/q:.+?.e,/",'', $data); $data = str_replace("[","",$data); $data = str_replace("]","",$data); $data = "[".$data."]"; $data = str_replace(",","},s:",$data); $data = str_replace("s:","{\"s\":",$data);//复杂的处理,以符合json格式 $dc=json_decode($data); for ($n = 0; $n < = 9; $n++) { $wd[$n]=$dc[$n]->s; echo "".$wd[$n]; } if($clearrs==1){ $del_sql="delete from ls_functioncatesrs where ID=".$id.""; //echo $del_sql; $del_query=$opendb->query($del_sql); $ls_msg="已清除全部热搜词!"; writelog($_SERVER['PHP_SELF'],"delete column(function) ","ID: ".$id); } $select_sql2="select * from ls_functioncatesrs where cateName='".trim($cateName)."' "; $select_query2=$opendb->query($select_sql2); $select_rows2_num=mysqli_num_rows($select_query2); //总数 if($select_rows2_num==0) { $insert_sql=sprintf("insert into ls_functioncatesrs (fTitle, fKeywords, fDescription, cateName , hotLines, hotWords, typeurl,Num) values (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)", GetSQLValueString($wd[$n]." - ".$brandword,"text"), GetSQLValueString($wd[$n],"text"), GetSQLValueString($wd[$n]n,"text"), GetSQLValueString($wd[$n],"text"), GetSQLValueString($hotLines,"text"), GetSQLValueString($hotWords,"text"), GetSQLValueString($typeurl, "text"), GetSQLValueString($Num, "int") ); //echo $insert_sql; brief suffStr $insert_query=$opendb->query($insert_sql); writelog($_SERVER['PHP_SELF'],"add column(function) ","cateName: ".$cateName." functionName: ".$functionName); $ls_msg="添加操作成功!"; } ?> 栏目页管理
栏目页类别

提示:  

=============== session_start(); require_once('inc/conn.php'); require_once('inc/constant.php'); require_once('inc/ls_syscode.php'); require_once('inc/check.php'); $opendb=new mydb(); require_once('inc/char_set.php'); $keykeywords=trim($_POST['keykeywords']); $dispFunctionName="栏目页"; $brandword=trim($_POST['brandword']); $clearrs=trim($_POST['clearrs']); //$hotLines=trim($_POST['hotLines']); //$hotWords=trim($_POST['hotWords']); $ls=$_GET['ls']; $id=$_GET['id']; if($keykeywords!=""){ $data=file_get_contents('http://suggestion.baidu.com/su?wd='.$keykeywords); $data=mb_convert_encoding($data, 'UTF-8', 'UTF-8,GBK,GB2312,BIG5' ); $data_temp=strpos($data,"x"); $data=substr_replace($data,"",$data_temp,17); $data = trim($data,");"); $data = trim($data,"{"); $data=preg_replace("/q:.+?.e,/",'', $data); $data = str_replace("[","",$data); $data = str_replace("]","",$data); $data = "[".$data."]"; $data = str_replace(",","},s:",$data); $data = str_replace("s:","{\"s\":",$data);//复杂的处理,以符合json格式 $dc=json_decode($data); for ($n = 0; $n < = 9; $n++) { $wd[$n]=$dc[$n]->s; echo "".$wd[$n]; } if($clearrs==1){ $del_sql="delete from ls_functioncatesrs where ID=".$id.""; //echo $del_sql; $del_query=$opendb->query($del_sql); $ls_msg="已清除全部热搜词!"; writelog($_SERVER['PHP_SELF'],"delete column(function) ","ID: ".$id); } $select_sql2="select * from ls_functioncatesrs where cateName='".trim($cateName)."' "; $select_query2=$opendb->query($select_sql2); $select_rows2_num=mysqli_num_rows($select_query2); //总数 if($select_rows2_num==0) { $insert_sql=sprintf("insert into ls_functioncatesrs (fTitle, fKeywords, fDescription, cateName , hotLines, hotWords, typeurl,Num) values (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)", GetSQLValueString($wd[$n]." - ".$brandword,"text"), GetSQLValueString($wd[$n],"text"), GetSQLValueString($wd[$n]n,"text"), GetSQLValueString($wd[$n],"text"), GetSQLValueString($hotLines,"text"), GetSQLValueString($hotWords,"text"), GetSQLValueString($typeurl, "text"), GetSQLValueString($Num, "int") ); //echo $insert_sql; brief suffStr $insert_query=$opendb->query($insert_sql); writelog($_SERVER['PHP_SELF'],"add column(function) ","cateName: ".$cateName." functionName: ".$functionName); $ls_msg="添加操作成功!"; } writelog($_SERVER['PHP_SELF'],"modify column(function) "."cateName: ".$cateName." functionName: ".$functionName,"ID: ".$modiid); $ls_msg="修改操作成功!"; } else {$ls_msg="核心关键词为空";} $title_sql = "select * from ls_config"; $title_query = $opendb->query($title_sql); $title_value = mysqli_fetch_assoc($title_query); $keykeywords1= explode("_", $title_value['companyNameCn']); $keykeywords =$keykeywords1[0]; ?> 栏目页管理
栏目页类别

提示:  

$select_sql2="select * from ls_functioncatesrs where cateName='".trim($cateName)."' "; $select_query2=$opendb->query($select_sql2); $select_rows2_num=mysqli_num_rows($select_query2); //总数 if($select_rows2_num==0) { $insert_sql=sprintf("insert into ls_functioncatesrs (fTitle, fKeywords, fDescription, cateName , hotLines, hotWords, typeurl,Num) values (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)", GetSQLValueString($wd[$n]." - ".$brandword,"text"), GetSQLValueString($wd[$n],"text"), GetSQLValueString($wd[$n]n,"text"), GetSQLValueString($wd[$n],"text"), GetSQLValueString($hotLines,"text"), GetSQLValueString($hotWords,"text"), GetSQLValueString($typeurl, "text"), GetSQLValueString($Num, "int") ); //echo $insert_sql; brief suffStr $insert_query=$opendb->query($insert_sql); writelog($_SERVER['PHP_SELF'],"add column(function) ","cateName: ".$cateName." functionName: ".$functionName); $ls_msg="添加操作成功!"; } writelog($_SERVER['PHP_SELF'],"modify column(function) "."cateName: ".$cateName." functionName: ".$functionName,"ID: ".$modiid); $ls_msg="修改操作成功!"; } else {$ls_msg="核心关键词为空";} $title_sql = "select * from ls_config"; $title_query = $opendb->query($title_sql); $title_value = mysqli_fetch_assoc($title_query); $keykeywords1= explode("_", $title_value['companyNameCn']); $keykeywords =$keykeywords1[0]; } else {$ls_msg="核心关键词为空";} if($clearrs==1){ $del_sql="delete from ls_functioncatesrs where ID=".$id.""; //echo $del_sql; $del_query=$opendb->query($del_sql); $ls_msg="已清除全部热搜词!"; writelog($_SERVER['PHP_SELF'],"delete column(function) ","ID: ".$id); } $select_sql2="select * from ls_functioncatesrs where cateName='".trim($cateName)."' "; $select_query2=$opendb->query($select_sql2); $select_rows2_num=mysqli_num_rows($select_query2); //总数 if($select_rows2_num==0) { $insert_sql=sprintf("insert into ls_functioncatesrs (fTitle, fKeywords, fDescription, cateName , hotLines, hotWords, typeurl,Num) values (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)", GetSQLValueString($wd[$n]." - ".$brandword,"text"), GetSQLValueString($wd[$n],"text"), GetSQLValueString($wd[$n]n,"text"), GetSQLValueString($wd[$n],"text"), GetSQLValueString($hotLines,"text"), GetSQLValueString($hotWords,"text"), GetSQLValueString($typeurl, "text"), GetSQLValueString($Num, "int") ); //echo $insert_sql; brief suffStr $insert_query=$opendb->query($insert_sql); writelog($_SERVER['PHP_SELF'],"add column(function) ","cateName: ".$cateName." functionName: ".$functionName); $ls_msg="添加操作成功!"; } writelog($_SERVER['PHP_SELF'],"modify column(function) "."cateName: ".$cateName." functionName: ".$functionName,"ID: ".$modiid); $ls_msg="修改操作成功!"; $title_sql = "select * from ls_config"; $title_query = $opendb->query($title_sql); $title_value = mysqli_fetch_assoc($title_query); $keykeywords1= explode("_", $title_value['companyNameCn']); $keykeywords =$keykeywords1[0];