state(array('type'=>1)); if($data) { $array += $data; } return $array; }; $a = '下载模板'; return array ( # 表名 'name' => 'import', # 显示给用户看的名称 'lang' => '线索导入', # 后台菜单排序 'order' => 2, 'menu' => false, // 'auto' => 100000, 'start'=>array ( 'insert'=>'clue/lib/manage.updateImport', 'update'=>'clue/lib/manage.updateImport', ), # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'search' => 'order', 'list' => true, 'order' => 'desc', ), 'source' => array ( 'type' => 'int-11', 'name' => '来源', 'default' => '1', 'desc' => '', 'match' => 'is_string', 'option' => $source, 'update' => 'radio', // 'search' => $search_auth == 1 ? 'select' : false, // 'list' => true, ), 'file' => array ( 'type' => 'varchar-500', 'name' => '上传Excel文件或csv文件-'.$a, 'default' => '', 'desc' => '上传Excel文件或csv文件', 'match' => 'is_string', 'update' => 'upload', 'key' => '8', //'place' => '150', ), '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, 'list' => 'date("Y-m-d H:i:s", {cdate})', ), ), 'manage' => array ( //'insert' => false, // 'delete' => false, // 'edit' => false, # 后台管理不要列表页 'list' => 'update', ), 'request' => array ( ), );