<?php
/**
 * Copyright (C) OEMARRY Co.,Ltd. All rights reserved.
 * <E-Mail：service@phpcoo.com>
 * Url http://www.phpcoo.com
 *     http://www.oephp.com
 *     http://www.oemarry.com
 * Update 2016.04.22
 */
if (!defined('IN_OEMARRY')) {
    exit('OEMARRY[OEPHP] Access Denied');
}
define("OEMARRY_USERCP_NAME", "会员中心");
function _get_user_items($id) {
    $OEMARRY_USER_ITEMS =  array(
        "index"=>array(
            "name"=>"会员中心",
            "action"=>array(),
        ),
        "rz"=>array(
            "name"=>"认证中心",
            "action"=>array(
                "checkmobilecode"=>"手机认证",
                "checkemailcode"=>"邮箱认证",
            ),
        ),
        "profile"=>array(
            "name"=>"我的帐号",
            "action"=>array(
                "saveedit"=>"编辑资料",
                "savepass"=>"修改密码",
            ),
        ),
        "address"=>array(
            "name"=>"收货地址",
            "action"=>array(
                "saveadd"=>"添加收货地址",
                "saveedit"=>"编辑收货地址",
                "del"=>"删除收货地址",
            ),
        ),
        "shopbespoke"=>array(
            "name"=>"店铺预约",
            "action"=>array(
                "del"=>"删除店铺预约",
            ),
        ),
        "shopcomment"=>array(
            "name"=>"店铺点评",
            "action"=>array(
                "saveaddto"=>"添加店铺点评回复",
                "saveeditto"=>"编辑店铺点评回复",
                "delto"=>"删除店铺点评回复",
            ),
        ),
		"shopwords"=>array(
            "name"=>"店铺留言",
            "action"=>array(
                "saveedit"=>"修改店铺留言",
                "del"=>"删除店铺留言",
            ),
        ),
        "coupon"=>array(
            "name"=>"优惠券",
            "action"=>array(
                "del"=>"删除优惠券",
            ),
        ),
        "activitybespoke"=>array(
            "name"=>"活动预约",
            "action"=>array(
                "del"=>"删除活动预约",
            ),
        ),
        "goodsbespoke"=>array(
            "name"=>"商品预约",
            "action"=>array(
                "del"=>"删除商品预约",
            ),
        ),
        "goodscomment"=>array(
            "name"=>"商品评价",
            "action"=>array(),
        ),
        "money"=>array(
            "name"=>"我的余额",
            "action"=>array(),
        ),
		"withdraw"=>array(
            "name"=>"申请提现",
            "action"=>array(
                "savewith"=>"申请提现",
            ),
        ),
        "msg"=>array(
            "name"=>"站内消息",
            "action"=>array(
                "read"=>"阅读站内消息",
                "del"=>"删除站内消息",
            ),
        ),
        "collectshop"=>array(
            "name"=>"店铺收藏",
            "action"=>array(
                "del"=>"删除店铺收藏",
            ),
        ),
        "collectgoods"=>array(
            "name"=>"商品收藏",
            "action"=>array(
                "del"=>"删除商品收藏",
            ),
        ),
        "recharge"=>array(
            "name"=>"在线充值",
            "action"=>array(
                "submit"=>"提交在线充值",
            ),
        ),

		"order"=>array(
            "name"=>"购物订单",
            "action"=>array(
                "buyorder"=>"余额支付订单",
				"pay"=>"在线支付订单",
				"confirmreceipt"=>"订单确认收货",
				"delete"=>"删除订单",
				"cancel"=>"取消订单",
            ),
        ),
    );
    return $OEMARRY_USER_ITEMS[$id];
}

//获取标题
function _get_user_title($id) {
    $_title = "";
	$title_arr =  _get_user_items($id);
    if (!empty($title_arr)) {
        $_title = $title_arr['name'];
    }
    return $_title;
}

//获取动作
function _get_user_action($id) {
    $_action_arr = null;
    $_shop_arr = _get_user_items($id);
    if (!empty($_shop_arr)) {
        $_action_arr = $_shop_arr['action'];
    }
    return $_action_arr;
}
?>