标签:
/** * 取得状态列表 * @param string $type 类型:all | order | shipping | payment */ function get_status_list($type = ‘all‘) { global $_LANG; $list = array(); if ($type == ‘all‘ || $type == ‘order‘) { $pre = $type == ‘all‘ ? ‘os_‘ : ‘‘; foreach ($_LANG[‘os‘] AS $key => $value) { $list[$pre . $key] = $value; } } if ($type == ‘all‘ || $type == ‘shipping‘) { $pre = $type == ‘all‘ ? ‘ss_‘ : ‘‘; foreach ($_LANG[‘ss‘] AS $key => $value) { $list[$pre . $key] = $value; } } if ($type == ‘all‘ || $type == ‘payment‘) { $pre = $type == ‘all‘ ? ‘ps_‘ : ‘‘; foreach ($_LANG[‘ps‘] AS $key => $value) { $list[$pre . $key] = $value; } } return $list; }
标签:
原文地址:http://www.cnblogs.com/wesky/p/4998429.html