- LV-Verteilung - neue DB
- LF-Wartung - neue DB
This commit is contained in:
Andreas Österreicher
2007-01-31 16:10:35 +00:00
parent 8b8325e73b
commit fe9a14082e
6 changed files with 724 additions and 620 deletions
+28 -2
View File
@@ -73,8 +73,8 @@ class lehrform
if($row = pg_fetch_object($result))
{
$this->lehrform_kurbz = $row->lehrform_kurzbz;
$this->bezeichnung = $row->bezeichung;
$this->lehrform_kurzbz = $row->lehrform_kurzbz;
$this->bezeichnung = $row->bezeichnung;
$this->verplanen = ($row->verplanen?true:false);
}
else
@@ -87,6 +87,32 @@ class lehrform
}
// ***************************
// * Liefert alle Lehrformen
// ***************************
function getAll()
{
$qry = "SELECT * FROM lehre.tbl_lehrform ORDER BY lehrform_kurzbz";
if(!$result=pg_query($this->conn,$qry))
{
$this->errormsg = 'Fehler beim lesen der Lehrform';
return false;
}
while($row = pg_fetch_object($result))
{
$lf = new lehrform($this->conn);
$lf->lehrform_kurzbz = $row->lehrform_kurzbz;
$lf->bezeichnung = $row->bezeichnung;
$lf->verplanen = ($row->verplanen?true:false);
$this->lehrform[] = $lf;
}
return true;
}
// *******************************************
// * Prueft die Variablen vor dem Speichern
// * auf Gueltigkeit.