[148] | 1 | #######################################################################
|
---|
| 2 | # PAGE STYLES
|
---|
| 3 | #######################################################################
|
---|
| 4 |
|
---|
| 5 | package Style
|
---|
| 6 |
|
---|
| 7 | # to use this style system output
|
---|
| 8 | # _header_
|
---|
| 9 | # all your page content, then
|
---|
| 10 | # _footer_
|
---|
| 11 |
|
---|
| 12 | # use the page parameter 'style' to choose the appropriate style
|
---|
| 13 |
|
---|
| 14 | # the style system uses
|
---|
| 15 | # _pagetitle_ - what gets displayed at the top of the browser window
|
---|
[276] | 16 | # _pagescriptextra_ - any extra javascript you want included in the header
|
---|
[148] | 17 | # _pagebannerextra_ - anything extra you want displayed in the page banner
|
---|
| 18 | # _pagefooterextra_ - anything extra you want displayed in the footer
|
---|
| 19 |
|
---|
| 20 | # defaults for the above macros
|
---|
| 21 | _pagetitle_ {_collectionname_}
|
---|
[276] | 22 | _pagescriptextra_ {}
|
---|
[148] | 23 | _pagebannerextra_ {}
|
---|
| 24 | _pagefooterextra_ {}
|
---|
| 25 |
|
---|
| 26 | # it also relies on lots of Globals, the most important of these are:
|
---|
| 27 | # _cookie_ - put in the cgi header
|
---|
| 28 | # _globalscripts_ - javascript stuff
|
---|
| 29 | # _httpiconchalk_ - the image down the left of the page
|
---|
| 30 | # _imagecollection_
|
---|
| 31 | # _imagehome_
|
---|
| 32 | # _imagehelp_
|
---|
| 33 | # _imagepref_
|
---|
| 34 | # _imagethispage_
|
---|
| 35 | # _linkotherversion_
|
---|
| 36 |
|
---|
| 37 | _header_ {_cgihead_
|
---|
[276] | 38 | _htmlhead_(background="_httpiconchalk_")_startspacer__pagebanner_
|
---|
[148] | 39 | }
|
---|
| 40 |
|
---|
[548] | 41 | _header_[v=1] {_cgihead_
|
---|
[148] | 42 | _htmlhead__pagebanner_
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | # _cgihead_ {Content-type: text/html
|
---|
| 46 | # _cookie_
|
---|
| 47 | #
|
---|
| 48 | # }
|
---|
| 49 | _cgihead_{}
|
---|
| 50 |
|
---|
| 51 | # htmlhead uses:
|
---|
| 52 | # _1_ - extra parameters for the body tag
|
---|
| 53 | # _pagetitle_
|
---|
| 54 | # _globalscripts_
|
---|
| 55 | _htmlhead_ {
|
---|
[876] | 56 | <html_htmlextra_>
|
---|
[148] | 57 | <head>
|
---|
| 58 | <title>_pagetitle_</title>
|
---|
| 59 | _globalscripts_
|
---|
[276] | 60 | </head>
|
---|
[148] | 61 |
|
---|
| 62 | <body bgcolor="\#ffffff" text="\#000000" link="\#006666"
|
---|
[876] | 63 | alink="\#cc9900" vlink="\#666633"_1_>
|
---|
[148] | 64 | }
|
---|
| 65 |
|
---|
| 66 |
|
---|
| 67 | # _startspacer_ is a spacer to get past the 10010 graphic. It contains an open
|
---|
| 68 | # <table> tag which must eventually be closed by _endspacer_.
|
---|
| 69 | _startspacer_ {
|
---|
| 70 | <table border=0 cellspacing=0 cellpadding=0 width="100%">
|
---|
| 71 | <tr><td valign=top width=65><img src="_httpimg_/spacer.gif" width="65" height="1" alt="" border="0"></td>
|
---|
[1479] | 72 | <td><center><table width="_pagewidth_"><tr><td>
|
---|
[148] | 73 | }
|
---|
| 74 |
|
---|
| 75 |
|
---|
| 76 | # pagebanner uses :
|
---|
| 77 | # _imagecollection_
|
---|
| 78 | # _imagehome_
|
---|
| 79 | # _imagehelp_
|
---|
| 80 | # _imagepref_
|
---|
| 81 | # _imagethispage_
|
---|
| 82 | # _pagebannerextra_
|
---|
| 83 | _pagebanner_ {
|
---|
[276] | 84 | <!-- page banner (\_style:pagebanner\_) -->
|
---|
[148] | 85 | <center>
|
---|
[218] | 86 | <table width=_pagewidth_ cellspacing=0 cellpadding=0>
|
---|
[148] | 87 | <tr valign=top>
|
---|
[276] | 88 | <td rowspan=2 align=left>_imagecollection_</td>
|
---|
| 89 | <td align=right>_javalinks_</td>
|
---|
[148] | 90 | </tr>
|
---|
| 91 |
|
---|
| 92 | <tr>
|
---|
[276] | 93 | <td align=right>_imagethispage_</td>
|
---|
[148] | 94 | </tr>
|
---|
| 95 |
|
---|
| 96 | <tr>
|
---|
| 97 | <td colspan=2>_pagebannerextra_</td>
|
---|
| 98 | </tr>
|
---|
| 99 | </table>
|
---|
| 100 | </center>
|
---|
[276] | 101 | <!-- end of page banner -->
|
---|
[148] | 102 | }
|
---|
| 103 |
|
---|
[548] | 104 | _pagebanner_[v=1] {
|
---|
| 105 | <!-- page banner - text version [v=1] (\_style:pagebanner\_) -->
|
---|
[148] | 106 | <center><h2><b><u>_imagecollection_</u></b></h2></center><p>
|
---|
| 107 | _javalinks_
|
---|
| 108 | _pagebannerextra_
|
---|
| 109 | <p>
|
---|
[276] | 110 | <!-- end of page banner -->
|
---|
[148] | 111 | }
|
---|
| 112 |
|
---|
| 113 | _footer_ {
|
---|
[276] | 114 | <!-- page footer (\_style:footer\_) -->
|
---|
[148] | 115 | _pagefooterextra_
|
---|
| 116 | </table>
|
---|
| 117 | _endspacer__htmlfooter_
|
---|
| 118 | }
|
---|
| 119 |
|
---|
[341] | 120 | _endspacer_ {</center>
|
---|
[148] | 121 | </td></tr></table>
|
---|
| 122 | }
|
---|
| 123 |
|
---|
| 124 | _htmlfooter_ {
|
---|
| 125 | </body>
|
---|
| 126 | </html>
|
---|
| 127 | }
|
---|
| 128 |
|
---|
[218] | 129 | _globalscripts_{
|
---|
| 130 | <script>
|
---|
| 131 | <!--
|
---|
[1419] | 132 | _imagescript_
|
---|
| 133 | _pagescriptextra_
|
---|
[218] | 134 | // -->
|
---|
| 135 | </script>
|
---|
| 136 | }
|
---|
| 137 |
|
---|
[548] | 138 | _globalscripts_ [v=1] {
|
---|
[276] | 139 | <script>
|
---|
| 140 | <!--
|
---|
[283] | 141 | _If_(_cgiargx_,_scriptdetach_)
|
---|
[276] | 142 | _pagescriptextra_
|
---|
| 143 | // -->
|
---|
| 144 | </script>
|
---|
[283] | 145 | }
|
---|
| 146 |
|
---|
| 147 | _scriptdetach_ {
|
---|
| 148 | function close\_detach() \{
|
---|
| 149 | close();
|
---|
| 150 | \}
|
---|
[876] | 151 | }
|
---|