Another Fix setup where user_companies was not creating a record due to user_id being out of the loop

This commit is contained in:
root
2019-08-16 00:12:47 -04:00
parent aa766c7671
commit b2746ddfa5
9 changed files with 140 additions and 98 deletions

View File

@@ -2,7 +2,7 @@
<div class="modal-dialog">
<div class="modal-content bg-dark">
<div class="modal-header text-white">
<h5 class="modal-title"><i class="fa fa-fw fa-user-plus mr-2"></i>New User</h5>
<h5 class="modal-title"><i class="fa fa-fw fa-user mr-2"></i>New User</h5>
<button type="button" class="close text-white" data-dismiss="modal">
<span aria-hidden="true">&times;</span>
</button>
@@ -63,6 +63,23 @@
<div class="tab-pane fade" id="pills-assign">
<?php
$sql = mysqli_query($mysqli,"SELECT * FROM companies");
while($row = mysqli_fetch_array($sql)){
$company_id = $row['company_id'];
$company_name = $row['company_name'];
?>
<div class="form-check">
<input type="checkbox" class="form-check-input" name="company" value="<?php echo $company_id; ?>">
<label class="form-check-label"><?php echo $company_name; ?></label>
</div>
<?php
}
?>
<div class="form-group">
<label>Assign a User to a Client</label>
<div class="input-group">