<%@ page language="java" contentType="text/html;charset=ISO-8859-1" %> <%@ page import="java.util.*" %> <%@ page import="oracle.br.afrodite.parser.TemplateParser" %> <% String source = request.getParameter("source"); String template = request.getParameter("template"); Hashtable oParms = new Hashtable(); Enumeration e = request.getParameterNames(); if( e != null ){ while( e.hasMoreElements() ){ String parmName = (String)e.nextElement(); oParms.put(parmName,request.getParameter(parmName)); } } oParms.put("rootdir","/shared"); try{ TemplateParser oParser = new TemplateParser(source,template,oParms); out.print(oParser.getStream()); }catch(Exception oParserException){ oParserException.printStackTrace(); } %>
<%@ page language="java" contentType="text/html;charset=ISO-8859-1" %> <%@ page import="java.util.*" %> <%@ page import="oracle.br.afrodite.parser.TemplateParser" %> <% String source = request.getParameter("source"); String template = request.getParameter("template"); Hashtable oParms = new Hashtable(); Enumeration e = request.getParameterNames(); if( e != null ){ while( e.hasMoreElements() ){ String parmName = (String)e.nextElement(); oParms.put(parmName,request.getParameter(parmName)); } } oParms.put("rootdir","/shared"); try{ TemplateParser oParser = new TemplateParser(source,template,oParms); out.print(oParser.getStream()); }catch(Exception oParserException){ oParserException.printStackTrace(); } %>

Foi no Planeta? Vai de novo? Conta pra gente!

<%@ page language="java" %> <%@ page import="com.cgit.comunidades.handlers.ComunidadeHandler" %> <%@ page import="com.cgit.core.handlers.CorporateHandler" %> <%@ page import="com.cgit.core.handlers.ContentHandler" %> <%@ page import="com.cgit.xml.XMLElement" %> <%@ page import="java.util.*" %> <% int cid = 2; try { cid = Integer.parseInt(request.getParameter("cid")); } catch (Exception e) { } Hashtable constraints = new Hashtable(); //int maxRows = 3; int maxRows = -1; int[] communities = null; String orderKey = null; String userName = null; String[][] _euFuiEVou = CorporateHandler.getInstance().getSearchedModels( cid, "2", constraints, "pt_BR", maxRows, orderKey, communities, userName, "cgit_external" ); if (_euFuiEVou != null){ int TOTAL_POSTS = 3; int j = 0; int k=0; XMLElement[] allModels = ComunidadeHandler.getInstance().getAllModels(cid); while( k < Math.min(TOTAL_POSTS,_euFuiEVou.length) && j<_euFuiEVou.length ){ int postId = Integer.parseInt( _euFuiEVou[j][0] ); int postVs = Integer.parseInt( _euFuiEVou[j][1] ); String postLn = _euFuiEVou[j][2]; int postSt = Integer.parseInt( _euFuiEVou[j][3] ); int postMd = Integer.parseInt( _euFuiEVou[j][5] ); Hashtable posts = null; Hashtable[] listposts = ContentHandler.getInstance().getContents("C2","pt_BR",1,0,1,1,0,1,null,null,null,null,Integer.toString(postId),"1","pt_BR","2",null,null,"cgit_external"); if (listposts != null) posts = listposts[0]; if (posts != null ) { String impedirDestaque = ""; if (posts.get("2/18") != null && posts.get("2/18") instanceof String[]) { impedirDestaque = ( (String[]) posts.get("2/18") )[0]; } else if (posts.get("2/18") != null) { impedirDestaque = posts.get("2/18").toString(); } if ("".equals( impedirDestaque.trim() ) || "N".equals( impedirDestaque.trim() ) ) { String postTitle = (posts.get("2/1") != null)? ((String[])posts.get("2/1"))[0]: ""; String postMaisCurto = (posts.get("2/2") != null)? ((String[])posts.get("2/2"))[0]: ""; String postFoto = ""; if (posts.get("2/16") != null && posts.get("2/16") instanceof String[]) { postFoto = ( (String[]) posts.get("2/16") )[0]; } else if (posts.get("2/16") != null) { postFoto = posts.get("2/16").toString(); } String postFirstName = (posts.get("2/CDM_FIRST_NAME") != null)? posts.get("2/CDM_FIRST_NAME").toString(): ""; String postLastName = (posts.get("2/CDM_LAST_NAME") != null)? posts.get("2/CDM_LAST_NAME").toString() : ""; String cdmPostId = (posts.get("2/CDM_POST_ID") != null)? posts.get("2/CDM_POST_ID").toString() : ""; String localizador = (posts.get("2/COMMUNITY_PATH") != null)? posts.get("2/COMMUNITY_PATH").toString(): ""; %>
<% if (!"".equals(postFoto)) { %> <% } %>

