CREATE TABLE SYPORTAL( ID VARCHAR(36), TITLE VARCHAR(100), SRC VARCHAR(200), HEIGHT NUMERIC(22), CLOSABLE VARCHAR(1), COLLAPSIBLE VARCHAR(1), SEQ NUMERIC(22) ) CREATE TABLE SYMENU( ID VARCHAR(36), PID VARCHAR(36), TEXT VARCHAR(100), ICONCLS VARCHAR(50), SRC VARCHAR(200), SEQ NUMERIC(22) ) CREATE TABLE SYRESOURCES( ID VARCHAR(36), PID VARCHAR(36), TEXT VARCHAR(100), SEQ NUMERIC(22), SRC VARCHAR(200), DESCRIPT VARCHAR(100), ONOFF VARCHAR(1), RESOURCES_ID VARCHAR(36)) CREATE TABLE SYROLE( ID VARCHAR(36), PID VARCHAR(36), TEXT VARCHAR(100), SEQ NUMERIC(22), DESCRIPT VARCHAR(100), SYROLE_ID VARCHAR(36), ROLE_ID VARCHAR(36)) CREATE TABLE SYROLE_SYRESOURCES( ID VARCHAR(36), ROLE_ID VARCHAR( 36), RESOURCES_ID VARCHAR( 36)) CREATE TABLE SYUSER( ID VARCHAR(36), NAME VARCHAR(100), PASSWORD VARCHAR(100), CREATEDATETIME DATE, MODIFYDATETIME DATE, SYUSER_ID VARCHAR(36)) INSERT INTO SYUSER VALUES ('0', 'admin', '21232f297a57a5a743894a0e4a801fc3', '2014-11-12 17:19:57', '2014-11-12 17:19:57', '') INSERT INTO SYMENU VALUES ('0', null, '首页', 'icon-tip', '/userController.do?home', 0) INSERT INTO SYMENU VALUES ('xzcf', '0', '行政处罚', '', '', 1) INSERT INTO SYMENU VALUES ('xtgl', '0', '系统管理', '', '', 0) INSERT INTO SYMENU VALUES ('userInfo', '0', '个人信息', '', '/userController.do?userInfo', 2) INSERT INTO SYMENU VALUES ('baidu', '0', '百度', '', 'http:baidu.com', 2) INSERT INTO SYMENU VALUES ('zygl', 'xtgl', '资源管理', '', '/resourcesController.do?resources', 3) INSERT INTO SYMENU VALUES ('yhgl', 'xtgl', '用户管理', '', '/userController.do?user', 2) INSERT INTO SYMENU VALUES ('xttz', 'xtgl', '系统探针', '', '/userController.do?jspinfo', 1) INSERT INTO SYMENU VALUES ('cdgl', 'xtgl', '菜单管理', '', '/menuController.do?menu', 0) INSERT INTO SYMENU VALUES ('role', 'xtgl', '角色管理', '', '/roleController.do?role', 0) INSERT INTO SYMENU VALUES ('portal', 'xtgl', '门户管理', '', '/portalController.do?portal', 0) INSERT INTO SYMENU VALUES ('zfgl', 'xzcf', '执法管理', '', '', 0) INSERT INTO SYMENU VALUES ('ajcx', 'xzcf', '案件查询', '', '', 0) INSERT INTO SYMENU VALUES ('ajtj', 'xzcf', '案件统计', '', '', 0) INSERT INTO SYPORTAL VALUES ('syportal1', '测试', '/portal/use.jsp', 150, '1', '1', 1) INSERT INTO SYPORTAL VALUES ('syportal1', '关于SyPro', '/portal/about.jsp', 150, '1', '1', 2) INSERT INTO SYPORTAL VALUES ('syportal1', '组织', '/portal/ad.jsp', 160, '0', '1', 3) INSERT INTO SYPORTAL VALUES ('syportal1', '群', '/portal/qun.jsp', 100, '0', '1', 4) INSERT INTO SYPORTAL VALUES ('syportal1', '源码', '/portal/source.jsp', 60, '0', '0', 5) INSERT INTO SYPORTAL VALUES ('syportal1', '已实现功能', '/portal/impl.jsp', 150, '1', '1', 6) INSERT INTO SYROLE VALUES ('0', '', '超管角色', 0, '超级管理员角色', '', '') INSERT INTO SYRESOURCES VALUES ('xtgl', '', '系统管理', 1, '', '系统管理', '', '') INSERT INTO SYRESOURCES VALUES ('sy', '', '首页', 1, '/userController.do?north', '首页', '0', '') INSERT INTO SYRESOURCES VALUES ('north', '', 'north', 1, '/userController.do?north', 'north', '0', '') INSERT INTO SYRESOURCES VALUES ('west', '', 'west', 1, '/userController.do?west', 'west', '0', '') INSERT INTO SYRESOURCES VALUES ('center', '', 'center', 1, '/userController.do?center', 'center', '0', '') INSERT INTO SYRESOURCES VALUES ('south', '', 'south', 1, '/userController.do?south', 'v', '0', '') INSERT INTO SYRESOURCES VALUES ('zygl', '', '资源管理', 3, '', '', '0', '') INSERT INTO SYRESOURCES VALUES ('yhgl', '', '用户管理', 2, '', '', '0', '') INSERT INTO SYRESOURCES VALUES ('xttz', '', '系统探针', 1, '/userController.do?jspinfo', '', '', '') INSERT INTO SYRESOURCES VALUES ('cdgl', '', '菜单管理', 0, '', '', '0', '') INSERT INTO SYRESOURCES VALUES ('role', '', '角色管理', 0, '', '', '0', '') INSERT INTO SYRESOURCES VALUES ('portal', '', '门户管理', 0, '', '', '0', '') INSERT INTO SYRESOURCES VALUES ('portal_page', '', '门户管理页面', 0, '/portalController.do?portal', '', '1', '') INSERT INTO SYRESOURCES VALUES ('portal_datagrid', '', '查询门户表格', 3, '/portalController.do?datagrid', '', '1', '') INSERT INTO SYRESOURCES VALUES ('portal_show', '', '显示门户内容', 3, '/portalController.do?show', '', '0', '') INSERT INTO SYRESOURCES VALUES ('portal_del', '', '删除门户内容', 3, '/portalController.do?del', '', '1', '') INSERT INTO SYRESOURCES VALUES ('portal_add', '', '添加门户内容', 3, '/portalController.do?add', '', '0', '') INSERT INTO SYRESOURCES VALUES ('portal_edit', '', '编辑门户内容', 3, '/portalController.do?edit', '', '0', '') INSERT INTO SYRESOURCES VALUES ('jsgl_page', '', '角色管理页面', 1, '/userController.do?north', '', '0', '') INSERT INTO SYRESOURCES VALUES ('jsgl_add', '', '添加角色', 3, '/roleController.do?add', '', '1', '') INSERT INTO SYRESOURCES VALUES ('jsgl_del', '', '删除角色', 3, '/roleController.do?del', '', '1', '') INSERT INTO SYRESOURCES VALUES ('jsgl_edit', '', '修改角色', 3, '/roleController.do?edit', '', '1', '') INSERT INTO SYRESOURCES VALUES ('jsgl_treegrid', '', '查询角色表格', 3, '/roleController.do?treegrid', '', '1', '') INSERT INTO SYRESOURCES VALUES ('jsgl_tree', '', '查询角色树', 3, '/roleController.do?tree', '', '0', '') INSERT INTO SYRESOURCES VALUES ('cdgl_page', '', '菜单管理页面', 0, '/menuController.do?menu', '', '1', '') INSERT INTO SYRESOURCES VALUES ('cdgl_add', '', '添加菜单', 3, '/menuController.do?add', '', '1', '') INSERT INTO SYRESOURCES VALUES ('cdgl_del', '', '删除菜单', 3, '/menuController.do?del', '', '1', '') INSERT INTO SYRESOURCES VALUES ('cdgl_edit', '', '修改菜单', 3, '/menuController.do?edit', '', '1', '') INSERT INTO SYRESOURCES VALUES ('cdgl_treegrid', '', '查询菜单表格', 3, '/menuController.do?treegrid', '', '1', '') INSERT INTO SYRESOURCES VALUES ('cdgl_tree', '', '查询菜单树', 3, '/menuController.do?tree', '', '0', '') INSERT INTO SYRESOURCES VALUES ('yhgl_page', '', '用户管理页面', 0, '/userController.do?user', '', '1', '') INSERT INTO SYRESOURCES VALUES ('yhgl_add', '', '添加用户', 2, '/userController.do?add', '', '1', '') INSERT INTO SYRESOURCES VALUES ('yhgl_edit', '', '编辑用户', 2, '/userController.do?edit', '', '1', '') INSERT INTO SYRESOURCES VALUES ('yhgl_editUsersRole', '', '批量编辑用户角色', 2, '/userController.do?editUsersRole', '', '1', '') INSERT INTO SYRESOURCES VALUES ('yhgl_userInfo', '', '个人信息页面', 2, '/userController.do?userInfo', '', '1', '') INSERT INTO SYRESOURCES VALUES ('yhgl_getUserInfo', '', '获得个人信息', 2, '/userController.do?getUserInfo', '', '0', '') INSERT INTO SYRESOURCES VALUES ('yhgl_editUserInfo', '', '编辑个人信息', 2, '/userController.do?editUserInfo', '', '0', '') INSERT INTO SYRESOURCES VALUES ('yhgl_del', '', '删除用户', 2, '/userController.do?del', '', '1', '') INSERT INTO SYRESOURCES VALUES ('yhgl_datagrid', '', '用户表格', 2, '/userController.do?datagrid', '', '1', '') INSERT INTO SYRESOURCES VALUES ('yhgl_loginCombobox', '', '用户登录', 2, '/userController.do?loginCombobox', '', '0', '') INSERT INTO SYRESOURCES VALUES ('yhgl_loginDatagrid', '', '用户登录', 2, '/userController.do?loginDatagrid', '', '0', '') INSERT INTO SYRESOURCES VALUES ('yhgl_login', '', '用户登录', 2, '/userController.do?login', '', '0', '') INSERT INTO SYRESOURCES VALUES ('yhgl_reg', '', '用户注册', 2, '/userController.do?reg', '', '0', '') INSERT INTO SYRESOURCES VALUES ('yhgl_logout', '', '注销', 2, '/userController.do?logout', '', '0', '') INSERT INTO SYRESOURCES VALUES ('zygl_page', '', '资源管理页面', 0, '/resourcesController.do?resources', '', '1', '') INSERT INTO SYRESOURCES VALUES ('zygl_add', '', '添加资源', 3, '/resourcesController.do?add', '', '1', '') INSERT INTO SYRESOURCES VALUES ('zygl_del', '', '删除资源', 3, '/resourcesController.do?del', '', '1', '') INSERT INTO SYRESOURCES VALUES ('zygl_edit', '', '修改资源', 3, '/resourcesController.do?edit', '', '1', '') INSERT INTO SYRESOURCES VALUES ('zygl_treegrid', '', '查询资源表格', 3, '/resourcesController.do?treegrid', '', '1', '') INSERT INTO SYRESOURCES VALUES ('zygl_tree', '', '查询资源树', 3, '/resourcesController.do?tree', '', '1', '')