Пример #1
0
 function set(Foto $foto)
 {
     $parametrosSet = array();
     $parametrosSet["idautor"] = $foto->getIdautor();
     $parametrosSet["titulo"] = $foto->getTitulo();
     $parametrosSet["categoria"] = $foto->getCategoria();
     $parametrosSet["fecha"] = $foto->getFecha();
     $parametrosSet["rutafoto"] = $foto->getRuta();
     $parametrosWhere = array();
     $parametrosWhere["id"] = $foto->getID();
     return $this->bd->update($this->tabla, $parametrosSet, $parametrosWhere);
 }
Пример #2
0
<?php

require '../clases/Autocarga.php';
$bd = new DataBase();
$sesion = new Session();
$gestor = new ManageFoto($bd);
$gestorfotografo = new ManageFotografo($bd);
$foto = new Foto();
$id = $foto->getIdautor();
$autorfoto = new Fotografo();
$page = Request::get("page");
if ($page === null || $page === "") {
    $page = 1;
}
$fotos = $gestor->getList($page);
$registros = $gestor->count();
$paginas = ceil($registros / Constants::NRPP);
$op = Request::get("op");
$r = Request::get("r");
?>

<html>
    <head>
        <meta charset="UTF-8">
        <title>InPic</title>
        <link rel="stylesheet" type="text/css" href="../css/reset.css" media="screen" />
        <link rel="stylesheet" type="text/css" href="../css/style.css" media="screen" />
    </head>
    <body>
                    <?php 
if (!$sesion->isLogged()) {