mirror of
https://github.com/itflow-org/itflow
synced 2026-03-07 22:34:52 +00:00
Show number of shared links on the client side nav
This commit is contained in:
@@ -310,7 +310,13 @@
|
|||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="client_shared_items.php?client_id=<?php echo $client_id; ?>" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "client_shared_items.php") { echo "active"; } ?>">
|
<a href="client_shared_items.php?client_id=<?php echo $client_id; ?>" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "client_shared_items.php") { echo "active"; } ?>">
|
||||||
<i class="nav-icon fas fa-share"></i>
|
<i class="nav-icon fas fa-share"></i>
|
||||||
<p>Shared Links</p>
|
<p>
|
||||||
|
Shared Links
|
||||||
|
<?php
|
||||||
|
if ($num_shared_links > 0) { ?>
|
||||||
|
<span class="right badge badge-light"><?php echo $num_shared_links; ?></span>
|
||||||
|
<?php } ?>
|
||||||
|
</p>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|||||||
@@ -183,6 +183,9 @@ if (isset($_GET['client_id'])) {
|
|||||||
$row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('trip_id') AS num FROM trips WHERE trip_archived_at IS NULL AND trip_client_id = $client_id"));
|
$row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('trip_id') AS num FROM trips WHERE trip_archived_at IS NULL AND trip_client_id = $client_id"));
|
||||||
$num_trips = $row['num'];
|
$num_trips = $row['num'];
|
||||||
|
|
||||||
|
$row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('item_id') AS num FROM shared_items WHERE item_client_id = $client_id"));
|
||||||
|
$num_shared_links = $row['num'];
|
||||||
|
|
||||||
// Expiring Items
|
// Expiring Items
|
||||||
|
|
||||||
// Count Domains Expiring within 30 Days
|
// Count Domains Expiring within 30 Days
|
||||||
|
|||||||
Reference in New Issue
Block a user