⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 message_con.php

📁 Download you own three BR
💻 PHP
字号:
<?php
require_once("functions/login_flag.php");//是否已经登录
require_once("functions/class_mysql.php");//加载数据库类文件

?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>消息管理</title>

<link href="css/id.css" rel="stylesheet" type="text/css">
<link href="css/css.css" rel="stylesheet" type="text/css">
<link type="text/css" href="css/build.css" rel="stylesheet">

<style>
body{
margin-top:0px;
}
</style>

</head>

<body>
<script>
 
 function del(){
var name=confirm("确定要删除吗?")
if (name==true)
{
return true;
}
else
{
return false;
}
}
 </script> 

  
<!--导航-->
<?php require_once("diplomatism_daohang.htm");?>

<div id="mb_01">
	<div class="page_build_title">消息管理</div>
</div>
<div id="mb_04">

<!--替换区域开始-->

<?php 
$db->query("update e_mail set `e_read`='1' where `id`='".$_GET['id']."'");
$query=$db->query("select * from e_mail where `id`='".$_GET['id']."' and  `e_username`='".$_COOKIE['NickName']."';");
while ($list=$db->fetch_array($query)) {	
?>
<table width="90%" align="center" style="margin-top:15px;">
	<tr >
    <td width="20%" height="25" ><span style="color:#ffffff; font-weight:bold;"><a href="message.php?e_type=1" target="_self">任务信息</a></span></td>
	<td width="20%" height="25" ><span style="color:#ffffff; font-weight:bold;"><a href="war_result_list.php?type=war" target="_self">战报信息</a></span></td>
    <td width="20%" height="25" ><span style="color:#ffffff; font-weight:bold;"><a href="war_result_list.php?type=lurcher" target="_self">间谍信息</span></a></td>
    <td width="20%" height="25"><span style="color:#ffffff; font-weight:bold;"><a href="message.php?e_type=2" target="_self" style="color:RED;">收 件 箱</a></span></td>
    <td width="20%" height="25" ><span style="color:#ffffff; font-weight:bold;"><a href="message_put.php" target="_self">写信</a></span></td>
    </tr>
</table>

<table width="550" border="0" cellpadding="0" cellspacing="0" bgcolor="#999999">
  <tr>
    <td><table width="550" border="0" cellpadding="0" cellspacing="1">
      <tr align="left">
        <td height="25" colspan="2" bgcolor="#FFFFFF">标题: <?php echo $list['e_title'];?></td>
      </tr>
      <tr>
        <td width="362" height="25" bgcolor="#FFFFFF" align="left">发件人: <?php echo $list['e_name'];?></td>
        <td width="138" height="25" bgcolor="#FFFFFF">时间: <?php echo  date('Y-m-d',$list['e_times']);?></td>
      </tr>
      <tr>
        <td height="25" colspan="2" bgcolor="#FFFFFF" align="left"><br />正文:<br />
            <br /><?php    
		         echo $list['e_text'];
            ?></td>
      </tr>
      <tr>
        <td height="25" colspan="2" bgcolor="#FFFFFF"><div align="right">&lt; <a href="javascript:history.go(-1)">返回</a> &gt; &nbsp; &lt; <a href="message_put.php?e_username=<?php echo $list['e_name'];?>">回复</a> &gt; &nbsp;&lt; <a href="dele_message.php?id=<?php echo $list['id'];?>&&type=one_del" onclick="return del();">删除</a> &gt;&nbsp;
        <?php
        if (!$list['e_name']=='系统信息') {
        	echo '&lt; <a href="add_friend.php?e_name='.$list['e_name'].'">加为好友</a> &gt;';
        }
        ?>
          &nbsp;</div></td>
      </tr>
    </table></td>
  </tr>
</table>
<?php
}
?>
  
<!--替换区域结束-->

</div>

</div>
<div id="mb_03"></div>

<?php $db->close();?>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -