mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Show if a Credential, Document or File is Shared by a Link, added a new status column
This commit is contained in:
@@ -7,7 +7,7 @@ $sql_recent_activities = mysqli_query(
|
||||
$mysqli,
|
||||
"SELECT * FROM logs
|
||||
WHERE log_client_id = $client_id
|
||||
ORDER BY log_created_at DESC LIMIT 10"
|
||||
ORDER BY log_created_at DESC LIMIT 5"
|
||||
);
|
||||
|
||||
$sql_important_contacts = mysqli_query(
|
||||
@@ -16,7 +16,7 @@ $sql_important_contacts = mysqli_query(
|
||||
WHERE contact_client_id = $client_id
|
||||
AND (contact_important = 1 OR contact_billing = 1 OR contact_technical = 1 OR contact_primary = 1)
|
||||
AND contact_archived_at IS NULL
|
||||
ORDER BY contact_primary DESC, contact_name DESC"
|
||||
ORDER BY contact_primary DESC, contact_name DESC LIMIT 5"
|
||||
);
|
||||
|
||||
$sql_recent_tickets = mysqli_query(
|
||||
@@ -40,7 +40,7 @@ $sql_shared_items = mysqli_query(
|
||||
AND item_active = 1
|
||||
AND item_views != item_view_limit
|
||||
AND item_expire_at > NOW()
|
||||
ORDER BY item_created_at DESC LIMIT 10"
|
||||
ORDER BY item_created_at DESC LIMIT 5"
|
||||
);
|
||||
|
||||
/*
|
||||
@@ -54,7 +54,7 @@ $sql_stale_tickets = mysqli_query(
|
||||
WHERE ticket_client_id = $client_id
|
||||
AND ticket_updated_at < CURRENT_DATE - INTERVAL 3 DAY
|
||||
AND ticket_closed_at IS NULL
|
||||
ORDER BY ticket_updated_at DESC"
|
||||
ORDER BY ticket_updated_at DESC LIMIT 5"
|
||||
);
|
||||
|
||||
// Get Domains Expiring
|
||||
@@ -65,7 +65,7 @@ $sql_domains_expiring = mysqli_query(
|
||||
AND domain_expire IS NOT NULL
|
||||
AND domain_archived_at IS NULL
|
||||
AND domain_expire < CURRENT_DATE + INTERVAL 90 DAY
|
||||
ORDER BY domain_expire DESC"
|
||||
ORDER BY domain_expire DESC LIMIT 5"
|
||||
);
|
||||
|
||||
// Get Licenses Expiring
|
||||
@@ -76,7 +76,7 @@ $sql_licenses_expiring = mysqli_query(
|
||||
AND software_expire IS NOT NULL
|
||||
AND software_archived_at IS NULL
|
||||
AND software_expire < CURRENT_DATE + INTERVAL 90 DAY
|
||||
ORDER BY software_expire DESC"
|
||||
ORDER BY software_expire DESC LIMIT 5"
|
||||
);
|
||||
|
||||
// Get Asset Warranties Expiring
|
||||
@@ -87,7 +87,7 @@ $sql_asset_warranties_expiring = mysqli_query(
|
||||
AND asset_warranty_expire IS NOT NULL
|
||||
AND asset_archived_at IS NULL
|
||||
AND asset_warranty_expire < CURRENT_DATE + INTERVAL 90 DAY
|
||||
ORDER BY asset_warranty_expire DESC"
|
||||
ORDER BY asset_warranty_expire DESC LIMIT 5"
|
||||
);
|
||||
|
||||
// Get Assets Retiring
|
||||
@@ -98,7 +98,7 @@ $sql_asset_retire = mysqli_query(
|
||||
AND asset_install_date IS NOT NULL
|
||||
AND asset_archived_at IS NULL
|
||||
AND asset_install_date + INTERVAL 7 YEAR < CURRENT_DATE + INTERVAL 90 DAY
|
||||
ORDER BY asset_install_date DESC"
|
||||
ORDER BY asset_install_date DESC LIMIT 5"
|
||||
);
|
||||
|
||||
?>
|
||||
@@ -107,7 +107,7 @@ $sql_asset_retire = mysqli_query(
|
||||
|
||||
<!-- Notes -->
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="card card-dark mb-3">
|
||||
<div class="card-header">
|
||||
@@ -378,7 +378,7 @@ $sql_asset_retire = mysqli_query(
|
||||
|
||||
<!-- Recent Activities -->
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-4">
|
||||
|
||||
<div class="card card-dark mb-3">
|
||||
<div class="card-header">
|
||||
|
||||
Reference in New Issue
Block a user