$pagina->AddComponent(new Top($db, WEED, 5, $ua, 0)); $pagina->AddComponent(new Top($db, WEED, 6, $ua, 0)); $pagina->AddComponent(new Top($db, WEED, 7, $ua, 0)); if ($soportaAlgo) { $seccion = new Seccion("Menu", "left", SMALL_FONT_SIZE); /* $listaLinks = new ListaLinks(); $listaLinks->SetStyle(LISTA_NUMERADA_LINKS); foreach($menu as $item){ $link = new MenuItem("images/bullet.gif",$item['nombre'],$item['href']); $listaLinks->AddComponent($link); } $seccion->AddComponent($listaLinks); */ if ($menu) { //Si hay una lista de links $listaLinks = new ListaLinks(); $listaLinks->AddComponent($menu); $listaLinks->SetStyle(LISTA_NUMERADA_LINKS); $seccion->AddComponent($listaLinks); } } else { $seccion = new Seccion("", "center", SMALL_FONT_SIZE, SECCION_SIN_TITULO); $seccion->AddComponent(TEXT_NO_MUESTRA_NADA); } $pagina->AddComponent($seccion); $pie = new Seccion("", "center", SMALL_FONT_SIZE, SECCION_SIN_TITULO); $pie->AddComponent(new Link("http://wap.wazzup.com.uy/halloweenp_wap/home.php", "Volver a Postales")); //$pagina->AddComponent($pie); $pagina->WriteHeaders(); echo $pagina->Display();
//$nombreSeccion = ($type == 62)?"Videos":"Contenidos"; /*$pagina->AddComponent(new Banner($ua, "", "images/banner.gif"));*/ /*if($cw->drm != 1) { $pagina->AddComponent("Este contenido solo puede ser descargado en un celular con soporte DRM"); } */ $seccion = new Seccion($titulo, $alineacion_seccion, SMALL_FONT_SIZE); if ($texto) { $seccion->AddComponent($texto); } if ($lista) { //Si hay una lista de links $listaLinks = new ListaLinks(); $listaLinks->AddComponent($lista); if ($tipoLista) { $listaLinks->SetStyle($tipoLista); } $seccion->AddComponent($listaLinks); } if ($paginado) { //Si hay paginado $seccion->AddComponent($paginado); } $pie = new Seccion("", "center", SMALL_FONT_SIZE, SECCION_SIN_TITULO); /*$pie->AddComponent(new Link($descarga_link, "<br/>Seccion de descarga"));*/ if ($volver_link) { $pie->AddComponent(new Link($volver_link, "<br/>Atrás")); } if ($home_link) { $pie->AddComponent(new Link($home_link, "Inicio")); }
$listaLinks->SetStyle(LISTA_NUMERADA_LINKS); foreach ($menu as $item) { $listaLinks->AddComponent(new Link($item['href'], $item['nombre'])); } $seccion->AddComponent($listaLinks); } if (count($resultados) > 0) { if ($contenidos_fijos) { $titulo = 'Posibles Descargas'; } else { $titulo = 'Resultados'; } $seccionWalls = new Seccion($titulo, "left"); $resultadosWalls = new ListaLinks($lista); if ($tipo == 7) { $resultadosWalls->SetStyle(LISTA2X2_LINKS); } else { $resultadosWalls->SetStyle(LISTA_NUMERADA_LINKS); } if ($texto) { $seccionWalls->AddComponent($texto); } $seccionWalls->AddComponent($resultadosWalls); if ($paginado) { //Si hay paginado $seccionWalls->AddComponent($paginado); } $pagina->AddComponent($seccionWalls); } $pie = new Seccion("", "center", NORMAL_FONT_SIZE, SECCION_SIN_TITULO); $volver_link = "home.php";
function showLinks($nombre_seccion = "", $align = "left", $style = LISTA_INTERCALADA_LINKS) { $cantidad = count($this->juegos); for ($i = $this->cantCajas; $i < $cantidad; $i++) { if (ANCEL_DRUTT == 1) { include_once "rewrite_lib.php"; include_once dirname(__FILE__) . "/../wap.wazzup.com.uy/wap_common/getCelularHeader.php"; $href = urlDruttAncel($msisdn, $this->juegos[$i]['id'], false, servicio3G(), NOMBRE_PORTAL_DESCARGA); } else { $href = $this->archivo . "?id=" . $this->juegos[$i]['id']; } $menuItem = new Link($href, $this->juegos[$i]["nombre"]); switch ($this->juegos[$i]['attr']) { case "hot": $menuItem->setHot(true); break; case "hit": $menuItem->setHit(true); break; case "new": $menuItem->setNew(true); break; } $lista_js[] = $menuItem; } if ($lista_js) { if ($nombre_seccion) { $seccion = new Seccion($nombre_seccion, $align, SMALL_FONT_SIZE); } else { $seccion = new Seccion($nombre_seccion, $align, SMALL_FONT_SIZE, SECCION_SIN_TITULO); } $listaLinks = new ListaLinks(); $listaLinks->SetStyle($style); $imagen = new Imagen("./images/bullet.gif", "*"); $listaLinks->setBullet($imagen); $listaLinks->AddComponent($lista_js); $seccion->AddComponent($listaLinks); return $seccion; } else { return ""; } }
$pagina->AddComponent($top->showBoxes()); $pagina->AddComponent($top->showLinks()); } $pagina->AddComponent(new Top($db, WEED, 1, $ua, 0)); $pagina->AddComponent(new Top($db, WEED, 2, $ua, 0)); $pagina->AddComponent(new Top($db, WEED, 3, $ua, 0)); $pagina->AddComponent(new Top($db, WEED, 4, $ua, 0)); $pagina->AddComponent(new Top($db, WEED, 5, $ua, 0)); $pagina->AddComponent(new Top($db, WEED, 6, $ua, 0)); $pagina->AddComponent(new Top($db, WEED, 7, $ua, 0)); //Top Juegos//Top Juegos//Top Juegos //Top Juegos//Top Juegos//Top Juegos if ($soportaAlgo && $cantCats > 0) { $seccion = new Seccion("Categorias", "left", SMALL_FONT_SIZE); $listaLinks = new ListaLinks(); $listaLinks->SetStyle(LISTA_COLOR_LINKS); foreach ($menu as $item) { //$link = new MenuItem("images/bullet.gif",$item['nombre'],$item['href']); $link = new Link($item['href'], $item["nombre"]); $listaLinks->AddComponent($link); } $seccion->AddComponent($listaLinks); } else { $seccion = new Seccion("", "center", SMALL_FONT_SIZE, SECCION_SIN_TITULO); $seccion->AddComponent(TEXT_NO_MUESTRA_NADA); } $pagina->AddComponent($seccion); /*$pie = new Seccion ( "", "center", SMALL_FONT_SIZE, SECCION_SIN_TITULO ); $pie->AddComponent ( new Link ( "ayuda.php", "<br/>Ayuda" ) ); $pie->AddComponent ( new Link ( "http://portalwap.ctimovil.com.ar:8582/pt/terminales/index.jsp?alias=ideas ", "<br/>volver a CLARO" ) );
break; } /////////////////////////////////////////// ///// PRESENTACION /////////////////////////////////////////// $pagina = new Pagina(NOMBRE_PORTAL); $seccion = new Seccion($titulo, $alineado_texto, SMALL_FONT_SIZE); if ($texto) { $seccion->AddComponent($texto); } if ($lista) { //Si hay una lista de links $listaLinks = new ListaLinks(); $listaLinks->AddComponent($lista); if ($estilo_lista) { $listaLinks->SetStyle($estilo_lista); } $seccion->AddComponent($listaLinks); } $pie = new Seccion("", "center", NORMAL_FONT_SIZE, SECCION_SIN_TITULO); if ($paginado) { //Si hay paginado $pie->AddComponent($paginado); } if ($volver_link) { $pie->AddComponent(new Link($volver_link, "<br/>" . TEXT_VOLVER)); } if ($home_link) { $pie->AddComponent(new Link($home_link, TEXT_HOME)); } $pagina->AddComponent($seccion);
/** * Muestra el top de VideoTones * * @param unknown_type $id_top * @return unknown */ function displayTopVideoTones($id_top) { $ids_tops = $this->array_contenidos[$id_top]; // array con los id a mostrar if (!$this->array_titulos_tops[$id_top]) { // $extraparam = "SECCION_SIN_TITULO"; $seccionTop = new Seccion ($this->array_titulos_tops[$id_top], $this->getStyle($this->array_align_items[$id_top]), $this->getStyle($this->array_font_size[$id_top]), $extraparam); } else { $seccionTop = new Seccion ($this->array_titulos_tops[$id_top], $this->getStyle($this->array_align_items[$id_top]), $this->getStyle($this->array_font_size[$id_top])); } $listaTop = new ListaLinks(); if ($this->array_style_items[$id_top] != "BULLETS") $listaTop->SetStyle($this->getStyle($this->array_style_items[$id_top])); foreach ($ids_tops as $id) { $datos = obtenerDatosContenido($this->db, $id); $cat = $datos['categoria']; $id = $datos['id']; if ($this->operadora == "claro" || $this->operadora == "porta") { $href = "hacer_descarga.php?xxx={$this->array_xxx[$id]}&b=h&step=2{$this->universal_push}&cat=$cat&tipoCat=65&id=".$id."&b=h"; } else { $href = "videos.php?xxx={$this->array_xxx[$id]}&b=h&step=2{$this->universal_push}&cat=$cat&tipoCat=65&id=".$id."&b=h"; } $ruta = $datos['screenshots']; $carpeta = calcularCarpeta($id); ($this->array_textos_links_dl[$id_top] != "") ? $nombre = $this->array_textos_links_dl[$id_top] : $nombre = $this->escape4Wap($datos['nombre']); ($this->array_subtexto[$id_top] == "1") ? $autor = "<br/> ".$this->escape4Wap($datos["autor"]) : $autor = ""; if ($this->array_style_items[$id_top] == "BULLETS") { $link = new MenuItem("images/bullet.gif", $nombre, $href); } else { if ($this->array_show_preview[$id_top] == "1") { if (file_exists("getimage.php")) $link = new Link($href, $nombre, "getimage.php?path=http://www.wazzup.com.uy/$ruta", TOP_SIDE, null, $autor); else $link = new Link($href, $nombre, "http://www.wazzup.com.uy/$ruta", TOP_SIDE, null, $autor); } else { $link = new Link($href, $nombre, null, null, null, $autor); } } switch($this->array_marcas[$id]){ case 'new': $link->setNew(true); break; case 'hot': $link->setHot(true); break; case 'hit': $link->setHit(true); break; } $listaTop->AddComponent($link); } $seccionTop->AddComponent ($listaTop); $this->html .= $seccionTop->Display(); if (($this->array_text_notitle[$id_top] != "")) { $seccionVerMas = new Seccion ("", $this->getStyle($this->array_align_notitle[$id_top]), $this->getStyle($this->array_font_size[$id_top]), SECCION_SIN_TITULO); $seccionVerMas->AddComponent (new Link ("videos.php?step=0{$this->universal_push}&tipoCat=65", $this->array_text_notitle[$id_top])); $this->html .= $seccionVerMas->Display(); } if ($this->debug == "2") $this->logMyDebug(); return $this->html; }