Esempio n. 1
0
function displayForm($camposPendientes)
{
    cabecera();
    pie();
    if ($camposPendientes) {
        ?>
        <p class="error">Hubo algunos problemas con el formulario que usted presentó.
            Por favor, complete correctamente los campos obligatorios y haga clic en <b>Enviar</b> para volver a enviar el formulario.</p>
    <?php 
    } else {
        ?>
        <b>Por favor, rellene sus datos a continuacion y haga clic en "enviar encuesta":</b><br><br>
    <?php 
    }
    ?>
    <form method="post">
        Edad*: <input type="text" name="edad" /><br>
        ¿Asistes a algunos de estos espectaculos durante el año?
        <select  size="4"  multiple name="ocio[]">
            <option value="teatro">Teatro</option>
            <option value="cine">Cine</option>
            <option value="futbol">Futbol</option>
            <option value="conciertos">Conciertos</option>
        </select><br><br><br>
        ¿Qué tipo de restaurante prefieres?<br>
        Americano <input type="checkbox" name="restaurante[]" value="americano"/><br>
        Japones <input type="checkbox" name="restaurante[]" value="japones"/><br>
        Chino <input type="checkbox" name="restaurante[]" value="chino"/><br>
        Italiano <input type="checkbox" name="restaurante[]" value="italiano"/><br>
        <input type="submit" value="Enviar encuesta" name="enviar" />
    </form>

    <?php 
}
function conectaDb()
{
    global $dbDb;
    try {
        $db = new PDO("sqlite:" . $dbDb);
        return $db;
    } catch (PDOException $e) {
        cabecera("Error grave", MENU_PRINCIPAL);
        print "  <p>Error: No puede conectarse con la base de datos.</p>\n";
        print "  <p>Error: " . $e->getMessage() . "</p>\n";
        pie();
        exit;
    }
}
function conectaDb()
{
    try {
        $db = new PDO(MYSQL_HOST, MYSQL_USUARIO, MYSQL_PASSWORD);
        $db->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);
        $db->exec("set names utf8mb4");
        return $db;
    } catch (PDOException $e) {
        cabecera("Error grave", MENU_PRINCIPAL);
        print "  <h4>Error: No puede conectarse con la base de datos.</h4>\n\n";
        print "  <h4>Error: " . $e->getMessage() . "</h4>\n";
        pie();
        exit;
    }
}
Esempio n. 4
0
function displayThanks($mensajeFinal)
{
    cabecera();
    ?>
    <h1>Gracias</h1>
    <p>Gracias por enviar su foto<?php 
    if ($_POST["nombre"]) {
        echo ", " . $_POST["nombre"];
    }
    ?>
!</p>
    <?php 
    echo "<p>Esta es su {$foto}:</p>";
    ?>
<p><img src = "fotos/<?php 
    echo $_FILES["{$foto}"]["name"];
    ?>
" alt = "Foto" /></p>
    <?php 
    pie();
}
Esempio n. 5
0
function displayForm($camposPendientes)
{
    cabecera();
    pie();
    if ($camposPendientes) {
        ?>
        <p class="error">Hubo algunos problemas con el formulario que usted presentó.
            Por favor, complete correctamente los campos obligatorios y haga clic en <b>Enviar</b> para volver a enviar el formulario.</p>
    <?php 
    } else {
        ?>
        <b>Por favor, rellene sus datos a continuacion y haga clic en "enviar encuesta":</b><br><br>
    <?php 
    }
    ?>
    <form method="post">
        Nombre*: <input type="text" name="nombre" /><br>
        Elige tu color de coche favorito<br>

        Rojo <input type="radio" name="color[]" value="rojo"><br>
        Verde <input type="radio" name="color[]" value="verde"><br>
        Azul <input type="radio" name="color[]" value="azul">
        <br><br>
        Elige los extras<br>
        Aire acondicionado <input type="checkbox" name="extras[]" value="aire_acondicionado"/><br>
        Yantas <input type="checkbox" name="extras[]" value="yantas"/><br>
        Tapiceria <input type="checkbox" name="extras[]" value="tapiceria"/><br><br>
        
        ¿Cual es el precio máximo que estarías dispuesto a pagar?
        <br>

        <input type="submit" value="Enviar" name="enviar" />
        <input type="reset" value="Borrar">
    </form>

    <?php 
}
session_start();
/**
 * Bases de datos - agenda.php
 *
 * @author    Joan Piera Simó
 * @copyright 2016 Joan Piera Simó
 * @license   http://www.gnu.org/licenses/agpl.txt AGPL 3 or later
 * @version   2016-02-05
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_once "agenda.php";
cabecera("Inicio", MENU_PRINCIPAL);
?>
<div align="center"><h2>Bienvenido a tu agenda de telefonos, <?php 
echo $usuario;
?>
</h2></div>
<?php 
pie();
// Inicio sesión
session_start();
//Inicializo la base de datos muebleBBB y obtengo los productos catalogados como 'novedades' y 'ofertas'
$BBDD = new MySQLDataBase("mueblebbb");
$MuebleBBB = new BBDDMuebleBBB($BBDD);
$MuebleBBB->cargarCatalogo();
$catalogo = $MuebleBBB->getCatalogo();
if (!empty($_POST)) {
    $productos = $catalogo->BuscarProductos($_POST["busca"]);
} else {
    $productos = [];
}
/***************************************************
	 GENERO EL HTML DE LA PÁGINA RESULTADOS_BUSQUEDA.PHP
	****************************************************/
