Client Portal - Add company logo to header banner
This commit is contained in:
@@ -49,7 +49,7 @@ $session_company_country = $row['company_country'];
|
|||||||
$session_company_locale = $row['company_locale'];
|
$session_company_locale = $row['company_locale'];
|
||||||
$session_company_currency = $row['company_currency'];
|
$session_company_currency = $row['company_currency'];
|
||||||
$currency_format = numfmt_create($session_company_locale, NumberFormatter::CURRENCY);
|
$currency_format = numfmt_create($session_company_locale, NumberFormatter::CURRENCY);
|
||||||
|
$session_company_logo = $row['company_logo'];
|
||||||
|
|
||||||
// Get contact info
|
// Get contact info
|
||||||
$contact_sql = mysqli_query($mysqli, "SELECT * FROM contacts WHERE contact_id = $session_contact_id AND contact_client_id = $session_client_id");
|
$contact_sql = mysqli_query($mysqli, "SELECT * FROM contacts WHERE contact_id = $session_contact_id AND contact_client_id = $session_client_id");
|
||||||
|
|||||||
@@ -139,10 +139,13 @@ header("X-Frame-Options: DENY"); // Legacy
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-11 p-0">
|
<div class="col-md-11 p-0">
|
||||||
|
<?php if ($session_company_logo) { ?>
|
||||||
|
<img height="48" width="142" class="img-fluid float-right" src="<?php echo "../uploads/settings/$session_company_logo"; ?>">
|
||||||
|
<?php } ?>
|
||||||
<h4>Welcome, <strong><?php echo stripslashes(nullable_htmlentities($session_contact_name)); ?></strong>!</h4>
|
<h4>Welcome, <strong><?php echo stripslashes(nullable_htmlentities($session_contact_name)); ?></strong>!</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
//Alert Feedback
|
//Alert Feedback
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ header("Content-Security-Policy: default-src 'self'");
|
|||||||
|
|
||||||
require_once "includes/inc_all.php";
|
require_once "includes/inc_all.php";
|
||||||
|
|
||||||
|
|
||||||
// Billing Card Queries
|
// Billing Card Queries
|
||||||
//Add up all the payments for the invoice and get the total amount paid to the invoice
|
//Add up all the payments for the invoice and get the total amount paid to the invoice
|
||||||
$sql_invoice_amounts = mysqli_query($mysqli, "SELECT SUM(invoice_amount) AS invoice_amounts FROM invoices WHERE invoice_client_id = $session_client_id AND invoice_status != 'Draft' AND invoice_status != 'Cancelled' AND invoice_status != 'Non-Billable'");
|
$sql_invoice_amounts = mysqli_query($mysqli, "SELECT SUM(invoice_amount) AS invoice_amounts FROM invoices WHERE invoice_client_id = $session_client_id AND invoice_status != 'Draft' AND invoice_status != 'Cancelled' AND invoice_status != 'Non-Billable'");
|
||||||
|
|||||||
Reference in New Issue
Block a user