added sidebox view, prep for sysadmin menu stuff

This commit is contained in:
Eric J. Bowersox
2003-05-24 09:40:17 +00:00
parent f933e4f88c
commit 0c7f518f3e
19 changed files with 805 additions and 34 deletions

View File

@@ -0,0 +1,52 @@
#*
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2003 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
*#
#*
Parameters:
content = The actual page content
sideboxes = The list of defined sideboxes
config_URL = The URL the "Configure" button should point to (may be null to omit)
config_type = The URL type of the configure URL (may be null, assumed "SERVLET" if so)
width = The width of the sideboxes
margins = The margins around the sideboxes
*#
<table border="0" width="100%" align="center" cellpadding="0" cellspacing="0"><tr valign="top">
#comment( "BEGIN CONTENT INSIDE SIDEBOX VIEW" )
<td align="left" class="framecontent"><div class="framecontent">
#render( $content )
</div></td>
#comment( "END CONTENT INSIDE SIDEBOX VIEW" )
#set( $tmp = $margins * 2 )
#set( $fullwidth = $width + $tmp )
<td align="center" width="$fullwidth">
#comment( "BEGIN SIDEBOX LIST" )
#foreach( $box in $sideboxes )
<table align="center" width="$width" border="0" cellpadding="0" cellspacing="0">
<tr valign="middle"><td class="sideboxtop">#encodeHTML( $box.SideboxTitle )</td></tr>
<tr valign="top"><td class="sidebox">#render( $box )</td></tr>
</table><br />
#end
#comment( "END SIDEBOX LIST" )
#if( $config_URL )
#if( !$config_type )
#set( $config_type = "SERVLET" )
#end
<br />
<a href="#formatURL( $config_type $config_URL )">#button( "IMAGE" "configure" )</a>
#end
</td>
</tr></table>

View File

@@ -11,10 +11,36 @@
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2002 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Copyright (C) 2002-03 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
*#
#*
Parameters:
content = The framed page content
pagetitle = Title for the page within the frame
qid = Page "quick ID"
user = The current DynamoUser object
unverified = True if the current user has not had E-mail address verified
location = Current page location string
display_login = True if we should display the "Log In | Create Account" or "Log Out | Profile" links
fixed_menu = The "fixed" menu
footer_text = The text of the page footer
sitetitle = Site title (from global properties)
siteurl = URL to the site
logourl = URL to the site logo
logourltype = Linkage type for the site URL
logowidth = Width of the site logo in pixels
logoheight = Height of the site logo in pixels
flogoscale = Scaling to apply to footer logo, in percentage points
pgicon_url = URL to the Mozilla-type page icon
pgicon_ltyp = Linkage type for the Mozilla-type page icon
pgicon_mime = MIME type of the Mozilla-type page icon
favicon_url = URL to the MSIE-style FAVICON
favicon_ltyp = Linkage type of the MSIE-style FAVICON
lbar_width = Left bar width in pixels
ms_copyright_violations = True to prevent adding anti-Smart Tags META tag
*#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
@@ -32,7 +58,6 @@
</head>
<body>
#comment( "BEGIN PAGE HEADER" )
<table class="frametop" border="0" width="100%" cellpadding="2" cellspacing="0">
<tr valign="middle">
@@ -86,7 +111,7 @@
<table border="0" width="100%" cellpadding="2" cellspacing="0">
<tr valign="top">
<td align="left" width="120" class="frameleft">
<td align="left" width="$lbar_width" rowspan="2" class="frameleft">
#comment( "BEGIN LEFT SIDEBAR" )
<div class="frameleft">
Top/community menu thingee
@@ -104,7 +129,6 @@
</tr>
<tr valign="top">
<td align="left" width="120" class="frameleft">&nbsp;</td>
<td align="left" width="100%" bgcolor="white" class="framefooter">
#comment( "PAGE FOOTER" )
<hr width="80%">

View File

@@ -11,7 +11,7 @@
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2002 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Copyright (C) 2002-03 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
*#
@@ -66,6 +66,13 @@ body td.errorhead, body td.errorbody {
font-size: medium;
}
body td.sideboxtop, body div.sideboxtop, body p.sideboxtop {
font-size: small;
voice-family: "\"}\"";
voice-family: inherit;
font-size: medium;
}
html>body, html>body div, html>body p, html>body th, html>body td, html>body li, html>body dd {
font-size: small; /* be nice to Opera */
}
@@ -94,6 +101,10 @@ html>body td.errorhead, html>body td.errorbody {
font-size: medium;
}
html>body td.sideboxtop, html>body div.sideboxtop, html>body p.sideboxtop {
font-size: medium;
}
## these are styles for inline menu lists
div.imenu {
padding: 5px;

View File

@@ -11,7 +11,7 @@
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2002 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Copyright (C) 2002-03 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
*#
@@ -102,3 +102,23 @@ td.errorbody {
color: #3333aa;
font-weight: bold;
}
.sideboxtop {
color: #ffffff;
background-color: #6666cc;
font-size: 13px;
font-weight: bold;
}
td.sideboxtop {
padding: 2px;
}
.sidebox {
color: #000000;
background-color: #9999ff;
}
td.sidebox {
padding: 2px;
}