예제 #1
0
파일: videos.php 프로젝트: vallejos/samples
///////////////////////////////////////////
$pagina = new Pagina(NOMBRE_PORTAL . " - Videos");
//$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) {
예제 #2
0
파일: index.php 프로젝트: vallejos/samples
$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();
예제 #3
0
        case 61:
            $nombre_tipo = "Juego";
            $volver_link = "games.php?step=0";
            break;
    }
    $url_desc = urlGenerica($msisdn, $row['descarga'], $row['pk_ventas_wap_billing'], "tigo_co_wap");
    $lista[] = array("href" => str_replace("&", "&amp;", $url_desc), "nombre" => str_replace("&", "&amp;", $row['nombre']));
}
$texto = "Descarga el contenido que tengas pendiente:<br/>";
///////////////////////////////////////////
/////    PRESENTACION
///////////////////////////////////////////
$pagina = new Pagina(NOMBRE_PORTAL . " - Descarga tu contenido");
$seccion = new Seccion("Descargas", "center", SMALL_FONT_SIZE);
if ($pagina->_soportaXHTML()) {
    $texto = str_replace("\$\$", "\$", $texto);
}
if ($texto) {
    $seccion->AddComponent($texto);
}
$listaLinks = new ListaLinks();
//$listaLinks->SetStyle(LISTA_NUMERADA_LINKS);
foreach ($lista as $item) {
    $listaLinks->AddComponent(new Link($item['href'], $item['nombre']));
}
$seccion->AddComponent($listaLinks);
$seccion->AddComponent(new Link("home.php", "<br/>Inicio"));
$pie = new Seccion("", "center", NORMAL_FONT_SIZE, SECCION_SIN_TITULO);
$pagina->AddComponent($seccion);
$pagina->WriteHeaders();
echo $pagina->Display();
예제 #4
0
 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 "";
     }
 }
예제 #5
0
파일: home.php 프로젝트: vallejos/samples
    $seccion->AddComponent($listaLinks);
    $pagina->AddComponent($seccion);
    $ver_todos = true;
}
//Top Juegos//Top Juegos//Top Juegos
if ($ver_todos) {
    $seccion_ver = new Seccion("", "center", SMALL_FONT_SIZE, SECCION_SIN_TITULO);
    $ver_todos = new Link("games.php", "ver todos");
    $seccion_ver->AddComponent($ver_todos);
    //$pagina->AddComponent($seccion_ver);
}
if ($lista_cats) {
    $seccion = new Seccion("Categorias", "left", SMALL_FONT_SIZE);
    $listaLinks = new ListaLinks();
    $listaLinks->SetStyle(LISTA_NUMERADA_LINKS);
    $listaLinks->AddComponent($lista_cats);
    $seccion->AddComponent($listaLinks);
    $pagina->AddComponent($seccion);
}
//$pagina->AddComponent($seccion);
if (!$soportaAlgo || sizeof($lista_j) == 0 && sizeof($lista_js) == 0) {
    $seccion = new Seccion("", "center", SMALL_FONT_SIZE, SECCION_SIN_TITULO);
    $seccion->AddComponent("Lo sentimos, su celular no soporta ninguno de los contenidos del portal");
    $pagina->AddComponent($seccion);
}
$pagina->AddComponent(new Banner($ua, "http://claro.wazzup.com.ar/fonik_wap/home.php", "images/fonik.gif"));
//$pie = new Seccion("", "center", SMALL_FONT_SIZE, SECCION_SIN_TITULO);
//$pie->AddComponent(new Link("descargar_contenido.php", "Descargas Pendientes"));
//$pie->AddComponent(new Link("http://wap.ola.com.co/wap2/portal.php", "<br/>Home Tigo"));
//$pagina->AddComponent($pie);
//MOSQUITO2_WAP ==== MOSQUITO_WAP
예제 #6
0
    /**
     * 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]}&amp;b=h&amp;step=2{$this->universal_push}&amp;cat=$cat&amp;tipoCat=65&amp;id=".$id."&amp;b=h";
    		} else {
        		$href = "videos.php?xxx={$this->array_xxx[$id]}&amp;b=h&amp;step=2{$this->universal_push}&amp;cat=$cat&amp;tipoCat=65&amp;id=".$id."&amp;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/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".$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}&amp;tipoCat=65", $this->array_text_notitle[$id_top]));
        	$this->html .= $seccionVerMas->Display();
    	}
        	
    	if ($this->debug == "2") $this->logMyDebug();
    	return $this->html;
    }