| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 | <?phpreturn array(    # 表名    'name' => 'pcate',    # 显示给用户看的名称    'lang' => '产品类型设置',    # 后台菜单排序    'order' => 95,    'menu' => false,    // 'auto' => 100000,    # 数据结构    'struct' => array    (        'id'        => array        (            'type'      => 'int-11',            'name'      => 'ID',            'default'   => '',            'desc'      => '',            'match'     => 'is_numeric',            'search'    => 'order',            'list'      => true,            'order'     => 'desc',        ),        'name'      => array        (            'type'      => 'varchar-200',            'name'      => '名称',            'default'   => '',            'desc'      => '名称',            'match'     => 'is_string',            'update'    => 'text',            'search'    => 'fulltext',            'list'      => true,        ),        'reorder'       => array        (            'type'      => 'int-11',            'name'      => '排序-数值越大越靠前',            'default'   => '1',            'desc'      => '请输入排序',            'match'     => 'option',            'update'  => 'text',            'search'    => 'order',            'list'      => true,            'order'     => 'desc',            'edit'      => true,        ),        '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,            ),    'request' => array    (        'getAll' => array        (            # 匹配的正则或函数 选填项            'option' => array            (                // 'id' => array('yes','>'),                'state' => 1,            ),            'type' => 'all',            'order' => array('reorder' => 'desc', 'id' => 'asc'),            'col' => '*',        ),    ),);
 |