-
Notifications
You must be signed in to change notification settings - Fork 991
/
_filter.php
106 lines (106 loc) · 4.48 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
<?php
$colClass = 'col-lg-4 col-md-12';
if (!isset($datestamp) || $datestamp == "N") {
$colClass = 'col-lg-6 col-md-12';
}
?>
<h4 class="h4"><?php
eT("Filter"); ?></h4>
<div class="row">
<div class="<?= $colClass ?>">
<div class='mb-3'>
<label class="form-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="return window.LS.goodchars(event,'0123456789')"/>
</div>
</div>
</div>
<div class="<?= $colClass ?>">
<div class='mb-3'>
<label class="form-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="return window.LS.goodchars(event,'0123456789')"/>
</div>
</div>
</div>
</div>
<?php
if (isset($datestamp) && $datestamp == "Y") : ?>
<div class="row">
<div class="col-lg-4 col-md-12">
<div class='mb-3'>
<label class="form-label" for='datestampE'><?php
eT("Submission date equals:"); ?></label>
<div class="has-feedback">
<?php
Yii::app()->getController()->widget('ext.DateTimePickerWidget.DateTimePicker', array(
'name' => "datestampE",
'id' => 'datestampE',
'value' => $_POST['datestampE'] ?? '',
'pluginOptions' => array(
'format' => ($dateformatdetails['jsdate']),
'allowInputToggle' => true,
'showClear' => true,
'locale' => convertLStoDateTimePickerLocale(Yii::app()->session['adminlang'])
)
));
?>
</div>
</div>
</div>
<div class="col-lg-4 col-md-12">
<div class='mb-3'>
<label class="form-label" for='datestampG'><?php
eT("Submission date later than:"); ?></label>
<div class="has-feedback">
<?php
Yii::app()->getController()->widget('ext.DateTimePickerWidget.DateTimePicker', array(
'name' => "datestampG",
'id' => 'datestampG',
'value' => $_POST['datestampG'] ?? '',
'pluginOptions' => array(
'format' => $dateformatdetails['jsdate'] . " HH:mm",
'allowInputToggle' => true,
'showClear' => true,
'locale' => convertLStoDateTimePickerLocale(Yii::app()->session['adminlang'])
)
));
?>
</div>
</div>
</div>
<div class="col-lg-4 col-md-12">
<div class='mb-3 top-5'>
<label class="form-label" for='datestampL'><?php
eT("Submission date earlier than:"); ?></label>
<div class="has-feedback">
<?php
Yii::app()->getController()->widget('ext.DateTimePickerWidget.DateTimePicker', array(
'name' => "datestampL",
'id' => 'datestampL',
'value' => $_POST['datestampL'] ?? '',
'pluginOptions' => array(
'format' => $dateformatdetails['jsdate'] . " HH:mm",
'allowInputToggle' => true,
'showClear' => true,
'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; ?>