<%= postFirstName + " " + postLastName %>

O que eu mais curto no planeta: <%= postMaisCurto %>

<% k++; } } j++; } } %>

<%@ page language="java" %> <%@ page import="com.cgit.comunidades.handlers.ComunidadeHandler" %> <%@ page import="com.cgit.core.handlers.CorporateHandler" %> <%@ page import="com.cgit.core.handlers.ContentHandler" %> <%@ page import="com.cgit.xml.XMLElement" %> <%@ page import="java.util.*" %> <% int cid = 2; try { cid = Integer.parseInt(request.getParameter("cid")); } catch (Exception e) { } Hashtable constraints = new Hashtable(); //int maxRows = 3; int maxRows = -1; int[] communities = null; String orderKey = null; String userName = null; String[][] _minhaVida = CorporateHandler.getInstance().getSearchedModels( cid, "7", constraints, "pt_BR", maxRows, orderKey, communities, userName, "cgit_external" ); if (_minhaVida != null){ int TOTAL_POSTS = 3; int j = 0; int k=0; XMLElement[] allModels = ComunidadeHandler.getInstance().getAllModels(cid); while( k < Math.min(TOTAL_POSTS,_minhaVida.length) && j<_minhaVida.length ){ int postId = Integer.parseInt( _minhaVida[j][0] ); int postVs = Integer.parseInt( _minhaVida[j][1] ); String postLn = _minhaVida[j][2]; int postSt = Integer.parseInt( _minhaVida[j][3] ); int postMd = Integer.parseInt( _minhaVida[j][5] ); Hashtable posts = null; Hashtable[] listposts = ContentHandler.getInstance().getContents("C2","pt_BR",1,0,1,1,0,1,null,null,null,null,Integer.toString(postId),"1","pt_BR","7",null,null,"cgit_external"); if (listposts != null) posts = listposts[0]; if (posts != null ) { String impedirDestaque = ""; if (posts.get("7/19") != null && posts.get("7/19") instanceof String[]) { impedirDestaque = ( (String[]) posts.get("7/19") )[0]; } else if (posts.get("7/19") != null) { impedirDestaque = posts.get("7/19").toString(); } if ("".equals( impedirDestaque.trim() ) || "N".equals( impedirDestaque.trim() ) ) { String postTitle = (posts.get("7/1") != null)? ((String[])posts.get("7/1"))[0]: ""; String postShowDeBola = (posts.get("7/2") != null)? ((String[])posts.get("7/2"))[0]: ""; String postFoto = (posts.get("7/16")!= null)? posts.get("7/16").toString() : ""; if (posts.get("7/16") != null && posts.get("7/16") instanceof String[]) { postFoto = ( (String[]) posts.get("7/16") )[0]; } else if (posts.get("7/16") != null) { postFoto = posts.get("7/16").toString(); } String postFirstName = (posts.get("7/CDM_FIRST_NAME") != null)? posts.get("7/CDM_FIRST_NAME").toString(): ""; String postLastName = (posts.get("7/CDM_LAST_NAME") != null)? posts.get("7/CDM_LAST_NAME").toString() : ""; String cdmPostId = (posts.get("7/CDM_POST_ID") != null)? posts.get("7/CDM_POST_ID").toString() : ""; String localizador = (posts.get("7/COMMUNITY_PATH") != null)? posts.get("7/COMMUNITY_PATH").toString(): ""; %>
<% if (!"".equals(postFoto)) { %> <% } %>

