码迷,mamicode.com
首页 > 其他好文 > 详细

ecshop 去的订单状态

时间:2015-11-26 18:46:38      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:

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

 

ecshop 去的订单状态

标签:

原文地址:http://www.cnblogs.com/wesky/p/4998429.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!