1.00 |
/$top **** START HTML |
2.00 |
Content-type: text/html |
3.00 |
Expires: 0 |
4.00 |
|
5.00 |
<html> |
6.00 |
<head> |
7.00 |
<title>Example of populating a table and receiving multiple occurrences of the same variable</title> |
8.00 |
<meta name="author" content="Giovanni B. Perotti"> |
9.00 |
<meta name="contact" content="gb_perotti@www.easy400.net" /> |
10.00 |
<meta name="last update" content="2004-06-30" /> |
11.00 |
<meta name="review" content="2004-06-30" /> |
12.00 |
<meta name="security" content="Public" /> |
13.00 |
<meta name="expiration date" content="2010-12-31" /> |
14.00 |
<meta name="industries" content="Not Industry Specific" /> |
15.00 |
<meta name="ibm.country" content="IT" /> |
16.00 |
<meta name="language" content="EN" /> |
17.00 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
18.00 |
<meta name="robots" content="all" /> |
19.00 |
|
20.00 |
<script src="/cgicbldev2/css/ibmcss.js" language="JavaScript" type="text/javascript"> |
21.00 |
</script> |
22.00 |
<noscript><link type="text/css" href="/cgicbldev2/css/r1.css" rel="stylesheet"/></noscript> |
23.00 |
|
24.00 |
<style TYPE="text/css"> |
25.00 |
<!-- |
26.00 |
.title { color: blue; font-weight: bold; font-size: 24pt; font-family: souvenir lt bt, verdana, serif; align: center} |
27.00 |
.subtitle { color: black; font-weight: bold; font-size: 12pt; font-family: souvenir lt bt, verdana, serif; align: center} |
28.00 |
.reg {font-size: 10pt; font-family: arial, helvetica, helv} |
29.00 |
.boldtitle { font-family: Arial Black, Arial, sans-serif; font-weight: Helvetica Black, bold; font-size: 24px; } |
30.00 |
.mono { font-family: courier; font-size: 10pt; } |
31.00 |
td,th,caption { font-family: Arial, sans-serif; font-size: 10pt; } |
32.00 |
pre { font-family: monospace; font-weight: normal; font-size: 10pt; } |
33.00 |
--> |
34.00 |
</style> |
35.00 |
</head> |
36.00 |
|
37.00 |
<BODY TEXT="black" LINK="blue" VLINK="blue" ALINK="blue" BGCOLOR="white"> |
38.00 |
|
39.00 |
<table width="600"> |
40.00 |
<tr><td><table width="100%" cellspacing="0" cellpadding="0"> |
41.00 |
<tr><td valign=top><img src="/cgicbldev2/graphics/pears.gif" |
42.00 |
alt="Giovanni's logo"></td> |
43.00 |
<td valign=middle> |
44.00 |
<div class=title> |
45.00 |
Example of populating a table & receiving multiple occurrences of the same variable |
46.00 |
</div> |
47.00 |
</td> |
48.00 |
<td valign=middle><img src="/cgicbldev2/graphics/v2.gif" |
49.00 |
alt="this means Version 2"> |
50.00 |
</td></tr> |
51.00 |
<tr><td colspan=3> |
52.00 |
<table width="100%" cellspacing="0" cellpadding="0"> |
53.00 |
<tr><td width="100%"> |
54.00 |
<img src="/cgicbldev2/graphics/blue.gif" alt="blue line" border="0" |
55.00 |
height="1" width="100%"> |
56.00 |
</td></tr> |
57.00 |
</table> |
58.00 |
</td></tr> |
59.00 |
</table> |
60.00 |
</td></tr> |
61.00 |
</table> |
62.00 |
<br><br> |
63.00 |
|
64.00 |
/$tab1str |
65.00 |
<form name=form1 method=get action="/cgicbldev2p/breakfast2.pgm"> |
66.00 |
<input type=hidden name=request value=x> |
67.00 |
<h3>Select multiple breakfasts</h3> |
68.00 |
<table> |
69.00 |
/$tab1row |
70.00 |
<tr><td><input type=checkbox name=xbftid value="/%bftid%/"></td> |
71.00 |
<td>/%bftdes%/</td></tr> |
72.00 |
/$tab1end |
73.00 |
<tr><td colspan=2 align=center> |
74.00 |
<input type=submit value="go"></td></tr> |
75.00 |
</table> |
76.00 |
</form> |
77.00 |
|
78.00 |
/$list2none |
79.00 |
<div class=reg> |
80.00 |
<b>You didn't select any breakfast!</b> |
81.00 |
</div><br><br> |
82.00 |
/$list2str |
83.00 |
<div class=reg> |
84.00 |
<b>You have chosen the following breakfasts:</b> |
85.00 |
<ul> |
86.00 |
/$list2row |
87.00 |
<li><a href="http://fern.forest.net/FMPro?-db=recipedatabase&-lay=form%20view&recipenumber=/%bftid%/&-format=walkerdesign/record_detail2.htm&-find" |
88.00 |
>/%bftdes%/</a> |
89.00 |
/$list2end |
90.00 |
</ul> |
91.00 |
</div><br><br> |
92.00 |
|
93.00 |
/$end |
94.00 |
<table width=600> |
95.00 |
<tr><td><a href="/cgicbldev2p/dspsrc.cgi?srclib=cgicbldev2&srcfile=htmlexampl&srcmbr=breakfast2" |
96.00 |
target="_blank"><b>Display the external html source</b></a></td> |
97.00 |
<td align=right> |
98.00 |
<a href="/cgicbldev2p/dspsrc.cgi?srclib=cgicbldev2&srcfile=qcbllesrc&srcmbr=breakfast2" |
99.00 |
target="_blank"><b>Display the COBOL source</b></a></td> |
100.00 |
</td></tr> |
101.00 |
</table> |
102.00 |
<br><br> |
103.00 |
<br><br> |
104.00 |
</body></html> |