/[libdata]/branches/paul/admin/res_search.phtml
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /branches/paul/admin/res_search.phtml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 67 - (show annotations)
Thu Mar 18 19:24:54 2004 UTC (20 years, 1 month ago) by dpavlin
File size: 6644 byte(s)
updated to libdata 2.00

1 <?php
2 // Load globals
3 require_once ("global_vars.php");
4
5 // Includes
6 require_once ($GLOBAL_ADMIN_INC."sessionClass.php");
7 require_once ($GLOBAL_ADMIN_INC."accessClass.php");
8 require_once ($GLOBAL_ADMIN_INC."db_connect.php");
9 require_once ($GLOBAL_ADMIN_INC."app_controls.php");
10
11
12 // HTML header
13 printf("<HTML>\n");
14 printf("<HEAD>\n");
15 printf("<title>%s Resource Search</title>\n", $GLOBAL_SYS_NAME);
16 printf("<link rel=\"stylesheet\" href=\"%s\" type=\"text/css\">\n", $GLOBAL_ADMIN_CSS);
17 printf("</HEAD>\n");
18
19
20 // Default access settings
21 $sess_time_human = "";
22 $sess_staff_account = "";
23 $sess_staff_id = 0;
24 $sess_access_level = 0;
25 $sess_access = "";
26 $sess_last_name = "";
27 $sess_first_name = "";
28
29
30 // Page header
31 require_once ($GLOBAL_ADMIN_HEADER);
32
33
34 // Collect access information
35 if (isset($libsession)) {
36
37 // Fetch session information
38 $sessionClass = new sessionClass("", $libsession, "", "");
39 $accessClass = new accessClass($sessionClass);
40
41 // Load user session variables
42 $sess_time_human = $sessionClass->time_human;
43 $sess_staff_account = $sessionClass->staff_account;
44 $sess_access_level = $accessClass->access_level;
45 $sess_access = $accessClass->access;
46 $sess_last_name = $accessClass->last_name;
47 $sess_first_name = $accessClass->first_name;
48
49 }
50
51
52 // If the cookie is set and access level is appropriate
53 if(isset($libsession) && $sess_access_level >= 20) {
54 ?>
55
56 <center>
57 <table width="80%" border="1" class="backLight" cellpadding="2">
58 <tr>
59
60 <td colspan="4" class="cellPlain" align="center">
61 Resource Search
62 </td>
63
64 </tr>
65
66 <tr>
67 <td width="20%">
68 <form method="POST" action="res_results_brief.phtml">
69 <br><b>Resource ID:</b> <input type = "text" name="resource_id" size="6"><br><br>
70 </td>
71
72 <td width="20%">
73 <br><b>Catalog Number:</b> <input type="text" name="cat_num" size="20"><br><br>
74 </td>
75
76 <td width="60%" colspan = "2" align="center">
77 <input type ="Submit" value="Search"> <input type ="Reset" value= "Reset"><br>
78 </td>
79 </tr>
80
81 <tr>
82 <td>
83 <b>Date Created (format: YYYY-MM-DD):</b>
84 </td>
85
86 <td colspan="3" align="left">
87 <input type = "text" name="date_created" size="10"><br>
88 </td>
89 </tr>
90
91 <tr>
92 <td>
93 <b>Date Modified (format: YYYY-MM-DD):</b>
94 </td>
95
96 <td colspan="3" align="left">
97 <input type = "text" name="date_modified" size="10"><br>
98 </td>
99 </tr>
100
101 <tr>
102 <td>
103 <b>Creator:</b>
104 </td>
105
106 <td colspan="3" align="left">
107 <select name ="account_created">
108 <option value ="">Unselected</option>
109 <?php dropDownAccountOmit(" WHERE staff_id > 1"); ?>
110 </select>
111 <br>
112 </td>
113 </tr>
114
115
116 <tr>
117 <td>
118 <b>Modified by:</b>
119 </td>
120
121 <td colspan="3" align="left">
122 <select name ="account_modified">
123 <option value ="">Unselected</option>
124 <?php dropDownAccountOmit(" WHERE staff_id > 1"); ?>
125 </select>
126 <br>
127 </td>
128 </tr>
129
130
131 <tr>
132 <td>
133 <b>Title:</b>
134 </td>
135 <td colspan="3" align="left">
136 <input type = "text" name="title" size="30"><br>
137 </td>
138 </tr>
139
140 <tr>
141 <td>
142 <b>Author:</b>
143 </td>
144 <td colspan="3" align="left">
145 <input type ="text" name="author" size="30"><br>
146 </td>
147 </tr>
148
149 <tr>
150 <td>
151 <b>Pub. Date (format: YYYY):</b>
152 </td>
153 <td colspan="3" align="left">
154 <input type ="text" name="pub_date" size="4"><br>
155 </td>
156 </tr>
157
158 <tr>
159 <td>
160 <b>Base Information Type:</b>
161 </td>
162
163 <td colspan="3" align="left">
164 <select name ="infotype_id">
165 <option value ="">Unselected</option>
166 <?php dropDownField("infotype", "infotype", "infotype_id", "WHERE infotype_id > 1"); ?>
167 </select>
168 <br>
169 </td>
170 </tr>
171
172 <tr>
173 <td>
174 <b>Feature:</b>
175 </td>
176
177 <td colspan="3" align="left">
178 <select name="feature_id">
179 <option selected value="0">Unselected</option>
180 <?php dropDownFieldOmit("feature", "feature", "feature_id", "WHERE feature_id > 1"); ?>
181 </select>
182 </td>
183 </tr>
184
185 <tr>
186 <td>
187 <b>Location:</b>
188 </td>
189
190 <td colspan="3" align="left">
191 <select name="location_id">
192 <option selected value="0">Unselected</option>
193 <?php dropDownField("location", "location", "location_id"); ?>
194 </select>
195 </td>
196 </tr>
197
198 <tr>
199 <td>
200 <b>Library/Call Number:</b>
201 </td>
202 <td colspan="3" align="left">
203 <input type="text" name="call_no" size="30">
204 </td>
205 </tr>
206
207 <tr>
208 <td>
209 <b>URL (full or partial, example: .gov):</b>
210 </td>
211 <td colspan="3" align="left">
212 <input type="text" name="url" size="60">
213 </td>
214 </tr>
215
216 <tr>
217 <td>
218 <b>Guide/Help URL (full or partial):</b>
219 </td>
220 <td colspan="3" align="left">
221 <input type="text" name="guide_url" size="60">
222 </td>
223 </tr>
224
225 <tr>
226 <td>
227 <b>Vendor:</b>
228 </td>
229
230 <td colspan="3" align="left">
231 <select name ="vendor_id">
232 <option value ="">Unselected</option>
233 <?php dropDownField("vendor", "vendor", "vendor_id"); ?>
234 </select>
235 <br>
236 </td>
237 </tr>
238
239 <tr>
240 <td>
241 <b>Annotation (phrase or keyword):</b>
242 </td>
243 <td colspan="3" align="left">
244 <input type="text" name="annotation" size="40">
245 </td>
246 </tr>
247
248 <tr>
249 <td colspan="4" class="cellPlain" align="center">
250 Output Parameters
251 </td>
252
253 <tr>
254 <td colspan="2">
255 <b>Order results by:</b>
256 </td>
257 <td colspan="2">
258 <b>Direction:</b>
259 </td>
260
261 </tr>
262
263 <tr>
264 <td width="25%">
265 Title
266 </td>
267 <td width="8%">
268 <input type="radio" name="orderby" value="title" checked>
269 </td>
270 <td width="25%">
271 Ascending
272 </td>
273 <td width="8%">
274 <input type="radio" name="orderdir" value="ASC" checked>
275 </td>
276 </tr>
277
278 <tr>
279 <td width="25%">
280 Author
281 </td>
282 <td width="8%">
283 <input type="radio" name="orderby" value="author">
284 </td>
285 <td width="25%">
286 Descending
287 </td>
288 <td width="8%">
289 <input type="radio" name="orderdir" value="DESC">
290 </td>
291 </tr>
292
293 <tr>
294 <td width="25%">
295 Pub Date
296 </td>
297 <td colspan="3">
298 <input type="radio" name="orderby" value="pub_date">
299 </td>
300 </tr>
301
302 <tr>
303 <td width="30%">
304 Resource ID
305 </td>
306 <td colspan="3">
307 <input type="radio" name="orderby" value = "resource_id">
308 </td>
309 </tr>
310
311 <tr>
312 <td width="25%">
313 Date Created
314 </td>
315 <td colspan="3">
316 <input type="radio" name="orderby" value = "date_created">
317 </td>
318 </tr>
319
320 <tr>
321 <td width="25%">
322 Date Modified
323 </td>
324 <td colspan="3">
325 <input type="radio" name="orderby" value = "date_modified">
326 </td>
327 </tr>
328
329 <tr>
330 <td align= "center" colspan="4">
331 <br><input type ="Submit" value="Search"> <input type ="Reset" value= "Reset">
332 </form>
333 </td>
334 </tr>
335 </table>
336
337 <?php
338
339 // Link to return to admin console
340 adminReturn($sess_access_level);
341
342 } // logged in
343
344 // No access
345 else require_once ($GLOBAL_NO_ACCESS);
346
347
348 // Page footer
349 require_once ($GLOBAL_ADMIN_FOOTER);
350 ?>
351
352 </body>
353 </html>

  ViewVC Help
Powered by ViewVC 1.1.26