Пример #1
0
 function getSelect($id, $name = null)
 {
     if ($name === null) {
         $name = $id;
     }
     $array = array(10 => "10 rpp", 50 => "50 rpp", 100 => "100 rpp");
     Util::getSelect($name, $array, $this->rpp, false, "", $id);
 }
Пример #2
0
 function getSelect($id, $name = null)
 {
     if ($name === null) {
         $name = $id;
     }
     $parametros = [10 => "10 rpp", 50 => "50 rpp", 100 => "100 rpp"];
     return Util::getSelect($name, $parametros, $this->rpp, false, "", $id);
 }
Пример #3
0
 function getSelect($id, $name = null)
 {
     //construir el select con 10,50,100
     if ($name === null) {
         $name = $id;
     }
     $array = array(10 => "10 rpp", 50 => "50 rpp", 100 => "100 rpp");
     return Util::getSelect($name, $array, $this->rpp, false, "", $id);
 }
Пример #4
0
 function getSelect($id, $name = null)
 {
     if ($id !== null) {
         $id = "id = '{$id}'";
     } else {
         $id = "";
     }
     $array = array("10" => 10, "50" => 50, "100" => 100);
     return Util::getSelect($name, $array, $this->rpp, true, "", $id);
 }
Пример #5
0
 function getSelect($id, $name = null)
 {
     //Construir el select/option con 10/50/100 registro por página
     //que seleccion el valor que tengo habilitado
     //id es el id que le vamos a dar al <select> y name el name. si no hay name será el mismo que el id
     if ($name === null) {
         $name = $id;
     }
     $array = array(10 => "10 rpp", 50 => "50 rpp", 50 => "100 rpp");
     return Util::getSelect($name, $array, $this->rpp, false, "", $id);
 }
Пример #6
0
 function getSelect($id, $name = null)
 {
     /*
      * Selecciona el número de registros por página.
      * Construye el botón básicamente, o el Select (options)
      */
     if ($name === null) {
         $name = $id;
     }
     $array = array(10 => "10", 50 => "50", 100 => "100");
     return Util::getSelect($name, $array, $this->rpp, false, "", $id);
 }
 function getSelectFull($id, $name = null, $params = array())
 {
     if ($name === null) {
         $name = $id;
     }
     $array = ["10" => "10", "50" => "50", "100" => "100"];
     $r = "<form style='display: inline;' method='get' id='{$id}' name='{$name}'>";
     $r .= Util::getSelect("nrpp", $array, $this->nrpp, false);
     foreach ($params as $key => $value) {
         if ($key !== "nrpp") {
             $r .= "<input type='hidden' name='{$key}' value='{$name}'/>";
         }
     }
     $r .= "<input type='submit' value='ver' />";
     $r .= "</form>";
 }
Пример #8
0
    </head>
    <body>
        <!-- aqui van los dialogos -->
        <!-- Modal -->
        <div class="modal fade modal-form" id="formularioInsertar" role="dialog">
            <div class="modal-dialog">

        <!-- Modal content-->
                <div class="modal-content">
                    <div class="modal-header">
                        <form id="formInsertar" >
                            Nombre
                            <input type="text" id="Name" value="" /><hr>
                            Pais
                            <?php 
echo Util::getSelect("CountryCode", $gestorCountry->getValuesSelect());
?>
<br/>
                            Distrito
                            <input type="text" id="District" value="" /><hr>
                            Poblacion
                            <input type="number" id="Population" value="" /><hr>
                            <input type="hidden" id="ID" value="" /><hr>
                        </form>
                    </div>
                    <div id="mensajeInsertar" ></div>
                    <div class="modal-footer">
                        <button id="btInsertar" type="button" class="btn btn-default" >Insert</button>
                        <button id="btEditar" type="button" class="btn btn-default" >Edit</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    </div>
Пример #9
0
">Anterior</a>
                        <a href="?page=<?php 
echo min($page + 1, $pages) . $trozoEnlace;
?>
">Siguiente</a>
                        <a href="?page=<?php 
echo $pages . $trozoEnlace;
?>
">Último</a>
                        <form style="display: inline;" action="?<?php 
