"inofficial" grades like "entschuldigt", "unentschuldigt" are now not shown on official documents (Studienerfolgsbestätigung, Zeugnis, Diplomasupplement, Lehrveranstaltungszeugnis, Zertifikat)

This commit is contained in:
alex
2017-12-05 10:07:19 +01:00
parent 3f144dd290
commit 7344ec63ce
8 changed files with 77 additions and 27 deletions
+22 -9
View File
@@ -132,7 +132,7 @@ class note extends basis_db
$this->db_add_param($this->anmerkung).', '.
$this->db_add_param($this->positiv, FHC_BOOLEAN).','.
$this->db_add_param($this->notenwert).','.
$this->db_add_parma($this->aktiv, FHC_BOOLEAN).','.
$this->db_add_param($this->aktiv, FHC_BOOLEAN).','.
$this->db_add_param($this->lehre, FHC_BOOLEAN).');';
}
else
@@ -158,15 +158,21 @@ class note extends basis_db
return false;
}
}
/**
* Laedt alle Noten
* Laedt alle Noten, inklusive inaktiven Noten
* @param null $offiziell wenn true, werden nur Noten, die auf offiziellen Dokumenten gedruckt weden können, geladen
* @return true wenn ok, false wenn Fehler
*/
public function getAll()
*/
public function getAll($offiziell = null)
{
$qry = "SELECT * FROM lehre.tbl_note ORDER BY note";
$qry = "SELECT * FROM lehre.tbl_note";
if(is_bool($offiziell))
$qry .= " WHERE offiziell = ".$this->db_add_param($offiziell, FHC_BOOLEAN);
$qry .= " ORDER BY note";
if($this->db_query($qry))
{
while($row = $this->db_fetch_object())
@@ -195,11 +201,18 @@ class note extends basis_db
/**
* Laedt alle aktive Noten
* @param null $offiziell wenn true, werden nur Noten, die auf offiziellen Dokumenten gedruckt weden können, geladen
* @return true wenn ok, false wenn Fehler
*/
public function getActive()
public function getActive($offiziell = null)
{
$qry = "SELECT * FROM lehre.tbl_note WHERE aktiv = TRUE ORDER BY note";
$qry = "SELECT * FROM lehre.tbl_note WHERE aktiv = TRUE";
if(is_bool($offiziell))
$qry .= " AND offiziell = ".$this->db_add_param($offiziell, FHC_BOOLEAN);
$qry .= " ORDER BY note";
if($this->db_query($qry))
{