Location: PHPKode > scripts > OekakiPoteto > oekakipoteto/mailbox.php
<html>
<?
include('header.php');
$result = mysql_query("Select * from ".$OekakiPoteto_MemberPrefix."oekakimailbox where reciever='$OekakiU' order by MID desc");

?> 
<p></p>
<br>
<table width="<?=$hWidth?>" align="center" cellpadding="0" cellspacing="0">
<tr>
    <td class="infotable"><strong><font size="-2"><?=$langop_word_mailbox?></font></strong><font size="-2"> 
      [<a href="mailsend.php"><?=$langop_word_write?></a>] [<a href="mailout.php"><?=$langop_word_outbox?></a>]</font></td>
  </tr>
  <tr> 
    <td><table width="100%" border="0" cellspacing="2" cellpadding="2">
        <tr> 
          <td colspan="5" class="header"><?=$langop_word_inbox?></td>
        </tr>
        <tr class="infotable"> 
          <td><strong><?=$langop_word_from?></strong></td>
          <td><strong><?=$langop_word_subject?></strong></td>
          <td><strong><?=$langop_word_date?></strong></td>
          <td><strong><?=$langop_word_status?></strong></td>
          <td>&nbsp;</td>
        </tr>
		<?while($row = mysql_fetch_array($result)){?>
        <tr class="infotable"> 
          <td><a onClick="openWindow('profile.php?user=<?=$row[sender];?>', 300, 400); return false" a href="profile.php?user=<?=$row[sender];?>"><?=$row[sender];?>
</a>
</td>
          <td><a href="mailread.php?MID=<?=$row[MID]?>"><?=$row[subject];?></a></td>
          <td><?=$row[senddate];?></td>
          <td><?switch($row[mstatus]){
		  		case 0:
					echo $langop_word_new;
					break;
				case 1:
					echo $langop_word_unread;
					break;
				case 2:
					echo $langop_word_read;
					break;
				case 3:
					echo $langop_word_replied;
					break;
				default:
					echo $langop_word_new;
					break;
					}?></td>
          <td><a href="functions.php?mail=delete&MID=<?=$row[MID]?>"><?=$langop_word_delete?></a></td>
		  <? }
		  
$result = mysql_query("UPDATE ".$OekakiPoteto_MemberPrefix."oekakimailbox SET mstatus=1 where reciever='$OekakiU' and mstatus=0");
mysql_close(); ?>
        </tr>
      </table></td>
  </tr>
</table>
<br>
</body>
<? include('footer.php'); ?>
Return current item: OekakiPoteto