Uname: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
Software: Apache
PHP version: 5.6.40 [ PHP INFO ] PHP os: Linux
Server Ip: 217.160.0.194
Your Ip: 216.73.216.55
User: u72294154 (9179942) | Group: ftpusers (600)
Safe Mode: OFF
Disable Function:
NONE

name : home.ctp
<ol class="breadcrumb">
    <li class="active">Inmuebles</li>
</ol>

<?php echo $this->Alertas->getAlertas($errores, $btnClose, $this->Session->flash('flash')) ?>

<section class="panel">
    <header class="panel-heading">
        Gráficos
    </header>

    <div class="panel-body">
        <?php 
        $length = $listadoGestionPer[0][0]['total'];
        ?>
        <h3>Gestiones (<?php echo $length; ?>)</h3>
        <?php
        foreach ($listadoGestion as $l) {

            echo $l['inmuebles_gestiones']['nombre'];
            echo " (" . $l[0]['total'] . " búsqueda/s)";
            ?>
            <div class="progress">
              <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="<?php echo $l[0]['total'] / $listadoGestionPer[0][0]['total'] * 100; ?>"
                  aria-valuemin="0" aria-valuemax="100" style="width:<?php echo $l[0]['total'] / $listadoGestionPer[0][0]['total'] * 100; ?>%">
                  <?php echo $l[0]['total'] / $listadoGestionPer[0][0]['total'] * 100; ?> %
              </div>
          </div>
          <?php
      }
      ?>
      <?php 
      $length = $listadoTipoPer[0][0]['total'];
      ?>
    <h3>Tipo (<?php echo $length; ?>)</h3>
      <?php
      foreach ($listadoTipo as $l) {
        echo $l['inmuebles_tipos']['nombre'];
        echo " (" . $l[0]['total'] . " búsqueda/s)";
        ?>
        <div class="progress">
              <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="<?php echo $l[0]['total'] / $listadoTipoPer[0][0]['total'] * 100; ?>"
                  aria-valuemin="0" aria-valuemax="100" style="width:<?php echo $l[0]['total'] / $listadoTipoPer[0][0]['total'] * 100; ?>%">
                  <?php echo $l[0]['total'] / $listadoTipoPer[0][0]['total'] * 100; ?> %
              </div>
          </div>
      <?php
  }
  ?>
  <?php 
  $length = $listadoAreaPer[0][0]['total'];
  ?>
    <h3>Área (<?php echo $length; ?>)</h3>
  <?php
  foreach ($listadoArea as $l) {
    echo $l['areas']['nombre'];
    echo " (" . $l[0]['total'] . " búsqueda/s)";
    ?>
    <div class="progress">
              <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="<?php echo $l[0]['total'] / $listadoAreaPer[0][0]['total'] * 100; ?>"
                  aria-valuemin="0" aria-valuemax="100" style="width:<?php echo $l[0]['total'] / $listadoAreaPer[0][0]['total'] * 100; ?>%">
                  <?php echo $l[0]['total'] / $listadoAreaPer[0][0]['total'] * 100; ?> %
              </div>
          </div>
  <?php
}

$length = $listadoPrecioPer[0][0]['total'];
?>
<h3>Precios (<?php echo $length; ?>)</h3>
<?php 
foreach ($listadoPrecio as $l) {
    echo "Hasta " . $l['InmuebleEstadistica']['precio'] . "€ ";
    echo " (" . $l[0]['total'] . " búsqueda/s)";
    ?>
    <div class="progress">
              <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="<?php echo $l[0]['total'] / $listadoPrecioPer[0][0]['total'] * 100; ?>"
                  aria-valuemin="0" aria-valuemax="100" style="width:<?php echo $l[0]['total'] / $listadoPrecioPer[0][0]['total'] * 100; ?>%">
                  <?php echo $l[0]['total'] / $listadoPrecioPer[0][0]['total'] * 100; ?> %
              </div>
          </div>
<?php
}
?>
</div>
</section>
© 2026 GrazzMean