1 |
1929
|
brooke
|
/*
|
2 |
|
|
* Purpose: Default style sheet for KNB project web pages
|
3 |
|
|
* Using this stylesheet rather than placing styles directly in
|
4 |
|
|
* the KNB web documents allows us to globally change the
|
5 |
|
|
* formatting styles of the entire site in one easy place.
|
6 |
|
|
* Copyright: 2000 Regents of the University of California and the
|
7 |
|
|
* National Center for Ecological Analysis and Synthesis
|
8 |
|
|
* Authors: Matt Jones
|
9 |
|
|
*
|
10 |
|
|
* '$Author$'
|
11 |
|
|
* '$Date$'
|
12 |
|
|
* '$Revision$'
|
13 |
|
|
*
|
14 |
|
|
* This program is free software; you can redistribute it and/or modify
|
15 |
|
|
* it under the terms of the GNU General Public License as published by
|
16 |
|
|
* the Free Software Foundation; either version 2 of the License, or
|
17 |
|
|
* (at your option) any later version.
|
18 |
|
|
*
|
19 |
|
|
* This program is distributed in the hope that it will be useful,
|
20 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
|
|
* GNU General Public License for more details.
|
23 |
|
|
*
|
24 |
|
|
* You should have received a copy of the GNU General Public License
|
25 |
|
|
* along with this program; if not, write to the Free Software
|
26 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
27 |
|
|
*/
|
28 |
|
|
|
29 |
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
30 |
|
|
* * * * * * CONFIGURATION SETTINGS - EDIT THESE FOR YOUR ENVIRONMENT * * * *
|
31 |
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
// These settings allow you to include and display common content (eg a common
|
35 |
|
|
// header) on all your pages, in much the same way as a frameset allows you to
|
36 |
|
|
// do, but through the use of iframes and a table instead. You can include up
|
37 |
|
|
// to 4 external pages, each one within the header, footer, left or right areas
|
38 |
|
|
//
|
39 |
|
|
// looks like this (if you're using a fixed width font to display these notes):
|
40 |
|
|
// ___________________
|
41 |
|
|
// | header |
|
42 |
|
|
// |-----------------|
|
43 |
|
|
// | | | |
|
44 |
|
|
// | | | |
|
45 |
|
|
// |L| content |R|
|
46 |
|
|
// | | | |
|
47 |
|
|
// | | | |
|
48 |
|
|
// |-----------------|
|
49 |
|
|
// | footer |
|
50 |
|
|
// -------------------
|
51 |
|
|
//
|
52 |
|
|
// Each area may display another page on the local site, or a page on a
|
53 |
|
|
// different server, or may be set to display nothing (in which case an iframe
|
54 |
|
|
// will not be drawn, although the containing table cell will still need to be
|
55 |
|
|
// resized using the css style - see below)
|
56 |
|
|
//
|
57 |
|
|
// NOTES:
|
58 |
|
|
//
|
59 |
|
|
// 1) if you have any links in the included documents, the target attribute for
|
60 |
|
|
// these *MUST* be set to _top, otherwise the new document will be displayed
|
61 |
|
|
// inside the small iframe areas, instead of replacing the entire page!
|
62 |
|
|
// - example: <a href="index.html" target="_top">HOME</a>
|
63 |
|
|
//
|
64 |
|
|
// 2) you will need to set the correct iframe size, in order to accomodate
|
65 |
|
|
// each of these areas on the page. The default location for these size
|
66 |
|
|
// settings is in the default.css file - see the "IFRAME_XXXXXX_CLASS"
|
67 |
|
|
// variables (below) for the name of the style to edit
|
68 |
|
|
//
|
69 |
|
|
// 3) you will also need to set the correct table cell sizes and/or overall
|
70 |
|
|
// table size for similar reasons. The default location for these size
|
71 |
|
|
// settings is in the default.css file - see the "TEMPLATE_XXXXXX_CLASS"
|
72 |
|
|
// variables (below) for the name of the style to edit
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
77 |
|
|
// Edit these variables to define the content that will be loaded into the
|
78 |
|
|
// various iframes. Each may be a relative path to another page on the local
|
79 |
|
|
// site, or a full URL to a page on a remote server, or may be set to the empty
|
80 |
|
|
// string if no content is required at that position on the page (and in which
|
81 |
|
|
// case an iframe will not be drawn, although an empty table cell will still
|
82 |
|
|
// exist unless it is resized smaller) .
|
83 |
|
|
// ( e.g. if you do not want a header to be included, set: HEADER_URL="";)
|
84 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
// Location of the header that will be displayed at the top of the page
|
88 |
|
|
var HEADER_URL
|
89 |
|
|
= "@style-skins-path@/default/include_header.jsp";
|
90 |
|
|
|
91 |
|
|
// Location of the search box that will be displayed above the
|
92 |
|
|
// results on the results page (optional)
|
93 |
|
|
var SEARCHBOX_URL
|
94 |
|
|
= "@style-skins-path@/default/include_searchbox.jsp";
|
95 |
|
|
|
96 |
|
|
var LOGINBOX_URL
|
97 |
|
|
= "@style-skins-path@/default/include_login.jsp";
|
98 |
|
|
|
99 |
|
|
// Location of the header that will be displayed at the top of the page
|
100 |
|
|
var LEFTCOL_URL
|
101 |
|
|
= "";
|
102 |
|
|
|
103 |
|
|
// Location of the header that will be displayed at the top of the page
|
104 |
|
|
var RIGHTCOL_URL
|
105 |
|
|
= "";
|
106 |
|
|
|
107 |
|
|
// Location of the header that will be displayed at the top of the page
|
108 |
|
|
var FOOTER_URL
|
109 |
|
|
= "";
|
110 |
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
115 |
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
116 |
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
117 |
|
|
/* * * * * * * * * MAY CHANGE THE FOLLOWING, BUT SHOULDN'T NEED TO* * * * * */
|
118 |
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
119 |
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
120 |
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
121 |
|
|
|
122 |
|
|
|
123 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
124 |
|
|
// Edit the default.css file to set the correct iframe sizes to accomodate the
|
125 |
|
|
// header, footer, left and right areas.
|
126 |
|
|
// The following variables set the names of the styles that will be applied to
|
127 |
|
|
// each of the iframes - they can be anythign you wish, provided you use the
|
128 |
|
|
// same names for your classes in the css file
|
129 |
|
|
// NOTE: these styles apply only to each container frame, *NOT* to the document
|
130 |
|
|
// within it!
|
131 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
132 |
|
|
|
133 |
|
|
//header iframe class
|
134 |
|
|
var IFRAME_HEADER_CLASS = "iframeheaderclass";
|
135 |
|
|
|
136 |
|
|
//(metacat only) search box iframe class
|
137 |
|
|
var IFRAME_SEARCHBOX_CLASS = "iframesearchboxclass";
|
138 |
|
|
|
139 |
|
|
//(metacat only) login box iframe class
|
140 |
|
|
var IFRAME_LOGINBOX_CLASS = "iframeloginboxclass";
|
141 |
|
|
|
142 |
|
|
//left column iframe class
|
143 |
|
|
var IFRAME_LEFTCOL_CLASS = "iframeleftcolclass";
|
144 |
|
|
|
145 |
|
|
//right column iframe class
|
146 |
|
|
var IFRAME_RIGHTCOL_CLASS = "iframerightcolclass";
|
147 |
|
|
|
148 |
|
|
//footer iframe class
|
149 |
|
|
var IFRAME_FOOTER_CLASS = "iframefooterclass";
|
150 |
|
|
|
151 |
|
|
|
152 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
153 |
|
|
// Edit the default.css file to set the correct table sizes to accomodate the
|
154 |
|
|
// header, footer, left and right iframes.
|
155 |
|
|
// The following variables set the names of the styles that will be applied to
|
156 |
|
|
// each of the table cells (or the table itself - see below) - they can be
|
157 |
|
|
// anything you wish, provided you use the same names for your classes in the
|
158 |
|
|
// css file
|
159 |
|
|
// NOTE: these styles apply only to each table cell, *NOT* to the document
|
160 |
|
|
// inside the iframe that is nested within it! (the exception is
|
161 |
|
|
// TEMPLATE_CONTENTAREA_CLASS, since the content probably isn't within an
|
162 |
|
|
// iframe - so style elements in this class will apply to the content istelf)
|
163 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
164 |
|
|
|
165 |
|
|
//entire table class
|
166 |
|
|
var TEMPLATE_TABLE_CLASS = "templatetableclass";
|
167 |
|
|
|
168 |
|
|
//header table-cell class. Note you should not set css "width" on this, since it
|
169 |
|
|
//includes a colspan
|
170 |
|
|
var TEMPLATE_HEADERROW_CLASS = "templateheaderrowclass";
|
171 |
|
|
|
172 |
|
|
//left column table-cell class. Note that restricting css "height" on this may
|
173 |
|
|
//affect visibility of the main content, since it's in the same table row
|
174 |
|
|
var TEMPLATE_LEFTCOL_CLASS = "templateleftcolclass";
|
175 |
|
|
|
176 |
|
|
//main central content table-cell class. Note that css attributes set here may
|
177 |
|
|
//apply to the content nested inside this cell
|
178 |
|
|
var TEMPLATE_CONTENTAREA_CLASS = "templatecontentareaclass";
|
179 |
|
|
|
180 |
|
|
//rigth column table-cell class. Note that restricting css "height" on this may
|
181 |
|
|
//affect visibility of the main content, since it's in the same table row
|
182 |
|
|
var TEMPLATE_RIGHTCOL_CLASS = "templaterightcolclass";
|
183 |
|
|
|
184 |
|
|
//footer table-cell class. Note you should not set "width" on this, since it
|
185 |
|
|
//includes a colspan
|
186 |
|
|
var TEMPLATE_FOOTERROW_CLASS = "templatefooterrowclass";
|
187 |
|
|
|