source: trunk/gsdl/macros/home.dm@ 2912

Last change on this file since 2912 was 2912, checked in by nzdl, 22 years ago

Added preferences link for changing display settings (language and such)
of default home page

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 KB
Line 
1package home
2
3#######################################################################
4# java images/scripts
5#######################################################################
6
7# the _javalinks_ macros are the flashy image links at the top right of
8# the page. this is overridden here as we don't want 'home'
9# links on this page
10
11_javalinks_ {_imagehelp__imagepref_}
12_javalinks_ [v=1] {_imagehelp_<br>_imagepref_}
13
14#######################################################################
15# icons
16#######################################################################
17
18_iconselectcollection_ {<img align=texttop src="_httpiconselcolgr_" width=_widthselcolgr_ height=_heightselcolgr_ alt=_altselcolgr_>}
19_iconmusiclibrary_ {<img align=texttop src="_httpicontmusic_" border=1 alt="meldex music library">}
20
21_imagecollection_ {<img src="_httpimg_/gsdlhead.gif">}
22
23#######################################################################
24# http macros
25#
26# These contain the url without any quotes
27#######################################################################
28
29_httppagegsdl_ {_httppagex_(gsdl)}
30_httppagehomehelp_ {_httppagex_(homehelp)}
31_httppagehomepref_ {_httppagex_(homepref)}
32
33#######################################################################
34# images
35#######################################################################
36
37
38_imagecollector_ {_gsimage_(_httppagecollector_,_httpimg_/ccolof.gif,_httpimg_/ccolon.gif,col,_collector:textcollector_)}
39_imageadmin_ {_gsimage_(_httppagestatus_,_httpimg_/cadminof.gif,_httpimg_/cadminon.gif,admin,_textadmin_)}
40_imagegogreenstone_ {_gsimage_(_home:httppagegsdl_,_httpimg_/cabgsof.gif,_httpimg_/cabgson.gif,gogs,_textabgs_)}
41_imagegodocs_ {_gsimage_(_home:httppagedocs_,_httpimg_/cgsdocof.gif,_httpimg_/cgsdocon.gif,docs,_textgsdocs_)}
42_imagehelp_ {_gsimage_(_home:httppagehomehelp_,_httpiconchelpof_,_httpiconchelpon_,help,_textimagehelp_)}
43_imagepref_ {_gsimage_(_home:httppagehomepref_,_httpiconcprefof_,_httpiconcprefon_,pref,_textimagepref_)}
44
45#######################################################################
46# page content
47#######################################################################
48
49_content_ {
50<center>
51<p>_iconselectcollection_
52</center>
53<p>_homeextra_
54
55<center>
56<p>_iconblankbar_
57</center>
58<p><table>
59_textgocollector_
60_textgoadmin_
61_textgogreenstone_
62_textgodocs_
63</table>
64<center>
65<p>_iconblankbar_
66</center>
67_textaboutgreenstone_
68<center>
69<p>_iconblankbar_
70</center>
71}
72
73# the _textgocollector_ and _textgoadmin_ macros may be overridden
74# to be empty from within the receptionist if the collector or admin
75# facilities are disabled
76_textgocollector_ {
77<tr valign=top>
78<td valign=top>_imagecollector_</td>
79<td>_textimagecollector_</td>
80</tr>
81}
82
83_textgoadmin_ {
84<tr valign=top>
85<td valign=top>_imageadmin_</td>
86<td>_textimageadmin_</td>
87</tr>
88}
89
90_textgogreenstone_ {
91<tr valign=top>
92<td valign=top>_imagegogreenstone_</td>
93<td>_textimagegogreenstone_</td>
94</tr>
95}
96
97_textgodocs_ {
98<tr valign=top>
99<td valign=top>_imagegodocs_</td>
100<td>_textimagegodocs_</td>
101</tr>
102}
103
104package homehelp
105
106_collectionlist_ {}
107
108_javalinks_ {_imagehome_}
109_javalinks_ [v=1] {
110_imagehome_<br>
111}
112
113_content_ {
114<center>
115<p>_iconblankbar_
116</center>
117<p>
118<table border=0 cellspacing=0 cellpadding=0>
119 <tr>
120 <td valign=top align=center>_imagegreenstone_</td>
121 <td valign=top>_gsdl:textgreenstone1_
122 <br><br>
123 </td>
124 </tr>
125</table>
126
127<center>
128<p>_iconblankbar_
129</center>
130_If_(_collectionlist_,_collectionlist_,_textnocollections_)
131
132<center>
133<p>_iconblankbar_
134</center>
135<p>_text4buts_
136<p><table>
137_home:textgocollector_
138_home:textgoadmin_
139_home:textgogreenstone_
140_home:textgodocs_
141</table>
142<center>
143<p>_iconblankbar_
144</center>
145}
146
147
148package homepref
149
150_javalinks_ {_homepref:imagehome_}
151_javalinks_ [v=1] {
152_homepref:imagehome_<br>
153}
154
155_pagescriptextra_ {_preferences:pagescriptextra_}
156
157
158_imagehome_ {_gsimage_(_homepref:httppagehome_,_httpiconchomeof_,_httpiconchomeon_,homer,_textimagehome_)}
159_httppagehome_ {_httppagex_(home)}
160
161_content_ {
162<center>
163<p>_iconblankbar_
164</center>
165
166<form name=PrefForm method=get action="_gwcgi_">
167<h3>_preferences:textpresentationprefs_</h3>
168
169<table border="0">
170<tr valign="top">
171<td>_preferences:textlanguage_</td>
172<td><select name="l" onChange="updatel();">
173<option value="en" _If_("_cgiargl_" eq "en", selected)>English
174<option value="fr" _If_("_cgiargl_" eq "fr", selected)>French
175<option value="es" _If_("_cgiargl_" eq "es", selected)>Spanish
176</select>
177</td>
178</tr>
179<tr valign="top">
180_preferences:formatoption_
181</tr>
182</table>
183<p>_iconblankbar_
184}
Note: See TracBrowser for help on using the repository browser.