예제 #1
0
 function stat_sanierung($objekt_id = null, $monate = null, $w = 300, $h = 500)
 {
     if ($objekt_id == null) {
         fehlermeldung_ausgeben("Objekt wählen");
     } else {
         $li = new listen();
         $f = new formular();
         $oo = new objekt();
         $oo->get_objekt_infos($objekt_id);
         $f->fieldset("LEERSTANDSüBERSICHT {$oo->objekt_kurzname}", 'vue');
         echo "<section id=\"examples\" class=\"examples-section\">";
         echo "<div class=\"container\">";
         echo "<div class=\"image-row\">";
         echo "<div class=\"image-set\">";
         $datum_heute = date("Y-m-d");
         $mi = new miete();
         $datum_bis = $mi->tage_plus($datum_heute, $monate * 31);
         $monat_array = $li->monats_array($datum_heute, $datum_bis);
         // print_r($monat_array);
         // echo "<center>";
         for ($a = 0; $a < $monate; $a++) {
             $monat = $monat_array[$a]['MONAT'];
             $jahr = $monat_array[$a]['JAHR'];
             $ima = $this->get_png($objekt_id, $monat, $jahr, $w, $h);
             $ima1 = $this->get_png($objekt_id, $monat, $jahr, 800, 600);
             /*
              * echo "<img src=\"$ima\"></img>";
              * echo "<img src=\"$ima1\"></img>";
              */
             echo "<a class=\"example-image-link\" href=\"{$ima1}\" data-lightbox=\"example-set{$objekt_id}\">";
             echo "<img class=\"example-image\" src=\"{$ima1}\" alt=\"Wohnungsbild {$a}\"></a>";
         }
         // echo "</center>";
         echo "</div>";
         echo "</div>";
         echo "</div>";
         echo "</section>";
         $f->fieldset_ende();
         /*
          * $ima = $this->get_png(1,11,2015);
          * echo "<img src=\"$ima\"></img>";
          * $ima = $this->get_png(1,12,2015);
          * echo "<img src=\"$ima\"></img>";
          * $ima = $this->get_png(1,01,2016);
          * echo "<img src=\"$ima\"></img>";
          */
     }
 }