View file member/notify.php

File size: 2.13Kb
<?php 
ERROR_REPORTING(0);
/* ############################################################ *\
 ----------------------------------------------------------------
@package	Icon Portal System (NAIJAMOBILE CLONE).
@copyright	Copyright (C) 2012 ICON.  All Rights Reserved.
@license	OPEN source
@email		support@inspiredconcept.org
@Tel		+234 (0)  8163 1081 40
@Team		#codeX
@Support	#kayouday #MAdskill #LordCash #Judino #Chistel #hakorede
 ----------------------------------------------------------------
\* ############################################################ */
require("init.php");
if(!isloggedin())
{
header("location: index.php");
}
else
{
$user=$_SESSION["user"];
}
echo"<title>$config->title &raquo; Notification</title>";
echo"<style type='text/css'>
<!--
.style1 {
color: #FF0000;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.style2 {font-size: 12px; font-family: Arial, Helvetica, sans-serif;}
.style3 {color: #000000}
-->
</style>
<div class='body_width'>";
include "../topnav.php";
echo"<center>";
include "../ads.php";
fblike();
        	echo"<div class='b_head'>Notification</div>";
//$noteid=$_GET["id"];
//mysql_query("UPDATE b_notification SET noteseen='1' WHERE id='$nid' AND user='$user'");
$notificationquery=mysql_query("SELECT * FROM b_notification WHERE reciever='$user' ORDER BY id DESC");
//$notificationquery=mysql_query("SELECT * FROM b_notification WHERE user='$user' And noteseen='0' ORDER BY id DESC");
$notecount=mysql_num_rows($notificationquery);
if($notecount==0)
{
echo"<div class='msg'><strong><br>You have no notification</strong></div><br>";
}
else
{

while($notify=mysql_fetch_array($notificationquery))
{
$nid=$notify["id"];

echo"<div class='user-info'><ul><li>";
mysql_query("UPDATE b_notification SET noteseen='1' WHERE reciever='$username'");
$sender=cleanvalues2($notify["user"]);
$note=cleanvalues2($notify["message"]);
$date=$notify["date"];
$date=date("D d M, Y", $date);
//$date=makeAgo("$date");
echo"$sender $note $date
						</li></div>";
}
}

echo"<div class='link_button'><a href='index.php'>Go Back</a></div>";
include"inc/footer.php";
?>