<?php
/*********************************************
*导航栏目
* *******************************************/
function tpl_function_qishi_nav($params, &$smarty)
{
	global $db,$_NAV,$_CFG;
	$arr=explode(',',$params['set']);
	foreach($arr as $str)
	{
	$a=explode(':',$str);
		switch ($a[0])
		{
		case "调用名称":
			$aset['alias'] = $a[1];
			break;
		case "列表名":
			$aset['listname'] = $a[1];
			break;
		}
	}
	$aset['listname']=$aset['listname']?$aset['listname']:"list";
	$smarty->assign($aset['listname'],$_NAV[$aset['alias']]);
}
?>