gave the "top" page the makeover it so richly deserved - now, instead of an

array of content panels, we have a big content panel (use to come later)
plus a set of configurable "sideboxes" that look kind of like Slashboxes...
This commit is contained in:
Eric J. Bowersox
2001-02-16 05:51:20 +00:00
parent 36f7c7f10f
commit bda25d9aa2
23 changed files with 776 additions and 963 deletions

View File

@@ -89,14 +89,22 @@ CREATE TABLE userprefs (
localeid VARCHAR(64) DEFAULT 'en-US-'
);
# Indicates what the "top" page configuration is for any given user.
CREATE TABLE topconfig (
# Indicates what the top-level "sidebox" configuration is for any given user.
CREATE TABLE sideboxes (
uid INT NOT NULL,
row SMALLINT NOT NULL,
col SMALLINT NOT NULL,
partid CHAR(4) NOT NULL,
boxid INT NOT NULL,
sequence INT NOT NULL,
param VARCHAR(255),
PRIMARY KEY (uid, row, col)
UNIQUE INDEX userboxes (uid, boxid),
INDEX inorder (uid, sequence)
);
# A reference to the available sideboxes.
CREATE TABLE refsidebox (
boxid INT NOT NULL PRIMARY KEY,
classname VARCHAR(255),
description VARCHAR(255),
param_descr VARCHAR(255)
);
# The contact information table. This is used for both users and SIGs.
@@ -435,6 +443,12 @@ INSERT INTO refaudit (type, descr) VALUES
(315, 'Delete Conference'),
(9999999, 'DUMMY');
# Which side boxes are defined. The class names MUST match implementations in the
# com.silverwrist.venice.servlets.format package!!!
INSERT INTO refsidebox (boxid, classname, description, param_descr) VALUES
(1, 'SideBoxSIGs', 'Your SIGs', NULL),
(2, 'SideBoxConferences', 'Your Conference Hotlist', NULL);
# The ISO 3166 two-letter country codes. Source is
# <http://www.din.de/gremien/nas/nabd/iso3166ma/>.
INSERT INTO refcountry (code, name) VALUES
@@ -1309,8 +1323,8 @@ INSERT INTO contacts (contactid, given_name, family_name, locality, region, pcod
# Provide the default view for Anonymous Honyak. This view will be copied to all
# new users.
INSERT INTO topconfig (uid, row, col, partid, param)
VALUES (1, 0, 0, 'SIGS', NULL), (1, 0, 1, 'CONF', NULL);
INSERT INTO sideboxes (uid, boxid, sequence, param)
VALUES (1, 1, 100, NULL), (1, 2, 200, NULL);
# Add the 'Administrator' user to the users table.
# (UID = 2, CONTACTID = 2)
@@ -1321,8 +1335,8 @@ INSERT INTO contacts (contactid, given_name, family_name, locality, region, pcod
VALUES (2, 'System', 'Administrator', 'Anywhere', '', '', 'US', 'root@your.box.com', 2);
# Create the default view for Administrator.
INSERT INTO topconfig (uid, row, col, partid, param)
VALUES (2, 0, 0, 'SIGS', NULL), (2, 0, 1, 'CONF', NULL);
INSERT INTO sideboxes (uid, boxid, sequence, param)
VALUES (2, 1, 100, NULL), (2, 2, 200, NULL);
# Add the administration SIG to the SIGs table.
# (SIGID = 1, CONTACTID = 3)
@@ -1416,8 +1430,8 @@ INSERT INTO users (uid, username, passhash, contactid, verify_email, base_lvl, c
INSERT INTO userprefs (uid) VALUES (3);
INSERT INTO contacts (contactid, given_name, family_name, locality, region, pcode, country, email, owner_uid)
VALUES (5, 'Test', 'User', 'Denver', 'CO', '80231', 'US', 'testuser@example.com', 3);
INSERT INTO topconfig (uid, row, col, partid, param)
VALUES (3, 0, 0, 'SIGS', NULL), (3, 0, 1, 'CONF', NULL);
INSERT INTO sideboxes (uid, boxid, sequence, param)
VALUES (3, 1, 100, NULL), (3, 2, 200, NULL);
INSERT INTO sigmember (sigid, uid, granted_lvl, locked)
VALUES (2, 3, 6500, 1);