<%= postFirstName + " " + postLastName %>

O que acho show de bola: <%= postShowDeBola %>

<% k++; } } j++; } } %>

A cara de quem faz o Planeta!

<%@ page language="java" %> <%@ page import="com.cgit.comunidades.handlers.ComunidadeHandler" %> <%@ page import="com.cgit.comunidades.handlers.CDMHandler" %> <%@ page import="com.cgit.comunidades.api.ComunidadeAPI" %> <%@ page import="com.cgit.core.handlers.CorporateHandler" %> <%@ page import="com.cgit.core.handlers.ContentHandler" %> <%@ page import="com.cgit.xml.XMLElement" %> <%@ page import="java.util.*" %> <% int mid = 1; int cid = 2; try { cid = Integer.parseInt(request.getParameter("cid")); } catch (Exception e) { } int maxRowsMasculino = 2; int maxRowsFeminino = 3; StringBuffer sbMasc = new StringBuffer(); StringBuffer sbFem = new StringBuffer(); int[] communities = null; String orderKey = null; String userName = null; Hashtable constraints = new Hashtable(); String[][] _planetarios = CorporateHandler.getInstance().getSearchedModels( cid, "1", constraints, "pt_BR", -1, orderKey, communities, userName, "cgit_external" ); if (_planetarios != null){ Hashtable postConstraints = new Hashtable(); String party_id = null; int postId = 0; XMLElement[] allModels = ComunidadeHandler.getInstance().getAllModels(cid); for (int j = 0; j < _planetarios.length && (maxRowsMasculino>0 || maxRowsFeminino>0) ; j++){ postId = Integer.parseInt( _planetarios[j][0] ); Hashtable posts = null; Hashtable[] listposts = ContentHandler.getInstance().getContents("C2","pt_BR",1,0,1,1,0,1,null,null,null,null,Integer.toString(postId),"1","pt_BR","1",null,null,"cgit_external"); if (listposts != null) posts = listposts[0]; if (posts != null ) { String impedirDestaque = ""; if (posts.get("1/34") != null && posts.get("1/34") instanceof String[]) { impedirDestaque = ( (String[]) posts.get("1/34") )[0]; } else if (posts.get("1/34") != null) { impedirDestaque = posts.get("1/34").toString(); } if ("".equals( impedirDestaque.trim() ) || "N".equals( impedirDestaque.trim() ) ) { String postTitle = (posts.get("1/1") != null)? ((String[])posts.get("1/1"))[0] : ""; String postData = (posts.get("1/20") != null)? ((String[])posts.get("1/20"))[0]: ""; String postFoto = ""; if (posts.get("1/5") != null && posts.get("1/5") instanceof String[]) { postFoto = ( (String[])posts.get("1/5") )[0]; } else { postFoto = (String) posts.get("1/5"); } String postFirstName = (posts.get("1/CDM_FIRST_NAME") != null)? posts.get("1/CDM_FIRST_NAME").toString(): ""; String postLastName = (posts.get("1/CDM_LAST_NAME") != null)? posts.get("1/CDM_LAST_NAME").toString() : ""; String cdmPostId = (posts.get("1/CDM_POST_ID") != null)? posts.get("1/CDM_POST_ID").toString() : ""; String cdmGender = (posts.get("1/CDM_GENDER") != null)? posts.get("1/CDM_GENDER").toString() : ""; String localizador = (posts.get("1/COMMUNITY_PATH") != null)? posts.get("1/COMMUNITY_PATH").toString(): ""; if ("M".equals(cdmGender) && maxRowsMasculino>0){ sbMasc.append("
  • "); if (!"".equals(postFoto)) { sbMasc.append(" " ); sbMasc.append(" "); sbMasc.append(" "); } sbMasc.append("

    "); sbMasc.append(" " ).append( postFirstName + " " + postLastName ).append( ""); sbMasc.append("

    "); sbMasc.append("
  • "); maxRowsMasculino--; } else if ("F".equals(cdmGender) && maxRowsFeminino>0){ sbFem.append("
  • "); if (!"".equals(postFoto)) { sbFem.append(" " ); sbFem.append(" " ); sbFem.append(" "); } sbFem.append("

    "); sbFem.append(" " ).append( postFirstName + " " + postLastName ).append( ""); sbFem.append("

    "); sbFem.append("
  • "); maxRowsFeminino--; } } } } out.println("
      "); out.println( sbMasc.toString()); out.println( sbFem.toString()); out.println("
    "); } %>

    Compartilhe seu álbum!

    <%@ page language="java" %> <%@ page import="com.cgit.comunidades.handlers.ComunidadeHandler" %> <%@ page import="com.cgit.core.handlers.CorporateHandler" %> <%@ page import="com.cgit.core.handlers.ContentHandler" %> <%@ page import="com.cgit.xml.XMLElement" %> <%@ page import="java.util.*" %> <% int cid = 2; try { cid = Integer.parseInt(request.getParameter("cid")); } catch (Exception e) { } Hashtable constraints = new Hashtable(); //int maxRows = 3; int maxRows = -1; int[] communities = null; String orderKey = null; String userName = null; String[][] _minhasFotos = CorporateHandler.getInstance().getSearchedModels( cid, "9", constraints, "pt_BR", maxRows, orderKey, communities, userName, "cgit_external" ); if (_minhasFotos != null){ int TOTAL_POSTS = 3; int j = 0; int k=0; XMLElement[] allModels = ComunidadeHandler.getInstance().getAllModels(cid); while( k < Math.min(TOTAL_POSTS,_minhasFotos.length) && j<_minhasFotos.length ){ int postId = Integer.parseInt( _minhasFotos[j][0] ); int postVs = Integer.parseInt( _minhasFotos[j][1] ); String postLn = _minhasFotos[j][2]; int postSt = Integer.parseInt( _minhasFotos[j][3] ); int postMd = Integer.parseInt( _minhasFotos[j][5] ); Hashtable posts = null; Hashtable[] listposts = ContentHandler.getInstance().getContents("C2", "pt_BR", 1, 0, 1, 1, 0, 1, null, null, null, null, Integer.toString(postId), "1", "pt_BR", "9", null, null, "cgit_external"); if (listposts != null) posts = listposts[0]; if (posts != null ) { String impedirDestaque = ""; if (posts.get("9/13") != null && posts.get("9/13") instanceof String[]) { impedirDestaque = ( (String[]) posts.get("9/13") )[0]; } else if (posts.get("9/13") != null) { impedirDestaque = posts.get("9/13").toString(); } if ("".equals( impedirDestaque.trim() ) || "N".equals( impedirDestaque.trim() ) ) { String postTitle = (posts.get("9/1") != null)? ((String[])posts.get("9/1"))[0]: ""; String postFoto = (posts.get("9/4") != null)? posts.get("9/4").toString(): ""; if (posts.get("9/4") != null && posts.get("9/4") instanceof String[]) { postFoto = ( (String[]) posts.get("9/4") )[0]; } else if (posts.get("9/4") != null) { postFoto = posts.get("9/4").toString(); } String postFirstName = (posts.get("9/CDM_FIRST_NAME") != null)? posts.get("9/CDM_FIRST_NAME").toString(): ""; String postLastName = (posts.get("9/CDM_LAST_NAME") != null)? posts.get("9/CDM_LAST_NAME").toString() : ""; String cdmPostId = (posts.get("9/CDM_POST_ID") != null)? posts.get("9/CDM_POST_ID").toString() : ""; String localizador = (posts.get("9/COMMUNITY_PATH") != null)? posts.get("9/COMMUNITY_PATH").toString(): ""; %>
    <% if (!"".equals(postFoto)) { %> <% } %>

    <%= postTitle %>

    <%= postFirstName + " " + postLastName %>

    <% k++; } } j++; } } %>

    Veja as fotos da turma

    <%@ page language="java" %> <%@ page import="com.cgit.comunidades.handlers.ComunidadeHandler" %> <%@ page import="com.cgit.core.handlers.CorporateHandler" %> <%@ page import="com.cgit.core.handlers.ContentHandler" %> <%@ page import="com.cgit.xml.XMLElement" %> <%@ page import="java.util.*" %> <% int cid = 2; try { cid = Integer.parseInt(request.getParameter("cid")); } catch (Exception e) { } Hashtable constraints = new Hashtable(); //int maxRows = 3; int maxRows = -1; int[] communities = null; String orderKey = null; String userName = null; String[][] _bandas = CorporateHandler.getInstance().getSearchedModels( cid, "3", constraints, "pt_BR", maxRows, orderKey, communities, userName, "cgit_external" ); if (_bandas != null){ int TOTAL_POSTS = 3; int j = 0; int k=0; XMLElement[] allModels = ComunidadeHandler.getInstance().getAllModels(cid); while( k < Math.min(TOTAL_POSTS,_bandas.length) && j<_bandas.length ){ int postId = Integer.parseInt( _bandas[j][0] ); int postVs = Integer.parseInt( _bandas[j][1] ); String postLn = _bandas[j][2]; int postSt = Integer.parseInt( _bandas[j][3] ); int postMd = Integer.parseInt( _bandas[j][5] ); Hashtable posts = null; Hashtable[] listposts = ContentHandler.getInstance().getContents("C2", "pt_BR", 1, 0, 1, 1, 0, 1, null, null, null, null, Integer.toString(postId), "1", "pt_BR", "3", null, null, "cgit_external"); if (listposts != null) posts = listposts[0]; if (posts != null ) { String impedirDestaque = ""; if (posts.get("3/13") != null && posts.get("3/13") instanceof String[]) { impedirDestaque = ( (String[]) posts.get("3/13") )[0]; } else if (posts.get("3/13") != null) { impedirDestaque = posts.get("3/13").toString(); } if ("".equals( impedirDestaque.trim() ) || "N".equals( impedirDestaque.trim() ) ) { String postDate = (posts.get("3/11") != null)? ((String[])posts.get("3/11"))[0]: ""; String postTitle = (posts.get("3/1") != null)? ((String[])posts.get("3/1"))[0]: ""; String postFoto = ""; if (posts.get("3/8") != null && posts.get("3/8") instanceof String[]) { postFoto = ( (String[]) posts.get("3/8") )[0]; } else if (posts.get("3/8") != null) { postFoto = posts.get("3/8").toString(); } String postFirstName = (posts.get("3/CDM_FIRST_NAME") != null)? posts.get("3/CDM_FIRST_NAME").toString(): ""; String postLastName = (posts.get("3/CDM_LAST_NAME") != null)? posts.get("3/CDM_LAST_NAME").toString() : ""; String cdmPostId = (posts.get("3/CDM_POST_ID") != null)? posts.get("3/CDM_POST_ID").toString() : ""; String localizador = (posts.get("3/COMMUNITY_PATH") != null)? posts.get("3/COMMUNITY_PATH").toString(): ""; %>
    <% if (!"".equals(postFoto)) { %> <% } %>

    <%= postTitle %>

    <%= postFirstName + " " + postLastName %>

    <% k++; } } j++; } } %>