source: main/tags/2.37/gsdl/macros/browse.dm@ 32020

Last change on this file since 32020 was 2833, checked in by dmm9, 23 years ago

adding NS6+/mozilla/w3c DOM compliance

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1package browse
2
3#######################################################################
4# headers
5# these are overridden so we can put an onLoad event handler
6# in the <body> tag of this page - for mgpp, form search pages
7#######################################################################
8
9#copied from prefs
10
11_header_ {_cgihead_
12_htmlhead_(onLoad="changecontent(0)")_startspacer__pagebanner_
13}
14
15
16_content_{
17
18
19
20 _navigationbar_
21
22 _browseinterface_
23
24 _iconblankbar_
25
26 _classifications_
27
28
29 <div id="mydiv"></div>
30 <div><layer id="mylayer"top=350 left=280 width="100%"></layer></div>
31
32}
33
34
35_runtimebrowsescript_{}
36
37_browseinterface_{
38
39<form name=BrowseForm method=get action="_gwcgi_">
40
41<input type=hidden name="a" value="br">
42<input type=hidden name="e" value="_decodedcompressedoptions_">
43
44 _textbrowseby_ _browsebox1_ _textthenby_ _browsebox2_ _textshowing_
45 _docnum_ _textdocsperpage_<p>
46
47 _textfilterby_ _anyallselect_ _textwords_ _filterbox_
48 <span align = right> _browsebutton_ </span>
49</form>
50
51}
52
53_browsebutton_{<input type=submit value=_browsebuttontext_>}
54
55_docnum_{
56<select name="bnu">
57 <option _If_("_cgiargbnu_" eq "5", selected)>5
58 <option _If_("_cgiargbnu_" eq "10", selected)>10
59 <option _If_("_cgiargbnu_" eq "20", selected)>20
60 <option _If_("_cgiargbnu_" eq "50", selected)>50
61 <option value="-1" _If_("_cgiargbnu_" eq "-1", selected)>max
62</select>
63}
64
65_filterbox_{<input type=text name="bft" value="_cgiargbft_" size=60>}
66
67
68_anyallselect_{
69<select name="bt">
70 <option value="0"_If_(_cgiargbt_,, selected)>_textany_
71 <option value="1"_If_(_cgiargbt_, selected)>_textall_
72</select>
73}
74
75_classifications_{
76}
77
78_pagescriptextra_ {
79var thecontents = new Array()
80
81function changecontent(current)\{
82 if(document.getElementById) \{
83 document.getElementById("mydiv").innerHTML = thecontents[current];
84 \}
85 else if(document.all)\{
86 mydiv.innerHTML=thecontents[current]
87 \}
88 else if(document.layers)\{
89 document.mylayer.document.write(thecontents[current])
90 document.mylayer.document.close()
91 \}
92
93\}
94
95_runtimebrowsescript_
96
97}
98
99
100
101
102
103
104
105
106
107
108
109
110
Note: See TracBrowser for help on using the repository browser.