diff --git a/alerts.php b/alerts.php deleted file mode 100644 index d08e31b1..00000000 --- a/alerts.php +++ /dev/null @@ -1,55 +0,0 @@ - - - - -
-
-

Alerts

- -
-
-
- - - - - - - - - - - - - - - - - - - - - -
DateTypeAlertAck
-
-
-
- - --> - +
diff --git a/notifications.php b/notifications.php new file mode 100644 index 00000000..adf05432 --- /dev/null +++ b/notifications.php @@ -0,0 +1,69 @@ + + + + +
+
+

Notifications

+
+ + 0){ ?> Dismiss All + Dismissed +
+
+
+ 0){ ?> + +
+ + + + + + + + + + + + + + + + + + + + + +
TimestampTypeNotificationDismiss
+
+
+ + +
+

No Notifications

+
+ + +
+ + $sb, 'o' => $o))); -$sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM alerts WHERE (alert_type LIKE '%$q%' OR alert_message LIKE '%$q%') AND DATE(alert_date) BETWEEN '$dtf' AND '$dtt' AND company_id = $session_company_id AND alert_ack_date IS NOT NULL ORDER BY $sb $o LIMIT $record_from, $record_to"); +$sql = mysqli_query($mysqli,"SELECT SQL_CALC_FOUND_ROWS * FROM notifications LEFT JOIN users ON notification_dismissed_by = user_id WHERE (notification_type LIKE '%$q%' OR notification LIKE '%$q%' OR user_name LIKE '%$q%') AND DATE(notification_timestamp) BETWEEN '$dtf' AND '$dtt' AND company_id = $session_company_id AND notification_dismissed_at IS NOT NULL ORDER BY $sb $o LIMIT $record_from, $record_to"); $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); @@ -60,14 +60,14 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
-

Archived Alerts

+

Dismissed Notications

- +
@@ -98,28 +98,31 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); "> - - - - + + + + + - - - - + + + + + + diff --git a/top_nav.php b/top_nav.php index fb7c13ad..295f1009 100644 --- a/top_nav.php +++ b/top_nav.php @@ -12,10 +12,10 @@
Alert Date ">Type ">Alert ">Ack Date ">Timestamp ">Type ">Notification ">Dismissed At ">Dismissed By ">