-
Notifications
You must be signed in to change notification settings - Fork 987
/
_dataselection.php
55 lines (48 loc) · 2.74 KB
/
_dataselection.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<div class="panel panel-primary" id="pannel-1">
<div class="panel-heading">
<h4 class="panel-title"><?php eT("Data selection"); ?></h4>
</div>
<div class="panel-body">
<div class="form-group">
<label for='completionstate' class="col-sm-4 control-label"><?php eT("Include:"); ?> </label>
<div class="col-sm-4">
<select name='completionstate' id='completionstate' class='form-control'>
<option value='all' <?php echo $selectshow; ?>><?php eT("All responses"); ?></option>
<option value='complete' <?php echo $selecthide; ?> > <?php eT("Completed responses only"); ?></option>
<option value='incomplete' <?php echo $selectinc; ?> > <?php eT("Incomplete responses only"); ?></option>
</select>
</div>
</div>
<div class='form-group'>
<label class="col-sm-4 control-label" for='viewsummaryall'><?php eT("View summary of all available fields"); ?></label>
<div class='col-sm-1'>
<input type='checkbox' id='viewsummaryall' name='viewsummaryall' <?php if (isset($_POST['viewsummaryall'])) { echo "checked='checked'";} ?> />
</div>
</div>
<div class='form-group'>
<label class="col-sm-4 control-label" id='noncompletedlbl' for='noncompleted' title='<?php eT("Count stats for each question based only on the total number of responses for which the question was displayed"); ?>'><?php eT("Subtotals based on displayed questions"); ?></label>
<div class='col-sm-1'>
<input type='checkbox' id='noncompleted' name='noncompleted' <?php if (isset($_POST['noncompleted'])) {echo "checked='checked'"; } ?> />
</div>
</div>
<?php
$language_options="";
foreach ($survlangs as $survlang)
{
$language_options .= "\t<option value=\"{$survlang}\"";
if ($sStatisticsLanguage == $survlang)
{
$language_options .= " selected=\"selected\" " ;
}
$temp = getLanguageNameFromCode($survlang,true);
$language_options .= ">".$temp[1]."</option>\n";
}
?>
<div class='form-group'>
<label for='statlang' class="col-sm-4 control-label" ><?php eT("Statistics report language"); ?></label>
<div class='col-sm-4'>
<select name="statlang" id="statlang" class="form-control"><?php echo $language_options; ?></select>
</div>
</div>
</div>
</div>