echo $trozoEnlace;
?>
">
                            <?php 
$array = ["10" => "10", "50" => "50", "100" => "100"];
echo Util::getSelect("rpp", $array, 10, false);
?>
                            <input type="submit" value="ver" />
                        </form>
                    </td>
                </tr>
            </tfoot>
            <tbody>
                <?php 
foreach ($multimedias as $indice => $multimedia) {
    ?>
                    <tr>
                        <td><figure><img src="<?php 
    echo $multimedia->getImg_portada();
    ?>
" /></figure></td>
Пример #10
0
                                <div class="panel-heading">
                                    Prestar Juego
                                </div>
                                <!-- /.panel-heading -->
                                <div class="panel-body">
                                    <div class="dataTable_wrapper">

                                        <form class="form" action="phpalta.php" method="POST">
                                            <label for="dni">Seleccione un Usuario</label>
                                            <?php 
echo Util::getSelect("dni", $gestorUsuario->getValuesSelect());
?>
<br>
                                             <label for="idjuego">Seleccione un Juego</label>
                                            <?php 
echo Util::getSelect("idjuego", $gestorLudoteca->getValuesSelect());
?>
<br>
                                            <label for="fechaePrestamo">Fecha Prestamo</label>
                                            <input type="date" name="fechaPrestamo" value="" /><br>
                                            <label for="fechaeDevolucion">Fecha Devolucion</label>
                                            <input type="date" name="fechaDevolucion" value="" /><br>
                                            <input type="submit" value="Prestar" />
                                        </form>
                                    </div>
                                    <!-- /.table-responsive -->

                                </div>
                                <!-- /.panel-body -->
                            </div>
                            <!-- /.panel -->
Пример #11
0
                                <!-- /.panel-heading -->
                                <div class="panel-body">
                                    <div class="dataTable_wrapper">

                                        <form action="phpedit.php" method="POST">
                                            <input class="form-group input-group" type="text" name="nombre" value="<?php 
echo $usuario->getNombre();
?>
" />
                                            <input class="form-group input-group" type="text" name="apellidos" value="<?php 
echo $usuario->getApellidos();
?>
" />
                                             <label for="idhabitacion">Habitacion: </label>
                                            <?php 
echo Util::getSelect("idhabitacion", $gestorHabitacion->getValuesSelect());
?>
<br>
                                            <input class="form-group input-group" type="hidden" name="pkdni" value="<?php 
echo $dni;
?>
" />
                                            <input class="btn btn-success" type="submit" value="Editar Usuario" />
                                         </form>
                                    </div>
                                    <!-- /.table-responsive -->

                                </div>
                                <!-- /.panel-body -->
                            </div>
                            <!-- /.panel -->
Пример #12
0
    </head>
    <body>
        <div id="fondocontenido"></div>
        <div id="cont">
        <form action="phpinsert.php" method="POST"><br/><br/>
            <h1 class="titulo">Insertar un nuevo animal al ZOO!</h1>
            Nombre: <input type="text" name="NombreAnimal" value="" /><br/><br/>
            Familia: <input type="text" name="Familia" value="" /><br/><br/>
            Peligro Extinción: Sí<input type="radio" name="PeligroExt" value="S" />No<input type="radio" name="PeligroExt" value="N" /><br/><br/>
            Edad: <input type="number" name="Edad" value=""/><br><br/>
            Cuidador: <?php 
echo Util::getSelect("CuidadorCode", $gestorCuidador->getValuesSelect());
?>
<br/><br/>
            Zona Destinado: <?php 
echo Util::getSelect("ZonaCode", $gestorZona->getValuesSelect());
?>
<br/><br/>
            <input type="submit" value="edicion"/>
        </form>
        <a href="index.php" class="atras">Cancelar y volver atrás</a>
        </div>
        <div id="enlacesIndex">
            <a href="index.php">Animales</a>
            <a href="../zona/index.php">Zonas</a>
            <a href="../cuidador/index.php">Cuidadores</a>
        </div>
        <h1 class="zoocarlitos">
            <span class="b1">z</span>
            <span class="b3">o</span>
            <span class="b2">O</span>
            Fecha <input type="date" name="fecha" value="<?php 
echo $evento->getFecha();
?>
"/></br><br>
            Artista<?php 
$numID0 = $evento->getID_artista();
$artista = (int) $numID0;
echo Util::getSelect("ID_artista", $gestorArtista->getValuesSelect(), $artista, $blanco = false);
?>
<br><br>
            Lugar<?php 
$numID1 = $evento->getID_lugar();
$lugar = (int) $numID1;
echo Util::getSelect("ID_lugar", $gestorLugar->getValuesSelect(), $lugar, $blanco = false);
?>
<br><br>
            Tipo Evento<?php 
$numID2 = $evento->getNombre_tipo();
$tipo = (int) $numID2;
echo Util::getSelect("nombre_tipo", $gestorTipo->getValuesSelect(), $tipo, $blanco = false);
?>
<br><br>
            <input type="submit" value="edicion"/>
        </form>



    </body>
</html>
<?php 
$bd->close();
Пример #14
0
?>
" /><br/><br/>
           Peligro Extinción(S ó N):<input type="Text" name="PeligroExt" value="<?php 
echo $animal->getPeligroExt();
?>
" /><br/><br/>
           Edad: <input type="number" name="Edad" value="<?php 
echo $animal->getEdad();
?>
" /><br/><br/>
           Zona: <?php 
echo Util::getSelect("ZonaCode", $gestorZona->getValuesSelect());
?>
<br/><br/>
           Cuidador: <?php 
echo Util::getSelect("CuidadorCode", $gestorCuidador->getValuesSelect());
?>
<br/><br/>
           <input type="hidden" name="pkID" value="<?php 
echo $animal->getID();
?>
" /><br/><br/>

           <input type="submit" value="edicion"/>
        </form>
        <a href="index.php" class="atras">Cancelar y volver atrás</a>
        </div>
        <div id="enlacesIndex">
            <a href="index.php">Animales</a>
            <a href="../zona/index.php">Zonas</a>
            <a href="../cuidador/index.php">Cuidadores</a>
Пример #15
0
" >Actualizar</a></td>
                    </tr>
                <?php 
}
?>
            </table>
        </div>
        <form action="#" method="get" >
            <?php 
