diff --git a/client_overview.php b/client_overview.php index 326ddf98..2864b1b9 100644 --- a/client_overview.php +++ b/client_overview.php @@ -33,6 +33,16 @@ $sql_recent_logins = mysqli_query( ORDER BY login_updated_at DESC LIMIT 5" ); +$sql_shared_items = mysqli_query( + $mysqli, + "SELECT * FROM shared_items + WHERE item_client_id = $client_id + AND item_active = 1 + AND item_views != item_view_limit + AND item_expire_at > NOW() + ORDER BY item_created_at DESC LIMIT 10" +); + /* * EXPIRING/ACTION ITEMS */ @@ -159,6 +169,88 @@ $sql_asset_retire = mysqli_query( + 0) { ?> + +
+ +
+
+
Shared Items
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Item NameItem TypeShare NoteViewsExpiresAction
+ + + +
+
+
+
+ + + 0 || mysqli_num_rows($sql_asset_warranties_expiring) > 0 diff --git a/client_shared_items.php b/client_shared_items.php deleted file mode 100644 index e9578d27..00000000 --- a/client_shared_items.php +++ /dev/null @@ -1,125 +0,0 @@ - NOW() - AND (item_note LIKE '%$q%') ORDER BY $sort $order LIMIT $record_from, $record_to" -); - -$num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); - -?> - -
-
-

Shared Items (Links)

-
-
-
- -
- -
-
- -
- -
-
-
- -
-
-
-
- - "> - - - - - - - - - - - - - - - - - - - - - - - -
Item NameItem TypeShare NoteViewsExpiresAction
- - - -
-
- -
-
- - - - - - diff --git a/inc_all_client.php b/inc_all_client.php index f1545712..5ae324e3 100644 --- a/inc_all_client.php +++ b/inc_all_client.php @@ -210,9 +210,6 @@ 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")); $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 // Count Domains Expiring within 30 Days