|
@@ -0,0 +1,130 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+$status = Dever::config('base')->status;
|
|
|
+
|
|
|
+
|
|
|
+$page = 10;
|
|
|
+
|
|
|
+$type = array
|
|
|
+(
|
|
|
+ 1 => '分享活动',
|
|
|
+);
|
|
|
+
|
|
|
+$get = array
|
|
|
+(
|
|
|
+ 1 => '获取优惠券',
|
|
|
+),
|
|
|
+
|
|
|
+
|
|
|
+$col = '*';
|
|
|
+
|
|
|
+return array
|
|
|
+(
|
|
|
+
|
|
|
+ 'name' => 'info',
|
|
|
+
|
|
|
+ 'lang' => '活动管理',
|
|
|
+ 'order' => 99,
|
|
|
+
|
|
|
+
|
|
|
+ 'struct' => array
|
|
|
+ (
|
|
|
+ 'id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => 'ID',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'name' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-80',
|
|
|
+ 'name' => '标题-活动标题,同时也用于分享标题',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '标题',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'list' => true,
|
|
|
+ 'search' => 'fulltext',
|
|
|
+
|
|
|
+ 'preview' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'desc' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-500',
|
|
|
+ 'name' => '摘要-活动摘要,同时也用于分享内容',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '摘要',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'textarea',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'content' => array
|
|
|
+ (
|
|
|
+ 'type' => 'text-255',
|
|
|
+ 'name' => '内容',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '请输入内容',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'editor',
|
|
|
+ 'key' => '1',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'state' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '状态',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '请选择状态',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'cdate' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '录入时间',
|
|
|
+ 'match' => array('is_numeric', time()),
|
|
|
+ 'desc' => '',
|
|
|
+
|
|
|
+ 'insert' => true,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+
|
|
|
+ 'manage' => array
|
|
|
+ (
|
|
|
+
|
|
|
+
|
|
|
+ 'list_button' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+
|
|
|
+ 'request' => array
|
|
|
+ (
|
|
|
+ 'search' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ 'option' => array
|
|
|
+ (
|
|
|
+ 'ids' => array('yes-id', 'in'),
|
|
|
+ 'cate_id' => 'yes',
|
|
|
+ 'name' => array('yes', 'like'),
|
|
|
+ 'id' => 'yes',
|
|
|
+ 'state' => 1,
|
|
|
+ ),
|
|
|
+ 'type' => 'all',
|
|
|
+ 'order' => array('reorder' => 'desc', 'pdate' => 'desc'),
|
|
|
+ 'limit' => '0,1000',
|
|
|
+ 'col' => 'name as name, id, id as value, "" as selected, "" as disabled|id',
|
|
|
+ ),
|
|
|
+
|
|
|
+
|
|
|
+ ),
|
|
|
+);
|