<%@ page import="atualizare.tools.*"%> <%@ page import="atualizare.dados.*"%> <%@ page import="atualizare.logica.*"%> <%@ page import="java.util.*"%> <%@ page import="java.io.*"%> <%@ page errorPage="erro.jsp"%> <%@ include file="conf.jsp"%> <% String codigoCanal=request.getParameter("canal"); String codigoNoticia=request.getParameter("noticia"); if(codigoCanal!=null && codigoNoticia!=null){ int requestCanal=Integer.parseInt(codigoCanal); Canal canal=GerenteDeCanais.getCanal(requestCanal); Vector subcanais=GerenteDeCanais.getSubcanais(canal.getCodigo()); Iterator subIterator=subcanais.iterator(); int requestNoticia=Integer.parseInt(codigoNoticia); Noticia noticia=GerenteDeNoticias.getNoticia(requestNoticia); Vector ultimas=GerenteDeNoticias.getNoticiasRestantes(GerenteDeNoticias.PUBLICADA,noticia,canal); Iterator ultimasIterator=ultimas.iterator(); %> Governo da Paraíba
 

<% java.sql.Time horan = noticia.getHoraPublicacao(); if (horan == null) { horan = noticia.getHora(); } java.util.Date datan = noticia.getDataPublicacao(); if (datan==null) { datan = noticia.getData(); } Calendario calendarioNoticia = new Calendario(horan); %>
<%=noticia.getTitulo()%>
<%=datan.toString().substring(8,10)%>/<%=datan.toString().substring(5,7)%>/<%=datan.toString().substring(0,4)%> às <%=calendarioNoticia.getHoraMinuto()%> Aumentar tamanho da fonte Reduzir tamanho da fonte

<% { String imagem1 = noticia.getFiguraChamada(); ImageSize2 imageSize = new ImageSize2(); int largura = 0; if(imagem1!=null && !imagem1.trim().equals("") && imageSize.criaImageSize(imagem1)){ imageSize.travarLarguraAtura(200, 150); largura = imageSize.getLarguraProporcional(); int larguraOriginal = 0; int alturaOriginal = 0; String caminhoReal = request.getRealPath("/"); ImageInfo imageInfo = new ImageInfo(); imageInfo.setInput(new FileInputStream(caminhoReal + "jsp/noticias/images/temp/" + imagem1)); imageInfo.setDetermineImageNumber(true); if (imageInfo.check()) { larguraOriginal = imageInfo.getWidth(); alturaOriginal = imageInfo.getHeight(); } %> <% String credito = noticia.getCreditoChamada(); if (credito != null && !credito.equals("")) { %> <% } %> <% String legenda = noticia.getLegendaChamada(); if (legenda != null && !legenda.equals("")) { %> <% } %>
<%=credito%>
<%=legenda%>
<% } } %> <%=TextTools.getHtmlFormat2(noticia.getChamada())%>

<%=noticia.getCorpo()%> <% Vector comps = GerenteDeComplemento.retornar(noticia.getCodigo()); if( comps!= null){ %>


<% for(int j=0; j onClick=mostra(m<%=j+1%>) style="cursor:hand; text-decoration:none; font-weight:bold; color:#000000"><%=comp.getTitulo()%> style="display:'none'">

    <%=comp.getConteudo()%>


<% } } %>
<% Audio audio = GerenteDeAudios.retornar(noticia.getCodigo()); if( audio != null) { %> Áudios relacionados:
<%=audio.getDescricao()%> <% } %> <% String fonte=noticia.getFonte(); if(fonte!=null && !fonte.trim().equals("")){ %>

Fonte: <%=fonte%> <% } %>

© Todas as matérias poderão ser reproduzidas desde que citada a fonte.
  Imprimir   Enviar<%--   Comentar--%>  Receber

 

<% if(ultimasIterator.hasNext()) { %>
 Últimas 
<% for (int i = 0 ;i<5; i++) { if (ultimasIterator.hasNext()){ Canal canalTemp = null; java.sql.Time hora; java.sql.Date data; Calendario cal, cal2; noticia=(Noticia)ultimasIterator.next(); hora=noticia.getHoraPublicacao(); if(hora==null) hora=noticia.getHora(); cal=new Calendario(hora); data=noticia.getDataPublicacao(); if(data==null) data=noticia.getData(); cal2=new Calendario(data); canalTemp=noticia.getCanalObjeto(); %> <% } } %>
<%=cal2.getData()%> às <%=cal.getHoraMinutoExpress()%>: <%=noticia.getTitulo()%>
Outras »
<% } %>
<% } %>