|
@@ -0,0 +1,132 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+$table = Dever::config('base')->type;
|
|
|
+$time = time()+(3600*24*7);
|
|
|
+return array
|
|
|
+(
|
|
|
+
|
|
|
+ 'name' => 'form_id',
|
|
|
+
|
|
|
+ 'lang' => '模板form_id收集表',
|
|
|
+ 'menu' => false,
|
|
|
+
|
|
|
+ 'struct' => array
|
|
|
+ (
|
|
|
+ 'id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => 'ID',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'search' => 'order',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'type' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '类别',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '类别',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'search' => 'select',
|
|
|
+ 'option' => $table,
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'data_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '标题',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '标题',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'list' => 'Dever::load("act/lib/manage.load", "{type}", {data_id})',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'uid' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '用户id',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '用户id',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'form_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-700',
|
|
|
+ 'name' => 'form_id',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => 'form_id',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'state' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '状态',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '请选择状态',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'cdate' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '更新时间',
|
|
|
+ 'match' => array('is_numeric', time()),
|
|
|
+ 'desc' => '',
|
|
|
+ 'default' => '',
|
|
|
+ 'list' => 'date("Y-m-d H:i:s", {cdate})',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'top' => Dever::config('base', 'applet')->top,
|
|
|
+
|
|
|
+ 'manage' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ 'insert' => false,
|
|
|
+ 'edit' => false,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'request' => array
|
|
|
+ (
|
|
|
+ 'getAll' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ 'option' => array
|
|
|
+ (
|
|
|
+ 'product_id' => 'yes',
|
|
|
+ 'uid' => 'yes',
|
|
|
+ 'cdate' => array($time, '<='),
|
|
|
+ 'state' => 1,
|
|
|
+ ),
|
|
|
+ 'type' => 'all',
|
|
|
+ 'order' => array('cdate' => 'desc'),
|
|
|
+ 'limit' => '0,100',
|
|
|
+ 'col' => '*',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'getAllGroupByUid' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ 'option' => array
|
|
|
+ (
|
|
|
+ 'product_id' => 'yes',
|
|
|
+ 'cdate' => array($time, '<='),
|
|
|
+ 'state' => 1,
|
|
|
+ ),
|
|
|
+ 'type' => 'all',
|
|
|
+ 'group' => 'uid',
|
|
|
+ 'order' => array('cdate' => 'desc'),
|
|
|
+ 'col' => '*',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+);
|