Added badge count to client side nav, switched from js active nav to using php

This commit is contained in:
root
2019-05-10 18:04:03 -04:00
parent 5af085a40b
commit f9d6f4d316
9 changed files with 167 additions and 77 deletions

View File

@@ -12,40 +12,42 @@
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>" >
<div class="form-group">
<label>Name</label>
<input type="text" class="form-control" name="name" value="<?php echo "$client_name"; ?>" required>
<input type="text" class="form-control" name="name" value="<?php echo $client_name; ?>" required>
</div>
<div class="form-group">
<label>Phone</label>
<input type="text" class="form-control" name="phone" data-inputmask="'mask': '999-999-9999'" value="<?php echo "$client_phone"; ?>" required>
<input type="text" class="form-control" name="phone" data-inputmask="'mask': '999-999-9999'" value="<?php echo $client_phone; ?>" required>
</div>
<div class="form-group">
<label>Email</label>
<input type="email" class="form-control" name="email" value="<?php echo "$client_email"; ?>" required>
<input type="email" class="form-control" name="email" value="<?php echo $client_email; ?>" required>
</div>
<div class="form-group">
<label>Website</label>
<input type="text" class="form-control" name="website" value="<?php echo "$client_website"; ?>">
<input type="text" class="form-control" name="website" value="<?php echo $client_website; ?>">
</div>
<div class="form-group">
<label>Address</label>
<input type="text" class="form-control" name="address" value="<?php echo "$client_address"; ?>" required>
<input type="text" class="form-control" name="address" value="<?php echo $client_address; ?>" required>
</div>
<div class="form-group">
<label>City</label>
<input type="text" class="form-control" name="city" value="<?php echo "$client_city"; ?>" required>
<input type="text" class="form-control" name="city" value="<?php echo $client_city; ?>" required>
</div>
<div class="form-group">
<label>State</label>
<select class="form-control" name="state" required>
<option value="">Select a state...</option>
<?php foreach($states_array as $state_abbr => $state_name) { ?>
<?php
foreach($states_array as $state_abbr => $state_name){
?>
<option <?php if($client_state == $state_abbr) { echo "selected"; } ?> value="<?php echo $state_abbr; ?>"><?php echo $state_name; ?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label>Zip</label>
<input type="text" class="form-control" name="zip" value="<?php echo "$client_zip"; ?>" required>
<input type="text" class="form-control" name="zip" value="<?php echo $client_zip; ?>" required>
</div>
</div>
<div class="modal-footer">