<? require "../../admin_header.php"?>
<?
/**
 * @version		1.0
 * @package		HonoWeb->HonoBBS
 * @copyright	Copyright (C) HonoWeb. All rights reserved.
 * @Website		www.honoweb.com.
 */
 ?>
<?
	$sql="select a.*,b.name as firstName,c.name as secondName from ".$TableBbs_content." as a,".$TableBbs_category." as b,".$TableBbs_category." as c where a.bcategoryid=b.id and a.categoryid=c.id and  a.id=$id";
	$query=$db->query($sql);
	$row=$db->fetch_row($query);
?>
<html>
<head>
<title><?=$$bbs_config_Name?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../../js/check.js"></script>
</head>
<script language="javascript">

	function back()
	{
		location="bbs_content.php";
	}

</script>
<body>
<form action=""  method="post"  name="form1">
  <table class="firsttable">
      <tr>
    	<td align="center" valign="top">
        	    <table class="centertable">
          	<tr>
            		<td></td>
          	</tr>
          	<tr>
            		<td align="center" valign="top" class="addborder">
					<table   class="addTable"  border='0'  cellpadding='0'  cellspacing='1'>
              				<tr align="center"  class='tr2' >
              				  <td colspan="2" ><?=$T_Content_type[$row['content_type']].$row[title]?><br>
           				      <img width="100" height="80"  src="../../upload/bbs/<?=$row[id].$row[pic]?>?>" border="0" ></td>
       				  </tr>
              				<tr  class='tr2' >
                				<td >论坛一级分类:
               				    <?=$row[firstName]?></td>
                				<td align="right" >论坛板块分类:
               				    <?=$row[firstName]?></td>
              				</tr>
              				<tr  class='tr2' >
              				  <td >Author:
                              <?=$row[username]?></td>
              				  <td align="right" >Last DateTime:
                              <?=$row[publishtime]?></td>
       				  </tr>
              				<tr  class='tr2' >
              				  <td >Views:
           				      <?=$row[click_count]?></td>
              				  <td align="right" >Replies:
                              <?=$row[reply_count]?></td>
       				  </tr>
              				<tr  class='tr2' >
                				<td >Votes:
                                <?=$row[vote_count]?></td>
                				<td align="right" >&nbsp;</td>
              				</tr>
              				<tr valign="top" class='tr2' >
                				<td colspan="2" ><br><br><?=$row[content]?></td>
               				</tr>
              				<tr  class='tr2' >
                				        <td colspan="2" align="center">
      						    <input type="button"  class="button" value="Back" onClick="back()">
						        </td>
              				</tr>
           			  </table>			  </td>
          		</tr>
          		<tr>
            		  <td></td>
          		</tr>
       	           </table>
    	   </td>
     </tr>
</table>
<input type="hidden" name="status" value=0>
<input type="hidden" name="id" value=<?=$id?>>
</form>
</body>
</html>
<? $db->close_db();?>

