$_COOKIE["zzcmscpid"]){ setcookie("zzcmscpid",$cpid.",".$_COOKIE["zzcmscpid"],time()+3600*24*360); }else{ setcookie("zzcmscpid",$cpid,time()+3600*24*360); } }else{ setcookie("zzcmscpid",$cpid,time()+3600*24*360); } $rs=query("select * from zzcms_main where id='$cpid'"); $row=num_rows($rs); if(!$row){ showmsg('无记录'); }else{ $row=fetch_array($rs); $editorinzsshow=$row["editor"];//供传值到top.php $fbr=$row["editor"]; $cpmc=$row['proname']; $prouse=$row['prouse']; $cpimg=$row["img"]; $flv=$row["flv"]; $bigclassid=$row["bigclassid"]; $smallclassid=$row["smallclassid"]; if(strpos($smallclassid,',')!==false){ $smallclassid=explode(",",$smallclassid); //转换成数组 $smallclassid=$smallclassid[0];//只取第一个小类,供显示在station中 } $smallclassid=str_replace('"',"",$smallclassid);//开启多选后小类两边都加了"" $sendtime=$row["sendtime"]; $hit=$row["hit"]; $title=$row["title"]; $keywords=$row["keywords"]; $description=$row["description"]; $sm=stripfxg($row["sm"],true); $yq=$row["yq"]; $zc=$row["zc"]; $province=$row["province"]; $city=$row["city"]; $shuxing_value = explode("|||",$row["shuxing_value"]); $smallclassname=''; $rsn=query("select classname,classzm from zzcms_zhaoshangclass where classid='".$bigclassid."'"); $rown=fetch_array($rsn); $bigclassname=$rown["classname"]; $bigclasszm=$rown["classzm"]; if ($smallclassid<>0){ $rsn=query("select classname,classzm from zzcms_zhaoshangclass where classid='".$smallclassid."'"); $rown=fetch_array($rsn); $smallclassname=$rown["classname"]; $smallclasszm=$rown["classzm"]; } include("top.php"); include("bottom.php"); include("left.php"); $fp="../skin/".$skin."/zsshow.htm"; if (file_exists($fp)==false){ WriteErrMsg($fp.'模板文件不存在'); exit; } $f = fopen($fp,'r'); $strout = fread($f,filesize($fp)); fclose($f); if($title<>''){ $pagetitle=$title; }else{ $pagetitle=$cpmc.zsshowtitle."厂家:".$comane; } $pagekeywords=$cpmc.zsshowkeyword."厂家:".$comane; if($description<>''){ $pagedescription=$description; }else{ $pagedescription=$cpmc.zsshowdescription."产品特点:".cutstr($prouse,200); } //station if(whtml=="Yes"){ $station="网站首页 > ".channelzs." "; $station=$station." > ".$bigclassname.""; if ($smallclasszm<>''){ $station=$station." > ".$smallclassname.""; } }else{ $station="网站首页 > ".channelzs." "; $station=$station." > ".$bigclassname.""; if ($smallclasszm<>''){ $station=$station." > ".$smallclassname.""; } } //$station=$station . " > ".$cpmc; $strout=str_replace("{#proname}",$cpmc,$strout) ; $strout=str_replace("{#bigclass}",$bigclassname,$strout) ; $strout=str_replace("{#smallclass}",$smallclassname,$strout) ; $strout=str_replace("{#prouse}",cutstr($prouse,500),$strout) ; $strout=str_replace("{#city}",$province.$city,$strout) ; //cp if(showdlinzs=="Yes"){ $rsn=query("select id from zzcms_daili where cpid='".$cpid."' and passed=1"); $rown=num_rows($rsn); $liuyan="