Convert deprecated center tags to CSS; General tidy

This commit is contained in:
Marcus Hill
2023-02-02 16:20:44 +00:00
parent c6840ff92a
commit 4c2ca17e2c
+10 -16
View File
@@ -1,12 +1,10 @@
<?php include("inc_all.php"); ?>
<?php require_once("inc_all.php");
<?php
$sql = mysqli_query($mysqli,"SELECT * FROM notifications LEFT JOIN clients ON notification_client_id = client_id WHERE notification_dismissed_at IS NULL AND (notification_user_id = $session_user_id OR notification_user_id = 0) AND notifications.company_id = $session_company_id ORDER BY notification_id DESC");
$sql = mysqli_query($mysqli, "SELECT * FROM notifications LEFT JOIN clients ON notification_client_id = client_id WHERE notification_dismissed_at IS NULL AND (notification_user_id = $session_user_id OR notification_user_id = 0) AND notifications.company_id = $session_company_id ORDER BY notification_id DESC");
?>
<div class="card card-dark">
<div class="card card-dark">
<div class="card-header py-2">
<h3 class="card-title mt-2"><i class="fa fa-fw fa-bell"></i> Notifications</h3>
<div class="card-tools">
@@ -41,7 +39,7 @@ $sql = mysqli_query($mysqli,"SELECT * FROM notifications LEFT JOIN clients ON no
$client_id = $row['client_id'];
if (empty($client_name)) {
$client_name_display = "-";
}else{
} else {
$client_name_display = "<a href='client_overview.php?client_id=$client_id'>$client_name</a>";
}
@@ -63,16 +61,12 @@ $sql = mysqli_query($mysqli,"SELECT * FROM notifications LEFT JOIN clients ON no
</div>
</div>
<?php
}else{
?>
<center class="my-5">
<?php } else { ?>
<div class="my-5" style="text-align: center">
<i class='far fa-fw fa-6x fa-bell-slash text-secondary'></i><h3 class='text-secondary mt-3'>No Notifications</h3>
</center>
</div>
<?php } ?>
<?php
}
?>
</div>
</div>
<?php include("footer.php");
<?php require_once("footer.php");