|
@@ -134,33 +134,29 @@ if ($info) {
|
|
|
}
|
|
|
$key = 'col_' . $v['id'];
|
|
|
$list = false;
|
|
|
- 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';
|
|
|
- }
|
|
|
+ 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
|