The start of client logins has begun, now can link a user with a client to allow client logins, clients can only view client.php there is more work to be done

This commit is contained in:
root
2019-05-27 12:28:41 -04:00
parent 889a749d88
commit e0e723bb9f
8 changed files with 48 additions and 12 deletions

View File

@@ -16,8 +16,8 @@
<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" <?php if(isset($_GET['client_id'])){ echo "disabled"; } ?>>
<option value="">- Client -</option>
<select class="form-control" name="client">
<option value="0">No Client Assignment</option>
<?php
$sql = mysqli_query($mysqli,"SELECT * FROM clients");
@@ -25,7 +25,7 @@
$client_id = $row['client_id'];
$client_name = $row['client_name'];
?>
<option <?php if($_GET['client_id'] == $client_id) { echo "selected"; } ?> value="<?php echo "$client_id"; ?>"><?php echo "$client_name"; ?></option>
<option value="<?php echo $client_id; ?>"><?php echo $client_name; ?></option>
<?php
}