diff --git a/vilesci/stundenplan/raumauslastung.php b/vilesci/stundenplan/raumauslastung.php new file mode 100644 index 000000000..5a75f49a2 --- /dev/null +++ b/vilesci/stundenplan/raumauslastung.php @@ -0,0 +1,102 @@ +='$datum_beginn' AND datum<='$datum_ende' AND stunde>=$stunde_beginn AND stunde<=$stunde_ende + ORDER BY ort_kurzbz"; + if(! $result=pg_query($conn, $sql_query)) + die(pg_last_error($conn)); + //echo $sql_query; + //Aufbereitung + while ($row=pg_fetch_object($result)) + { + $raum[$row->ort_kurzbz]->ort=$row->ort_kurzbz; + if (!isset($raum[$row->ort_kurzbz]->last[$row->tag][$row->stunde]->anzahl)) + $raum[$row->ort_kurzbz]->last[$row->tag][$row->stunde]->anzahl=1; + else + $raum[$row->ort_kurzbz]->last[$row->tag][$row->stunde]->anzahl++; + } + +?> + + + +Profil + + + + + +
+ Beginn: + Ende: +      + Stunde -> von: + bis: + +
+

Raumauslastung vom

+ + + Ort + "; + ?> + + + $s"; + } + ?> + + '; + for ($t=1;$t<7;$t++) + for ($s=$stunde_beginn;$s<=$stunde_ende; $s++) + { + if (!isset($ort->last[$t][$s]->anzahl)) + $ort->last[$t][$s]->anzahl=0; + echo ''; + } + echo ''; + } + ?> +
MontagDienstagMittwochDonnerstagFreitagSamstag
'.$ort->ort.''; + echo $ort->last[$t][$s]->anzahl; + echo '
+ +