www.gusucode.com > 74cms PHP骑士人才系统 v3.5.1源码程序 > code/upload/include/template_lite/plugins/function.qishi_nav.php
<?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']]); } ?>