/[dtapublic]/to_be_filed/sf_code/esrgweba/htdocs/left_nav.php
ViewVC logotype

Annotation of /to_be_filed/sf_code/esrgweba/htdocs/left_nav.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 23 - (hide annotations) (download)
Sat Oct 8 06:11:57 2016 UTC (8 years, 2 months ago) by dashley
Original Path: sf_code/esrgweba/htdocs/left_nav.php
File size: 15036 byte(s)
Initial commit.
1 dashley 23 <?php
2     //$Header: /cvsroot/esrg/sfesrg/esrgweba/htdocs/left_nav.php,v 1.14 2003/04/30 08:50:44 dtashley Exp $
3     //********************************************************************************
4     //The left navigation pane was done in PHP because when it was HTML, Microsoft
5     //Front Page would find a new way to mangle it each time it was edited. With
6     //the list approach in PHP, the formatting can be changed in one place
7     //(in the for() loop) rather than in multiple places.
8     //********************************************************************************
9     //
10     //Outputs the Google search box.
11     function google_search_box()
12     {
13     ?>
14     <!-- Search Google -->
15     <FORM method=GET action=http://www.google.com/search>
16     <INPUT TYPE=text name=q size=19 maxlength=255 value="<ENTER> To Search">
17     <input type=hidden name=sitesearch value="esrg.sourceforge.net">
18     <br><font size="1"><p style="text-indent: -1; margin-left: 0; margin-top: 2; margin-bottom: -24">This search is powered by</p></font><br>
19     <a href="http://www.google.com"><IMG SRC="http://www.google.com/logos/Logo_40wht.gif" border=0 ALT=Google width="128" height="53"></a><br>
20     <font size="1"><p style="text-indent: -1; margin-left: 0; margin-top: -2">There may be up to a 60-90 day delay in site content changes becoming available in searches.</p></font>
21     </form>
22     <!-- Search Google -->
23     <?php
24     }
25     function dilbert_icon_and_link()
26     {
27     ?>
28     <p><a href="http://www.dilbert.com" target="_blank"><img border="0" src="genimages/link_icon_dilbert_120x90.gif" vspace="0" width="120" height="90"></a></p>
29     <?php
30     }
31     function vc_info()
32     {
33     ?>
34     <p style="margin-top: -8; margin-bottom: -1"><font size="1">$RCSfile: left_nav.php,v $<br>
35     $Date: 2003/04/30 08:50:44 $<br>
36     $Revision: 1.14 $<br>
37     $Author: dtashley $</font></p>
38     <?php
39     }
40     ?>
41     <html>
42     <head>
43     <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
44     <title>ESRG Tool Set Home Page Left Navigation Pane</title>
45     <base target="main">
46     </head>
47     <body background="bkgnds/bk10.gif">
48    
49     <font face=arial,sans-serif size=-1>
50    
51     <?php
52     //The list below is a list of category headings and subheadings, and the list
53     //takes the following form ...
54     //
55     //Each item to be displayed is four array elments, which are:
56     // a)The display level, currently only 0 and 1 are supported.
57     // b)The text to be displayed, which might include <a> and <i> markup only.
58     // c)At level 0 only, a "W" if the line is a "widow" line, (it has no
59     // children at a lower level). At other levels, this value is ignored.
60     // d)An "L" if all the text is a link. Currently this is not used.
61     $ta = array(
62     "0",
63     "<a href=\"welcome.php\">Welcome Page</a>",
64     "W",
65     "L",
66     "0",
67     "<a href=\"esrgdesc/index.html\">What Is <i>The ESRG</i>, Anyway?</a>",
68     "W",
69     "L",
70     "0",
71     "<a href=\"prod_ovw/overview.htm\">Overview Of Offered Products</a>",
72     "W",
73     "L",
74     "0",
75     "<a href=\"license/license.htm\" target=\"_top\">Product Licenses</a>",
76     "W",
77     "L",
78     "0",
79     "Windows Tool Set",
80     "",
81     "",
82     "1",
83     "<a href=\"win_ts/desc.htm\">Description</a>.",
84     "",
85     "",
86     "1",
87     "<a href=\"win_ts/download.htm\">Download tool set</a>.",
88     "",
89     "",
90     "1",
91     "<a href=\"win_ts/download_source.htm\">Download source code</a>.",
92     "",
93     "",
94     "1",
95     "<a href=\"win_ts/build_from_source.htm\">Build the tool set from source code</a>.",
96     "",
97     "",
98     "1",
99     "<a href=\"win_ts/report_bug.htm\">Report a bug</a>.",
100     "",
101     "",
102     "1",
103     "<a href=\"win_ts/view_cvs.htm\">Browse CVS archives</a>.",
104     "",
105     "",
106     "1",
107     "<a href=\"win_ts/join_mail_list.htm\">Join a mailing list</a>.",
108     "",
109     "",
110     "1",
111     "<a href=\"win_ts/contribute.htm\">Contribute</a>.",
112     "",
113     "",
114     "",
115     "*nix Tool Set",
116     "",
117     "",
118     "1",
119     "<a href=\"nix_ts/desc.htm\">Description</a>.",
120     "",
121     "",
122     "1",
123     "<a href=\"nix_ts/download.htm\">Download tool set</a>.",
124     "",
125     "",
126     "1",
127     "<a href=\"nix_ts/download_source.htm\">Download source code</a>.",
128     "",
129     "",
130     "1",
131     "<a href=\"nix_ts/build_from_source.htm\">Build the tool set from source code</a>.",
132     "",
133     "",
134     "1",
135     "<a href=\"nix_ts/report_bug.htm\">Report a bug</a>.",
136     "",
137     "",
138     "1",
139     "<a href=\"nix_ts/view_cvs.htm\">Browse CVS archives</a>.",
140     "",
141     "",
142     "1",
143     "<a href=\"nix_ts/join_mail_list.htm\">Join a mailing list</a>.",
144     "",
145     "",
146     "1",
147     "<a href=\"nix_ts/contribute.htm\">Contribute</a>.",
148     "",
149     "",
150     "0",
151     "Book",
152     "",
153     "",
154     "1",
155     "<a href=\"bk_prac_guide/desc.htm\">Description</a>.",
156     "",
157     "",
158     "1",
159     "<a href=\"bk_prac_guide/download.htm\">Download the book</a>.",
160     "",
161     "",
162     "1",
163     "<a href=\"bk_prac_guide/download_source.htm\">Download book source code</a>.",
164     "",
165     "",
166     "1",
167     "<a href=\"bk_prac_guide/build_from_source.htm\">Build the book from source code</a>.",
168     "",
169     "",
170     "1",
171     "<a href=\"bk_prac_guide/report_bug.htm\">Report a mistake</a>.",
172     "",
173     "",
174     "1",
175     "<a href=\"bk_prac_guide/view_cvs.htm\">Browse CVS archives</a>.",
176     "",
177     "",
178     "1",
179     "<a href=\"bk_prac_guide/join_mail_list.htm\">Join a mailing list</a>.",
180     "",
181     "",
182     "1",
183     "<a href=\"bk_prac_guide/contribute.htm\">Contribute</a>.",
184     "",
185     "",
186     "0",
187     "Embedded System Libraries",
188     "",
189     "",
190     "1",
191     "<a href=\"es_libs/desc.htm\">Description</a>.",
192     "",
193     "",
194     "1",
195     "<a href=\"es_libs/download.htm\">Download the libraries</a>.",
196     "",
197     "",
198     "1",
199     "<a href=\"es_libs/download_source.htm\">Download library source code</a>.",
200     "",
201     "",
202     "1",
203     "<a href=\"es_libs/build_from_source.htm\">Build the libraries from source code</a>.",
204     "",
205     "",
206     "1",
207     "<a href=\"es_libs/report_bug.htm\">Report a bug</a>.",
208     "",
209     "",
210     "1",
211     "<a href=\"es_libs/view_cvs.htm\">Browse CVS archives</a>.",
212     "",
213     "",
214     "1",
215     "<a href=\"es_libs/join_mail_list.htm\">Join a mailing list</a>.",
216     "",
217     "",
218     "1",
219     "<a href=\"es_libs/contribute.htm\">Contribute</a>.",
220     "",
221     "",
222     "0",
223     "Embedded System RTOS's, Kernels, Schedulers, And Integrated Software Components",
224     "",
225     "",
226     "1",
227     "<a href=\"es_rtoss/desc.htm\">Description</a>.",
228     "",
229     "",
230     "1",
231     "<a href=\"es_rtoss/download.htm\">Download the products</a>.",
232     "",
233     "",
234     "1",
235     "<a href=\"es_rtoss/download_source.htm\">Download product source code</a>.",
236     "",
237     "",
238     "1",
239     "<a href=\"es_rtoss/build_from_source.htm\">Build the products from source code</a>.",
240     "",
241     "",
242     "1",
243     "<a href=\"es_rtoss/report_bug.htm\">Report a bug</a>.",
244     "",
245     "",
246     "1",
247     "<a href=\"es_rtoss/view_cvs.htm\">Browse CVS archives</a>.",
248     "",
249     "",
250     "1",
251     "<a href=\"es_rtoss/join_mail_list.htm\">Join a mailing list</a>.",
252     "",
253     "",
254     "1",
255     "<a href=\"es_rtoss/contribute.htm\">Contribute</a>.",
256     "",
257     "",
258     "0",
259     "PHP Library",
260     "",
261     "",
262     "1",
263     "<a href=\"php_lib/desc.htm\">Description</a>.",
264     "",
265     "",
266     "1",
267     "<a href=\"php_lib/download.htm\">Download the library</a>.",
268     "",
269     "",
270     "1",
271     "<a href=\"php_lib/report_bug.htm\">Report a bug</a>.",
272     "",
273     "",
274     "1",
275     "<a href=\"php_lib/view_cvs.htm\">Browse CVS archives</a>.",
276     "",
277     "",
278     "1",
279     "<a href=\"php_lib/join_mail_list.htm\">Join a mailing list</a>.",
280     "",
281     "",
282     "1",
283     "<a href=\"php_lib/contribute.htm\">Contribute</a>.",
284     "",
285     "",
286     "0",
287     "Site Web Content",
288     "",
289     "",
290     "1",
291     "<a href=\"web_content/desc.htm\">Description</a>.",
292     "",
293     "",
294     "1",
295     "<a href=\"web_content/download.htm\">Download the web content</a>.",
296     "",
297     "",
298     "1",
299     "<a href=\"web_content/report_bug.htm\">Report a bug</a>.",
300     "",
301     "",
302     "1",
303     "<a href=\"web_content/view_cvs.htm\">Browse CVS archives</a>.",
304     "",
305     "",
306     "1",
307     "<a href=\"web_content/join_mail_list.htm\">Join a mailing list</a>.",
308     "",
309     "",
310     "1",
311     "<a href=\"web_content/contribute.htm\">Contribute</a>.",
312     "",
313     "",
314     "0",
315     "Frequently Requested Standalone Windows Utilities",
316     "",
317     "",
318     "1",
319     "<a href=\"winutils/md5sum/index.html\">MD5 calculation utility</a>.",
320     "",
321     "",
322     "1",
323     "<a href=\"winutils/brap/index.html\">Best rational approximation utility</a>.",
324     "",
325     "",
326     "0",
327     "CGI-BIN Number Theory Utilities",
328     "",
329     "",
330     "1",
331     "<a href=\"nth_cgi_utils/desc.htm\">Description</a>.",
332     "",
333     "",
334     "1",
335     "<a href=\"phpcgibin/euclid_gcd.php\">GCD calculator (Euclid's classic algorithm)</a>.",
336     "",
337     "",
338     "1",
339     "<a href=\"phpcgibin/miller_rabin.php\">Miller-Rabin probable primality test</a>.",
340     "",
341     "",
342     "1",
343     "<a href=\"phpcgibin/pfact18digit.php\">Prime factorization of an integer (18 or fewer digits)</a>.",
344     "",
345     "",
346     "1",
347     "<a href=\"nth_cgi_utils/brap.htm\">Best rational approximation calculator (continued fraction algorithm)</a>.",
348     "",
349     "",
350     "1",
351     "<a href=\"nth_cgi_utils/rn_min_d.htm\">Rational number with smallest denominator in an interval calculator (continued fraction algorithm)</a>.",
352     "",
353     "",
354     "0",
355     "Other CGI-BIN Utilities",
356     "",
357     "",
358     "1",
359     "<a href=\"phpcgibin/htpasswd_gen.php\"><i>htpasswd</i>-style password hash generator</a>.",
360     "",
361     "",
362     "0",
363     "<a href=\"howtos/index.html\">Technical Resources And Howtos</a>",
364     "W",
365     "L",
366     "0",
367     "<a href=\"links/index.html\">Embedded Systems Links</a>",
368     "W",
369     "L",
370     "0",
371     "Employment Resources",
372     "",
373     "",
374     "1",
375     "<a href=\"employ_rscs/geninfo.htm\">General information and suggestions</a>.",
376     "",
377     "",
378     "1",
379     "<a href=\"employ_rscs/pprofs.htm\">List of placement professionals and some contributed resources</a>.",
380     "",
381     "",
382     "0",
383     "<a href=\"http://www.sourceforge.net\">SourceForge</a> Project And Site",
384     "",
385     "",
386     "1",
387     "<a href=\"search/index.html\">Search (both site and WWW)</a>.",
388     "",
389     "",
390     "1",
391     "<a href=\"http://sourceforge.net/project/stats/?group_id=78227\" target=\"_top\">Site statistics</a>.",
392     "",
393     "",
394     "1",
395     "<a href=\"http://sourceforge.net/project/showfiles.php?group_id=78227\" target=\"_top\">ESRG downloads</a>.",
396     "",
397     "",
398     "1",
399     "<a href=\"http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/esrg/\" target=\"_top\">Browse CVS archives</a>.",
400     "",
401     "",
402     "0",
403     "Author Web Pages",
404     "",
405     "",
406     "1",
407     "<a href=\"authindiv/dtashley/index.html\" target=\"_top\">Dave Ashley</a>",
408     "",
409     "",
410     "0",
411     "For Developers And Collaborators",
412     "",
413     "",
414     "1",
415     "<a href=\"devels/index.html\" target=\"_top\">Policies, procedures, checklists, and other information for developers and collaborators</a>.",
416     "",
417     "",
418     "0",
419     "<a href=\"glossary/glossary.htm\">Glossary Of Products, Terms, Etc.</a>",
420     "W",
421     "L",
422     "0",
423     "<a href=\"acknowledgements/index.html\">Acknowledgements</a>",
424     "W",
425     "L",
426     );
427    
428     //Do our Google search box.
429     google_search_box();
430    
431     //Iterate through the table, tossing out HTML. This should be very self-explanatory.
432     $limit = count($ta);
433    
434     for ($i=0; $i<$limit; $i+=4)
435     {
436     if (($ta[$i] == 0) && ($ta[$i+2] == "W"))
437     {
438     echo "<p>";
439     echo "<b>";
440     echo $ta[$i+1];
441     echo "</b>";
442     echo "</p>";
443     echo "\n";
444     }
445     if (($ta[$i] == 0) && ($ta[$i+2] != "W"))
446     {
447     echo "<p style=\"margin-bottom: -18\">";
448     echo "<b>";
449     echo "<u>";
450     echo $ta[$i+1];
451     echo "</b>";
452     echo "</u>";
453     echo "</p>";
454     echo "\n";
455     }
456     elseif ($ta[$i] == 1)
457     {
458     echo "<li>";
459     echo "<p style=\"margin-left: -12; margin-bottom: 0\">";
460     echo "<font size=\"2\">";
461     echo $ta[$i+1];
462     echo "</font>";
463     echo "</p>";
464     echo "</li>";
465     echo "\n";
466     }
467    
468     //We need to do some voodo to start and end lists.
469     //We start a list if the current item is level 0 and the next one is level 1.
470     //We end a list on the reverse.
471     //Rules may get more complicated in the future, but for now these are OK.
472     if (($i+4) >= $limit)
473     {
474     //We are at last element.
475     if ($ta[$i] == 1)
476     {
477     echo "</ul>\n";
478     }
479     }
480     else
481     {
482     if (($ta[$i] == 1) && ($ta[$i+4] == 0))
483     {
484     echo "</ul>\n";
485     }
486     elseif (($ta[$i] == 0) && ($ta[$i+4] == 1))
487     {
488     echo "<ul>\n";
489     }
490     }
491    
492     } //End for()
493    
494     //Do the Dilbert icon and link.
495     dilbert_icon_and_link();
496     //
497     echo "<hr style=\"margin-top: -12; margin-bottom: -12\">\n";
498     //
499     //Do the version control information.
500     vc_info();
501     ?>
502     </font>
503     </body>
504     </html>

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25