<?
include "cnn.php";
?>
<h1><strong>Todas noticias</strong></h1>
<form action="" method="post" name="form1" id="form1">
<div class="quadros">
  <table width="96%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td bgcolor="#cccccc"><strong>Titulo</strong></td>
      <td bgcolor="#cccccc"><strong>Data</strong></td>
    </tr>
    <?
  $Query = mssql_query("select data,tipo,titulo,id from noticias order by id desc");
  for($i=0;$i<mssql_num_rows($Query);$i++) {
  $Array=mssql_fetch_row($Query);
  ?>
    <tr>
      <td width="57%" bgcolor="#E5E5E5"><strong><a href="index.php?go=noticia&amp;id=<?=$Array[3]?>"> [
              <?=$Array[1]?>
        ]
        <?=$Array[2]?>
      </a></strong></td>
      <td width="43%" bgcolor="#E5E5E5"><strong><?=$Array[0]?>
          <? } ?>
      </strong></td>
    </tr>
  </table>
<a href="javascript:history.back(-1);"><strong>Voltar </strong></a></div>
</form>
</body>
</html>