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

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

Initial revision

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 4.6 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_iconthispage_ [v=1] {<h2>_texticonthispage_</h2>}
31
32_iconqueryresultsbar_ {<img src="_httpiconqryresb_" width="_widthqryresb_" height="_heightqryresb_" alt="_texticonqueryresultsbar_">}
33_iconqueryresultsbar_[v=1] {_texticonqueryresultsbar_}
34
35# _iconnext_ and _iconprev_ are overridden in this package as we
36# don't want alt text here
37_iconnext_{<img src="_httpiconmore_" width=_widthmore_ height=_heightmore_ border=0 align=top>}
38_iconnext_ [v=1] {}
39_iconprev_{<img src="_httpiconless_" width=_widthless_ height=_heightless_ border=0 align=top>}
40_iconprev_ [v=1] {}
41
42#######################################################################
43# images
44#######################################################################
45
46_imagethispage_ {_iconthispage_}
47
48#######################################################################
49# page content
50#######################################################################
51
52_pagescriptextra_ {
53var options = new Array(7);
54options[0] = new Array('Any');
55options[1] = new Array('Any', 'Absorption', 'Distribution', 'Metabolism', 'Elimination',
56 'Effect of Food', 'Drug Interactions', 'Special Populations');
57options[2] = new Array('Any', 'Trace Metal', 'Excretion', 'Selectivity', 'Copper', 'Zinc',
58 'Manganese', 'Iron', 'Distribution', 'Brain', 'Heart', 'Plasma',
59 'Plasma', 'Fetal', 'Liver', 'Kidney');
60options[3] = new Array('Any', 'Acute Toxicity', 'Repeated Dose Toxicity', 'Studies in Rodents',
61 'Studies in Dogs', 'Overdosage', 'Reproductive Toxicity',
62 'Teratogenicity', 'Mutagenecity', 'Carcinogenicity');
63options[4] = new Array('Any', 'Superoxide Dismutase', 'Ferroxidase I', 'Ferroxidase II',
64 'Metallothienein', 'Ceruloplasmin');
65options[5] = new Array('Any', 'Heart', 'Complications', 'Microvascular', 'Renal', 'Diabetes');
66options[6] = new Array('Any');
67options[7] = new Array('Any');
68
69function initialize () \{
70
71 var form = document.QueryForm;
72 var c2 = form.c2.selectedIndex;
73 var i;
74
75 form.c3.options.length = 0;
76
77 for (i = 0; i < options[c2].length; i++) \{
78 form.c3.options[i] = new Option(options[c2][i], options[c2][i]);
79 \}
80
81 form.c3.selectedIndex = 0;
82
83\}
84}
85
86_header_ {_cgihead_
87_htmlhead_(background="_httpiconchalk_" onLoad="initialize();")_startspacer__pagebanner_
88}
89
90_pagetitle_ {_If_(_cgiargq_,_textquerytitle_,_textnoquerytitle_)}
91
92_content_ {
93<center>
94_navigationbar_
95</center>
96<center>
97_queryform_
98</center>
99_If_(_cgiargq_,<center>_iconqueryresultsbar_</center><br>
100<small>
101_freqmsg_
102_textpostprocess_</small><br>
103_resultline_
104,<center>_iconblankbar_</center>)<br>
105}
106
107_queryform_ {
108<form name=QueryForm method=get action="_gwcgi_">
109<input type=hidden name="a" value="q">
110<input type=hidden name="r" value="1">
111<input type=hidden name="e" value="_decodedcompressedoptions_">
112<p>
113<table border="0" cellspacing="0" cellpadding="0" width="_pagewidth_">
114
115<tr valign="top">
116<td align="center">
117<select name="c1">
118<option value="">Any
119<option value="Animal">Animal
120<option value="Human">Human
121<option value="Other">Other
122</select>
123</td>
124
125<td align="center">
126<b>AND</b>
127</td>
128
129<td align="center">
130<select name="c2" onChange='initialize()'>
131<option value="">Any
132<option value="Pharmacokinetics">Pharmacokinetics
133<option value="Pharmacodynamics">Pharmacodynamics
134<option value="Safety/Side Effects/Toxicity">Safety/Side Effects/Toxicity
135<option value="Other">Other
136<option value="Efficacy">Efficacy
137<option value="Contraindications">Contraindications
138<option value="Precautions">Precautions
139</select>
140</td>
141
142<td align="center">
143<b>AND</b>
144</td>
145
146<td align="center">
147<select name="c3">
148<option value="">Any
149</select>
150</td>
151
152</tr>
153
154<tr valign="top"><td colspan="5">
155<nobr>
156<input type="text" name="q" value="_cgiargq_" size="40">
157<input type="submit" value="_textbeginsearch_">
158</nobr>
159</td></tr>
160
161</table>
162</form>
163}
Note: See TracBrowser for help on using the repository browser.