-
Notifications
You must be signed in to change notification settings - Fork 0
/
ms_household_format.php
39 lines (39 loc) · 1.61 KB
/
ms_household_format.php
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
<?php
include("functions.php");
include("accesscontrol.php");
print_header("","#FFF0E0",0);
?>
<h3><font color="#8b4513">Select preset format from list and click the button...</font></h3>
<form action="household_format.php" method="post" name="optionsform" target="_blank">
<input type="hidden" name="pid_list" value="<?=$pid_list?>" border="0">
<table width="639" border="0" cellspacing="0" cellpadding="5">
<tr>
<td>Household Data Layout:<select name="household_set" size="1">
<option value="">Select Format...</option>
<?php
$sql = "SELECT DISTINCT SetName FROM outputset WHERE ForHousehold=1 ORDER BY SetName";
$result = sqlquery_checked($sql);
while ($row = mysqli_fetch_object($result)) {
echo " <option value=\"".$row->SetName."\">".$row->SetName."</option>\n";
}
?>
</select><br> <br>
<input type=checkbox name=members>Include List of Members -
Layout:<select name="member_set" size="1">
<option value="">Select Format...</option>
<?php
$sql = "SELECT DISTINCT SetName FROM outputset WHERE ForHousehold=0 ORDER BY SetName";
$result = sqlquery_checked($sql);
while ($row = mysqli_fetch_object($result)) {
echo " <option value=\"".$row->SetName."\">".$row->SetName."</option>\n";
}
?>
</select>
<p><input type=checkbox name="xml">Output as XML Data (formatting ignored)</p>
</td>
<td><input type="submit" name="submit" value="Make Page to Copy or Print" border="0"></td>
</tr>
</table>
</form>
<?php print_footer();
?>