if ($pvm_inbox) {
$inboxres = mysql_query("SELECT * FROM funk.user_messages a, funk.users b WHERE a.from_user_id = b.user_id AND a.user_id = '" . $session_user_id . "' LIMIT 4");
$ftheader = "From";
} else {
$inboxres = mysql_query("SELECT * FROM funk.user_messages a, funk.users b WHERE a.user_id = b.user_id AND a.from_user_id = '" . $session_user_id . "' LIMIT 4");
$ftheader = "Sent To";
}
?>
| Date: |
=$ftheader ?>: |
Subject: |
Action |
$rp = 0;
while (($row = mysql_fetch_array($res))!=null) {
$rp++;
if ($row['new']=="Y")
{
$msg_status = "New";
} else {
if ($row['replied']=="N")
{
$msg_status = "Read";
$msg_class ="r";
}
else
{
$msg_status = "Replied";
$msg_class ="r";
}
}
if ($row['subject']=="")
{
$subject_data = "(no subject)";
}
else
{
$subject_data = $row['subject'];
}
$msg_date = $row['message_date'];
$new_msg_date = date('M j', strtotime($msg_date)).", ". date('Y', strtotime($msg_date))." ".date('g:i a', strtotime($msg_date));
?>
| =$new_msg_date?> |
|
=$subject_data?> |
if ($view==1) { ?>Reply } ?> Delete |
} ?>
| if ($page>1) { ?>Previous } ?> |
Page =$page?> of =$maxpages?> |
if ($page<$maxpages) { ?>Next } ?> |
|
switch ($view) { case 1: ?>
| Inbox | Sent Messages |
break; case 2: ?>
Inbox | Sent Messages |
break; } ?>
|