コード例 #1
0
if (Leer::post("token")) {
    $tipo = strtolower(Leer::post("tipo"));
    $estado = strtolower(Leer::post("estado"));
    $voa = strtolower(Leer::post("voa"));
    $orden = "precio " . Leer::post("orden");
    if ($voa != "") {
        $condicion = "tipo = '{$tipo}' AND estado= '{$estado}' AND objetivo= '{$voa}'";
        $filas = $modelo->getList($inicio, $rpp, $condicion);
    } else {
        $condicion = "tipo = '{$tipo}' AND estado= '{$estado}'";
        $filas = $modelo->getList($inicio, $rpp, $condicion);
    }
    foreach ($filas as $indice => $object) {
        $ids[] = $object->getId();
    }
    $filasfotos = $modeloFoto->getListDe($ids);
} else {
    $filas = $modelo->getList($inicio, $rpp);
    $filasfotos = $modeloFoto->getList($inicio, $rpp * 2);
}
//
$adminpanel = "<a href='adminpanel.php'>Panel</a>";
?>
<!doctype html>
<html lang="es">

    <head>
        <meta charset="UTF-8">
        <title>Inmocasa-Busqueda</title>
        <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="css/terceros/slimbox.css" type="text/css" media="screen" />