<?php
function module_header()
{
	global $smarty;
	$obj = new varia();
	$obj->set_where("var_name = 'languages'");
	$list = $obj->get_list();
	for($i = 0; $i < count($list); $i ++)
	{
		$arr = explode('{v}',$list[$i]['var_value']);
		$list[$i]['pack_name'] = $arr[0];
		$list[$i]['index_entrance'] = $arr[1];
		$list[$i]['admin_entrance'] = $arr[2];
		$list[$i]['chinese_name'] = $arr[3];
		$list[$i]['foreign_name'] = $arr[4];
	}
	$smarty->assign('lang_pack',$list);
	
	$obj = new menu();
	$obj->set_field('men_name,men_url');
	$obj->set_where('');
	$obj->set_where("men_lang = 'none'");
	$obj->set_where("men_type = 'admin_header'");
	$obj->set_where("men_show = 1");
	$smarty->assign('nav_header',$obj->get_list());
}
//红头船
?>