|
@@ -1,6 +1,8 @@
|
|
|
<?php
|
|
|
|
|
|
$page = 15;
|
|
|
+$audit = Dever::config('base')->audit;
|
|
|
+$function = Dever::config('base')->function;
|
|
|
$share = function()
|
|
|
{
|
|
|
$array = array();
|
|
@@ -46,6 +48,17 @@ return array
|
|
|
'insert' => 'tag/lib/core.data?source_table=video/live',
|
|
|
'update' => 'tag/lib/core.data?source_table=video/live',
|
|
|
),
|
|
|
+ # 同步更新另外一个或多个表的数据
|
|
|
+ 'syncone' => array
|
|
|
+ (
|
|
|
+ 'audit/data' => array
|
|
|
+ (
|
|
|
+ # 更新另外一个表的字段 => 本表的字段
|
|
|
+ 'where' => array('data_id' => 'id', 'type' => 3),
|
|
|
+ # 要更新的数据
|
|
|
+ 'update' => array('data_id' => 'id', 'type' => 3, 'pdate' => 'pdate', 'reorder' => 'reorder', 'name' => 'name', 'audit' => 'audit'),
|
|
|
+ )
|
|
|
+ ),
|
|
|
# 数据结构
|
|
|
'struct' => array
|
|
|
(
|
|
@@ -170,6 +183,16 @@ return array
|
|
|
'search' => 'order',
|
|
|
//'list' => '{num_view}+{num_add_view}',
|
|
|
),
|
|
|
+
|
|
|
+ 'num_add_up' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '喜欢基数',
|
|
|
+ 'default' => '0',
|
|
|
+ 'desc' => '喜欢基数',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'text',
|
|
|
+ ),
|
|
|
|
|
|
'num_up' => array
|
|
|
(
|
|
@@ -179,7 +202,7 @@ return array
|
|
|
'desc' => '请填写喜欢数',
|
|
|
'match' => 'option',
|
|
|
//'search' => 'order',
|
|
|
- 'list' => '"在线人数:{num_user}+{num_add_user}<br />喜欢数:{num_up}<br />浏览量:{num_view}+{num_add_view}<br />评论数:{num_comment}<br />"',
|
|
|
+ 'list' => '"在线人数:{num_user}+{num_add_user}<br />喜欢数:{num_up}+{num_add_up}<br />浏览量:{num_view}+{num_add_view}<br />评论数:{num_comment}<br />"',
|
|
|
'list_name' => '统计数字',
|
|
|
),
|
|
|
|
|
@@ -268,6 +291,64 @@ return array
|
|
|
'desc' => '',
|
|
|
),
|
|
|
|
|
|
+ 'function' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-100',
|
|
|
+ 'name' => '功能选择',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '功能选择',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'checkbox',
|
|
|
+ 'option' => $function,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'share_yes' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '是否显示分享按钮',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '是否显示分享按钮',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'radio',
|
|
|
+ 'option' => $share,
|
|
|
+ 'control' => 'share_yes',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'share_title' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-100',
|
|
|
+ 'name' => '分享标题',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '分享标题',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'show' => 'share_yes=1',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'share_pic' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-150',
|
|
|
+ 'name' => '分享图片',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '分享图片',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'image',
|
|
|
+ 'key' => '1',
|
|
|
+ 'place' => '150',
|
|
|
+ 'show' => 'share_yes=1',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'share_content' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-200',
|
|
|
+ 'name' => '分享内容',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '分享内容',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'textarea',
|
|
|
+ 'show' => 'share_yes=1',
|
|
|
+ ),
|
|
|
+
|
|
|
'content' => array
|
|
|
(
|
|
|
'type' => 'text-255',
|
|
@@ -279,6 +360,20 @@ return array
|
|
|
'key' => 1,
|
|
|
),
|
|
|
|
|
|
+ 'audit' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '审核状态',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '审核',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ //'update' => 'select',
|
|
|
+ 'option' => $audit,
|
|
|
+ 'search' => 'select',
|
|
|
+ 'list' => true,
|
|
|
+ 'edit' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
'cdate' => array
|
|
|
(
|
|
|
'type' => 'int-11',
|