dever 6 tahun lalu
induk
melakukan
d042ddd7e2
2 mengubah file dengan 64 tambahan dan 14 penghapusan
  1. 20 1
      journal/database/content.php
  2. 44 13
      journal/database/content_text.php

+ 20 - 1
journal/database/content.php

@@ -10,6 +10,12 @@ $type = array
     13 => '关联直播',
 );
 
+$is_button = array
+(
+    1 => '显示',
+    2 => '不显示',
+);
+
 $author = function()
 {
     $array = array();
@@ -74,7 +80,7 @@ return array
             'default'   => '',
             'desc'      => '焦点图',
             'match'     => 'option',
-            'update'  => 'images',
+            'update'  => 'image',
             'key'       => '1',
             'place'     => '150',
             'show'      => 'type=3',      
@@ -150,6 +156,19 @@ return array
             'show'      => 'type=1,2',      
         ),
 
+        'is_button'     => array
+        (
+            'type'      => 'int-11',
+            'name'      => '是否显示保存按钮',
+            'default'   => '1',
+            'desc'      => '是否显示保存按钮',
+            'match'     => 'is_numeric',
+            'update'    => 'radio',
+            'option'    => $is_button,
+           // 'search'    => 'select',
+            'show'      => 'type=1,2',      
+        ),
+
         'article_id'     => array
         (
             'type'      => 'int-11',

+ 44 - 13
journal/database/content_text.php

@@ -1,6 +1,6 @@
 <?php
 
-$type = array
+$location = array
 (
     1 => '上左',
     2 => '上中',
@@ -59,28 +59,59 @@ return array
             'value'     => Dever::input('search_option_content_id')
         ),
 
-        'type'     => array
+        'name'     => array
+        (
+            'type'      => 'varchar-800',
+            'name'      => '文字内容',
+            'default'   => '',
+            'desc'      => '文字内容',
+            'match'     => 'is_string',
+            'update'    => 'textarea',
+            'list'      => true,
+        ),
+        
+
+        'location'     => array
         (
             'type'      => 'int-11',
-            'name'      => '类型',
+            'name'      => '文字显示位置',
             'default'   => '1',
-            'desc'      => '类型',
+            'desc'      => '显示位置',
             'match'     => 'is_numeric',
             'update'    => 'radio',
-            'option'    => $type,
+            'option'    => $location,
         ),
 
-        'name'     => array
+        'color'     => array
         (
-            'type'      => 'varchar-800',
-            'name'      => '文字标题',
-            'default'   => '',
-            'desc'      => '文字标题',
+            'type'      => 'varchar-10',
+            'name'      => '文字颜色',
+            'default'   => '#000000',
+            'desc'      => '文字颜色',
             'match'     => 'is_string',
-            'update'    => 'textarea',
-            'list'      => true,
+            'update'    => 'color',
         ),
-        
+
+        'bgcolor'     => array
+        (
+            'type'      => 'varchar-10',
+            'name'      => '背景颜色',
+            'default'   => '#000000',
+            'desc'      => '背景颜色',
+            'match'     => 'is_string',
+            'update'    => 'color',
+        ),
+
+        'size'      => array
+        (
+            'type'      => 'int-11',
+            'name'      => '文字大小-直接输入像素数字',
+            'default'   => '16',
+            'desc'      => '文字大小',
+            'match'     => 'is_numeric',
+            'update'    => 'text',
+        ),
+
         'state'     => array
         (
             'type'      => 'tinyint-1',