Fixed add invoice, quote, recurring under client area, added alternative contact photo if one is not present using fontawesome stacked circle with contact initials inside

This commit is contained in:
root
2019-05-18 23:27:15 -04:00
parent 65c961986c
commit b559b58f34
7 changed files with 37 additions and 8 deletions

View File

@@ -8,6 +8,11 @@
</button>
</div>
<form action="post.php" method="post" autocomplete="off">
<?php if(isset($_GET['client_id'])){ ?>
<input type="hidden" name="client" value="<?php echo $client_id; ?>">
<?php } ?>
<div class="modal-body bg-white">
<div class="form-group">
<label>Client</label>
@@ -15,7 +20,7 @@
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
</div>
<select class="form-control" name="client" required>
<select class="form-control" name="client" required <?php if(isset($_GET['client_id'])){ echo "disabled"; } ?>>
<option value="">- Client -</option>
<?php
@@ -24,7 +29,7 @@
$client_id = $row['client_id'];
$client_name = $row['client_name'];
?>
<option value="<?php echo "$client_id"; ?>"><?php echo "$client_name"; ?></option>
<option <?php if($_GET['client_id'] == $client_id) { echo "selected"; } ?> value="<?php echo "$client_id"; ?>"><?php echo "$client_name"; ?></option>
<?php
}