123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <?php
- $home_top_type = array
- (
- 1 => '显示',
- 2 => '不显示',
- );
- return array
- (
- # 表名
- 'name' => 'config',
- # 显示给用户看的名称
- 'lang' => '基本配置',
- 'order' => 1,
- # 数据结构
- 'struct' => array
- (
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => '系统ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- ),
-
- 'hr1' => array
- (
- 'name' => '通用设置',
- 'class' => '',//本项必须填写
- 'attr' => '',
- ),
-
-
- 'name' => array
- (
- 'type' => 'varchar-32',
- 'name' => '系统名称',
- 'default' => '',
- 'desc' => '请输入系统名称',
- 'match' => 'is_string',
- 'update' => 'text',
- ),
-
- 'info' => array
- (
- 'type' => 'varchar-1000',
- 'name' => '系统描述',
- 'default' => '',
- 'desc' => '请输入系统描述',
- 'match' => 'option',
- 'update' => 'textarea',
- ),
- 'logo' => array
- (
- 'type' => 'varchar-150',
- 'name' => '系统LOGO',
- 'default' => '',
- 'desc' => '系统LOGO',
- 'match' => 'option',
- 'update' => 'image',
- 'key' => '1',
- 'place' => '150',
- ),
- 'home_top' => array
- (
- 'type' => 'varchar-150',
- 'name' => '首页顶部图片',
- 'default' => '',
- 'desc' => '首页顶部图片',
- 'match' => 'option',
- 'update' => 'image',
- 'key' => '1',
- 'place' => '690*228',
- ),
- 'home_top_type' => array
- (
- 'type' => 'int-11',
- 'name' => '首页顶部图片显示文字',
- 'default' => '1',
- 'desc' => '首页顶部图片显示文字',
- 'match' => 'is_numeric',
- 'update' => 'radio',
- 'option' => $home_top_type,
- 'search' => 'select',
- //'list' => true,
- ),
- 'hr5' => array
- (
- 'name' => '分享配置',
- 'class' => '',//本项必须填写
- 'attr' => '',
- ),
- 'share_title' => array
- (
- 'type' => 'varchar-100',
- 'name' => '分享标题-{name}为当前系统名称,{username}为当前登录的用户名',
- 'default' => '',
- 'desc' => '分享标题',
- 'match' => 'option',
- 'update' => 'text',
- ),
- 'share_pic' => array
- (
- 'type' => 'varchar-150',
- 'name' => '分享图片-图片尺寸570*570px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
- 'default' => '',
- 'desc' => '分享图片',
- 'match' => 'option',
- 'update' => 'image',
- 'key' => '1',
- 'place' => '150',
- //'upload' => 'qiniu',
- //'large' => true,
- ),
- 'share_content' => array
- (
- 'type' => 'varchar-200',
- 'name' => '分享内容',
- 'default' => '',
- 'desc' => '分享内容',
- 'match' => 'option',
- 'update' => 'textarea',
- ),
-
- 'cdate' => array
- (
- 'type' => 'int-11',
- 'name' => '录入时间',
- 'match' => array('is_numeric', time()),
- 'desc' => '',
- # 只有insert时才生效
- 'insert' => true,
- ),
- ),
- 'default' => array
- (
- 'col' => 'name,info,cdate',
- 'value' => array
- (
- '"合小记","合小记",' . time(),
- ),
- ),
- 'manage' => array
- (
- # 后台管理不要列表页
- 'list' => 'update',
- ),
- );
|