Add nothing to see here (manual - non-paginated version)

This commit is contained in:
Marcus Hill
2022-02-17 20:52:03 +00:00
parent 91221ffd07
commit 0fda21705d

View File

@@ -21,10 +21,18 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
<h3 class="card-title mt-2"><i class="fa fa-fw fa-sync"></i> Scheduled Tickets</h3> <h3 class="card-title mt-2"><i class="fa fa-fw fa-sync"></i> Scheduled Tickets</h3>
</div> </div>
<?php
if($num_rows[0] == 0){
echo "<center><h2 class='text-secondary mt-5'>Nothing to see here</h2><br>";
}
else {
?>
<div class="card-body"> <div class="card-body">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped table-borderless table-hover"> <table class="table table-striped table-borderless table-hover">
<thead class="<?php if($num_rows[0] == 0){ echo "d-none"; } ?>"> <thead class="<?php if ($num_rows[0] == 0) {
echo "d-none";
} ?>">
<tr> <tr>
<th><a class="text-dark">Client</a></th> <th><a class="text-dark">Client</a></th>
<th><a class="text-dark">Subject</a></th> <th><a class="text-dark">Subject</a></th>
@@ -66,9 +74,11 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
<i class="fas fa-ellipsis-h"></i> <i class="fas fa-ellipsis-h"></i>
</button> </button>
<div class="dropdown-menu"> <div class="dropdown-menu">
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editScheduledTicketModal<?php echo $scheduled_ticket_id; ?>">Edit</a> <a class="dropdown-item" href="#" data-toggle="modal"
data-target="#editScheduledTicketModal<?php echo $scheduled_ticket_id; ?>">Edit</a>
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
<a class="dropdown-item text-danger" href="post.php?delete_scheduled_ticket=<?php echo $scheduled_ticket_id; ?>">Delete</a> <a class="dropdown-item text-danger"
href="post.php?delete_scheduled_ticket=<?php echo $scheduled_ticket_id; ?>">Delete</a>
</div> </div>
</div> </div>
</td> </td>
@@ -83,6 +93,9 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
</table> </table>
</div> </div>
</div> </div>
<?php
}
?>
</div> </div>