echo $page->getSelect("select", "nrpp");
?>
            </br>
            <?php 
$array = array();
for ($i = 0; $i < $page->getPaginas(); $i++) {
    $array[$i] = $i;
}
echo Util::getSelect("paginaActual", $array, $gestor->getCount());
?>
            </br>
            <input type="submit" value="Filtrar" />
        </form>
        
        <a class="volver" href="entorno.php" >
            <img alt="Foto" src="../img/return.png" />
        </a>
        <a href="phpcerrarsesion.php" class="volver" >Cerrar sesion.</a>
    </body>
</html>
<?php 
$bd->close();
Пример #16
0
            $p = $dao->findById($_REQUEST['id']);
            echo $dao->delete($_REQUEST['id']);
            //$dao->findById($_REQUEST['id'])->getLink();
            ?>
			<h4>&Eacutedition</h4>
                        <table>
                            <tr><td>
                                <img height='200' src='<?php 
            echo "./" . $p->getLink();
            ?>
' />
                                </td>
                                <td>
                                    <form action='' method="get">
                                <?php 
            echo "" . Util::getSelect($categories, $p->getCategory(), 'categoty') . "<br />" . Util::getSelect($seasons, $p->getSeason(), 'season') . "<br />" . "<input type='text' name='title' value='" . $p->getTitle() . "' /><br />" . "<textarea name='description'>" . $p->getDescription() . "</textarea><br />";
            ?>
                                    <input type='hidden' name='action' value="save" />
                                    <input type='hidden' name='what' value="photo" />
                                    <input type='hidden' name='id' value="<?php 
            echo $p->getId();
            ?>
" />
                                    <input type='submit' name='save' value="Sauvegarder" />
                                    <input type='submit' name='cancel' value="Annuler" />
                                    </form>
                                    <a href="?action=edit&what=photo&id=<?php 
            echo $p->getId();
            ?>
"><img height="30" title="editer" src="images/edit.png" /></a>
                     <a href="?action=suppHide&what=photo&id=<?php 
