Adjusted the type dropdown

This commit is contained in:
Andrew Malsbury
2023-10-10 16:52:00 +00:00
parent 22a072f2b4
commit 74e2866a01

View File

@@ -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>