echo cabecera("MUEBLEBBB - Búsqueda", "../css/estilos.css", "../js/libreria.js");
echo encabezadoIndex();
navegacion_sesion($_POST, $MuebleBBB);
echo Html::div_("contenedor_inicio");
echo Html::seccion(1, "Resultado de búsqueda");
if (!empty($productos)) {
    foreach ($productos as $producto) {
        if ($producto->__get("descuento") > 0) {
            $precio_descuento = $producto->__get("precio") - $producto->__get("precio") / 100 * $producto->__get("descuento");
            echo Html::div_("contenedor_producto") . Html::a_("catalogo.php?id_producto={$producto->__get("codigo")}") . Html::img("{$producto->__get("imagen")}", "{$producto->__get("nombre")}") . Html::span("{$producto->__get("descuento")}%", "oferta") . Html::seccion(2, "{$producto->__get("nombre")}", "nombre_producto") . Html::div_("detalles") . Html::p("{$producto->__get("categoria")}", "categoria") . Html::p_("{$precio_descuento} €", "precio") . Html::br() . Html::del("{$producto->__get("precio")}€", "precio_antes") . Html::_p() . Html::_div() . Html::_a() . Html::_div();
        } else {
            if ($producto->__get("nuevo")) {
                echo Html::div_("contenedor_producto") . Html::a_("catalogo.php?id_producto={$producto->__get("codigo")}") . Html::img("{$producto->__get("imagen")}", "{$producto->__get("nombre")}") . Html::div_("novedad") . Html::img("../imagenes/nuevo.png", "etiqueta indicando novedad", "etiqueta_nuevo") . Html::_div() . Html::seccion(2, "{$producto->__get("nombre")}", "nombre_producto") . Html::div_("detalles") . Html::p("{$producto->__get("categoria")}", "categoria") . Html::p("{$producto->__get("precio")}€", "precio") . Html::_div() . Html::_div() . Html::_a();
            } else {
                echo Html::div_("contenedor_producto") . Html::a_("catalogo.php?id_producto={$producto->__get("codigo")}") . Html::img("{$producto->__get("imagen")}", "{$producto->__get("nombre")}") . Html::seccion(2, "{$producto->__get("nombre")}", "nombre_producto") . Html::div_("detalles") . Html::p("{$producto->__get("categoria")}", "categoria") . Html::p("{$producto->__get("precio")}€", "precio") . Html::_div() . Html::_div() . Html::_a();
            }
Esempio n. 8
0
<?php

// Librer�as
require_once '../librerias/Html.php';
require_once '../librerias/navegacion_sesion.php';
require_once '../librerias/MySQLDataBase.php';
require_once '../librerias/BBDDMuebleBBB.php';
require_once '../html/cabecera.php';
require_once '../html/encabezado.php';
require_once '../html/nav.php';
require_once '../html/pie.php';
require_once '../html/sesion_carrito.php';
// Inicio sesi�n
session_start();
//Inicializo la base de datos muebleBBB
$BBDD = new MySQLDataBase("mueblebbb");
$MuebleBBB = new BBDDMuebleBBB($BBDD);
/***************************************
	 GENERO EL HTML DE LA P�GINA COOKIES.PHP
	 ***************************************/
echo cabecera("MUEBLEBBB - Cookies", "../css/estilos.css", "../js/libreria.js");
echo encabezadoIndex();
navegacion_sesion($_POST, $MuebleBBB);
echo Html::p("Aqu� va el cuerpo de la p�gina");
echo pie();
session_start();
// Compruebo que se está accediente a la página con los privilegios adecuados
if (!isset($_SESSION["admin"]) || $_SESSION["admin"] == false) {
    header("location:inicio.php");
}
//Inicializo la BBDD de MuebleBBB, cargo el catálogo y lo recojo en una variable.
if (empty($_POST)) {
    $BBDD = new MySQLDataBase("mueblebbb");
    $MuebleBBB = new BBDDMuebleBBB($BBDD);
    $MuebleBBB->cargarCatalogo();
    $catalogo = $MuebleBBB->getCatalogo();
}
/****************************************************
	 GENERO EL HTML DE LA PÁGINA ADMIN_DATOS_PRODUCTO.PHP
	 ****************************************************/
echo cabecera("MUEBLEBBB - Administración", "../css/estilos.css", "../js/libreriaAdmin.js");
echo encabezadoAdmin();
echo navAdmin();
echo sesion_carritoAdmin($_SESSION);
// Si $_POST no está vacío es que se ha realizado una solicitud de 'Añadir producto' o 'Modificar producto' en admin.php
if (!empty($_POST)) {
    echo Html::seccion(1, "Cambios realizados:");
    $BBDD = new MySQLDataBase("mueblebbb");
    $MuebleBBB = new BBDDMuebleBBB($BBDD);
    if (!empty($_POST)) {
        $MuebleBBB->actualizarProductos($_REQUEST, $_FILES);
    }
    echo Html::a_("../paginas/admin.php", "enlace_volver") . Html::span("<< ") . Html::span("Volver a Administración", "estilo") . Html::_a();
    // TESTEO *****************************************///*
    echo Html::details_() . Html::summary("Detalles productos:");
    //*
Esempio n. 10
0

<!-- pie de pagina -->
<div data-role="footer">
  <h2>Todos los derechos resevador @ Seguridad y Sistema JM</h2>
</div>

</div>

<!-- CUENTA BANCARIA -->
<div data-role="page" id="banco">

<!-- cabecera -->
  <div data-role="header" data-theme="e">
  <?php 
echo cabecera();
?>
  </div>

  <!-- contenido -->
  <div data-role="main" class="ui-content2">
<?php 
echo logo();
?>

  <h1 class="letras">Cuentas Bancarias</h1>
    <ul data-role="listview" data-inset="true" data-shadow="false">
      <li data-role="collapsible" data-iconpos="right" data-inset="false">
        <h2>Provincial</h2>
        <ul data-role="listview" data-theme="b">
          <li><div class="datos_banco">
Esempio n. 11
0
function displayForm($camposPendientes)
{
    cabecera();
    if ($camposPendientes) {
        ?>
        <p class="error">Hubo algunos problemas con el formulario que usted presentó.
            Por favor, complete correctamente los campos remarcados de abajo y haga clic en Enviar para volver a enviar el formulario.</p>
    <?php 
    } else {
        ?>
        <p>por favor, rellene sus datos a continuación y haga clic en Enviar.
            Los campos marcados con un asterisco (*) son obligatorios.</p>
    <?php 
    }
    ?>
    <form action = "" method = "post">
        <fieldset>
            <label for="nombreUsuario" <?php 
    validateField("nombreUsuario", $camposPendientes);
    ?>
>Introduce tu nombre * </label>
            <input type = "text" name = "nombreUsuario" id="nombreUsuario" value="<?php 
    setValue("nombreUsuario");
    ?>
">
            <label for="apellidos" <?php 
    validateField("apellidos", $camposPendientes);
    ?>
>y tus apellidos *</label>
            <input type = "text" name = "apellidos" id="apellidos" value="<?php 
    setValue("apellidos");
    ?>
" ><br><br>
            <label for="tipoMusica">¿Qué tipo de música te gusta escuchar?</label>
            <select name="tipoMusica[]" id="tipoMusica" size="4" multiple="multiple">
                <option value="Rock"<?php 
    setSelected("tipoMusica", "Rock");
    ?>
>Rock </option>
                <option value="Pop"<?php 
    setSelected("tipoMusica", "Pop");
    ?>
>Pop </option>
                <option value="Regee"<?php 
    setSelected("tipoMusica", "Regee");
    ?>
>Regee </option>
                <option value="Clásica"<?php 
    setSelected("tipoMusica", "Clásica");
    ?>
>Clásica </option>
            </select><br><br>
            ¿Que tipo de libros lees? <br>
            <label for="novelaNegra">Novela Negra</label>
            <input type="checkbox" name="tipoLibros[]" id="novelaNegra"
                   value="Novela Negra"<?php 
    setChecked("tipoLibros", "Novela Negra");
    ?>
><br>
            <label for="cienciaFiccion">Ciencia Ficción</label>
            <input type="checkbox" name="tipoLibros[]" id="cienciaFiccion"
                   value="Ciencia Ficción" <?php 
    setChecked("tipoLibros", "Ciencia Ficción");
    ?>
><br>
            <label for="fantasia">Fantasía</label>
            <input type="checkbox" name="tipoLibros[]" id="fantasia" value="Fantasía" <?php 
    setChecked("tipoLibros", "Fantasía");
    ?>
><br><br>
            <input type = "submit" name="enviar" value="Enviar">
        </fieldset>
    </form>
    <?php 
    pie();
}
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_once "agenda.php";
$db = conectaDb();
cabecera("Buscar contacto", MENU_VOLVER);
$nombre = recoger("nombre");
$apellidos = recoger("apellidos");
$consulta = "SELECT * FROM {$dbTablaAgenda}\r\n    WHERE nombre LIKE :nombre\r\n    AND apellidos LIKE :apellidos\r\n    AND usuario like '{$usuario}'\r\n    ";
$result = $db->prepare($consulta);
$result->execute(array(":nombre" => "%{$nombre}%", ":apellidos" => "%{$apellidos}%"));
print "    <div style=\"text-align: center\"><h3>Registros encontrados:</h3></div>\n";
?>
<div class="col-md-12" >
          <table class="table table-striped" style="width: 40%; margin: 0 auto; text-align: center">
            <thead> 
                <tr>
                <th style="text-align: center">Nombre</th>
                <th style="text-align: center">Apellidos</th>
                <th style="text-align: center">Telefono</th>
                <th style="text-align: center">Correo</th>
require_once 'html/pie.php';
require_once 'html/nav.php';
require_once 'html/tabla.php';
require_once 'clases/Alumno.php';
require_once 'clases/Asignatura.php';
require_once 'clases/Matricula.php';
require_once 'clases/TablaNotas.php';
require_once 'procesos/cagar_datos.php';
//SESIÓN
session_start();
if (!isset($_SESSION["tablaNotas"])) {
    $_SESSION["tablaNotas"] = new TablaNotas(array(), array(), array());
}
// TablaNotas($alumnos=array(), $asignaturas=array(), $matriculas=array())
//GENERADORES DE CONTENIDO HTML
echo cabecera("GESTIÓN DE NOTAS", "css/estilos.css");
echo nav(array("Nuevo Alumno" => "nuevo_alumno.php", "Nueva Asignatura" => "nueva_asignatura.php"));
echo cargarDatos($_SESSION["tablaNotas"]);
echo tabla($_SESSION["tablaNotas"]);
echo pie();
?>







<?php 
/*
//TESTEO
Esempio n. 14
0
require_once "includes/htmlhelper.php";
require_once "includes/bibliohelper.php";
//Si tenemos sesión, estamos registrados
//y vamos a la página principal
//Lo mismo habría que hacer algún tipo más de comprobación
if (empty($_SESSION['username'])) {
    header('Location: logout.php');
}
if (empty($_SESSION['bibliokey'])) {
    header('Location: bibliochoose.php');
}
if (empty($_REQUEST['searchtext'])) {
    header('Location: main.php');
}
starthtml(1, rawurlencode($_REQUEST['searchtext']));
cabecera(true);
echo <<<FIN
  <h2>Añade los libros a tu lista o ve a buscarlos</h2>
  <div id='searchlist'><img src='img/progress.gif'/>Cargando resultados...</div>
  <div class='line'></div>
  <div class="space"><br clear="all"/></div>
  <h3>¿Quieres buscar más libros?</h3>
  <form action="bibliosearch.php">
    <input type="text" placeholder="Busca el libro por autor, título, editorial, isbn..." name="searchtext"/>
    <input class="button blue" type="submit" value="buscar"/>
    <br/>
    <input class="button white flright" style="margin-right:7px;" type="submit" value="volver"/>
  </form>
  <div class="space"><br clear="all"></div>
FIN;
endhtml();
Esempio n. 15
0
<?php

// Librer�as
require_once '../librerias/Html.php';
require_once '../librerias/navegacion_sesion.php';
require_once '../librerias/MySQLDataBase.php';
require_once '../librerias/BBDDMuebleBBB.php';
require_once '../html/cabecera.php';
require_once '../html/encabezado.php';
require_once '../html/nav.php';
require_once '../html/pie.php';
require_once '../html/sesion_carrito.php';
// Inicio sesi�n
session_start();
//Inicializo la base de datos muebleBBB
$BBDD = new MySQLDataBase("mueblebbb");
$MuebleBBB = new BBDDMuebleBBB($BBDD);
/*******************************************
	 GENERO EL HTML DE LA P�GINA AVISO_LEGAL.PHP
	 *******************************************/
echo cabecera("MUEBLEBBB - Aviso Legal", "../css/estilos.css", "../js/libreria.js");
echo encabezadoIndex();
navegacion_sesion($_POST, $MuebleBBB);
echo Html::p("Aqu� va el cuerpo de la p�gina");
echo pie();
<?php

//LIBRERÍAS
require_once 'html/cabecera.php';
require_once 'html/nav.php';
require_once 'html/formularios.php';
require_once 'html/pie.php';
require_once 'clases/Alumno.php';
require_once 'clases/Asignatura.php';
require_once 'clases/Matricula.php';
require_once 'clases/TablaNotas.php';
//SESIÓN
session_start();
if (!isset($_SESSION["tablaNotas"])) {
    $_SESSION["tablaNotas"] = new TablaNotas(array(), array(), array());
}
// TablaNotas($alumnos=array(), $asignaturas=array(), $matriculas=array())
//GENERADORES DE CONTENIDO HTML
echo cabecera("NUEVO ALUMNO", "css/estilos.css");
echo nav(array("<< Volver sin guardar" => "gestion_notas.php"));
echo formularioAlumno($_SESSION["tablaNotas"]);
echo pie();
Esempio n. 17
0
function displayGracias()
{
    cabecera();
    ?>
    <h1>GRACIAS </h1>
    <?php 
    echo "Gracias ", $_POST["nombre"], " tu solicitud ha sido recibida";
    echo 'Esta es su foto: ';
    ?>
    <img src="./fotos/<?php 
    echo $_POST["foto"];
    ?>
">
    <?php 
    pie();
}
<?php

//LIBRERÍAS
require_once 'html/cabecera.php';
require_once 'html/nav.php';
require_once 'html/formularios.php';
require_once 'html/pie.php';
require_once 'clases/Alumno.php';
require_once 'clases/Asignatura.php';
require_once 'clases/Matricula.php';
require_once 'clases/TablaNotas.php';
//SESIÓN
session_start();
if (!isset($_SESSION["tablaNotas"])) {
    $_SESSION["tablaNotas"] = new TablaNotas(array(), array(), array());
}
// TablaNotas($alumnos=array(), $asignaturas=array(), $matriculas=array())
//INICIO DE VARIABLE 'ALUMNO'
$asignatura = $_SESSION["tablaNotas"]->getAsignaturas()[$_GET["asignatura"]];
// $_GET["asignatura" es el código o ínidice asociativo de la asignatura que pasaré por parámetro.
$nombre_asignatura = strtoupper($asignatura->getNombre());
//GENERADORES DE CONTENIDO HTML
echo cabecera("FICHA DE {$nombre_asignatura}", "css/estilos.css");
echo nav(array("<< Volver sin guardar" => "gestion_notas.php"));
echo formularioModificarAsignatura($asignatura);
echo pie();
Esempio n. 19
0
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_once "agenda.php";
$db = conectaDb();
cabecera("Listar", MENU_VOLVER);
$consulta = "SELECT * FROM {$dbTablaAgenda} where usuario like '{$usuario}'";
$result = $db->query($consulta);
?>
  <div class="col-md-12" >
          <table class="table table-striped" style="width: 80%; margin: 0 auto; text-align: center">
            <thead> 
                <tr>
                <th style="text-align: center">Nombre</th>
                <th style="text-align: center">Apellidos</th>
                <th style="text-align: center">Telefono</th>
                <th style="text-align: center">Correo</th>
                <th style="text-align: center">Direccion</th>
              </tr>
            </thead>
            <tbody>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_once "agenda.php";
cabecera("Añadir contacto", MENU_VOLVER);
print "  <form action=\"insertar2.php\" method=\"" . FORM_METHOD . "\">\n";
print "    <h3 style='padding-left: 10px'>Escriba los datos del nuevo registro:</h3>\n";
?>

<div class="input-group input-group-lg">
  <span class="input-group-addon" id="sizing-addon1">Nombre&nbsp;&nbsp;&nbsp;&nbsp;</span>
  <input type="text" name="nombre" class="form-control" placeholder="Nombre" aria-describedby="sizing-addon1">
</div>
<div class="input-group input-group-lg">
  <span class="input-group-addon" id="sizing-addon1">Apellidos&nbsp;&nbsp;</span>
  <input type="text" name="apellidos" class="form-control" placeholder="Apellidos" aria-describedby="sizing-addon1">
</div>
<div class="input-group input-group-lg">
  <span class="input-group-addon" id="sizing-addon1">Telefono&nbsp;&nbsp;&nbsp;</span>
  <input type="text" name="telefono" class="form-control" placeholder="Telefono" aria-describedby="sizing-addon1">
<?php

//LIBRERÍAS
require_once 'html/cabecera.php';
require_once 'html/nav.php';
require_once 'html/formularios.php';
require_once 'html/pie.php';
//GENERADORES DE CONTENIDO HTML
echo cabecera("NUEVA ASIGNATURA", "css/estilos.css");
echo nav(array("<< Volver sin guardar" => "gestion_notas.php"));
echo formularioAsignatura();
echo pie();
Esempio n. 22
0
$MuebleBBB = new BBDDMuebleBBB($BBDD);
$MuebleBBB->cargarCatalogo();
$catalogo = $MuebleBBB->getCatalogo();
$productos = $catalogo->getProductos();
$novedades = $catalogo->getNovedades();
$ofertas = $catalogo->getOfertas();
// Compruebo si existe la variable $_GET y en caso afirmativo almaceno su valor (que será un id_producto)
if (!empty($_GET)) {
    $codigo = $_GET["id_producto"];
} else {
    $codigo = "";
}
/****************************************
	 GENERO EL HTML DE LA PÁGINA CATALOGO.PHP
	*****************************************/
echo cabecera("MUEBLEBBB - Catálogo", "../css/estilos.css", "../js/libreria.js");
echo encabezadoIndex();
navegacion_sesion($_POST, $MuebleBBB);
echo Html::div_("contenedor_catalogo");
//$size = $catalogo->getSize(); // Para definir la altura del 'select'
echo Html::select_("id_modificar_producto", "", "seleccionar_producto", "required='required' size='20'");
foreach ($productos as $categoria => $id_producto) {
    echo Html::optgroup_("{$categoria}");
    foreach ($id_producto as $producto) {
        if ($codigo == $producto->__get("codigo")) {
            echo Html::option("{$producto->__get("codigo")}", "{$producto->__get("nombre")}", true);
        } else {
            echo Html::option("{$producto->__get("codigo")}", "{$producto->__get("nombre")}");
        }
    }
    echo Html::_optgroup();
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
require_once "agenda.php";
$db = conectaDb();
cabecera("Modificar contacto", MENU_VOLVER);
$id = recoger("id");
if ($id > 0) {
    $consulta = "SELECT * FROM {$dbTablaAgenda}\r\n        WHERE id=:id";
    $result = $db->prepare($consulta);
    $result->execute(array(":id" => $id));
    $valor = $result->fetch();
    print "  <form action=\"modificar3.php\" method=\"" . FORM_METHOD . "\">\n";
    print "    <div style=\"text-align: center\"><h3>Modifique los campos que desee:</h3></div>\n";
    print "    \n";
    ?>


    <div class="col-md-12" >
              <table class="table table-striped" style="width: 40%; margin: 0 auto;">
                <tbody>
Esempio n. 24
0
<?php

// Librerías
require_once '../librerias/Html.php';
require_once '../librerias/MySQLDataBase.php';
require_once '../librerias/BBDDMuebleBBB.php';
require_once '../librerias/navegacion_sesion.php';
require_once '../html/cabecera.php';
require_once '../html/encabezado.php';
require_once '../html/nav.php';
require_once '../html/pie.php';
require_once '../html/sesion_carrito.php';
require_once '../html/ofertas_novedades.php';
// Inicio sesión
session_start();
//Inicializo la base de datos muebleBBB y obtengo los productos catalogados como 'novedades' y 'ofertas'
$BBDD = new MySQLDataBase("mueblebbb");
$MuebleBBB = new BBDDMuebleBBB($BBDD);
$MuebleBBB->cargarCatalogo();
$catalogo = $MuebleBBB->getCatalogo();
$novedades = $catalogo->getNovedades();
$ofertas = $catalogo->getOfertas();
/*************************************
	 GENERO EL HTML DE LA PÁGINA INDEX.PHP
	**************************************/
echo cabecera("MUEBLEBBB - Inicio", "../css/estilos.css", "../js/libreria.js");
echo encabezadoIndex();
navegacion_sesion($_POST, $MuebleBBB);
ofertas_novedades($ofertas, $novedades);
echo pie();
Esempio n. 25
0
<?php

// Librer�as
require_once '../librerias/Html.php';
require_once '../librerias/navegacion_sesion.php';
require_once '../librerias/MySQLDataBase.php';
require_once '../librerias/BBDDMuebleBBB.php';
require_once '../html/cabecera.php';
require_once '../html/encabezado.php';
require_once '../html/nav.php';
require_once '../html/pie.php';
require_once '../html/sesion_carrito.php';
// Inicio sesi�n
session_start();
//Inicializo la base de datos muebleBBB
$BBDD = new MySQLDataBase("mueblebbb");
$MuebleBBB = new BBDDMuebleBBB($BBDD);
/****************************************
	 GENERO EL HTML DE LA P�GINA QUIENES_SOMOS.PHP
	 ****************************************/
echo cabecera("MUEBLEBBB - Quienes somos", "../css/estilos.css", "../js/libreria.js");
echo encabezadoIndex();
navegacion_sesion($_POST, $MuebleBBB);
echo Html::p("Aqu� va el cuerpo de la p�gina");
echo pie();
Esempio n. 26
0
function displayGracias()
{
    cabecera();
    ?>
    <h1>Final del formulario </h1>
    <?php 
    echo "Gracias ", $_POST["nombre"], " tendremos en cuenta que tienes especial interes en los siguientes deportes:";
    pie();
}
Esempio n. 27
0
<?php

// Librer�as
require_once '../librerias/Html.php';
require_once '../librerias/navegacion_sesion.php';
require_once '../librerias/MySQLDataBase.php';
require_once '../librerias/BBDDMuebleBBB.php';
require_once '../html/cabecera.php';
require_once '../html/encabezado.php';
require_once '../html/nav.php';
require_once '../html/pie.php';
require_once '../html/sesion_carrito.php';
// Inicio sesi�n
session_start();
//Inicializo la base de datos muebleBBB
$BBDD = new MySQLDataBase("mueblebbb");
$MuebleBBB = new BBDDMuebleBBB($BBDD);
/******************************************
	 GENERO EL HTML DE LA P�GINA MAPA_SITIO.PHP
	 ******************************************/
echo cabecera("MUEBLEBBB - Mapa del sitio", "../css/estilos.css", "../js/libreria.js");
echo encabezadoIndex();
navegacion_sesion($_POST, $MuebleBBB);
echo Html::p("Aqu� va el cuerpo de la p�gina");
echo pie();
Esempio n. 28
0
function displayGracias()
{
    cabecera();
    ?>
    <h1>Final del formulario </h1>
    <?php 
    echo "Gracias ", $_POST["nombre"], " tu solicitud ha sido recibida";
    pie();
}
<?php

include '../UIL/main.php';
session_start();
if (usuario()) {
    ?>
<!DOCTYPE html>
<html>
	<head>
		<?php 
    cabecera();
    ?>
	</head>
	<body style="background-color:lightblue">
		<?php 
    indice();
    ?>
		<div class="container">
			<h2>Consulta General de Clientes</h2>
			<div class="row">
				<div class="col-xs-1"></div>
				<div class="col-xs-10">
					<?php 
    require '../../capaDatos/conexion.php';
    $conexion = new conexion();
    $conn = $conexion->enlace();
    $sql_Select = 'SELECT * FROM clientes';
    $res_Select = $conn->query($sql_Select);
    $num_R = $res_Select->num_rows;
    echo '<p>Nu&#769mero de clientes encontrados: ' . $num_R . '</p>';
    ?>
<?php

// Librer�as
require_once '../librerias/Html.php';
require_once '../librerias/navegacion_sesion.php';
require_once '../librerias/MySQLDataBase.php';
require_once '../librerias/BBDDMuebleBBB.php';
require_once '../html/cabecera.php';
require_once '../html/encabezado.php';
require_once '../html/nav.php';
require_once '../html/pie.php';
require_once '../html/sesion_carrito.php';
// Inicio sesi�n
session_start();
//Inicializo la base de datos muebleBBB
$BBDD = new MySQLDataBase("mueblebbb");
$MuebleBBB = new BBDDMuebleBBB($BBDD);
/***************************************************
	 GENERO EL HTML DE LA P�GINA POLITICA_PRIVACIDAD.PHP
	 ***************************************************/
echo cabecera("MUEBLEBBB - Privacidad", "../css/estilos.css", "../js/libreria.js");
echo encabezadoIndex();
navegacion_sesion($_POST, $MuebleBBB);
echo Html::p("Aqu� va el cuerpo de la p�gina");
echo pie();