Update message for no tickets.

This commit is contained in:
o-psi
2024-01-10 22:40:51 +00:00
parent 9a649529d2
commit d7e8e60693

View File

@@ -53,6 +53,9 @@ $sql_ticket_years = mysqli_query($mysqli, "SELECT DISTINCT YEAR(ticket_created_a
$sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients ORDER BY client_name ASC"); $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients ORDER BY client_name ASC");
$rows = 0;
?> ?>
<div class="card card-dark"> <div class="card card-dark">
@@ -144,6 +147,8 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients
$ticket_unbilled_count = intval($row['ticket_unbilled_count']); $ticket_unbilled_count = intval($row['ticket_unbilled_count']);
if ($ticket_unbilled_count > 0) { if ($ticket_unbilled_count > 0) {
$rows = $rows++;
?> ?>
<tr> <tr>
@@ -156,15 +161,14 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients
</tr> </tr>
<?php <?php
} }
//Get number of rows contained in result set }
$rowcount = mysqli_num_rows($sql_clients);
if ($rowcount == 0) { if ($rows == 0) {
?> ?>
<tr> <tr>
<td colspan="4">You are all caught up!</td> <td colspan="4">You are all caught up! There are no unbilled tickets for this year.
</tr> <i class="fas fa-smile"></i>
<tr> </td>
<td colspan="4">There are no unbilled tickets for this year.</td>
</tr> </tr>
<?php <?php
} }