<?php require_once('../../include/class.inc.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" />
<link rel="stylesheet" href="../inc/css.css" type="text/css" />
<title>查看留言</title>
<style type="text/css">
<!--
.STYLE5 {color: #FFFFFF; font-weight: bold; }
.STYLE6 {color: #000000}
-->
</style>
</head>

<body>
<table width="1055" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
    <td colspan="2"><div align="center">查看<a href="../message/message_add.php">留言</a></div></td>
  </tr><tr>
    <td width="960"><?php
	$my->showpage();
	?></td>
    <td width="95"><a href="../message/message_add.php">添加留言</a></td>
  </tr>
  <tr>
    <td colspan="2"><table width="1052" border="0" align="center" cellpadding="2" cellspacing="1" bordercolor="#799AE1" class="tableBorder">
      <tbody>
        <tr bgcolor="#CCCCCC">
          <td height="20" bgcolor="#4455aa"><div align="center" class="STYLE5">编　号</div></td>
          <td bgcolor="#4455aa"><div align="center" class="STYLE5">留言者姓名</div></td>
          <td height="20" bgcolor="#4455aa"><div align="center" class="STYLE5">
              <div align="center">电话</div>
          </div></td>
          <td bgcolor="#4455aa" class="STYLE5"><div align="center">其他联系方式</div></td>
          <td bgcolor="#4455aa" class="STYLE5"><div align="center">E-mail</div></td>
          <td bgcolor="#4455aa" class="STYLE5"><div align="center">审核</div></td>
          <td width="106" bgcolor="#4455aa" class="STYLE5"><div align="center">时间</div></td>
          <td height="20" bgcolor="#4455aa" class="STYLE5"><div align="center" class="STYLE5">操 作</div></td>
        </tr>
        <?php
$sql="select * from message order by id desc";
$result=$my->data_work($sql);
while($rs=mysql_fetch_array($result)){
?>
        <tr bgcolor="#DEE5FA">
          <td width="46" align="center" class="txlrow"><div align="center"><?php echo $rs["id"];?></div></td>
          <td width="73" align="center" class="txlrow"><div align="center"><?php echo $rs["name"];?></div></td>
          <td width="145" align="center" class="txlrow"><div align="center"><?php echo $rs["phone"];?></div></td>
          <td width="150" align="center" class="txlrow"><div align="center"><?php echo $rs["other"];?></div></td>
          <td width="188" align="center" class="txlrow"><div align="center"><?php echo $rs["E_mail"];?></div></td>
          <td width="76" align="center" class="txlrow"><div align="center"><?php echo $rs["shenhe"];?></div></td>
          <td align="center" class="txlrow"><div align="center"><?php echo $rs["adddate"];?></div></td>
          <td width="225" align="center" class="txlrow"><div align="center"><a href="../message/message_up.php?id=<?php echo $rs["id"];?>">编辑</a> | <a href="../message/message_del.php?id=<?php echo $rs["id"];?>" onclick="return window.confirm('确定删除？');">删除</a></div></td>
        </tr>                                         
        <?php
}; 	
?>
        <tr bgcolor="#DEE5FA">
          <td colspan="8" align="center" class="txlrow"></td>
        </tr>
      </tbody>
    </table></td>
  </tr>
  <tr>
    <td colspan="2"><?php
    
	$my->showpage();
	
	?></td>
  </tr>
</table>
</body>
</html>