Пример #17
0
                <div class="row">
                    <div class="col-lg-12">
                        <div>
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    Alta Habitaciones
                                </div>
                                <!-- /.panel-heading -->
                                <div class="panel-body">
                                    <div class="dataTable_wrapper">

                                        <form class="form" action="phpalta.php" method="POST">
                                            <input class="form-group input-group" type="text" name="id" value="" placeholder="ID EJ: A000"/><br>
                                            <label for="descripion">Descripcion: </label>
                                            <?php 
echo Util::getSelect("descripcion", $parametros);
?>
<br>
                                            <input class="btn btn-info" type="submit" value="Alta Habitacion" />
                                        </form>
                                    </div>
                                    <!-- /.table-responsive -->

                                </div>
                                <!-- /.panel-body -->
                            </div>
                            <!-- /.panel -->
                        </div>
                        <!-- /.col-lg-12 -->
                    </div>
                    <!-- /.row -->
Пример #18
0
    echo "<a class='editar' href='viewedit.php?idexpo=" . $expo->getId() . "'>Editar</a>";
}
?>
  
                </ul>
            </div>
            
            <div id="lateralD">
                <h2>Edit Field</h2> 
                    <div id="contenedorform">                          
                        <form action="phpinsert.php" method="POST" enctype="multipart/form-data">
            <span class="titulo">Nombre Expo</span><input type="text" name="nombreexpo" value=""/><br/>
            <span class="titulo">Direccion</span><input type="text" name="direccion" value="" /><br/>
            <span class="titulo">Fecha</span><input type="date" name="fecha" value="" /><br/>
             <span class="titulo">Identificador</span><?php 
echo Util::getSelect("idfotografo", $gestorfotografo->getValuesSelect(), $fotografo = $gestorfotografo->get($id), false);
?>
<br/>
<!--            <span class="titulo">Identificador</span><input type="number" name="idfotografo" value="" /><br/>-->
            <span class="titulo">Cartel</span><input type="file" name="archivo" />
            <span class="titulo"></span><input type="hidden" name="pkID" value="" /><br/>
            <span class="titulo"></span><input type="submit" value="send" id="enviocambios" />
        </form> 

                </div>
            </div>  
        </div>
        <div id="footer">
            <p id="copy">Copyright INPIC 2015</p>
        </div>
Пример #19
0
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <a href="../login/administrador.php">Volver al Menú</a>
        <h3>Añadir Evento</h3>
        <form action="insertEvento.php" method="post" >
            Nombre evento<input type="text" name="nombre"/></br>
            Fecha<input type="date" name="fecha"/></br>
            Artista<?php 
echo Util::getSelect("ID_artista", $gestorArtista->getValuesSelect());
?>
<br>
                
            Lugar<?php 
echo Util::getSelect("ID_lugar", $gestorLugar->getValuesSelect());
?>
<br>
            Tipo evento<?php 
echo Util::getSelect("nombre_tipo", $gestorTipoEvento->getValuesSelect());
?>
<br>
            <input type="submit" value="edicion"/>
        </form>
        
       
        
    </body>
</html>
<?php 
$bd->close();
Пример #20
0
            <br/>
            Fecha de estreno: <input type="date" name="f_estreno" value="<?php 
echo $multimedias->getF_estreno();
?>
" />
            <br/>
            Temporadas: <input type="text" name="temporadas" value="<?php 
echo $multimedias->getTemporadas();
?>
" />
            <br/>
            Tipo de multimedia: <?php 
echo Util::getSelect("tipo", $gestorTipoMultimedia->getValuesSelect(), $multimedias->getTipo(), false);
?>
            <br/>
            Disco duro: <?php 
echo Util::getSelect("hdd", $gestorDiscoDuro->getValuesSelect(), $multimedias->getHdd(), false);
?>
            <br/>
            Imagen de portada: <input type="file" name="img_portada" value="" />
            <br/>            
            <input type="hidden" name="pkId" value="<?php 
echo $multimedias->getId();
?>
" />
            <br/>
            <input type="submit" value="Aceptar" name="aceptar" />

        </form>
    </body>
</html>