diff --git a/include/mitarbeiter.class.php b/include/mitarbeiter.class.php index 84806db92..2ebbae831 100644 --- a/include/mitarbeiter.class.php +++ b/include/mitarbeiter.class.php @@ -1059,9 +1059,11 @@ class mitarbeiter extends benutzer vorname,nachname,gebdatum,uid,personalnummer,person_id FROM campus.vw_mitarbeiter - WHERE - UPPER(SUBSTRING(nachname,1,1))=".$this->db_add_param($filter,FHC_STRING)." - AND aktiv='true'"; + WHERE + aktiv='true'"; + if($filter!='') + $qry.=" AND UPPER(SUBSTRING(nachname,1,1))=".$this->db_add_param($filter,FHC_STRING); + if($fixangestellt) $qry.=" AND fixangestellt"; else diff --git a/include/student.class.php b/include/student.class.php index 238a281e2..6c65d3e8a 100644 --- a/include/student.class.php +++ b/include/student.class.php @@ -346,9 +346,9 @@ class student extends benutzer return false; } - $qry = "SELECT * FROM tbl_student student - JOIN tbl_benutzer ON (student_uid = uid) - JOIN tbl_person USING (person_id) + $qry = "SELECT * FROM public.tbl_student + JOIN public.tbl_benutzer ON (student_uid = uid) + JOIN public.tbl_person USING (person_id) WHERE tbl_benutzer.aktiv = 'true' AND studiengang_kz =".$this->db_add_param($studiengang_kz,FHC_INTEGER); if($semester != null) @@ -692,5 +692,53 @@ class student extends benutzer } return true; } + + /** + * Laedt alle Incoming + * @return boolean + */ + public function getIncoming() + { + $qry = " + SELECT + distinct tbl_student.*, tbl_benutzer.*, tbl_person.* + FROM + public.tbl_student + JOIN public.tbl_benutzer ON (student_uid = uid) + JOIN public.tbl_person USING (person_id) + JOIN public.tbl_prestudent USING (prestudent_id) + JOIN public.tbl_prestudentstatus USING(prestudent_id) + WHERE + tbl_benutzer.aktiv AND + tbl_prestudentstatus.status_kurzbz='Incoming' + "; + + if($result = $this->db_query($qry)) + { + while($row = $this->db_fetch_object($result)) + { + $stud = new student(); + $stud->uid = $row->student_uid; + $stud->matrikelnr = $row->matrikelnr; + $stud->prestudent_id = $row->prestudent_id; + $stud->studiengang_kz = $row->studiengang_kz; + $stud->semester = $row->semester; + $stud->verband = $row->verband; + $stud->gruppe = $row->gruppe; + $stud->person_id = $row->person_id; + $stud->vorname = $row->vorname; + $stud->nachname = $row->nachname; + $stud->gebdatum = $row->gebdatum; + + $this->result[] = $stud; + } + return true; + } + else + { + $this->errormsg = "Fehler bei der Abfrage aufgetreten"; + return false; + } + } } ?> \ No newline at end of file diff --git a/system/xsl/Zutrittskarte.xsl b/system/xsl/Zutrittskarte.xsl index 66bfa55c7..b997e034e 100755 --- a/system/xsl/Zutrittskarte.xsl +++ b/system/xsl/Zutrittskarte.xsl @@ -172,7 +172,7 @@ xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:off - Matr.-Nr. + Matr.-Nr. diff --git a/vilesci/fhausweis/kartenverwaltung.php b/vilesci/fhausweis/kartenverwaltung.php index d85aa6757..e8e43df7f 100755 --- a/vilesci/fhausweis/kartenverwaltung.php +++ b/vilesci/fhausweis/kartenverwaltung.php @@ -86,7 +86,10 @@ echo ' - @@ -124,11 +128,12 @@ echo' - '; $uids.=';'.$stud->uid; } + } + else if($statusStudent == 'nichtGedruckt') + { + // akzeptiert und nicht gedruckt + $fotostatus = new fotostatus(); + $fotostatus->getLastFotoStatus($stud->person_id); + $betriebsmittel = new betriebsmittel(); + + // noch nicht gedruckt + if($betriebsmittel->zutrittskartePrinted($stud->uid) == false) + { + echo ''; + $uids.=';'.$stud->uid; + } } else { @@ -317,7 +339,7 @@ if(isset($_REQUEST['btn_submitMitarbeiter']))
Studiengang: { echo ''; } -echo' +echo' + Typ: Anfangsbuchstabe:
'.$stud->nachname.' '.$stud->vorname.''.$stud->gebdatum.''.$stud->matrikelnr.''.$stud->uid.''.$stud->person_id.'
'.$stud->nachname.' '.$stud->vorname.' ('.$fotostatus->fotostatus_kurzbz.')'.$stud->gebdatum.''.$stud->matrikelnr.''.$stud->uid.''.$stud->person_id.'
- +