

<header style="background: url(images/page-fon-bg.jpg) center top no-repeat;

  height: 407px;">

  

	





<div class="container">

	

	<div class="hero"></div>

</div><!--container-->

</header>



	<div class="container">

    

    <!-- FIM HEADER -->

    <!-- INICIO MEIO -->







<div style="position: absolute; top:-300px; left:570px; z-index:10;"><img src="images/elf.png"/></div>

    

<div id="content">

    <div id="box1">

        <div class="title1">
	<?php
$id= $_GET["id"];
$noticias = mssql_query("select titulo,autor,data,noticia,status from CT_NOTICIAS where id='".$id."'");
$ler = mssql_fetch_row($noticias);
$foto = mssql_fetch_row(mssql_query("select imagem from character where name='".$ler[1]."'"));
?>
            <h1>Noticia: <strong><?php echo $ler[0]; ?></strong></h1>

        </div>

        

		

		



	


<div class="about-team-page-top-wrap" style="padding-bottom: 0px; margin-top: -5px;">
    
</div>
<div class="match-list-wrap">
<br />
<br />
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="20%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top"><div align="center"><img src="images/personagens/<?php echo $foto[0]; ?>" width="120" height="140" /></div></td>
      </tr>
    </table></td>
    <td width="80%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td style="color: #FFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="padding-left: 10px;"></td>
    <td align="right">Postado por <strong><?php echo $ler[1]; ?></strong></td>
  </tr>
</table>
</td>
      </tr>
      <tr>
        <td style="color: #FFF"><?php echo $ler[3]; ?></td>
      </tr>
    </table></td>
  </tr>
</table><br />
<br />

</div>
<?php 
if($ler[4] == 0) {
	echo '<div class="box_conteudo" align="right"><label><input type="submit" name="comentar" id="comentar" onclick="loading(\'?go=comentar&comentar=true&id='.$id.'\', \'result_comentar\');" value="Comentar" /></label></div>';
}
else{
	echo $bbcode->bbcode('<div class="box_conteudo" align="right">Esta notícia não pode ser comentada</div>');
}
?>
<div id="result_comentar"></div>
<?php
$coments = mssql_query("select personagem,comentario from CT_NOTICIAS_COMENTARIOS where noticiaid='".$id."'");
for($i=0;$i<mssql_num_rows($coments);$i++) {
$pega_coments = mssql_fetch_row($coments);
$imagem = mssql_fetch_row(mssql_query("select imagem from character where name='".$pega_coments[0]."'"));
?>


<div class="about-team-page-top-wrap" style="padding-bottom: 0px; margin-top: -5px;">
    <div class="top-title" style="width: 100%;">
      <h2>Comentarios.</h2>
    </div>
</div>
<div class="match-list-wrap">
<br />
<br />
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="20%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top"><div align="center"><img src="images/personagens/<?php echo $imagem[0]; ?>" width="120" height="140" /></div></td>
      </tr>
    </table></td>
    <td width="80%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="right" style="color: #FFF">Comentado por <strong><?php echo $pega_coments [0]; ?></strong></td>
      </tr>
      <tr>
        <td style="color: #FFF"><?php echo nl2br($pega_coments[1]); ?></td>
      </tr>
    </table></td>
  </tr>
</table><br />
<br />

</div>
<? } ?>

    </div>

</div>











        

        

        

        

        

        <!--FIM MEIO-->

        <!--INICIO FOOTER-->

        </div>

