source: trunk/protemix/macros/query.dm@ 3168

Last change on this file since 3168 was 3168, checked in by sjboddie, 20 years ago

* empty log message *

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.5 KB
Line 
1package query
2
3
4#######################################################################
5# Macros whose values are set from within the server at runtime. These
6# are here only for reference and to set default values if required.
7#######################################################################
8
9_quotedquery_ {}
10_freqmsg_ {}
11_resultline_ {}
12_thisfirst_ {}
13_thislast_ {}
14_nextfirst_ {}
15_nextlast_ {}
16_prevfirst_ {}
17_prevlast_ {}
18_searchhistorylist_ {}
19#_histvalue0_ to _histvalue19_
20_advformlist_ {}
21_regformlist_ {}
22_fqfselection_ {}
23
24
25#######################################################################
26# icons
27#######################################################################
28
29_iconthispage_ {<img src="_httpiconhsearch_" alt="_texticonthispage_" width="_widthhsearch_" height="_heighthsearch_">}
30
31_iconqueryresultsbar_ {<img src="_httpiconqryresb_" width="_widthqryresb_" height="_heightqryresb_" alt="_texticonqueryresultsbar_">}
32
33# _iconnext_ and _iconprev_ are overridden in this package as we
34# don't want alt text here
35_iconnext_{<img src="_httpiconmore_" width=_widthmore_ height=_heightmore_ border=0 align=top>}
36_iconprev_{<img src="_httpiconless_" width=_widthless_ height=_heightless_ border=0 align=top>}
37
38#######################################################################
39# images
40#######################################################################
41
42_imagethispage_ {_iconthispage_}
43
44#######################################################################
45# page content
46#######################################################################
47
48_pagescriptextra_ {
49var options = new Array(7);
50options[0] = new Array('Any');
51options[1] = new Array('Any', 'Absorption', 'Distribution', 'Metabolism', 'Elimination',
52 'Effect of Food', 'Drug Interactions', 'Special Populations');
53options[2] = new Array('Any', 'Trace Metal', 'Excretion', 'Selectivity', 'Copper', 'Zinc',
54 'Manganese', 'Iron', 'Distribution', 'Brain', 'Heart', 'Plasma',
55 'Plasma', 'Fetal', 'Liver', 'Kidney');
56options[3] = new Array('Any', 'Acute Toxicity', 'Repeated Dose Toxicity', 'Studies in Rodents',
57 'Studies in Dogs', 'Overdosage', 'Reproductive Toxicity',
58 'Teratogenicity', 'Mutagenecity', 'Carcinogenicity');
59options[4] = new Array('Any', 'Superoxide Dismutase', 'Ferroxidase I', 'Ferroxidase II',
60 'Metallothienein', 'Ceruloplasmin');
61options[5] = new Array('Any', 'Heart', 'Complications', 'Microvascular', 'Renal', 'Diabetes');
62options[6] = new Array('Any');
63options[7] = new Array('Any');
64
65function initialize () \{
66
67 var form = document.QueryForm;
68 var c2 = form.c2.selectedIndex;
69 var i;
70
71 form.c3.options.length = 0;
72
73 var isselected = 0;
74 for (i = 0; i < options[c2].length; i++) \{
75 form.c3.options[i] = new Option(options[c2][i], options[c2][i]);
76 if (options[c2][i] == "_cgiargc3_") \{
77 form.c3.selectedIndex = i;
78 isselected = 1;
79 \}
80 \}
81 if (!isselected) form.c3.selectedIndex = 0;
82\}
83}
84
85_header_ {_cgihead_
86_htmlhead_(background="_httpiconchalk_" onLoad="initialize();")_startspacer__pagebanner_
87}
88
89_pagetitle_ {}
90
91_content_ {
92<center>
93_navigationbar_
94</center>
95<center>
96_queryform_
97</center>
98<center>_iconblankbar_</center><br>
99_resultline_
100}
101
102_queryform_ {
103<form name=QueryForm method=get action="_gwcgi_">
104<input type=hidden name="a" value="q">
105<input type=hidden name="r" value="1">
106<input type=hidden name="g" value="Section">
107<input type=hidden name="e" value="_decodedcompressedoptions_">
108<p>
109<table border="0" cellspacing="0" cellpadding="0" width="_pagewidth_">
110
111<tr valign="top">
112<td align="center">
113<select name="c1">
114<option value=""_If_(_cgiargc1_,, selected)>Any
115<option value="Animal"_If_("_cgiargc1_" eq "Animal", selected)>Animal
116<option value="Human"_If_("_cgiargc1_" eq "Human", selected)>Human
117<option value="Other"_If_("_cgiargc1_" eq "Other", selected)>Other
118</select>
119</td>
120
121<td align="center">
122<b>AND</b>
123</td>
124
125<td align="center">
126<select name="c2" onChange='initialize()'>
127<option value=""_If_(_cgiargc2_,, selected)>Any
128<option value="Pharmacokinetics"_If_("_cgiargc2_" eq "Pharmacokinetics", selected)>Pharmacokinetics
129<option value="Pharmacodynamics"_If_("_cgiargc2_" eq "Pharmacodynamics", selected)>Pharmacodynamics
130<option value="Safety/Side Effects/Toxicity"_If_("_cgiargc2_" eq "Safety/Side Effects/Toxicity", selected)>Safety/Side Effects/Toxicity
131<option value="Other"_If_("_cgiargc2_" eq "Other", selected)>Other
132<option value="Efficacy"_If_("_cgiargc2_" eq "Efficacy", selected)>Efficacy
133<option value="Contraindications"_If_("_cgiargc2_" eq "Contraindications", selected)>Contraindications
134<option value="Precautions"_If_("_cgiargc2_" eq "Precautions", selected)>Precautions
135</select>
136</td>
137
138<td align="center">
139<b>AND</b>
140</td>
141
142<td align="center">
143<select name="c3">
144<option value="">Any
145</select>
146</td>
147
148</tr>
149
150<tr valign="top"><td colspan="5">
151<b>AND</b><br>
152<nobr>
153<input type="text" name="q" value="_cgiargq_" size="40">
154<input type="submit" value="_textbeginsearch_">
155</nobr>
156</td></tr>
157
158</table>
159</form>
160}
161
162# we want to put the links to previous/next pages of results
163# in the footer
164_pagefooterextra_ {
165<center>
166<table cellspacing=0 cellpadding=0 width=_pagewidth_>
167<tr>
168<td align=left>_If_(_prevfirst_,<a href="_httpquery_&r=_prevfirst_">_iconprev__textmatches__prevfirst_ - _prevlast_</a>)</td>
169<td align=right>_If_(_nextfirst_,<a href="_httpquery_&r=_nextfirst_">_textmatches__nextfirst_ - _nextlast__iconnext_</a>)</td>
170</tr></table>
171</center>
172}
Note: See TracBrowser for help on using the repository browser.