-
Notifications
You must be signed in to change notification settings - Fork 0
/
props.cgi
46 lines (42 loc) · 1.56 KB
/
props.cgi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/local/bin/perl -w
$file = 'props.dat';
open (FILE, "<$file") || die "Can't open $file!";
@props = <FILE>;
chop(@props);
close FILE;
print "Content-type: text/html\n\n";
print "<html><head><title>Boolean Spaces, Properties, and Structures</title></head><body>\n";
print "<center><h2>Yes/No Property Selection</h2></center>\n";
print "<form action=http://www.umanitoba.ca/cgi-bin/math/bell/propssolns.cgi method=post>\n";
print "<center><input type=submit value=SUBMIT>
<a href = http://home.cc.umanitoba.ca/~mbell/instructions.html> Instructions </a> ||
<a href = http://home.cc.umanitoba.ca/~mbell/revisions.html> Revision 1.4 </a> ||
<a href= mailto:mbell\@cc.umanitoba.ca> Comments? </a>
<input type=reset value=RESET>
</center>\n";
print "<center><a href=http://www.umanitoba.ca/cgi-bin/math/bell/structs.cgi>
Structures </a> ||
<a href=http://home.cc.umanitoba.ca/~mbell/help.html> Definitions </a> ||
<a href=http://home.cc.umanitoba.ca/~mbell/lists.html> Lists </a>
</center>\n";
print "<br><center><table border=1 cellspacing=1>\n";
for ($k=0; $k<=16; ++$k) {
print "<tr>\n";
for ($j=0; $j<=4; ++$j) {
$i=$k+17*$j;
if ($i<=$#props) {
if ($props[$i] ne ' ') {
print "<td><input type=radio name=$i value=1><input type=radio name=$i value=0></td><td bgcolor=beige>$props[$i]</td>";
}
else {
print "<td> </td><td> </td>";
}
}
}
print "</tr>\n";
}
print "</table></center>";
print "<br><center><input type=submit value=SUBMIT></center>";
print "</form>\n";
print "</body></html>\n";
exit;