www.gusucode.com > 触摸屏公司网站(英文)网站源码程序 > 触摸屏公司网站(英文)网站源码程序/page/module/PageNavPath.php

    <?php

/*
	[插件名称] 自定网页模块导航条
	[适用范围] 自定网页模块
*/


function PageNavPath(){

	global $msql;


	$coltitle=$GLOBALS["PLUSVARS"]["coltitle"];
	$tempname=$GLOBALS["PLUSVARS"]["tempname"];
	$pagename=$GLOBALS["PLUSVARS"]["pagename"];

	$Temp=LoadTemp($tempname);
	$TempArr=SplitTblTemp($Temp);
	
	$arr=explode("_",$pagename);

	if(sizeof($arr) > 1){
		$title=$arr[1];

		$msql->query("select * from {P}_page where pagefolder='$title'");

			if($msql->next_record()){
				$title=$msql->f('title');
			}
		$var=array (
			'sitename' => $GLOBALS["CONF"]["SiteName"],
			'channel' => $title,
		);
		$GLOBALS["pagetitle"] = $title;
	}else
		$var=array (
		'sitename' => $GLOBALS["CONF"]["SiteName"],
		'channel' => $GLOBALS["channel"],
	);
	$str=ShowTplTemp($TempArr["start"],$var);
	$str.=$TempArr["end"];
	return $str;
}

?>