'主积分', 2 => '普通积分', ); return array ( # 表名 'name' => 'config', # 显示给用户看的名称 'lang' => '积分名称设置', 'order' => 1, 'end' => array ( 'insert' => 'score/lib/manage.config', 'update' => 'score/lib/manage.config', ), # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', ), 'name' => array ( 'type' => 'varchar-32', 'name' => '积分名称', 'default' => '', 'desc' => '请输入积分名称', 'match' => 'is_string', 'update' => 'text', 'search' => 'fulltext', 'list' => true, ), 'type' => array ( 'type' => 'int-11', 'name' => '是否主积分-只能有一个主积分,主积分将作为用户主要积分显示在用户信息中', 'default' => '2', 'desc' => '是否主积分', 'match' => 'is_numeric', 'update' => 'select', 'option' => $type, 'search' => 'select', 'list' => true, ), 'reorder' => array ( 'type' => 'int-11', 'name' => '排序(数值越大越靠前)', 'default' => '1', 'desc' => '请输入排序', 'match' => 'option', 'update' => 'text', 'search' => 'order', 'list' => true, 'order' => 'desc', 'edit' => true, ), 'state' => array ( 'type' => 'tinyint-1', 'name' => '状态', 'default' => '1', 'desc' => '请选择状态', 'match' => 'is_numeric', ), 'cdate' => array ( 'type' => 'int-11', 'name' => '录入时间', 'match' => array('is_numeric', time()), 'desc' => '', # 只有insert时才生效 'insert' => true, ), ), 'manage' => array ( # 列表 'list_button' => array ( 'list' => array('规则设置', '"rule&search_option_config_id={id}&oper_parent=config"'), ), ), 'request' => array ( # 更新 'set' => array ( 'type' => 'update', 'set' => array ( 'type' => '2', ), ), ), );