{$cfg['lg']['home']}"; for($index=0;$index" . $nclass[$arr_url[$index]]["name"] . "" ; } $var["str_url"] .= " " . $cfg["split_uri"] . " " . $rows["name"] ; $var["str_url_2"]=$rows["name"]; $arrcontent = explode("
 
",$rows["content"]); $var["rewriteurl"]= getRewritePre() . makeRewrite($rows["name"]) . "-n$pid" ; $var["pageurl"] = "news-view.php?id=$pid"; $pagenow = getQueryInt("page",1); $recordcount = count( $arrcontent ); $pagetotal = count( $arrcontent ); $pagenow = $pagenow >$pagetotal? $pagetotal : $pagenow; $pagenow = $pagenow <1? 1 : $pagenow; if($pagenow>=2) $rows["name"] .= " ($pagenow) " ; loadPage($pagenow,$pagetotal,1,$recordcount,$var) ; $rows["pagecontent"] = $arrcontent[$pagenow-1] ; $var["n"]=$rows; $var["pid"]=$pid; $condition="where id=$pid"; $param=array(); $param["hits"]="@hits+1"; $sql=updateSQL($param,"@@@news",$condition); query($sql); //--- 读取分类的SEO模板 $sql = "select * from `@@@seo` where id=5"; $rs = query($sql); while($seorows=fetch($rs)) { $tpl_seo_title = $seorows["title"]; $tpl_seo_keywords = $seorows["keywords"]; $tpl_seo_descript = $seorows["descript"]; } $arr_seo_key[0] = "{VAR_shopname}"; $arr_seo_value[0] = $config[63] ; $arr_seo_key[1] = "{VAR_ncatename}"; $arr_seo_value[1] = $nclass[$nclassid]["name"] ; $arr_seo_key[3] = "{VAR_nname}"; $arr_seo_value[3] = $rows["name"] ; $arr_seo_key[2] = "{VAR_ncatepath}"; for($index=0;$index