<?php
/**
 * Copyright (C) OEmarry All rights reserved.
 * <E-Mail：service@phpcoo.com>
 * Url http://www.phpcoo.com
 *     http://www.oephp.com
 *     http://www.oemarry.com
 * Update 2016.08.16
 */
if (!defined('IN_OEMARRY')) {
    exit('OEMARRY[OEPHP] Access Denied');
}
define("OEMARRY_WAPCP_NAME", "会员中心");
function _get_wapcp_items($id) {
    $OEMARRY_WAP_ITEMS =  array(

		"index"=>array(
            "name"=>"首页",
            "action"=>array(
				"about"=>"关于我们",
				"contact"=>"联系我们",
				"payment"=>"付款方式",
				"clause"=>"用户条款",
			),
        ),

        "cp"=>array(
            "name"=>"会员中心",
            "action"=>array(
				"bespoke"=>"我的预约",
				"collect"=>"我的收藏",
				"comment"=>"我的评论",
				"my"=>"我的帐号",
            ),
        ),

        "profile"=>array(
            "name"=>"修改资料",
            "action"=>array(
				"run"=>"我的帐号",
                "edit"=>"编辑资料",
                "saveedit"=>"编辑资料",
                "savepass"=>"修改密码",
                "savepay"=>"修改支付密码",
                "setpay"=>"修改支付密码"
            ),
        ),
		
		"money"=>array(
            "name"=>"我的余额",
            "action"=>array(
				
			),
        ),

		"recharge"=>array(
            "name"=>"在线充值",
            "action"=>array(
				"submit"=>"在线充值",
			),
        ),

		
		"rz"=>array(
            "name"=>"资料认证",
            "action"=>array(
				"mobile"=>"手机认证",
                "email"=>"邮箱认证",
			),
        ),

		
		"shopbespoke"=>array(
            "name"=>"店铺预约",
            "action"=>array(
				"del"=>"删除店铺预约",
			),
        ),

		"activitybespoke"=>array(
            "name"=>"活动预约",
            "action"=>array(
				"del"=>"删除活动预约",
			),
        ),

		"goodsbespoke"=>array(
            "name"=>"商品预约",
            "action"=>array(
				"del"=>"删除商品预约",
			),
        ),

		"collectshop"=>array(
            "name"=>"收藏店铺",
            "action"=>array(
				"del"=>"删除收藏的店铺",
			),
        ),

		"collectgoods"=>array(
            "name"=>"收藏商品",
            "action"=>array(
				"del"=>"删除收藏的商品",
			),
        ),
		
		"order"=>array(
            "name"=>"我的订单",
            "action"=>array(
				"buyorder"=>"余额支付订单",
				"pay"=>"在线支付订单",
				"confirmreceipt"=>"确认收货订单",
			),
        ),

		
		"pay"=>array(
            "name"=>"在线支付",
            "action"=>array(
				"show"=>"支付结果",
			),
        ),

        "cart"=>array(
            "name"=>"购物车",
            "action"=>array(
                "show"=>"支付结果",
                "confirm"=>"确认订单",
            ),
        ),

        "cpcoupon"=>array(
            "name"=>"我的优惠券",
            "action"=>array(
				"del"=>"删除优惠券",
            ),
        ),

        "msg"=>array(
            "name"=>"站内消息",
            "action"=>array(
				"read"=>"阅读站内消息",
				"del"=>"删除站内消息",
            ),
        ),

        "shopwords"=>array(
            "name"=>"店铺留言",
            "action"=>array(
				"saveedit"=>"编辑店铺留言",
				"del"=>"删除店铺留言",
            ),
        ),

        "shopcomment"=>array(
            "name"=>"店铺点评",
            "action"=>array(
				"saveaddto"=>"添加店铺追评",
				"saveeditto"=>"编辑店铺点评",
				"delto"=>"删除店铺点评",
            ),
        ),

        "address"=>array(
            "name"=>"收货地址",
            "action"=>array(
                "add"=>"添加收货地址",
                "edit"=>"编辑收货地址",
				"saveadd"=>"添加收货地址",
				"saveedit"=>"编辑收货地址",
				"del"=>"删除收货地址",
            ),
        ),

    );
    return $OEMARRY_WAP_ITEMS[$id];
}

//获取标题
function _get_wapcp_title($c, $a="") {
    $_title = "";
    $_wap_arr =  _get_wapcp_items($c);
    if (!empty($_wap_arr)) {
        if (!empty($a)) {
            $_title = $_wap_arr['action'][$a];
        }
        else {
            $_title = $_wap_arr['name'];
        }
    }
    return $_title;
}

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