Client Portal - Add company logo to header banner

This commit is contained in:
Marcus Hill 2025-06-28 14:28:25 +01:00
parent eb11e5b2f8
commit 19af05ebee
3 changed files with 9 additions and 7 deletions

View File

@ -49,7 +49,7 @@ $session_company_country = $row['company_country'];
$session_company_locale = $row['company_locale'];
$session_company_currency = $row['company_currency'];
$currency_format = numfmt_create($session_company_locale, NumberFormatter::CURRENCY);
$session_company_logo = $row['company_logo'];
// Get contact info
$contact_sql = mysqli_query($mysqli, "SELECT * FROM contacts WHERE contact_id = $session_contact_id AND contact_client_id = $session_client_id");

View File

@ -139,10 +139,13 @@ header("X-Frame-Options: DENY"); // Legacy
</div>
<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>
<hr>
</div>
</div>
<hr>
<?php
//Alert Feedback

View File

@ -8,7 +8,6 @@ header("Content-Security-Policy: default-src 'self'");
require_once "includes/inc_all.php";
// Billing Card Queries
//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'");
@ -174,12 +173,12 @@ $sql_assigned_assets = mysqli_query(
<a href="ticket_add.php" class="btn btn-primary btn-block mb-3">New ticket</a>
</div>
</div>
<?php
<?php
// Billing Cards
if ($session_contact_primary == 1 || $session_contact_is_billing_contact) { ?>
<div class="row">
<?php if ($balance > 0) { ?>
<div class="col-sm-3 offset-1">
<div class="card">
@ -210,9 +209,9 @@ if ($session_contact_primary == 1 || $session_contact_is_billing_contact) { ?>
<?php } //End Billing Cards ?>
<?php
<?php
// Technical Cards
if ($session_contact_primary == 1 || $session_contact_is_technical_contact) {
if ($session_contact_primary == 1 || $session_contact_is_technical_contact) {
?>
<div class="row">