Add User to company now works, Security: all edits and deletes now check to make sure they belong to the session_company_id. Security: started work on checking session_company when data is pulled from Get VARS, added clickable invoice status, dashboard session_company_id fixes

This commit is contained in:
johnny@pittpc.com
2019-09-05 23:27:11 -04:00
parent 7f3cdd975f
commit e47853f9cd
7 changed files with 356 additions and 175 deletions

View File

@@ -98,48 +98,56 @@
<div class="row">
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card text-white bg-secondary o-hidden">
<div class="card-body">
<div class="card-body-icon">
<i class="fas fa-fw fa-pencil-ruler"></i>
<a class="text-white" href="?q=Draft">
<div class="card text-white bg-secondary o-hidden">
<div class="card-body">
<div class="card-body-icon">
<i class="fas fa-fw fa-pencil-ruler"></i>
</div>
<div class="mr-5"><?php echo $draft_count; ?> Draft <h1>$<?php echo number_format($total_draft,2); ?></h1></div>
</div>
<div class="mr-5"><?php echo $draft_count; ?> Draft <h1>$<?php echo number_format($total_draft,2); ?></h1></div>
</div>
</div>
</a>
</div>
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card text-white bg-warning o-hidden">
<div class="card-body">
<div class="card-body-icon">
<i class="fas fa-fw fa-paper-plane"></i>
<a class="text-white" href="?q=Sent">
<div class="card text-white bg-warning o-hidden">
<div class="card-body">
<div class="card-body-icon">
<i class="fas fa-fw fa-paper-plane"></i>
</div>
<div class="mr-5"><?php echo $sent_count; ?> Sent <h1>$<?php echo number_format($total_sent,2); ?></h1></div>
</div>
<div class="mr-5"><?php echo $sent_count; ?> Sent <h1>$<?php echo number_format($total_sent,2); ?></h1></div>
</div>
</div>
</a>
</div>
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card text-white bg-primary o-hidden">
<div class="card-body">
<div class="card-body-icon">
<i class="fas fa-fw fa-wine-glass-alt"></i>
</div>
<div class="mr-5"><?php echo $partial_count; ?> Partial <h1>$<?php echo number_format($total_partial,2); ?></h1></div>
</div>
</div>
<a class="text-white" href="?q=Partial">
<div class="card text-white bg-primary o-hidden">
<div class="card-body">
<div class="card-body-icon">
<i class="fas fa-fw fa-wine-glass-alt"></i>
</div>
<div class="mr-5"><?php echo $partial_count; ?> Partial <h1>$<?php echo number_format($total_partial,2); ?></h1></div>
</div>
</div>
</a>
</div>
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card text-white bg-danger o-hidden">
<div class="card-body">
<div class="card-body-icon">
<i class="fas fa-fw fa-ban"></i>
<a class="text-white" href="?q=Cancelled">
<div class="card text-white bg-danger o-hidden">
<div class="card-body">
<div class="card-body-icon">
<i class="fas fa-fw fa-ban"></i>
</div>
<div class="mr-5"><?php echo $cancelled_count; ?> Cancelled <h1>$<?php echo number_format($total_cancelled,2); ?></h1></div>
</div>
<div class="mr-5"><?php echo $cancelled_count; ?> Cancelled <h1>$<?php echo number_format($total_cancelled,2); ?></h1></div>
</div>
</div>
</div>
</a>
</div>
<div class="card mb-3">