'图片', 2 => '文字', ); return array ( # 表名 'name' => 'model', # 显示给用户看的名称 'lang' => '模块设置', 'menu' => false, 'check' => 'template_id,key', # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'search' => 'order', //'list' => true, ), 'template_id' => array ( 'type' => 'int-11', 'name' => '所属模板', 'default' => '1', 'desc' => '请选择所属模板', 'match' => 'is_numeric', 'update' => 'hidden', 'value' => Dever::input('search_option_template_id') ), 'name' => array ( 'type' => 'varchar-32', 'name' => '模块名称', 'default' => '', 'desc' => '模块名称', 'match' => 'is_string', 'update' => 'text', 'search' => 'fulltext', 'list' => true, ), 'key' => array ( 'type' => 'varchar-32', 'name' => '模块标识-设置模块时,使用该标识来设置模块信息', 'default' => '', 'desc' => '模块标识', 'match' => 'is_string', 'update' => 'text', 'search' => 'fulltext', 'list' => true, ), 'type' => array ( 'type' => 'int-11', 'name' => '模块类型', 'default' => '1', 'desc' => '请选择模块类型', 'match' => 'is_numeric', 'update' => 'radio', 'option' => $type, 'search' => 'select', 'list' => true, 'control' => 'type', ), 'position' => array ( 'type' => 'varchar-32', 'name' => '模块位置-位置为top,left,如100,200', 'default' => '0,0', 'desc' => '模块位置', 'match' => 'is_string', 'update' => 'text', ), 'width' => array ( 'type' => 'varchar-11', 'name' => '图片宽度', 'default' => '200', 'desc' => '图片宽度', 'match' => 'is_string', 'update' => 'text', 'show' => 'type=1', ), 'height' => array ( 'type' => 'varchar-11', 'name' => '图片高度', 'default' => '200', 'desc' => '图片高度', 'match' => 'is_string', 'update' => 'text', 'show' => 'type=1', ), 'color' => array ( 'type' => 'varchar-10', 'name' => '文字颜色', 'default' => '#000000', 'desc' => '文字颜色', 'match' => 'is_string', 'update' => 'text', 'show' => 'type=2', ), 'size' => array ( 'type' => 'int-11', 'name' => '文字大小-直接输入像素数字', 'default' => '16', 'desc' => '文字大小', 'match' => 'is_numeric', 'update' => 'text', 'show' => 'type=2', ), 'angle' => array ( 'type' => 'int-11', 'name' => '角度-直接输入数字', 'default' => '0', 'desc' => '角度', 'match' => 'is_numeric', 'update' => 'text', 'show' => 'type=2', ), '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时才生效 'insert' => true, 'search' => 'date', 'list' => 'date("Y-m-d H:i:s", {cdate})', ), ), );