|
@@ -93,7 +93,7 @@ $struct = array
|
|
(
|
|
(
|
|
'type' => 'int-11',
|
|
'type' => 'int-11',
|
|
'name' => '关联数据',
|
|
'name' => '关联数据',
|
|
- 'default' => '',
|
|
|
|
|
|
+ 'default' => 'null',
|
|
'desc' => '关联数据',
|
|
'desc' => '关联数据',
|
|
'match' => 'option',
|
|
'match' => 'option',
|
|
'update' => 'select',
|
|
'update' => 'select',
|
|
@@ -134,29 +134,33 @@ if ($info) {
|
|
}
|
|
}
|
|
$key = 'col_' . $v['id'];
|
|
$key = 'col_' . $v['id'];
|
|
$list = false;
|
|
$list = false;
|
|
- if ($v['type'] == 1) {
|
|
|
|
- $update_type = 'text';
|
|
|
|
- $lang[] = $key;
|
|
|
|
- $list = true;
|
|
|
|
- } elseif ($v['type'] == 2) {
|
|
|
|
- $update_type = 'textarea';
|
|
|
|
- $lang[] = $key;
|
|
|
|
- $list = true;
|
|
|
|
- } elseif ($v['type'] == 3) {
|
|
|
|
- $update_type = 'editor';
|
|
|
|
- $lang[] = $key;
|
|
|
|
- } elseif ($v['type'] == 4) {
|
|
|
|
- $update_type = 'image';
|
|
|
|
- $pic_index++;
|
|
|
|
- } elseif ($v['type'] == 5) {
|
|
|
|
- $update_type = 'images';
|
|
|
|
- $pic_index++;
|
|
|
|
- } elseif ($v['type'] == 6) {
|
|
|
|
- $update_type = 'radio';
|
|
|
|
- } elseif ($v['type'] == 7) {
|
|
|
|
- $update_type = 'checkbox';
|
|
|
|
- } elseif ($v['type'] == 8) {
|
|
|
|
- $update_type = 'day';
|
|
|
|
|
|
+ if (!in_array($v['id'], $info['col'])) {
|
|
|
|
+ $update_type = false;
|
|
|
|
+ } else {
|
|
|
|
+ if ($v['type'] == 1) {
|
|
|
|
+ $update_type = 'text';
|
|
|
|
+ $lang[] = $key;
|
|
|
|
+ $list = true;
|
|
|
|
+ } elseif ($v['type'] == 2) {
|
|
|
|
+ $update_type = 'textarea';
|
|
|
|
+ $lang[] = $key;
|
|
|
|
+ $list = true;
|
|
|
|
+ } elseif ($v['type'] == 3) {
|
|
|
|
+ $update_type = 'editor';
|
|
|
|
+ $lang[] = $key;
|
|
|
|
+ } elseif ($v['type'] == 4) {
|
|
|
|
+ $update_type = 'image';
|
|
|
|
+ $pic_index++;
|
|
|
|
+ } elseif ($v['type'] == 5) {
|
|
|
|
+ $update_type = 'images';
|
|
|
|
+ $pic_index++;
|
|
|
|
+ } elseif ($v['type'] == 6) {
|
|
|
|
+ $update_type = 'radio';
|
|
|
|
+ } elseif ($v['type'] == 7) {
|
|
|
|
+ $update_type = 'checkbox';
|
|
|
|
+ } elseif ($v['type'] == 8) {
|
|
|
|
+ $update_type = 'day';
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
$struct[$key] = array
|
|
$struct[$key] = array
|