-
Notifications
You must be signed in to change notification settings - Fork 1
/
load_fields.php
34 lines (31 loc) · 1.19 KB
/
load_fields.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
<?php
include_once("config.php");
include_once("scripts.php");
$initiative = $_REQUEST['initiative'];
$fields = GetFormFields($initiative);
$location_inputs = $fields['locations'];
$activity_inputs = $fields['activities'];;
?>
<form action="index.php" method="get">
<h4>Time and Date of Data Collection</h4>
<input type="hidden" name="initiative" value="<?php echo($initiative) ;?>" />
<label for="date" class="required">Data collection date</label>
<input name="date" type="text" id="datepicker" class="required-field" /><br />
<label for="time" class="required">Data collection time (e.g. "9:30 pm")</label>
<input name="time" type="text" class="required-field" /><br />
<h4 class="required">Counts by location</h4>
<?php echo($location_inputs); ?>
<?php echo($activity_inputs);?>
<?php if ($allow_direct_submit) {
//if allow direct submit is on, allow user to disable it for this submission
?>
<br /> <input type="checkbox" name="json-only" />
<label for="json-only">Output JSON-formatted data, but do not submit to Suma</label>
<?php
}
else { //if allow_direct_submit == false
print(AlertJSONOnly ());
}
?>
<br /> <input type="submit" name="submit-suma-importer" />
</form>