| 
					
				 | 
			
			
				@@ -23,6 +23,7 @@ $data = array 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 (
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     1 => '内容自定义',
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 );
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+$lang = array();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 $name = '推送数据管理';
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 if ($info) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $info = Dever::db('push/info')->one($info);
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -116,7 +117,8 @@ $struct = array 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 );
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 if ($info) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    $col = Dever::db('push/col')->getAll(array('id' => $info['col']));
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $info['col'] = explode(',', $info['col']);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $col = Dever::db('push/col')->getAll();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if ($col) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $pic_index = 0;
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -124,7 +126,6 @@ if ($info) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $pic = $info['col_pic'];
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $pic_temp = explode("\r\n", $pic);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     	foreach ($col as $k => $v) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $place = $v['pic'];
 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -133,30 +134,35 @@ if ($info) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             $key = 'col_' . $v['id'];
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     		$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 = 'hidden';
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 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
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	        (
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	            //'col'       => 'col_' . $v['id'],
 
			 |