-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseallist.php
More file actions
78 lines (68 loc) · 2.71 KB
/
seallist.php
File metadata and controls
78 lines (68 loc) · 2.71 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
require_once('inc/startsession.php');
require_once('inc/appvars.php');
/////////////////////////////////////////////////////////////////////
//
// Written by Jim Garbe-- Dynamic Checksheet
//
/////////////////////////////////////////////////////////////////////
print("<html>\n");
$Title="Seal list Box";
require_once('inc/title.php'); //Bring in the header
require_once("inc/functions.php.inc");
require_once('inc/connectvars.php');
require_once('js/dyn_perishables.inc.php');
print("<div class=\"content\">\n");
require_once('inc/testperishables_array.inc.php');
//print_r2($testperishables);
print("<table border=\"1\" style=\"width:100%;\">\n");
foreach($testperishables as $perishables) {
print("\n<tr>\n\t<th>\n\t\t".$perishables."\n\t</th>\n</tr>\n");
print("\n<tr>\n\t<td style=\"text-align:center;\">\n");
print("<form id=\"".$perishables."\" name=\"".$perishables."\">\n");
print("<select name=\"".$perishables."_Count\" onChange=\"addRows('".$perishables."_Count_T','".$perishables."',this.value);\">\n");
print("<option value=\"\">How Many?</option>\n");
for($i=2;$i<16;$i++){
print("<option value=\"".$i."\">".$i."</option>\n");
}
print("</select>\n");
print("<table border=\"1\" id=\"".$perishables."_Count_T\">\n");
//print("<tfoot><tr><td>Remove</td><td>No.</td><td>Month</td><td>Day</td><td>Year</td></tr></tfoot>\n");
print("\n\t <tr> \n");
print("\n\t <td><input type=\"button\" name=\"remove[".$perishables."][0]\" value=\"remove\" /></td> \n");
print("\n\t <td> 1 ".$perishables."</td> \n");
print("\n\t <td> \n");
print(" <select name=\"Mnth[".$perishables."][0]\"> \n");
print("\t\t <option value=\"\">MM</option>\n");
for($Mnth = 1; $Mnth < 13; $Mnth++) {
print("\t\t <option value=\"".$Mnth."\">".$Mnth."</option>\n");
}
print(" </select> \n");
print("\t </td> \n");
print("\n\t <td> \n");
print(" <select name=\"Day[".$perishables."][0]\"> \n");
print("\t\t <option value=\"\">DD</option>\n");
for($Day = 1; $Day < 32; $Day++) {
print("\t\t <option value=\"".$Day."\">".$Day."</option>\n");
}
print(" </select> \n");
print("\t </td> \n");
print("\n\t <td> \n");
print(" <select name=\"Year[".$perishables."][0]\"> \n");
print("\t\t <option value=\"\">YYYY</option>\n");
for($Year = date('Y') ; $Year < date('Y') + 10; $Year++) {
print("\t\t <option value=\"".$Year."\">".$Year."</option>\n");
}
print(" </select> \n");
print("\t </td> \n");
print("\n\t </tr> \n");
print("</table>\n");
print("</form>\n");
print("\n\t</td>\n</tr>\n");
}
print("</table>\n");
print("</div>\n");
?>
<div class="push"></div>
</body>
</html>