Hide the Export function when there are no records (locations, tickets, vendors)

This commit is contained in:
Marcus Hill
2024-08-30 22:57:58 +01:00
parent 8ddb450f6f
commit cf322b17bc
3 changed files with 25 additions and 19 deletions

View File

@@ -78,10 +78,12 @@ $total_tickets_closed = intval($row['total_tickets_closed']);
<a class="dropdown-item text-dark" href="#" data-toggle="modal" data-target="#addTicketFromTemplateModal">
<i class="fa fa-fw fa-plus mr-2"></i>From Template
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-dark" href="#" data-toggle="modal" data-target="#exportTicketModal">
<i class="fa fa-fw fa-download mr-2"></i>Export
</a>
<?php if ($num_rows[0] > 0) { ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-dark" href="#" data-toggle="modal" data-target="#exportTicketModal">
<i class="fa fa-fw fa-download mr-2"></i>Export
</a>
<?php } ?>
</div>
</div>
</div>