Add Client Select Filters the remaining entities also when creating an entity auto select the client based off the the client selected in the client dropdown filter

This commit is contained in:
johnnyq
2025-03-22 13:50:03 -04:00
parent 8e3dd42a32
commit 0b9f10985d
16 changed files with 284 additions and 52 deletions

View File

@@ -54,7 +54,7 @@
while ($row = mysqli_fetch_array($sql)) {
$client_id = intval($row['client_id']);
$client_name = nullable_htmlentities($row['client_name']); ?>
<option value="<?php echo $client_id; ?>"><?php echo $client_name; ?></option>
<option <?php if ($client_id == $_GET['client']) { echo "selected"; } ?> value="<?php echo $client_id; ?>"><?php echo $client_name; ?></option>
<?php } ?>
</select>