added initial sysadmin menu items and dialogs, fixed a few things about dialog
operation here and there
This commit is contained in:
@@ -569,18 +569,28 @@ INSERT INTO imagetype (typecode, nsid, name) VALUES
|
||||
|
||||
#### following this line is initialization of Venice-specific tables ####
|
||||
|
||||
# Create the "global" menu.
|
||||
# Create the "global" menu. (ID #1)
|
||||
INSERT INTO menus (menuid, menu_nsid, menu_name, title, subtitle)
|
||||
VALUES (1, 1, 'fixed.menu', 'About This Site', NULL);
|
||||
INSERT INTO menuitems (menuid, sequence, itemtype, text, linktype, link) VALUES
|
||||
(1, 0, 'TEXT', 'Documentation', 'ABSOLUTE', 'TODO' ),
|
||||
(1, 1, 'TEXT', 'About Venice', 'FRAME', 'about-venice.html'),
|
||||
(1, 2, 'TEXT', 'System Administration', 'ABSOLUTE', 'TODO' );
|
||||
(1, 0, 'TEXT', 'Documentation', 'ABSOLUTE', 'TODO' ),
|
||||
(1, 1, 'TEXT', 'About Venice', 'FRAME', 'about-venice.html' ),
|
||||
(1, 2, 'TEXT', 'System Administration', 'SERVLET', 'sysadmin/main.js.vs');
|
||||
UPDATE menuitems SET enable = 0 WHERE menuid = 1 AND sequence = 0;
|
||||
UPDATE menuitems SET perm_nsid = 13, perm_name = 'show.admin.menu' WHERE menuid = 1 AND sequence = 2;
|
||||
|
||||
# Create the user profile menu.
|
||||
# Create the user profile menu. (ID #2)
|
||||
INSERT INTO menus (menuid, menu_nsid, menu_name, title, subtitle)
|
||||
VALUES (2, 11, 'user.profile.menu', '', NULL);
|
||||
INSERT INTO menuvars (menuid, var_name, default_val)
|
||||
VALUES (2, 'target', 'top.js.vs');
|
||||
INSERT INTO menuitems (menuid, sequence, itemtype, text, linktype, link) VALUES
|
||||
(2, 0, 'TEXT', 'Profile', 'SERVLET', 'profile.js.vs?tgt=${target}');
|
||||
|
||||
# Create the main system administration menu. (ID #3)
|
||||
INSERT INTO menus (menuid, menu_nsid, menu_name, title, subtitle)
|
||||
VALUES (3, 13, 'system.admin', 'System Administration', NULL);
|
||||
INSERT INTO menuitems (menuid, sequence, itemtype, text, linktype, link, perm_nsid, perm_name) VALUES
|
||||
(3, 0, 'TEXT', 'Set Frame Look-And-Feel Parameters', 'SERVLET', 'sysadmin/frame_laf.js.vs', 1, 'set.property'),
|
||||
(3, 1, 'TEXT', 'Set E-Mail Parameters', 'SERVLET', 'sysadmin/email.js.vs', 5, 'set.property'),
|
||||
(3, 2, 'TEXT', 'Set Session Parameters', 'SERVLET', 'sysadmin/session.js.vs', 7, 'set.property');
|
||||
|
||||
Reference in New Issue
Block a user