<input type="hidden" name="mode" value="show" /> <input type="hidden" name="tag" value="<?php echo $getTag; ?> " /> <!-- filter TYPE --> <select name="filter" class="form-control select-filter-cat"> <option value=""><?php echo _('Filter type'); ?> </option> <?php // we do the request again to get the list again $req->execute(); while ($items_types = $req->fetch()) { echo "\n <option value='" . $items_types['id'] . "'" . checkSelectFilter($items_types['id']) . ">" . $items_types['name'] . "</option>"; } ?> </select> <button class="btn btn-elab submit-filter"><?php echo _('Filter'); ?> </button> <!-- ORDER / SORT dropdown menu --> <select name="order" class="form-control select-order"> <option value=''><?php echo _('Order by'); ?> </option> <option value='cat'<?php checkSelectOrder('cat');
<input type="hidden" name="tag" value="<?php echo $getTag; ?> " /> <!-- FILTER STATUS dropdown menu --> <select name="filter" class="form-control select-filter-status"> <option value=''><?php echo _('Filter status'); ?> </option> <?php $sql = "SELECT id, name FROM status WHERE team = :team_id ORDER BY name ASC"; $req = $pdo->prepare($sql); $req->execute(array('team_id' => $_SESSION['team_id'])); while ($status = $req->fetch()) { echo "\n <option value='" . $status['id'] . "'" . checkSelectFilter($status['id']) . ">" . $status['name'] . "</option>"; } ?> </select> <button class="btn btn-elab submit-filter"><?php echo _('Filter'); ?> </button> <!-- ORDER / SORT dropdown menu --> <select name="order" class="form-control select-order"> <option value=''><?php echo _('Order by'); ?> </option> <option value='date'<?php checkSelectOrder('date');