/estrutura/galeria/ver_noticia.php

https://github.com/dericksaga/ibsite · PHP · 54 lines · 51 code · 1 blank · 2 comment · 11 complexity · 11dcfc8dfb5c3f5fdd1027153407e3b2 MD5 · raw file

  1. <img src="images/noticias.jpg" /><br />
  2. <?
  3. //include("path2.php");
  4. $sql = mysql_query("SELECT * FROM noticias_dados where id='$_GET[id]'");
  5. $sql2 = mysql_query("SELECT * FROM noticias_dados order by id desc LIMIT $qts_ultimos");
  6. $dados = mysql_fetch_array($sql);
  7. ?><br>
  8. <table width="421" border="0" align="left" cellpadding="0" cellspacing="0">
  9. <tr>
  10. <td valign="middle"> <table width='100%' border='0' align="center" cellpadding='2' cellspacing="0">
  11. <tr>
  12. <td align="center" bgcolor="white"><span style="color:#5f6160; font-family:'Times New Roman', Times, serif; font-weight:bold; font-size:20px;"><? echo nl2br ($dados['titulo']);?></span></td>
  13. </tr>
  14. <? if($dados[subtitulo] != ""){?>
  15. <? }?>
  16. <tr>
  17. <td align="center" class="texto" style="border-bottom:3px white solid; "><? echo $dados['subtitulo']?></td>
  18. </tr>
  19. <tr>
  20. <td valign="top" align="justify" class="textao" style="border-bottom:3px white solid; "> <br />
  21. <?
  22. if($dados[foto01] != "") {
  23. echo "<div align='$dados[alinhamento_foto]'>";
  24. if($dados[creditos_foto] != "") {
  25. echo "<font size='1'>Foto: <b><i>$dados[creditos_foto]&nbsp;</i></b></font>";
  26. }
  27. if($dados[largura_foto] == ""){ $largura = 200;} else { $largura = $dados[largura_foto];}
  28. //if($dados[altura_foto] != ""){ $altura = "&w=$dados[altura_foto]"; }
  29. echo "</div><img src='thumbs.php?w=$largura&imagem=images/noticias/$dados[id]/$dados[foto01]' border='$dados[borda]' align='$dados[alinhamento_foto]'>"; }
  30. $texto = nl2br($dados[texto]);
  31. echo "<div align='justify'>$texto<br><br></div>";
  32. ?>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td align="right" class="texto" style="border-bottom:3px white solid; ">Postado em <b>
  37. <?
  38. $data = explode("-", $dados[data]);
  39. $data = "$data[2]/$data[1]/$data[0]";
  40. echo $data; ?>
  41. </b>
  42. <? if($dados[nome] != ""){?>
  43. por
  44. <? }?>
  45. <b class="noticia"> <a href=mailto:<? echo $dados['email'];?>><? echo $dados['nome'];?></a></b></td>
  46. </tr>
  47. </table>
  48. </td>
  49. <tr>
  50. <td>&nbsp;</td>
  51. </tr>
  52. </tr>
  53. </table>