Var.class.php 4.13 KB
<?php
/**
 * 管理后台 - 变量定义类
 * 
 * 变量命名规则: 模块_描述
 * 
 * @since 0.4
 */
class Config_Admin_Var
{
	/**
	 * 后台-所有错误码提示
	 * 
	 * @var array
	 */
	public static $errors = array(
        // public
		400	=> '非法提交!',
		403 => '请求不允许!', 
		404 => '页面不存在!', 
	    405 => '传参有误!',
		500 => '服务器正在维护中!',

		// admin/default/login
		1000 => '账号不合法!',
		1001 => '密码不合法!',
		1002 => '账号不存在!',
		1003 => '密码不正确!',

		// admin/system/checkrole
		1010 => '角色名称已存在!',
		1011 => '角色名称不能为空!',
		
		// admin/system/checkuser
		1020 => '用户已存在!',
		1021 => '用户不能为空!',
	        
	    // admin/recom
	    1031 => '请先选择推荐的标签!',
	        
	    // admin/auditing/editfrag
	    1040 => '查找不到碎片信息!',
	    1041 => '碎片不存在!',
	    1042 => '修改失败,请稍候再试!',
	    1043 => '亲,你尚未修改任何内容!',
	);
	
	public static $success = array(
        200=> '保存成功!',
        201=> '添加成功!',
        202=> '删除成功!',
        203=> '审核通过!',
	);
	
	/**
	 * 会员审核模块-定义查询状态
	 * @var array
	 */
	public static $useraudit_search_state = array(
        1 => '全部',
        2 => '未审核',
        3 => '正常'
	);
	
	/**
	 * 会员审核模块-定义查询类型
	 * @var array
	 */
	public static $useraudit_search_type = array(
        1 => '用户ID',
        2 => '昵称',
        3 => '邮箱',
        4 => '手机号'
	);
	
	/**
	 * 推荐模块-顶部显示的切换标签列表
	 * 
	 * @var array
	 */
	public static $recom_tabs = array(
	    // 潮拍
	    1 => array(
    	    '/admin/recom/waiting/channel/1/status/0' => array(
                '待推荐' => array(
                    '/admin/recom/waiting/channel/1/status/0' => '待推荐',
                    '/admin/recom/waiting/channel/1/status/9' => '不推荐',
                ),
            ),
    	    '/admin/recom/recommend/channel/1/type/3' => array(
    	        '已推荐' => array(
            		'/admin/recom/recommend/channel/1/type/3' => '算法推荐',
            		'/admin/recom/recommend/channel/1/type/2' => '编辑推荐',
            		'/admin/recom/recommend/channel/1/type/1' => '特别推荐',
    	        ),
    	    ),
    	    '/admin/recom/find/channel/1' => '查找',
	    ),

	    // 市集
    	2 => array(
            '/admin/recom/waiting/channel/2/status/0' => array(
        		'待推荐' => array(
    				'/admin/recom/waiting/channel/2/status/0' => '待推荐',
    				'/admin/recom/waiting/channel/2/status/9' => '不推荐',
        		),
            ),
            '/admin/recom/recommend/channel/2/type/3' => array(
        		'已推荐' => array(
    				'/admin/recom/recommend/channel/2/type/3' => '算法推荐',
    				'/admin/recom/recommend/channel/2/type/2' => '编辑推荐',
    				'/admin/recom/recommend/channel/2/type/1' => '特别推荐',
        		),
            ),
            '/admin/recom/find/channel/2' => '查找',
        ),
	);
	
	/**
	 * 推荐模块-定义推荐的查找条件
	 *
	 * @var array
	 */
	public static $recom_search = array(
		1 => '按关键字',
		2 => '按已推荐ID',
	    3 => '按工号',
	    4 => '按待推荐ID',
	);
	
	/**
	 * 推送通知-顶部显示的切换标签
	 * 
	 * @var array
	 */
	public static $push_tabs = array(
	    '/admin/push/view/status/0' => '待推送',
	    '/admin/push/view/status/1' => '已推送',
	);
	
    /**
     * 邀请函类型大分类
     */
    public static $invitation_category = array(
        'media' => '媒体',
        'brand' => '品牌商',
        'master' => '艺人红人'
    );
    
    /**
     * 邀请函类型子分类
     */
    public static $invitation_sub = array(
        //媒体
        1 => '电视',
        2 => '平面',
        3 => '网络',
        
        //品牌商
        4 => '品牌商',
        5 => '代理商',
        6 => '贸易商',
        
        //艺人红人
        7 => '艺人',
        8 => '经纪公司',
        9 => '红人',
    );
}