<?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 2015.07.10
 */
if (!defined('IN_OEMARRY')) {
    exit('OEMARRY[OEPHP] Access Denied');
}
define("OEMARRY_SHOPCP_NAME", "商家平台");
function _get_shop_items($id) {
    $OEMARRY_SHOP_ITEMS =  array(
        "index"=>array(
            "name"=>"商家中心",
            "action"=>array(),
        ),
        "set"=>array(
            "name"=>"店铺资料",
            "action"=>array(
                "saveedit"=>"编辑店铺资料",
                "saveintro"=>"编辑店铺介绍",
            ),
        ),
        "rz"=>array(
            "name"=>"店铺认证",
            "action"=>array(
                "checkmobilecode"=>"手机认证",
                "checkemailcode"=>"邮箱认证",
                "saveshop"=>"店铺认证",
            ),
        ),
        "diy"=>array(
            "name"=>"店铺装修",
            "action"=>array(
                "use"=>"启用店铺模板",
                "savebanner"=>"设置店铺店招",
                "savenav"=>"设置店铺导航",
                "savepage"=>"设置店铺背景",
                "savediyhtml"=>"自定义店铺内容",
                "saveslide"=>"设置幻灯片高度",
                "delimg"=>"删除店铺装修图片",
            ),
        ),
        "vip"=>array(
            "name"=>"店铺升级",
            "action"=>array(
                "buy"=>"店铺升级",
            ),
        ),
        "shopbespoke"=>array(
            "name"=>"店铺预约",
            "action"=>array(
                "saveedit"=>"编辑/审核店铺预约",
            ),
        ),
        "shopcomment"=>array(
            "name"=>"店铺点评",
            "action"=>array(
                "saveaddreply"=>"添加店铺回复",
                "saveeditreply"=>"编辑店铺回复",
                "delreply"=>"删除店铺回复",
            ),
        ),
		"shopwords"=>array(
            "name"=>"店铺留言",
            "action"=>array(
				"del"=>"删除店铺留言",
                "saveedit"=>"回复店铺留言",
            ),
        ),
        "coupon"=>array(
            "name"=>"优惠券",
            "action"=>array(
                "saveadd"=>"创建优惠券",
                "saveedit"=>"编辑优惠券",
                "del"=>"删除优惠券",
            ),
        ),
        "couponcode"=>array(
            "name"=>"优惠券码",
            "action"=>array(),
        ),
        "activity"=>array(
            "name"=>"商家活动",
            "action"=>array(
                "saveadd"=>"添加商家活动",
                "saveedit"=>"编辑商家活动",
                "del"=>"删除商家活动",
            ),
        ),
        "activitybespoke"=>array(
            "name"=>"活动预约",
            "action"=>array(
                "saveedit"=>"编辑/审核活动预约",
            ),
        ),
        "goodscustcat"=>array(
            "name"=>"商品分类",
            "action"=>array(
                "saveadd"=>"添加商品分类",
                "saveedit"=>"编辑商品分类",
                "del"=>"删除商品分类",
            ),
        ),
        "goods"=>array(
            "name"=>"商品管理",
            "action"=>array(
                "saveadd"=>"添加商品",
                "saveedit"=>"编辑商品",
                "del"=>"删除商品",
            ),
        ),
        "goodsbespoke"=>array(
            "name"=>"商品预约",
            "action"=>array(
                "saveedit"=>"编辑/审核商品预约",
            ),
        ),
        "goodscomment"=>array(
            "name"=>"商品评价",
            "action"=>array(),
        ),
        "my"=>array(
            "name"=>"我的帐号",
            "action"=>array(
                "savepass"=>"修改密码",
            ),
        ),
        "money"=>array(
            "name"=>"我的余额",
            "action"=>array(),
        ),
        "msg"=>array(
            "name"=>"站内消息",
            "action"=>array(
                "read"=>"阅读消息",
                "del"=>"删除站内消息",
            ),
        ),
        "recharge"=>array(
            "name"=>"在线充值",
            "action"=>array(
                "submit"=>"提交在线充值",
            ),
        ),
		"withdraw"=>array(
			"name"=>"申请提现",
			"action"=>array(
                "savewith"=>"申请提现",
            ),
		),
        "gallery"=>array(
            "name"=>"相册管理",
            "action"=>array(
                "saveadd"=>"添加相册",
                "saveedit"=>"编辑相册",
                "del"=>"删除相册",
            ),
        ),
        "photo"=>array(
            "name"=>"照片管理",
            "action"=>array(
                "saveadd"=>"添加照片",
                "saveedit"=>"编辑照片",
                "del"=>"删除照片",
                "setcover"=>"设置相册封面",
            ),
        ),

        "slide"=>array(
            "name"=>"幻灯片管理",
            "action"=>array(
                "saveadd"=>"添加幻灯片",
                "saveedit"=>"编辑幻灯片",
                "del"=>"删除幻灯片",
            ),
        ),

		"order"=>array(
            "name"=>"订单管理",
            "action"=>array(
                "delete"=>"删除订单",
                "delay"=>"延迟订单发货时间",
                "cancel"=>"取消订单",
				"saveship"=>"执行订单发货",
            ),
        ),

    );
    return $OEMARRY_SHOP_ITEMS[$id];
}
//获取标题
function _get_shop_title($id) {
    $_title = "";
	$title_arr =  _get_shop_items($id);
    if (!empty($title_arr)) {
        $_title = $title_arr['name'];
    }
    return $_title;
}
//获取动作
function _get_shop_action($id) {
    $_action_arr = null;
    $_shop_arr = _get_shop_items($id);
    if (!empty($_shop_arr)) {
        $_action_arr = $_shop_arr['action'];
    }
    return $_action_arr;
}
?>