<%
if(ultimasIterator.hasNext()) {
%>
<%
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 » |
<%
}
%>
|
|
|
| <%=noticiaSelecionada.getTitulo()%> |
| |
<%
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);
%>
| <%=datan.toString().substring(8,10)%>/<%=datan.toString().substring(5,7)%>/<%=datan.toString().substring(0,4)%> às <%=calendarioNoticia.getHoraMinuto()%> |
|
<% {
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("")) {
%>
| <%=credito%> |
<%
}
%>
|
<%
String legenda = noticiaSelecionada.getLegendaChamada();
if (legenda != null && !legenda.equals("")) {
%>
| <%=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
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" --%>
|
<%
// Vector opinioes=GerenteDeNoticias.getOpinioes(requestNoticia);
//if(opinioes.size()>0){
%>
<%
/*Opiniao opiniao;
for(int j=0;j
<%
// }
%>
<%
//}
%> |
|
|