More updates to the UI

This commit is contained in:
johnny@pittpc.com 2019-11-24 20:24:21 -05:00
parent 0b691f6eec
commit cac8083279
5 changed files with 20 additions and 35 deletions

View File

@ -18,6 +18,9 @@
$session_name = $row['name'];
$session_email = $row['email'];
$session_avatar = $row['avatar'];
if(empty($session_avatar)){
$session_avatar = "dist/img/noone.png";
}
$session_company_id = $row['company_id'];
$session_company_name = $row['company_name'];
$session_token = $row['token'];

View File

@ -58,40 +58,20 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
?>
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Clients</h1>
</div>
<div class="col-sm-6">
<button class="btn btn-primary float-right">Add</button>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<div class="card">
<div class="card-header">
<div class="card-tools">
<form class="form-inline" autocomplete="off">
<div class="input-group">
<input type="search" class="form-control" name="q" value="<?php if(isset($q)){echo stripslashes($q);} ?>" placeholder="Search Clients">
<div class="input-group-append">
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
</div>
</div>
<select class="form-control" name="type">
<option>Poop</option>
<option>soup</option>
</select>
</form>
</div>
<div class="card mb-3">
<div class="card-header bg-dark text-white">
<h6 class="float-left mt-1"><i class="fa fa-fw fa-users mr-2"></i>Clients</h6>
<button type="button" class="btn btn-primary btn-sm mr-auto float-right" data-toggle="modal" data-target="#addClientModal"><i class="fas fa-fw fa-plus"></i></button>
</div>
<div class="card-body p-0">
<div class="card-body">
<form class="mb-4" autocomplete="off">
<div class="input-group">
<input type="search" class="form-control col-md-4" name="q" value="<?php if(isset($q)){echo stripslashes($q);} ?>" placeholder="Search Clients">
<div class="input-group-append">
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
</div>
</div>
</form>
<div class="table-responsive">
<table class="table table-hover">
<thead class="<?php if($num_rows[0] == 0){ echo "d-none"; } ?>">

View File

@ -66,7 +66,7 @@ while($row = mysqli_fetch_array($sql_companies)){
//PAST DUE INVOICE ALERTS
//$invoiceAlertArray = [$config_invoice_overdue_reminders];
$invoiceAlertArray = [3,8,14,30,60,90,120];
$invoiceAlertArray = [3,8,14,30,45,60,90,120];
foreach($invoiceAlertArray as $day){

BIN
dist/img/noone.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -354,6 +354,7 @@ if(isset($_GET['invoice_id'])){
<tr>
<th>Date</th>
<th class="text-right">Amount</th>
<th>Reference</th>
<th>Account</th>
<th class="text-center">Action</th>
</tr>
@ -365,13 +366,14 @@ if(isset($_GET['invoice_id'])){
$payment_id = $row['payment_id'];
$payment_date = $row['payment_date'];
$payment_amount = $row['payment_amount'];
$payment_reference = $row['payment_reference'];
$account_name = $row['account_name'];
?>
<tr>
<td><?php echo $payment_date; ?></td>
<td class=" text-right text-monospace">$<?php echo number_format($payment_amount,2); ?></td>
<td><?php echo $payment_reference; ?></td>
<td><?php echo $account_name; ?></td>
<td class="text-center"><a class="btn btn-danger btn-sm" href="post.php?delete_payment=<?php echo $payment_id; ?>"><i class="fa fa-trash"></i></a></td>
</tr>