mirror of https://github.com/itflow-org/itflow
Switched to DB controlled Account Types
This commit is contained in:
parent
1455e20fad
commit
2ee87f0f66
|
|
@ -28,13 +28,16 @@
|
||||||
</div>
|
</div>
|
||||||
<select class="form-control select2" name="type" required>
|
<select class="form-control select2" name="type" required>
|
||||||
<option value="">- Select -</option>
|
<option value="">- Select -</option>
|
||||||
<option value="11">Current Assets</option>
|
<!-- Loop through the associative array to generate the options -->
|
||||||
<option value="12">Fixed Assets</option>
|
<?php
|
||||||
<option value="13">Other Assets</option>
|
mysqli_query($mysqli,"SELECT * FROM account_types ORDER BY account_type_id ASC");
|
||||||
<option value="21">Current Liabilities</option>
|
|
||||||
<option value="22">Long Term Liabilities</option>
|
while ($row = mysqli_fetch_array($result_account_types)) {
|
||||||
<option value="23">Other Liabilities</option>
|
$account_type_id = $row['account_type_id'];
|
||||||
<option value="30">Equity</option>
|
$account_type_name = $row['account_type_name'];
|
||||||
|
echo "<option value='$account_type_id'>$account_type_name</option>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue