|
@@ -0,0 +1,167 @@
|
|
|
+<?php
|
|
|
+$info = function()
|
|
|
+{
|
|
|
+ return Dever::db('collection/info')->state();
|
|
|
+};
|
|
|
+
|
|
|
+$type = array
|
|
|
+(
|
|
|
+ 1 => '未回复',
|
|
|
+ 2 => '已回复',
|
|
|
+);
|
|
|
+$info_id = Dever::input('search_option_info_id');
|
|
|
+return array
|
|
|
+(
|
|
|
+
|
|
|
+ 'name' => 'feedback',
|
|
|
+
|
|
|
+ 'lang' => '反馈管理',
|
|
|
+
|
|
|
+ 'order' => 80,
|
|
|
+ 'menu' => false,
|
|
|
+
|
|
|
+ 'struct' => array
|
|
|
+ (
|
|
|
+ 'id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => 'ID',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'order' => 'desc',
|
|
|
+
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'uid' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '用户名',
|
|
|
+ 'default' => '0',
|
|
|
+ 'desc' => '请选择用户',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'text',
|
|
|
+
|
|
|
+ 'search' => array
|
|
|
+ (
|
|
|
+ 'api' => 'passport/user-all',
|
|
|
+ 'col' => 'username',
|
|
|
+ 'result' => 'id',
|
|
|
+ ),
|
|
|
+
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'info_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '合集信息',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '合集ID',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'select',
|
|
|
+ 'option' => $info,
|
|
|
+ 'value' => $info_id,
|
|
|
+
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'pic' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-2000',
|
|
|
+ 'name' => '图片-图片尺寸不等,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '图片',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'images',
|
|
|
+ 'key' => '1',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'content' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-800',
|
|
|
+ 'name' => '内容',
|
|
|
+ 'update' => 'editor',
|
|
|
+ 'key' => 1,
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '请输入内容',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'search' => 'fulltext',
|
|
|
+
|
|
|
+
|
|
|
+ 'list' => 'Dever::load("user/lib/manage.feedback", {id})',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'type' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '是否回复',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '是否回复',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'radio',
|
|
|
+ 'option' => $type,
|
|
|
+ 'list' => true,
|
|
|
+ 'edit' => 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' => '',
|
|
|
+
|
|
|
+ 'insert' => true,
|
|
|
+ 'search' => 'date',
|
|
|
+ 'list' => 'date("Y-m-d H:i:s", {cdate})',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'manage' => array
|
|
|
+ (
|
|
|
+ 'insert' => false,
|
|
|
+ 'edit' => false,
|
|
|
+ 'delete' => false,
|
|
|
+ ),
|
|
|
+
|
|
|
+
|
|
|
+ 'request' => array
|
|
|
+ (
|
|
|
+ 'getAll' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ 'option' => array
|
|
|
+ (
|
|
|
+ 'uid' => 'yes',
|
|
|
+ 'state' => 1,
|
|
|
+ ),
|
|
|
+ 'type' => 'all',
|
|
|
+ 'order' => array('id' => 'asc'),
|
|
|
+ 'page' => array(1000, 'list'),
|
|
|
+ 'col' => '*',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'getData' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ 'option' => array
|
|
|
+ (
|
|
|
+ 'uid' => 'yes',
|
|
|
+ 'state' => 1,
|
|
|
+ ),
|
|
|
+ 'type' => 'all',
|
|
|
+ 'order' => array('id' => 'desc'),
|
|
|
+ 'page' => array(10, 'list'),
|
|
|
+ 'col' => '*',
|
|
|
+ ),
|
|
|
+ )
|
|
|
+);
|