'申请合作中', 2 => '已开通门店', ); return array ( # 表名 'name' => 'apply', # 显示给用户看的名称 'lang' => '申请合作记录', # 后台菜单排序 'order' => 200, 'menu' => false, # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'search' => 'order', 'list' => true, 'order' => 'desc', ), 'uid' => array ( 'type' => 'int-11', 'name' => '用户名', 'default' => '0', 'desc' => '请选择用户', 'match' => 'is_numeric', 'update' => 'text', //'search' => 'select', 'search' => array ( 'api' => 'passport/user-select', 'col' => 'username', 'result' => 'id', ), 'list' => '{uid} > 0 ? Dever::load("passport/user-find#username", {uid}) : "匿名用户"', ), 'name' => array ( 'type' => 'varchar-100', 'name' => '申请人姓名', 'default' => '', 'desc' => '申请人姓名', 'match' => 'is_string', 'update' => 'text', 'search' => 'fulltext', 'list' => true, ), 'mobile' => array ( 'type' => 'int-11', 'name' => '申请人电话', 'default' => '', 'desc' => '申请人电话', 'match' => 'is_numeric', 'update' => 'text', 'search' => 'fulltext', 'list' => true, ), 'city' => array ( 'type' => 'int-11', 'name' => '城市', 'default' => '', 'desc' => '城市', 'match' => 'option', //'update' => 'text', ), 'status' => array ( 'type' => 'int-11', 'name' => '申请状态', 'default' => '1', 'desc' => '申请状态', 'match' => 'is_numeric', //'update' => 'select', 'option' => $status, 'search' => 'select', 'list' => true, '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, 'list' => 'date("Y-m-d H:i:s", {cdate})', ), ), 'manage' => array ( 'insert' => false, ), 'request' => array ( ), );