|
@@ -0,0 +1,260 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+$status = array
|
|
|
+(
|
|
|
+ 1 => array('name' => '待审核', 'style' => 'font-weight:bold;color:#436EEE'),
|
|
|
+ 2 => array('name' => '入选审核通过', 'style' => 'font-weight:bold;color:#003366'),
|
|
|
+ 3 => array('name' => '未通过入选', 'style' => 'font-weight:bold;color:#993333'),
|
|
|
+);
|
|
|
+
|
|
|
+$audit = array
|
|
|
+(
|
|
|
+
|
|
|
+ 2 => '审核通过',
|
|
|
+ 3 => '审核未通过',
|
|
|
+);
|
|
|
+
|
|
|
+$sex = array
|
|
|
+(
|
|
|
+ 1 => '男',
|
|
|
+ 2 => '女',
|
|
|
+);
|
|
|
+
|
|
|
+return array
|
|
|
+(
|
|
|
+
|
|
|
+ 'name' => 'baoming',
|
|
|
+
|
|
|
+ 'lang' => '报名列表',
|
|
|
+ 'order' => 100,
|
|
|
+ 'set' => array
|
|
|
+ (
|
|
|
+ 'status' => $status,
|
|
|
+ 'audit' => $audit,
|
|
|
+ ),
|
|
|
+
|
|
|
+
|
|
|
+ 'struct' => array
|
|
|
+ (
|
|
|
+ 'id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => 'ID',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'act_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '活动id',
|
|
|
+ 'default' => 'act_id',
|
|
|
+ 'desc' => '活动id',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'parent_name' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-300',
|
|
|
+ 'name' => '家长姓名',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '家长姓名',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'list' => true,
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'mobile' => array
|
|
|
+ (
|
|
|
+ 'type' => 'bigint-11',
|
|
|
+ 'name' => '联系电话',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '联系电话',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'list' => true,
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'area' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-500',
|
|
|
+ 'name' => '所在城市',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '所在城市',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'search' => 'linkage',
|
|
|
+ 'update' => 'linkage',
|
|
|
+ 'option' => Dever::url('api.get?level_total=2', 'area'),
|
|
|
+ 'list' => 'Dever::load("area/api.string", "{area}")',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'name' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-300',
|
|
|
+ 'name' => '宝贝姓名',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '宝贝姓名',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'list' => true,
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'age' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '宝贝年龄',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '宝贝年龄',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'sex' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '宝贝性别',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '宝贝性别',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'radio',
|
|
|
+ 'option' => $sex,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'height' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '宝贝身高',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '宝贝身高',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'weight' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '宝贝体重',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '宝贝体重',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'size' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '宝贝衣服尺码',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '宝贝衣服尺码',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'text',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'audit' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '审核状态',
|
|
|
+ 'default' => '2',
|
|
|
+ 'desc' => '审核状态',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'option' => $audit,
|
|
|
+ 'update' => $col ? 'radio' : false,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'audit_desc' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-500',
|
|
|
+ 'name' => '审核备注',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '审核备注',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => $col ? 'textarea' : false,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'audit_admin' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '审核人',
|
|
|
+ 'default' => '',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'desc' => '审核人',
|
|
|
+
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'status' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '状态',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '状态',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'option' => $status,
|
|
|
+ 'search' => 'select',
|
|
|
+ 'list' => true,
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'reorder' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '排序-数值越大越靠前,相当于置顶',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '请输入排序',
|
|
|
+ 'match' => 'option',
|
|
|
+
|
|
|
+ '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' => true,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+
|
|
|
+ 'manage' => array
|
|
|
+ (
|
|
|
+
|
|
|
+
|
|
|
+ 'list_button' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+
|
|
|
+ 'request' => array
|
|
|
+ (
|
|
|
+ 'list_button' => array
|
|
|
+ (
|
|
|
+ 'list' => array('查看详情', '"up&page_type=1&baoming_id={id}"'),
|
|
|
+
|
|
|
+ 'fast' => array('审核', '"baoming&where_id={id}&col=audit,audit_desc"', '{status} == 1'),
|
|
|
+ 'fast1' => array('反审核', '"baoming&where_id={id}&col=audit,audit_desc"', '{status} == 3'),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+);
|