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

Last change on this file since 3177 was 3177, checked in by sjboddie, 22 years ago

* empty log message *

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.3 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_content_ {
86<center>
87_queryform_
88</center>
89<center>_iconblankbar_</center><br>
90_resultline_
91}
92
93_queryform_ {
94<form name=QueryForm method=get action="_gwcgi_">
95<input type=hidden name="a" value="q">
96<input type=hidden name="r" value="1">
97<input type=hidden name="g" value="Section">
98<input type=hidden name="e" value="_decodedcompressedoptions_">
99<p>
100<table border="0">
101
102<tr valign="center">
103<td align="right"><b>Type</b></td>
104<td><select name="c1">
105<option value="" _If_(_cgiargc1_,, selected)>Any
106<option value="Animal" _If_("_cgiargc1_" eq "Animal", selected)>Animal
107<option value="Human" _If_("_cgiargc1_" eq "Human", selected)>Human
108<option value="Other" _If_("_cgiargc1_" eq "Other", selected)>Other
109</select>
110</td>
111</tr>
112
113<tr valign="center">
114<td align="right"><b>Category</b></td>
115<td>
116<select name="c2" onChange='initialize()'>
117<option value="" _If_(_cgiargc2_,, selected)>Any
118<option value="Pharmacokinetics" _If_("_cgiargc2_" eq "Pharmacokinetics", selected)>Pharmacokinetics
119<option value="Pharmacodynamics" _If_("_cgiargc2_" eq "Pharmacodynamics", selected)>Pharmacodynamics
120<option value="Safety/Side Effects/Toxicity" _If_("_cgiargc2_" eq "Safety/Side Effects/Toxicity", selected)>Safety/Side Effects/Toxicity
121<option value="Other" _If_("_cgiargc2_" eq "Other", selected)>Other
122<option value="Efficacy" _If_("_cgiargc2_" eq "Efficacy", selected)>Efficacy
123<option value="Contraindications" _If_("_cgiargc2_" eq "Contraindications", selected)>Contraindications
124<option value="Precautions" _If_("_cgiargc2_" eq "Precautions", selected)>Precautions
125</select>
126</td>
127</tr>
128
129<tr valign="center">
130<td align="right"><b>Sub-Category</b></td>
131<td>
132<select name="c3">
133<option value="">Any
134</select>
135</td>
136</tr>
137
138<tr valign="center">
139<td align="right"><b>Search Terms</b></td>
140<td>
141<nobr>
142<input type="text" name="q" value="_cgiargq_" size="40">
143<input type="submit" value="_textbeginsearch_">
144</nobr>
145</td></tr>
146
147</table>
148</form>
149}
150
151# we want to put the links to previous/next pages of results
152# in the footer
153_pagefooterextra_ {
154<center>
155<table cellspacing=0 cellpadding=0 width="638">
156<tr>
157<td align=left>_If_(_prevfirst_,<a href="_httpquery_&r=_prevfirst_">&lt; _textmatches__prevfirst_ - _prevlast_</a>)</td>
158<td align=right>_If_(_nextfirst_,<a href="_httpquery_&r=_nextfirst_">_textmatches__nextfirst_ - _nextlast_ &gt;</a>)</td>
159</tr></table>
160</center>
161}
Note: See TracBrowser for help on using the repository browser.