|
@@ -24,6 +24,17 @@ $system = function()
|
|
|
return $array;
|
|
|
};
|
|
|
|
|
|
+$profession = function()
|
|
|
+{
|
|
|
+ $array = array();
|
|
|
+ $info = Dever::db('passport/profession')->state();
|
|
|
+ if($info)
|
|
|
+ {
|
|
|
+ $array += $info;
|
|
|
+ }
|
|
|
+ return $array;
|
|
|
+};
|
|
|
+
|
|
|
$sex = array
|
|
|
(
|
|
|
1 => '男',
|
|
@@ -69,6 +80,8 @@ return array
|
|
|
(
|
|
|
'email' => $email,
|
|
|
'mobile' => $mobile,
|
|
|
+ 'source_type' => $source_type,
|
|
|
+ 'sex' => $sex,
|
|
|
# 表名
|
|
|
'name' => 'user',
|
|
|
# 显示给用户看的名称
|
|
@@ -143,6 +156,29 @@ return array
|
|
|
//'list' => true,
|
|
|
),
|
|
|
|
|
|
+ 'profession' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '职业',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '职业',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'option' => $profession,
|
|
|
+ //'update' => 'select',
|
|
|
+ //'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'wechat' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-100',
|
|
|
+ 'name' => '微信号',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '微信号',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ //'update' => 'select',
|
|
|
+ //'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
'source_type' => array
|
|
|
(
|
|
|
'type' => 'varchar-100',
|
|
@@ -153,7 +189,7 @@ return array
|
|
|
'update' => 'select',
|
|
|
'option' => $source_type,
|
|
|
'search' => 'select',
|
|
|
- 'list' => true,
|
|
|
+ //'list' => true,
|
|
|
),
|
|
|
|
|
|
'email' => array
|
|
@@ -190,7 +226,9 @@ return array
|
|
|
'update' => 'image',
|
|
|
'key' => '1',
|
|
|
'place' => '150',
|
|
|
- 'list' => '"{avatar}" ? "<img src=\'{avatar}\' width=\'150\'>": ""',
|
|
|
+ 'list_name' => '详细信息',
|
|
|
+ //'list' => '"{avatar}" ? "<img src=\'{avatar}\' width=\'150\'>": ""',
|
|
|
+ 'list' => 'Dever::load("passport/lib/manage.show", {id})',
|
|
|
),
|
|
|
|
|
|
'country' => array
|
|
@@ -200,7 +238,7 @@ return array
|
|
|
'default' => '',
|
|
|
'desc' => '国家',
|
|
|
'match' => 'option',
|
|
|
- 'update' => 'text',
|
|
|
+ //'update' => 'text',
|
|
|
),
|
|
|
|
|
|
'province' => array
|
|
@@ -210,7 +248,7 @@ return array
|
|
|
'default' => '',
|
|
|
'desc' => '省份',
|
|
|
'match' => 'option',
|
|
|
- 'update' => 'text',
|
|
|
+ //'update' => 'text',
|
|
|
),
|
|
|
|
|
|
'city' => array
|
|
@@ -220,7 +258,7 @@ return array
|
|
|
'default' => '',
|
|
|
'desc' => '城市',
|
|
|
'match' => 'option',
|
|
|
- 'update' => 'text',
|
|
|
+ //'update' => 'text',
|
|
|
),
|
|
|
|
|
|
'area' => array
|
|
@@ -230,8 +268,30 @@ return array
|
|
|
'default' => '',
|
|
|
'desc' => '地区',
|
|
|
'match' => 'option',
|
|
|
- 'update' => 'text',
|
|
|
- 'list' => true,
|
|
|
+ //'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'area_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-800',
|
|
|
+ 'name' => '地区',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '地区',
|
|
|
+ 'match' => 'option',
|
|
|
+ //'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'address' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-1000',
|
|
|
+ 'name' => '详细地址',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '详细地址',
|
|
|
+ 'match' => 'option',
|
|
|
+ //'update' => 'text',
|
|
|
+ //'list' => true,
|
|
|
),
|
|
|
|
|
|
'info' => array
|
|
@@ -286,10 +346,10 @@ return array
|
|
|
'default' => '1',
|
|
|
'desc' => '是否临时用户',
|
|
|
'match' => 'is_numeric',
|
|
|
- 'search' => 'select',
|
|
|
+ //'search' => 'select',
|
|
|
'option' => $temp,
|
|
|
//'update' => 'select',
|
|
|
- 'list' => true,
|
|
|
+ //'list' => true,
|
|
|
),
|
|
|
|
|
|
'login_date' => array
|