Skip to content

Commit be08514

Browse files
committed
fixed notification popup error and front-end of Notification Panel modified
1 parent 312b127 commit be08514

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

ToDo

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
----- >>>> DONE #5.4 scrollTo down of chat
1010
---->>>OBSOLETE <<!!NOT REALLY REQURED!!>> **#5.5 Clicking on img would open profile.
1111
#5.6 Integrating it with notification system.
12-
#5.7 Changing time format to WhatsApp format.
12+
**#5.7 Changing time format to WhatsApp format.
1313

1414
----- >>>> DONE #6 I-card pop-up for view-profile section
1515
---->>>OBSOLETE <<!!NOT REALLY REQURED!!>> #7 Scroll Cache problem to be resolved

notify.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
if ($notifications->num_rows > 0) {
1111
// output data of each row
1212
$i = 1;
13-
echo " <tr><th>Sr. No.</th><th>Message</th><th></th></tr>";
13+
echo " <tr><th>Sr. No.</th><th>Message</th><th>Time</th><th></th></tr>";
1414
while($row = $notifications->fetch_assoc()) {
1515
$ntf_id = $row['notif_id'];
16-
echo "<tr><td>".$i."</td><td>".$row['message']."<span class='label label-success'>".$row['notif_time']."</span></td>";
17-
mysqli_query($conn, "UPDATE notificationData SET seen_status Success Label= 1 WHERE notif_id = $ntf_id");
16+
$date=date_create($row['notif_time']);
17+
echo "<tr><td>".$i."</td><td>".$row['message']."</td><td>".date_format($date,"d/m/y h:i a")."</td>";
18+
mysqli_query($conn, "UPDATE notificationData SET seen_status = 1 WHERE notif_id = $ntf_id");
1819
$i += 1;
1920
if($row['typeOf'] == "follow_request"){echo "<td><a class='google' style='text-decoration: none' href='NewConnect.php'>Follow Back</a></td></tr>";}
2021
elseif($row['typeOf'] == "accepted_request"){echo "<td><a class='google' style='text-decoration: none' href='NewConnect.php'>Chat Now</a></td></tr>";}

0 commit comments

Comments
 (0)