From 1b0d3474a75d3d62e3cb5286fb7b4d0e40656aa0 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 28 Mar 2022 17:03:38 -0400 Subject: [PATCH] Fix Client portal index.php, removed unused vars and functions, fix code indentation and syntax --- portal/check_login.php | 1 + portal/index.php | 166 +++++++++++++++++++---------------------- 2 files changed, 77 insertions(+), 90 deletions(-) diff --git a/portal/check_login.php b/portal/check_login.php index 0e6226d6..963fb30b 100644 --- a/portal/check_login.php +++ b/portal/check_login.php @@ -39,6 +39,7 @@ $contact = mysqli_fetch_array($contact_sql); $session_contact_name = $contact['contact_name']; $session_contact_initials = initials($session_contact_name); $session_contact_email = $contact['contact_email']; +$session_contact_photo = $contact['contact_photo']; // Get client info $client_sql = mysqli_query($mysqli, "SELECT * FROM clients WHERE client_id = '$session_client_id'"); diff --git a/portal/index.php b/portal/index.php index 8c7ede31..e38f42ff 100644 --- a/portal/index.php +++ b/portal/index.php @@ -4,10 +4,6 @@ * Landing / Home page for the client portal */ - $row = mysqli_fetch_array($sql); - $contact_photo = $row['contact_photo']; - $contact_id = $row['contact_id']; - require_once("inc_portal.php"); // Ticket status from GET @@ -46,101 +42,91 @@ $total_tickets = $row['total_tickets']; ?> - - - - -
- - - " alt="..." class="rounded-left"> - > - - - - - - - -
- - -
-
-
-
-
- -
-

Welcome, !

-
- -
- -
+ + + + " alt="..." class=" img-size-50 img-circle"> + + + + + + + +
+ + +
+
+
+ + +
+

Welcome, !

+
+
+ + +
-
-
- - - - - - - - - - - - - "; - echo ""; - echo ""; - echo ""; - echo ""; - } - ?> - -
#SubjectStatus
$ticket[ticket_number] $ticket[ticket_subject]$ticket[ticket_status]
-
-
- +
+
+ + + + + + + + + + + "; + echo ""; + echo ""; + echo ""; + echo ""; + } + ?> + +
#SubjectStatus
$ticket[ticket_number] $ticket[ticket_subject]$ticket[ticket_status]
+
+
+
- - - - - - - + \ No newline at end of file