<%@ 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 noticiaSelecionada=GerenteDeNoticias.getNoticia(requestNoticia); Vector ultimas=GerenteDeNoticias.getNoticiasRestantes(GerenteDeNoticias.PUBLICADA,noticiaSelecionada,canal); Iterator ultimasIterator=ultimas.iterator(); %> :: Governo do Estado da Paraíba ::
<% 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=(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 »
<% } %>
<% java.sql.Time horan = noticiaSelecionada.getHoraPublicacao(); if (horan == null) { horan = noticiaSelecionada.getHora(); } java.util.Date datan = noticiaSelecionada.getDataPublicacao(); if (datan==null) { datan = noticiaSelecionada.getData(); } Calendario calendarioNoticia = new Calendario(horan); %>
<%=noticiaSelecionada.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 = noticiaSelecionada.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 = noticiaSelecionada.getCreditoChamada(); if (credito != null && !credito.equals("")) { %> <% } %> <% String legenda = noticiaSelecionada.getLegendaChamada(); if (legenda != null && !legenda.equals("")) { %> <% } %>
<%=credito%>
<%=legenda%>
<% } } %> <%=noticiaSelecionada.getChamada()%>

<% } %> <% String imagem1 = noticia.getFiguraCorpo(); ImageSize2 imageSize = new ImageSize2(); int largura = 0; if(imagem1!=null && !imagem1.trim().equals("") && imageSize.criaImageSize(imagem1)){ imageSize.travarLarguraAtura(250, 150); largura = imageSize.getLarguraProporcional();*/ %> <% //} %> <%/* String legenda = noticia.getLegendaCorpo(); if(legenda!=null && !legenda.trim().equals("")){ %> <%=legenda%> <% } */ %> <%=noticiaSelecionada.getCorpo()%> <% Vector comps = GerenteDeComplemento.retornar(noticiaSelecionada.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(noticiaSelecionada.getCodigo()); if( audio != null) { %> Áudios relacionados:
<%=audio.getDescricao()%> <% } %> <% String fonte=noticiaSelecionada.getFonte(); if(fonte!=null && !fonte.trim().equals("")){ %>

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

© Todas as matérias poderão ser reproduzidas desde que citada a fonte.

<%--@ include file="novo-inc_ultimas.jsp" --%>
  Imprimir   Enviar <%--  Comentar --%>   Receber
<% // Vector opinioes=GerenteDeNoticias.getOpinioes(requestNoticia); //if(opinioes.size()>0){ %> <% /*Opiniao opiniao; for(int j=0;j <% // } %> <% //} %>
<% } %>