123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 |
- <?php
- $type = array
- (
- 1 => '手动输入',
-
- );
- $col = array
- (
- 1 => '标题',
-
- 3 => '图片',
- 4 => '描述',
- );
- return array
- (
-
- 'name' => 'info',
-
- 'lang' => '推送位管理',
- 'order' => 10,
- 'check' => 'key',
-
- 'struct' => array
- (
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => '推送位ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
-
- 'order' => 'desc',
-
- ),
-
- 'name' => array
- (
- 'type' => 'varchar-60',
- 'name' => '推送位标题',
- 'default' => '',
- 'desc' => '请输入推送位标题',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- 'edit' => true,
- ),
- 'key' => array
- (
- 'type' => 'varchar-60',
- 'name' => '推送位标识',
- 'default' => '',
- 'desc' => '推送位标识',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- ),
- 'num' => array
- (
- 'type' => 'int-11',
- 'name' => '数据总条数-为空或小于0则不限制,只对前台有效',
- 'default' => '5',
- 'desc' => '请输入数据总条数',
- 'match' => 'is_numeric',
- 'update' => 'text',
- 'list' => true,
- 'edit' => true,
- ),
- 'type' => array
- (
- 'type' => 'tinyint-1',
- 'name' => '推送位类型',
- 'default' => '1',
- 'desc' => '请选择推送位类型',
- 'match' => 'is_numeric',
- 'option' => $type,
- 'update' => 'radio',
- 'search' => 'select',
-
- 'control' => 'type',
- ),
-
- 'col' => array
- (
- 'type' => 'varchar-30',
- 'name' => '启用的字段',
- 'default' => '1',
- 'desc' => '请选择启用的字段',
- 'match' => 'is_string',
- 'option' => $col,
- 'update' => 'checkbox',
- 'show' => 'type=1',
- 'control' => 'col',
- ),
- 'col_pic' => array
- (
- 'type' => 'varchar-20',
- 'name' => '图片尺寸提醒-请直接输入提醒的文字即可,如100X100',
- 'default' => '100X100',
- 'desc' => '图片尺寸提醒',
- 'match' => 'is_string',
- 'update' => 'text',
- 'show' => 'col=3',
- ),
- 'col_content' => array
- (
- 'type' => 'int-11',
- 'name' => '内容长度限制-必须是数字',
- 'default' => '30',
- 'desc' => '内容长度限制',
- 'match' => 'is_numeric',
- 'update' => 'text',
- 'show' => 'col=4',
- ),
-
-
- 'reorder' => array
- (
- 'type' => 'int-11',
- 'name' => '排序(数值越大越靠前)',
- 'default' => '1',
- 'desc' => '请输入排序',
- 'match' => 'option',
- 'update' => 'text',
- 'search' => 'order',
- 'list_name' => '排序',
- 'list' => true,
- 'order' => 'desc',
-
- ),
- '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,
- 'list' => 'date("Y-m-d H:i:s", {cdate})',
- ),
- ),
-
-
- 'manage' => array
- (
-
- 'list_button' => array
- (
- 'add' => array('新增数据', '"data&search_option_info_id={id}&oper_parent=info"', '{type} == 1'),
- 'list' => array('数据列表', '"data&search_option_info_id={id}&oper_parent=info"'),
- ),
- ),
-
- 'request' => array
- (
-
- 'getAll' => array
- (
-
- 'option' => array
- (
- 'type' => 'yes',
-
- 'state' => 1,
- ),
- 'type' => 'all',
- 'order' => array('reorder' => 'desc'),
- 'col' => '*',
- ),
- ),
- );
|