mirror of
https://github.com/itflow-org/itflow
synced 2026-03-23 05:55:38 +00:00
Adjusted the type dropdown
This commit is contained in:
@@ -26,18 +26,15 @@
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-list"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-list"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<select class="form-control select2" name="type" required>
|
<select class="form-control select" name="type" required>
|
||||||
<option value="">- Select -</option>
|
<option value="">- Select -</option>
|
||||||
<!-- Loop through the associative array to generate the options -->
|
<?php
|
||||||
<?php
|
$sql_account_types = mysqli_query($mysqli, "SELECT * FROM account_types ORDER BY account_type_name ASC");
|
||||||
$result_account_types = mysqli_query($mysqli,"SELECT * FROM account_types ORDER BY account_type_id ASC");
|
while ($row = mysqli_fetch_array($sql_account_types)) {
|
||||||
|
$account_type_id = intval($row['account_type_id']);
|
||||||
while ($row = mysqli_fetch_array($result_account_types)) {
|
$account_type_name = nullable_htmlentities($row['account_type_name']);
|
||||||
$account_type_id = $row['account_type_id'];
|
if($account_type_id % 10 != 0) {
|
||||||
$account_type_name = $row['account_type_name'];
|
echo "<option value='$account_type_id'>$account_type_name</option>";}}?>
|
||||||
echo "<option value='$account_type_id'>$account_type_name</option>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user