ecshop 订单-》订单状态
/** * 取得状态列表 * @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; }