Added new GST Filter
This commit is contained in:
@@ -95,6 +95,11 @@ $pagination_entity_name = "Zustimmungserklärungen";
|
|||||||
<input type="text" class="form-control" name="filter[address]" id="filter_address" value="<?=(array_key_exists('address', $filter)) ? $filter['address'] : ""?>" />
|
<input type="text" class="form-control" name="filter[address]" id="filter_address" value="<?=(array_key_exists('address', $filter)) ? $filter['address'] : ""?>" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col-2">
|
||||||
|
<label class="form-label" for="filter_gst">GST</label>
|
||||||
|
<input type="text" class="form-control" name="filter[gst]" id=filter_gst value="<?=(array_key_exists('gst', $filter)) ? $filter['gst'] : ""?>" />
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -176,7 +181,7 @@ $pagination_entity_name = "Zustimmungserklärungen";
|
|||||||
$height = 96 + 25 * (isset($config['sub']) ? count($config['sub']) : 0);
|
$height = 96 + 25 * (isset($config['sub']) ? count($config['sub']) : 0);
|
||||||
$text = $config['key'] ?
|
$text = $config['key'] ?
|
||||||
$stats[$config['key']].' / '.$config['denominator'].' ('.
|
$stats[$config['key']].' / '.$config['denominator'].' ('.
|
||||||
round(($stats[$config['key']]/$config['denominator'])*100).'%)' :
|
round(($config['denominator'] != 0 ? ($stats[$config['key']] / $config['denominator']) : 0) * 100) . '%)' :
|
||||||
$config['text'];
|
$config['text'];
|
||||||
?>
|
?>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
|||||||
@@ -483,6 +483,13 @@ class ConstructionConsent extends mfBaseModel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(array_key_exists("gst", $filter)) {
|
||||||
|
$gst = FronkDB::singleton()->escape($filter["gst"]);
|
||||||
|
if($gst) {
|
||||||
|
$where .= " AND gst LIKE '%$gst%'";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(array_key_exists("status", $filter)) {
|
if(array_key_exists("status", $filter)) {
|
||||||
$status = FronkDB::singleton()->escape($filter["status"]);
|
$status = FronkDB::singleton()->escape($filter["status"]);
|
||||||
if($status) {
|
if($status) {
|
||||||
|
|||||||
Reference in New Issue
Block a user