/
_filter.php
149 lines (148 loc) · 7.16 KB
/
_filter.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?php
$colClass = 'col-md-4 col-sm-12';
if (!isset($datestamp) || $datestamp == "N"){
$colClass = 'col-md-6 col-sm-12';
}
?>
<h4 class="h4"><?php
eT("Filter"); ?></h4>
<div class="row">
<div class="<?= $colClass ?>">
<div class='form-group'>
<label class="control-label" for='idG'><?php
eT("Response ID greater than:"); ?></label>
<div class=''>
<input class="form-control" type='number' id='idG' name='idG' size='10' value='<?php
if (isset($_POST['idG'])) {
echo sanitize_int($_POST['idG']);
} ?>' onkeypress="returnwindow.LS.goodchars(event,'0123456789')"/>
</div>
</div>
</div>
<div class="<?= $colClass ?>">
<div class='form-group'>
<label class="control-label" for='idL'><?php
eT("Response ID less than:"); ?></label>
<div class=''>
<input class="form-control" type='number' id='idL' name='idL' size='10' value='<?php
if (isset($_POST['idL'])) {
echo sanitize_int($_POST['idL']);
} ?>' onkeypress="returnwindow.LS.goodchars(event,'0123456789')"/>
</div>
</div>
</div>
</div>
<?php
if (isset($datestamp) && $datestamp == "Y"): ?>
<div class="row">
<div class="col-md-4 col-sm-12">
<div class='form-group'>
<label class="control-label" for='datestampE'><?php
eT("Submission date equals:"); ?></label>
<div class="has-feedback">
<?php
Yii::app()->getController()->widget('yiiwheels.widgets.datetimepicker.WhDateTimePicker', array(
'name' => "datestampE",
'id' => 'datestampE',
'value' => $_POST['datestampE'] ?? '',
'pluginOptions' => array(
'format' => ($dateformatdetails['jsdate']),
'allowInputToggle' => true,
'showClear' => true,
'tooltips' => array(
'clear' => gT('Clear selection'),
'prevMonth' => gT('Previous month'),
'nextMonth' => gT('Next month'),
'selectYear' => gT('Select year'),
'prevYear' => gT('Previous year'),
'nextYear' => gT('Next year'),
'selectDecade' => gT('Select decade'),
'prevDecade' => gT('Previous decade'),
'nextDecade' => gT('Next decade'),
'prevCentury' => gT('Previous century'),
'nextCentury' => gT('Next century'),
'selectTime' => gT('Select time')
),
'locale' => convertLStoDateTimePickerLocale(Yii::app()->session['adminlang'])
)
));
?>
</div>
</div>
</div>
<div class="col-md-4 col-sm-12">
<div class='form-group'>
<label class="control-label" for='datestampG'><?php
eT("Submission date later than:"); ?></label>
<div class="has-feedback">
<?php
Yii::app()->getController()->widget('yiiwheels.widgets.datetimepicker.WhDateTimePicker', array(
'name' => "datestampG",
'id' => 'datestampG',
'value' => $_POST['datestampG'] ?? '',
'pluginOptions' => array(
'format' => $dateformatdetails['jsdate'] . " HH:mm",
'allowInputToggle' => true,
'showClear' => true,
'tooltips' => array(
'clear' => gT('Clear selection'),
'prevMonth' => gT('Previous month'),
'nextMonth' => gT('Next month'),
'selectYear' => gT('Select year'),
'prevYear' => gT('Previous year'),
'nextYear' => gT('Next year'),
'selectDecade' => gT('Select decade'),
'prevDecade' => gT('Previous decade'),
'nextDecade' => gT('Next decade'),
'prevCentury' => gT('Previous century'),
'nextCentury' => gT('Next century'),
'selectTime' => gT('Select time')
),
'locale' => convertLStoDateTimePickerLocale(Yii::app()->session['adminlang'])
)
));
?>
</div>
</div>
</div>
<div class="col-md-4 col-sm-12">
<div class='form-group top-5'>
<label class="control-label" for='datestampL'><?php
eT("Submission date earlier than:"); ?></label>
<div class="has-feedback">
<?php
Yii::app()->getController()->widget('yiiwheels.widgets.datetimepicker.WhDateTimePicker', array(
'name' => "datestampL",
'id' => 'datestampL',
'value' => $_POST['datestampL'] ?? '',
'pluginOptions' => array(
'format' => $dateformatdetails['jsdate'] . " HH:mm",
'allowInputToggle' => true,
'showClear' => true,
'tooltips' => array(
'clear' => gT('Clear selection'),
'prevMonth' => gT('Previous month'),
'nextMonth' => gT('Next month'),
'selectYear' => gT('Select year'),
'prevYear' => gT('Previous year'),
'nextYear' => gT('Next year'),
'selectDecade' => gT('Select decade'),
'prevDecade' => gT('Previous decade'),
'nextDecade' => gT('Next decade'),
'prevCentury' => gT('Previous century'),
'nextCentury' => gT('Next century'),
'selectTime' => gT('Select time')
),
'locale' => convertLStoDateTimePickerLocale(Yii::app()->session['adminlang'])
)
));
?>
</div>
</div>
</div>
<input type='hidden' name='summary[]' value='datestampE'/>
<input type='hidden' name='summary[]' value='datestampG'/>
<input type='hidden' name='summary[]' value='datestampL'/>
</div>
<?php
endif; ?>