More updates to the UI
This commit is contained in:
@@ -18,6 +18,9 @@
|
|||||||
$session_name = $row['name'];
|
$session_name = $row['name'];
|
||||||
$session_email = $row['email'];
|
$session_email = $row['email'];
|
||||||
$session_avatar = $row['avatar'];
|
$session_avatar = $row['avatar'];
|
||||||
|
if(empty($session_avatar)){
|
||||||
|
$session_avatar = "dist/img/noone.png";
|
||||||
|
}
|
||||||
$session_company_id = $row['company_id'];
|
$session_company_id = $row['company_id'];
|
||||||
$session_company_name = $row['company_name'];
|
$session_company_name = $row['company_name'];
|
||||||
$session_token = $row['token'];
|
$session_token = $row['token'];
|
||||||
|
|||||||
46
clients.php
46
clients.php
@@ -58,40 +58,20 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<section class="content-header">
|
<div class="card mb-3">
|
||||||
<div class="container-fluid">
|
<div class="card-header bg-dark text-white">
|
||||||
<div class="row mb-2">
|
<h6 class="float-left mt-1"><i class="fa fa-fw fa-users mr-2"></i>Clients</h6>
|
||||||
<div class="col-sm-6">
|
<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>
|
||||||
<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>
|
</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">
|
<div class="table-responsive">
|
||||||
<table class="table table-hover">
|
<table class="table table-hover">
|
||||||
<thead class="<?php if($num_rows[0] == 0){ echo "d-none"; } ?>">
|
<thead class="<?php if($num_rows[0] == 0){ echo "d-none"; } ?>">
|
||||||
|
|||||||
2
cron.php
2
cron.php
@@ -66,7 +66,7 @@ while($row = mysqli_fetch_array($sql_companies)){
|
|||||||
|
|
||||||
//PAST DUE INVOICE ALERTS
|
//PAST DUE INVOICE ALERTS
|
||||||
//$invoiceAlertArray = [$config_invoice_overdue_reminders];
|
//$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){
|
foreach($invoiceAlertArray as $day){
|
||||||
|
|
||||||
|
|||||||
BIN
dist/img/noone.png
vendored
Normal file
BIN
dist/img/noone.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
@@ -354,6 +354,7 @@ if(isset($_GET['invoice_id'])){
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th class="text-right">Amount</th>
|
<th class="text-right">Amount</th>
|
||||||
|
<th>Reference</th>
|
||||||
<th>Account</th>
|
<th>Account</th>
|
||||||
<th class="text-center">Action</th>
|
<th class="text-center">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -365,13 +366,14 @@ if(isset($_GET['invoice_id'])){
|
|||||||
$payment_id = $row['payment_id'];
|
$payment_id = $row['payment_id'];
|
||||||
$payment_date = $row['payment_date'];
|
$payment_date = $row['payment_date'];
|
||||||
$payment_amount = $row['payment_amount'];
|
$payment_amount = $row['payment_amount'];
|
||||||
|
$payment_reference = $row['payment_reference'];
|
||||||
$account_name = $row['account_name'];
|
$account_name = $row['account_name'];
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $payment_date; ?></td>
|
<td><?php echo $payment_date; ?></td>
|
||||||
<td class=" text-right text-monospace">$<?php echo number_format($payment_amount,2); ?></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><?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>
|
<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>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user