<?php session_start(); 
 include_once("conn/conn.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>分页模块设计</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>
<style type="text/css">
<!--
body,td,th {
	font-family: 华文行楷;
	font-size: 16px;
	color: #000000;
}
-->
</style>
<style type="text/css">
<!--
.STYLE4 {color: #FF0000; font-weight: bold; }
-->
</style>
<body>
<table width="1002" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/sy_1.jpg" width="1002" height="154"></td>
  </tr>
  <tr>
    <td><img src="images/sy_3.jpg" width="1002" height="65" border="0" usemap="#Map"></td>
  </tr>
</table>
<table width="1002" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="89">&nbsp;</td>
    <td width="825" align="center"><table width="825" border="1" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#D0D0D0">
      <tr>
        <td align="center" bgcolor="#FFFFFF"><table width="810" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="25" valign="bottom" background="images/sy_8.jpg"><table width="100%" height="22" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="15%">&nbsp;</td>
                <td width="85%" valign="middle"><?php if($_GET[lmbs]==""){echo "明日简介";}else{echo $_GET[lmbs];}?></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td align="center">
          

<?php 
$sql_3="select * from tb_forum_send where tb_send_id='$_GET[send_id]'";
$ret_3=$conn->execute($sql_3);
$array_3=$ret_3->GetRows();
//echo $array_3[0][1];
//$query_3=mysql_query("select * from tb_forum_send where tb_send_id='$_GET[send_id]'");
//$array_3=mysql_fetch_array($query_3);
?>  
<table width="800" height="198" border="4" align="center" cellpadding="4" cellspacing="4" bordercolor="#FFFFFF" bgcolor="#F4F5F9">
  <tr>
    <td width="160" rowspan="4" align="center" bgcolor="#FDF8CE"><span class="STYLE11">
<?php 

$sql_1="select * from tb_forum_send where tb_send_id='$_GET[send_id]'";
$ret_1=$conn->execute($sql_1);
$array_1=$ret_1->GetRows();
//$query_1=mysql_query("",$conn);
//$array_1=mysql_fetch_array($query_1);

$sql_2="select * from tb_forum_user where tb_forum_user='".$array_1[0][3]."'";
$ret_2=$conn->execute($sql_2);
$array_2=$ret_2->GetRows();
//$query_2=mysql_query("",$conn);
//$array_2=mysql_fetch_array($query_2);
echo "发帖人:";
echo $array_2[0][1]."<br>";
echo "注册时间:"."<br>";
echo $array_2[0][6]."<br>";
echo "积分:";
echo $array_2[0][8]."<br>";

?></span></td>
    <td width="600" height="21" bgcolor="#FFFFFF"><?php echo $array_3[0][tb_send_date]; ?>   楼主</td>
  </tr>  
<tr><td>
<div id="sd"><table width="600">
<tr>
    <td height="21"><?php 
  echo $array_3[0][tb_send_content];
  ?></td>
  </tr>
</table>
</div>
</td>
</tr>
  <tr>
    <td align="right"><a href="permute_send.php?permute_id=<?php echo $array_3[tb_send_id];?>">置顶</a>、<a href="recompose_send.php?recompose_id=<?php echo $array_3[tb_send_id];?>&&recompose_user=<?php echo $array_3[tb_send_user];?>">修改</a>、<a href="delete_send.php?delete_id=<?php echo $array_3[tb_send_id];?>&&delete_user=<?php echo $array_3[tb_send_user];?>">删除</a>、<a href="send_forum_content.php?send_big_type=<?php echo $_GET[send_big_type];?>&&send_small_type=<?php echo $_GET[send_small_type];?>&&send_id=<?php echo $_GET[send_id];?>#bottom">回复</a></td>
  </tr>
</table>
<p>帖子回复内容：</p>
<table width="800" height="91" border="4" align="center" cellpadding="4" cellspacing="4" bordercolor="#FFFFFF" bgcolor="#F4F5F9">
<?php 
$i=0;

$query_4=mysql_query("select * from tb_forum_restore where tb_send_id='$_GET[send_id]'");
while($array_4=mysql_fetch_array($query_4)){
$i++;
?> 
 <tr>
    <td width="160" rowspan="3" align="center" bgcolor="#FDF8CE"><span class="STYLE11">
<?php $query_5=mysql_query("select * from tb_forum_user where tb_forum_user='$array_4[tb_restore_user]'");
$array_5=mysql_fetch_array($query_5);
echo "发帖人:";
echo $array_5[tb_forum_user]."<br>";
echo "注册时间:"."<br>";
echo $array_5[tb_forum_date]."<br>";
echo "积分:";
echo $array_5[tb_forum_grade]."<br>";
if($_SESSION[tb_forum_user]==true){
echo "<a href='send_mail.php?receiving_person=$array_5[tb_forum_user]&&sender=$_SESSION[tb_forum_user]' target='_blank'><img src='images/index_8.jpg' width='76' height='24' border='0'></a>"."<br>";
echo "<a href='my_friend.php?friend=$array_5[tb_forum_user]&&my=$_SESSION[tb_forum_user]' target='_blank'><img src='images/index_8 (1).jpg' width='82' height='24' border='0'></a>";
}
?></span></td>
    <td width="586" bgcolor="#FFFFFF"><?php echo $array_4[tb_restore_subject]; echo $array_4[tb_restore_date]?>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $i;?>楼</td>
  </tr>
  <tr>
    <td>
<?php 
echo $array_4[tb_restore_content];
?>
</td>
<td width="0"></td>
  </tr>
  <tr>
    <td height="37" align="right"><a href="send_forum_content.php?send_big_type=<?php echo $_GET[send_big_type];?>&&send_small_type=<?php echo $_GET[send_small_type];?>&&send_id=<?php echo $_GET[send_id];?>&&cite=<?php echo $array_4[tb_restore_id];?>#bottom">引用</a>、<a href="recompose_restore.php?recompose_id=<?php echo $array_4[tb_restore_id];?>&&recompose_user=<?php echo $array_4[tb_restore_user];?>">修改</a>、<a href="delete_restore.php?delete_id=<?php echo $array_4[tb_restore_id];?>&&delete_user=<?php echo $array_4[tb_restore_user];?>">删除</a></td>
  </tr>
<?php }?>
</table>



</td>
          </tr>
        </table></td>
      </tr>
    </table>    </td>
    <td width="88">&nbsp;</td>
  </tr>
</table>

<map name="Map"><area shape="rect" coords="347,29,402,55" href="index.php?lmbs=明日编程词典">
<area shape="rect" coords="451,11,509,35" href="index.php?lmbs=明日图书">
<area shape="rect" coords="567,30,634,57" href="index.php?lmbs=明日论坛">
<area shape="rect" coords="678,12,741,35" href="index.php?lmbs=明日版权声明">
<area shape="rect" coords="795,30,856,55" href="index.php?lmbs=明日简介">
</map>
<img src="images/sy_21.jpg" width="1003" height="45">
</body>
</html>
