<?php require "pagina.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <META http-equiv="Content-Style-Type" content="text/css"> <link href="css/styles.css" rel="stylesheet" type="text/css" > <title>Proyecto 04</title> </head> <body> <?php //construir un contenido para contacto $str = ""; $str = $str . "<div>"; $str = $str . "<h3>Puede mandar un email a tarantantaran@gmail.com</h3>"; $str = $str . "</div>"; $pagina = new pagina(); $pagina->setCuerpoContenido("Contacto", $str); $pagina->getPagina(); ?> </body> </html>
<?php require "pagina.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <META http-equiv="Content-Style-Type" content="text/css"> <link href="css/styles.css" rel="stylesheet" type="text/css" > <title>Proyecto 04</title> </head> <body> <?php $pagina = new pagina(); $pagina->setCuerpoFotos("Fotos de la playa de Pinedo", 2, 3); $pagina->getPagina(); ?> </body> </html>
<?php require "pagina.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <META http-equiv="Content-Style-Type" content="text/css"> <link href="styles.css" rel="stylesheet" type="text/css" > <title>Proyecto 02</title> </head> <body> <?php $pagina = new pagina(2, 2); $pagina->getPagina(); ?> </body> </html>
require "pagina.php"; require "gestordb.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="css/styles.css" rel="stylesheet" type="text/css" > <title>Tarea 20</title> </head> <body> <?php //crea el objeto pagina y lo rellena en funcion del GET $pagina = new pagina(); if (isset($_GET)) { switch ($_GET["id"]) { case 1: $pagina->setCuerpoFotos("Fotos de la playa de Pinedo", 2, 3); break; case 2: $str = ""; $str = $str . "<div>"; $str = $str . "<h3>Puede mandar un email a tarantantaran@gmail.com</h3>"; $str = $str . "</div>"; $pagina->setCuerpoContenido("Contacto", $str); break; case 3: $str = ""; $str = $str . "<div>";
PRODUTOS PRODUTOS<br />'; //Adiciona o $texto a uma Celula da //Linha de Conteudo $content e atribui a //referencia a variavel $celula $celula = $this->content->addCell($texto); //Deixa a celula com a dimensão de 3 Colunas $celula->colspan = 3; //Cria uma Janela Pop-Up $win = new TWindow('Promoção'); //Define o Tamanho $win->setPosition(200, 100); $win->setSize(240, 100); //Adiciona Texto na janela $win->add('TEXTO TEXTO TEXTO TEXTO'); //exibe a janela $win->show(); } function onContatos($get) { //SEM IMPLEMENTAÇÃO } function onEmpresa($get) { //SEM IMPLEMENTAÇÃO } } //Instancia uma Pagina $objPagina = new pagina(); //Exibe a pagina juntamente com seu //conteudo e interpreta a URL $objPagina->show();
<?php include 'connection.php'; include 'class/pagina.class.php'; include 'class/banners.class.php'; if (!isset($_GET["site_url"])) { $page = new pagina($conn); $page->titel = "MyFirstOopWebPage"; $page->tekst = "<h1>Hello world</h1>"; } else { $page = new pagina($conn); $page->getPageInfo($_GET["site_url"]); } include 'template/template.php';