'No', 2 => 'Yes', ); return array ( # 表名 'name' => 'contact', # 显示给用户看的名称 'lang' => '联系信息', 'order' => 100, # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'list' => true, ), 'name' => array ( 'type' => 'varchar-32', 'name' => 'Name', 'default' => '', 'desc' => 'Name', 'match' => 'is_string', 'update' => 'text', 'search' => 'fulltext', 'list' => true, ), 'email' => array ( 'type' => 'varchar-32', 'name' => 'Email', 'default' => '', 'desc' => 'Email', 'match' => Dever::rule('email'), 'update' => 'text', 'search' => 'fulltext', 'list' => true, ), 'message' => array ( 'type' => 'text-500', 'name' => 'Message', 'default' => '', 'desc' => 'Message', 'match' => 'is_string', 'update' => 'textarea', 'search' => 'fulltext', 'list' => true, ), 'status' => array ( 'type' => 'tinyint-1', 'name' => 'Status', 'default' => '', 'desc' => 'Status', 'match' => 'is_numeric', 'update' => 'radio', 'search' => 'select', 'option' => $status, 'list' => true, 'edit' => true, ), 'state' => array ( 'type' => 'tinyint-1', 'name' => '状态', 'default' => '1', 'desc' => '请选择状态', 'match' => 'is_numeric', ), 'cdate' => array ( 'type' => 'int-11', 'name' => 'Date', 'match' => array('is_numeric', time()), 'desc' => '', # 只有insert时才生效 'search' => 'date', 'insert' => true, 'list' => 'date("Y-m-d H:i", {cdate})', ), ), 'manage' => array ( 'insert' => false, 'edit' => false, 'delete' => false, ), );