<?php session_start(); include("conn/conn.php"); if ($_GET['page']=="") {$_GET['page']=1;}?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>短信管理</title>
<style type="text/css">
<!--
body {
	background-color: #8394BF;
}
-->
</style></head>

<body>
<?php include_once("enter.php");?>
<table  align="center" width="950" height="103" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#F4F5F9">
	<tr>
    	<td height="36" colspan="3">&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $_GET[sender];?> 您好：您现在有
<?php 
	$query=mysql_query("select * from tb_mail_box where tb_receiving_person='$_GET[sender]' and tb_mail_type=''");
	$myrow=mysql_num_rows($query);
	echo $myrow;
?>
		条未读信息！</td>
   	</tr>
  	<tr>
    	<td width="263" height="39" align="center">&nbsp;&nbsp;&nbsp;&nbsp;<a href="send_mail.php?sender=<?php echo $_GET[sender];?>&&mails=收件箱">收件箱</a></td>
    	<td width="244" align="center"><a href="send_mail.php?sender=<?php echo $_GET[sender];?>&&mails=发件箱">发件箱</a></td>
    	<td width="425" align="center"><a href="send_mail.php?sender=<?php echo $_GET[sender];?>&&mails=写信">写信</a></td>
  	</tr>
  	<tr>
  	  <td colspan="3" align="center"><table width="95%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center"><?php 
	switch($mails){
		case "":
  			include("write_mail.php");
		break;
		case "写信":
  			include("write_mail.php");
		break;
		case "收件箱":
  			include("browse_mail.php");
		break;
		case "发件箱":
  			include("browse_send_mail.php");
		break;
	}
?></td>
        </tr>
      </table>
      </td>
  </tr>
</table><table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="667" bgcolor="#F7F7FF">&nbsp;</td>
    <td width="283" bgcolor="#F7F7FF"><img src="images/index_8 (2).jpg" width="218" height="75"></td>
  </tr>
  <tr>
    <td bgcolor="#8496BD">&nbsp;</td>
    <td bgcolor="#8496BD">&nbsp;</td>
  </tr>
</table>
</body>
</html>
