Officially moved client nav to the side, moved add new client items to each tavb instead bolded client balance if negative

This commit is contained in:
root
2019-05-04 15:35:24 -04:00
parent bdbbecfc7b
commit b24fa9f3de
19 changed files with 945 additions and 851 deletions

View File

@@ -1,25 +1,37 @@
<?php $sql = mysqli_query($mysqli,"SELECT * FROM files WHERE client_id = $client_id ORDER BY file_id DESC"); ?>
<h3>Pictures</h3>
<hr>
<div class="row">
<?php
while($row = mysqli_fetch_array($sql)){
$file_id = $row['file_id'];
$file_name = $row['file_name'];
?>
<div class="col-2 mb-3">
<?php echo $file_name; ?>
<a href="#" data-toggle="modal" data-target="#viewClientFileModal<?php echo $file_id; ?>">
<img class="img-fluid" src="<?php echo $file_name; ?>">
</a>
<div class="card">
<div class="card-header">
<h6 class="float-left mt-1"><i class="fa fa-paperclip"></i> Files</h6>
<button class="btn btn-primary btn-sm float-right" data-toggle="modal" data-target="#addClientFileModal"><i class="fa fa-plus"></i></button>
</div>
<div class="card-body">
<h3>Pictures</h3>
<hr>
<div class="row">
<?php
while($row = mysqli_fetch_array($sql)){
$file_id = $row['file_id'];
$file_name = $row['file_name'];
?>
<div class="col-2 mb-3">
<?php echo $file_name; ?>
<a href="#" data-toggle="modal" data-target="#viewClientFileModal<?php echo $file_id; ?>">
<img class="img-fluid" src="<?php echo $file_name; ?>">
</a>
</div>
<?php
include("view_client_file_modal.php");
}
?>
</div>
<?php
include("view_client_file_modal.php");
}
?>
</div>
</div>
</div>
<?php include("add_client_file_modal.php"); ?>