diff --git a/cis/private/info/partnerhochschulen.php b/cis/private/info/partnerhochschulen.php index 6489599a3..7091136eb 100644 --- a/cis/private/info/partnerhochschulen.php +++ b/cis/private/info/partnerhochschulen.php @@ -131,12 +131,16 @@ if ($firma->result) foreach($firma->result as $row) { - echo ''; - echo '',$row->name,''; - /*echo ''.($row->content_id!=''?''.$row->bezeichnung.'':$row->bezeichnung).''; - echo '',$row->beschreibung,''; - echo ''.($row->content_id!=''?'Details':'').'';*/ - echo ''; + // Nur aktive Partnerunis anzeigen + if ($row->aktiv) + { + echo ''; + echo '',$row->name,''; + /*echo ''.($row->content_id!=''?''.$row->bezeichnung.'':$row->bezeichnung).''; + echo '',$row->beschreibung,''; + echo ''.($row->content_id!=''?'Details':'').'';*/ + echo ''; + } } } else diff --git a/cis/public/incoming/incoming.php b/cis/public/incoming/incoming.php index a51c58b6d..77c83c5d6 100644 --- a/cis/public/incoming/incoming.php +++ b/cis/public/incoming/incoming.php @@ -89,8 +89,24 @@ $kontakt->load_pers($preincoming->person_id); $db = new basis_db(); +$stsemAktOrNext = new studiensemester(); +if(isset($_GET['filter'])) +{ + if($_GET['filter'] == 'WSemester') + $stsemAktOrNext = $stsemAktOrNext->getaktorNext(1); + elseif($_GET['filter']=='SSemester') + $stsemAktOrNext = $stsemAktOrNext->getaktorNext(2); + else + $stsemAktOrNext = $stsemAktOrNext->getaktorNext(); +} +else +{ + $stsemAktOrNext = $stsemAktOrNext->getaktorNext(); +} + $stsem = new studiensemester(); -$stsem->getNextStudiensemester(); +$stsem->load($stsemAktOrNext); + $stg = new studiengang(); $stg->getAll(); @@ -841,7 +857,7 @@ else if($method=="lehrveranstaltungen") $studiensemester->getFutureStudiensemester('',2); foreach ($studiensemester->studiensemester AS $row) $studiensemester_array[] = $row->studiensemester_kurzbz; - + if(isset($_GET['go'])) { $qry = "SELECT @@ -904,7 +920,8 @@ else if($method=="lehrveranstaltungen") JOIN lehre.tbl_studienplan_semester USING (studienplan_id) WHERE tbl_studienordnung.status_kurzbz='approved' AND tbl_lehrveranstaltung.lehrveranstaltung_id=tbl_studienplan_lehrveranstaltung.lehrveranstaltung_id - AND tbl_studienplan_semester.studiensemester_kurzbz IN ('".implode("','", $studiensemester_array)."')) + AND tbl_studienplan_semester.studiensemester_kurzbz IN ('".$stsem->studiensemester_kurzbz."') + AND tbl_lehrveranstaltung.semester=tbl_studienplan_semester.semester) AND ((tbl_lehrveranstaltung.studiengang_kz>0 AND tbl_lehrveranstaltung.studiengang_kz<10000) OR tbl_lehrveranstaltung.studiengang_kz=10006)"; if (isset($_GET['studiengang']) && $_GET['studiengang'] !='') @@ -912,12 +929,13 @@ else if($method=="lehrveranstaltungen") $qry .= " AND tbl_studiengang.aktiv ".$filterqry." order by studiengang_kz "; - + if($result = $db->db_query($qry)) { if ($db->db_affected_rows($result)>0) { echo '
'.$message.'
'; + echo '

'.$stsem->studiensemester_kurzbz.'

'; echo '

'.$p->t('incoming/tabelleSortierinformation').'

'; echo ' diff --git a/include/kontakt.class.php b/include/kontakt.class.php index f7df1d755..5e9d907d3 100644 --- a/include/kontakt.class.php +++ b/include/kontakt.class.php @@ -270,7 +270,7 @@ class kontakt extends basis_db * @param kontakttyp * @return boolean */ - public function load_persKontakttyp($person_id, $kontakttyp) + public function load_persKontakttyp($person_id, $kontakttyp, $order = null) { if(!is_numeric($person_id)) { @@ -280,7 +280,10 @@ class kontakt extends basis_db $qry = "SELECT tbl_kontakt.*, tbl_firma.name as firma_name, tbl_firma.firma_id FROM public.tbl_kontakt LEFT JOIN public.tbl_standort USING(standort_id) LEFT JOIN public.tbl_firma USING(firma_id) WHERE person_id=".$this->db_add_param($person_id, FHC_INTEGER)." - AND kontakttyp =".$this->db_add_param($kontakttyp, FHC_STRING); + AND kontakttyp =".$this->db_add_param($kontakttyp, FHC_STRING); + + if ($order != null) + $qry .= " ORDER BY ".$order; if($this->db_query($qry)) { diff --git a/include/notiz.class.php b/include/notiz.class.php old mode 100644 new mode 100755 index d68e3f254..08ba10e41 --- a/include/notiz.class.php +++ b/include/notiz.class.php @@ -49,7 +49,7 @@ class notiz extends basis_db public $bestellung_id; public $lehreinheit_id; public $anrechnung_id; - + /** * Konstruktor * @param $notiz_id @@ -94,7 +94,7 @@ class notiz extends basis_db $this->updateamum=$row->updateamum; $this->updatevon=$row->updatevon; $this->getDokumente($row->notiz_id); - + return true; } else @@ -109,7 +109,7 @@ class notiz extends basis_db return false; } } - + /** * Löscht eine Notiz * @param $notiz_id @@ -122,13 +122,13 @@ class notiz extends basis_db $this->errormsg = 'NotizID ist ungueltig'; return false; } - + // Dokumente der Notiz löschen $this->getDokumente($notiz_id); if(!empty($this->dokumente)) { $dms = new dms(); - + foreach($this->dokumente as $dms_id) { $dms->deleteDms($dms_id); @@ -142,8 +142,8 @@ class notiz extends basis_db $this->errormsg = 'Fehler beim Loeschen der Daten'; return false; } - return true; - } + return true; + } /** * Prueft die Daten vor dem Speichern @@ -152,7 +152,7 @@ class notiz extends basis_db public function validate() { return true; - } + } /** * Speichert den aktuellen Datensatz in die Datenbank @@ -239,11 +239,11 @@ class notiz extends basis_db /** * Speichert die Zuordnung einer Notiz - * + * */ public function saveZuordnung() { - $qry = "INSERT INTO public.tbl_notizzuordnung(notiz_id, projekt_kurzbz, projektphase_id, projekttask_id, + $qry = "INSERT INTO public.tbl_notizzuordnung(notiz_id, projekt_kurzbz, projektphase_id, projekttask_id, uid, person_id, prestudent_id, bestellung_id, lehreinheit_id, anrechnung_id) VALUES(". $this->db_add_param($this->notiz_id, FHC_INTEGER).','. $this->db_add_param($this->projekt_kurzbz).','. @@ -255,7 +255,7 @@ class notiz extends basis_db $this->db_add_param($this->bestellung_id, FHC_INTEGER).','. $this->db_add_param($this->lehreinheit_id, FHC_INTEGER).','. $this->db_add_param($this->anrechnung_id, FHC_INTEGER).');'; - + if($this->db_query($qry)) { return true; @@ -266,18 +266,18 @@ class notiz extends basis_db return false; } } - + /** * Speichert ein Dokument zur Notiz * @param int $dms_id * @return boolean */ - public function saveDokument($dms_id) + public function saveDokument($dms_id) { $qry = "INSERT INTO public.tbl_notiz_dokument(notiz_id, dms_id) VALUES(". $this->db_add_param($this->notiz_id, FHC_INTEGER).','. $this->db_add_param($dms_id, FHC_INTEGER).');'; - + if($this->db_query($qry)) { return true; @@ -290,7 +290,7 @@ class notiz extends basis_db } /** - * + * * Laedt die Notizen * @param $erledigt * @param $projekt_kurzbz @@ -320,13 +320,13 @@ class notiz extends basis_db $anrechnung_id=null, $titel=null) { - $qry = "SELECT - * - FROM - public.tbl_notiz + $qry = "SELECT + * + FROM + public.tbl_notiz LEFT JOIN public.tbl_notizzuordnung USING(notiz_id) WHERE 1=1"; - + if(!is_null($erledigt)) { if($erledigt) @@ -358,13 +358,13 @@ class notiz extends basis_db $qry.=" AND titel=".$this->db_add_param($titel); $qry.=' ORDER BY start, ende, titel'; - + if($result = $this->db_query($qry)) { while($row = $this->db_fetch_object($result)) { $obj = new notiz(); - + $obj->notiz_id=$row->notiz_id; $obj->titel=$row->titel; $obj->text=$row->text; @@ -378,7 +378,7 @@ class notiz extends basis_db $obj->updateamum=$row->updateamum; $obj->updatevon=$row->updatevon; $obj->getDokumente($row->notiz_id); - + $this->result[] = $obj; } return true; @@ -405,7 +405,7 @@ class notiz extends basis_db LEFT JOIN public.tbl_notizzuordnung USING(notiz_id) WHERE person_id = ' . $this->db_add_param($person_id, FHC_INTEGER) . ' AND (insertvon = ' . $this->db_add_param('online') .' OR insertvon = ' . $this->db_add_param('online_notiz').') - + ORDER BY notiz_id'; if($result = $this->db_query($qry)) @@ -438,9 +438,63 @@ class notiz extends basis_db } } + + /** + * TEMPORARY: kurzfristig wird für das Onlinebewerbungstool die Ausbildung + * (Name und Adresse der besuchten Schule) in eine Notiz mit + * insertvon = online_ausbildung gespeichert. + * Wird auf UDF umgebaut! + * + * Laedt die Notizen zur Ausbilund vom Bewerbungstool + * @param $person_id int + * @return boolean + */ + public function getBewerbungstoolNotizenAusbildung($person_id) + { + $qry = 'SELECT + * + FROM + public.tbl_notiz + LEFT JOIN public.tbl_notizzuordnung USING(notiz_id) + WHERE person_id = ' . $this->db_add_param($person_id, FHC_INTEGER) . + ' AND insertvon = ' . $this->db_add_param('online_ausbildung') . + ' ORDER BY notiz_id'; + + if($result = $this->db_query($qry)) + { + while($row = $this->db_fetch_object($result)) + { + $obj = new notiz(); + + $obj->notiz_id=$row->notiz_id; + $obj->titel=$row->titel; + $obj->text=$row->text; + $obj->verfasser_uid=$row->verfasser_uid; + $obj->bearbeiter_uid=$row->bearbeiter_uid; + $obj->start=$row->start; + $obj->ende=$row->ende; + $obj->erledigt=$this->db_parse_bool($row->erledigt); + $obj->insertamum=$row->insertamum; + $obj->insertvon=$row->insertvon; + $obj->updateamum=$row->updateamum; + $obj->updatevon=$row->updatevon; + + $this->result[] = $obj; + } + return true; + } + else + { + $this->errormsg = 'Fehler beim Laden der Daten'; + return false; + } + } + + + /** - * + * * Laedt die Notizen * @param $erledigt @@ -458,13 +512,13 @@ class notiz extends basis_db */ public function getAnzahlNotizen($erledigt=null, $projekt_kurzbz=null, $projektphase_id=null, $projekttask_id=null, $uid=null, $person_id=null, $prestudent_id=null, $bestellung_id=null, $user=null, $lehreinheit_id=null, $anrechnung_id=null) { - $qry = "SELECT + $qry = "SELECT count(*) as anzahl - FROM - public.tbl_notiz + FROM + public.tbl_notiz LEFT JOIN public.tbl_notizzuordnung USING(notiz_id) WHERE 1=1"; - + if(!is_null($erledigt)) { if($erledigt) @@ -492,7 +546,7 @@ class notiz extends basis_db $qry.=" AND lehreinheit_id=".$this->db_add_param($lehreinheit_id, FHC_INTEGER); if($anrechnung_id!='') $qry.=" AND anrechnung_id=".$this->db_add_param($anrechnung_id, FHC_INTEGER); - + if($result = $this->db_query($qry)) { if($row = $this->db_fetch_object($result)) @@ -509,12 +563,12 @@ class notiz extends basis_db return false; } } - + /** * Laedt die Dokumente der Notiz * @return boolean */ - public function getDokumente($notiz_id) + public function getDokumente($notiz_id) { $qry = "SELECT dms_id FROM public.tbl_notiz_dokument WHERE notiz_id=".$this->db_add_param($notiz_id, FHC_INTEGER); @@ -524,7 +578,7 @@ class notiz extends basis_db { $this->dokumente[] = $row->dms_id; } - + return true; } else diff --git a/include/reihungstest.class.php b/include/reihungstest.class.php index 36fe00886..43e92ab45 100644 --- a/include/reihungstest.class.php +++ b/include/reihungstest.class.php @@ -1166,4 +1166,71 @@ class reihungstest extends basis_db return false; } } + + /** + * Liefert die Raeume mit den Aufsichtspersonen (uid aus tbl_rt_ort), die den Kriterien $uid entsprechen + * @param string|array $uid Optional. Default NULL. UID oder array von UIDs deren Aufsichtszuteilungen geladen werden sollen + * @param integer $studiengang_kz Optional. Default NULL. Kennzahl des Studiengangs, auf den gefiltert werden soll + * @return true + */ + public function getOrteByUid($uid = null, $studiengang_kz = null) + { + if ($uid != null && is_array($uid)) + $uid = $this->db_implode4SQL($include_ids); + elseif ($uid != null) + $uid = $this->db_add_param($uid); + + $qry = " + SELECT + tbl_rt_ort.ort_kurzbz AS ort, * + FROM + public.tbl_rt_ort + JOIN + public.tbl_reihungstest ON (rt_id = tbl_reihungstest.reihungstest_id) + WHERE + datum>=now()"; + if ($uid != null) + $qry .= " AND uid IN (".$uid.")"; + + + if ($studiengang_kz != null) + $qry .= " AND studiengang_kz = ".$this->db_add_param($studiengang_kz); + + if ($result = $this->db_query($qry)) + { + while ($row = $this->db_fetch_object($result)) + { + $obj = new stdClass(); + + $obj->reihungstest_id = $row->rt_id; + $obj->ort_kurzbz = $row->ort; + $obj->uid = $row->uid; + + $obj->studiengang_kz = $row->studiengang_kz; + $obj->anmerkung = $row->anmerkung; + $obj->datum = $row->datum; + $obj->uhrzeit = $row->uhrzeit; + $obj->ext_id = $row->ext_id; + $obj->insertamum = $row->insertamum; + $obj->insertvon = $row->insertvon; + $obj->updateamum = $row->updateamum; + $obj->updatevon = $row->updatevon; + $obj->max_teilnehmer = $row->max_teilnehmer; + $obj->oeffentlich = $this->db_parse_bool($row->oeffentlich); + $obj->freigeschaltet = $this->db_parse_bool($row->freigeschaltet); + $obj->studiensemester_kurzbz = $row->studiensemester_kurzbz; + $obj->stufe = $row->stufe; + $obj->anmeldefrist = $row->anmeldefrist; + $obj->aufnahmegruppe_kurzbz = $row->aufnahmegruppe_kurzbz; + + $this->result[] = $obj; + } + return true; + } + else + { + $this->errormsg = 'Fehler beim Laden der Daten'; + return false; + } + } } diff --git a/system/xsl/ZeugnisEngNeu_0.xsl b/system/xsl/ZeugnisEngNeu_0.xsl index 361fc76ee..b0e620da3 100644 --- a/system/xsl/ZeugnisEngNeu_0.xsl +++ b/system/xsl/ZeugnisEngNeu_0.xsl @@ -504,7 +504,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn - Grades:Passed with highest distinction, Passed with distinction, Passed + Grades:Passed with distinction, Passed with merit, Passed diff --git a/system/xsl/ZeugnisEngNeu_Lehrgaenge.xsl b/system/xsl/ZeugnisEngNeu_Lehrgaenge.xsl index 3240ac416..cf53e3d79 100644 --- a/system/xsl/ZeugnisEngNeu_Lehrgaenge.xsl +++ b/system/xsl/ZeugnisEngNeu_Lehrgaenge.xsl @@ -492,7 +492,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn - Grades:Passed with highest distinction, Passed with distinction, Passed + Grades:Passed with distinction, Passed with merit, Passed diff --git a/system/xsl/ZeugnisEng_0.xsl b/system/xsl/ZeugnisEng_0.xsl index 65f73cd91..b0e620da3 100644 --- a/system/xsl/ZeugnisEng_0.xsl +++ b/system/xsl/ZeugnisEng_0.xsl @@ -37,12 +37,12 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn - + - + @@ -143,7 +143,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn - + @@ -248,7 +248,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn - + @@ -290,6 +290,14 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn + + + + + + + + @@ -330,10 +338,10 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn - - + @@ -415,15 +423,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn Degree Program - - - - - - - - - + @@ -432,8 +432,6 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn - - First Name/Last Name: @@ -448,13 +446,13 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn Course - Grade1 + SP/W1 - SP/W2 + ECTS - ECTS + Grade2 @@ -466,19 +464,19 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn - - - + - + - - ¹ Grades:excellent (1), very good (2), good (3), satisfactory (4), fail (5), not graded (nb), Credit based on previous experience/work (ar), + ¹ 1 Semester period per week = 45 minutes + ² Grades:excellent (1), very good (2), good (3), satisfactory (4), fail (5), not graded (nb), Credit based on previous experience/work (ar), Participated with success (met), passed (b), successfully completed (ea), not successfully completed (nea), did not participate (nt), participated(tg) - ² 1 Semester period per week = 45 minutes @@ -506,7 +504,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn - Grades:Passed with highest distinction, Passed with distinction, Passed + Grades:Passed with distinction, Passed with merit, Passed @@ -517,7 +515,7 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn International Semester Abroad: -, at , - All credits earned during the International Semester Abroad (ISA) are fully credited for the + All credits earned during the International Semester Abroad (ISA) are fully credited for the @@ -551,21 +549,13 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn - + - - + - - - - - - - - - - @@ -573,12 +563,20 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn + + + + - + + + + - + @@ -647,23 +645,23 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn - + - - - + - + - + + + diff --git a/system/xsl/Zutrittskarte_Spezialfaelle.xsl b/system/xsl/Zutrittskarte_Spezialfaelle.xsl new file mode 100644 index 000000000..398decb72 --- /dev/null +++ b/system/xsl/Zutrittskarte_Spezialfaelle.xsl @@ -0,0 +1,175 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + + + + Pers.-Nr. + + + + + + + Ausgestellt am + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + + + + + + + + + + + + + + + + diff --git a/system/xsl/lehrauftrag_style_Lehrgaenge.xsl b/system/xsl/lehrauftrag_style_Lehrgaenge.xsl index 03dc305e3..2b9bbef68 100644 --- a/system/xsl/lehrauftrag_style_Lehrgaenge.xsl +++ b/system/xsl/lehrauftrag_style_Lehrgaenge.xsl @@ -548,7 +548,7 @@ xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" Technikum Wien GmbH - + Höchstädtplatz 6 diff --git a/system/xsl/zahlung_gmbh.xsl b/system/xsl/zahlung_gmbh.xsl new file mode 100644 index 000000000..ffb3f57a7 --- /dev/null +++ b/system/xsl/zahlung_gmbh.xsl @@ -0,0 +1,314 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Höchstädtplatz 6 + 1200 Wien + + Datum: + + www.technikum-wien.at + DVR 4012747 + + + + + + Auszahlungsbestätigung + + + Zahlungsbestätigung + + + + + + + + Wir bestätigen hiermit, dass + + + + + + + Herr + + + Frau + + + Herr/Frau + + + + + geboren am + Personenkennzeichen + + + + Sozialversicherungsnummer + + + Ersatzkennzeichen + + + Keine Sozialversicherungsnummer oder Ersatzkennzeichen vorhanden + + + + + + + + für den Besuch des Lehrgangs zur Weiterbildung nach §9 FHStG idgF. + + + + + + + + + folgende Zahlung getätigt hat: + + + bestätigt hiermit, dass die Lehrgangsleitung folgende Auszahlung(en) getätigt hat: + + + + + + + + + + + + + Datum + + + Nummer + + + Buchungstyp + + + Buchungstext + + + Betrag in EUR + + + + + + + + + + + + + Gilt auch ohne Unterschrift und Stempel + + + + + + + Unterschrift + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/system/xsl/zahlung_style_0.xsl b/system/xsl/zahlung_style_0.xsl new file mode 100644 index 000000000..15f7a7a26 --- /dev/null +++ b/system/xsl/zahlung_style_0.xsl @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/system/xsl/zahlung_style_gmbh.xsl b/system/xsl/zahlung_style_gmbh.xsl new file mode 100644 index 000000000..633bc0639 --- /dev/null +++ b/system/xsl/zahlung_style_gmbh.xsl @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/vilesci/stammdaten/reihungstestverwaltung.php b/vilesci/stammdaten/reihungstestverwaltung.php index 15ab2d360..ee03453f7 100644 --- a/vilesci/stammdaten/reihungstestverwaltung.php +++ b/vilesci/stammdaten/reihungstestverwaltung.php @@ -602,25 +602,28 @@ if(isset($_GET['excel'])) else if ( == 'true' && document.getElementById('clm_absolviert').className == 'inactive' && document.getElementById('clm_ergebnis').className == 'inactive') window.location.href = ""; }); - - if (typeof(Storage) !== 'undefined') + if (window.localStorage && window.localStorage !== 'undefined') { - var arr = ['clm_prestudent_id','clm_person_id','clm_geschlecht','clm_studiengang','clm_studienplan','clm_orgform','clm_einstiegssemester','clm_geburtsdatum','clm_email','clm_absolviert','clm_ergebnis','clm_fas']; - for (var i of arr) + if (typeof(Storage) !== 'undefined') { - if (localStorage.getItem(i) != null) + var arr = ['clm_prestudent_id','clm_person_id','clm_geschlecht','clm_studiengang','clm_studienplan','clm_orgform','clm_einstiegssemester','clm_geburtsdatum','clm_email','clm_absolviert','clm_ergebnis','clm_fas']; + for (var i in arr) { - $('.'+i).css('display', localStorage.getItem(i)); - if (localStorage.getItem(i) == 'none') - document.getElementById(i).className = 'inactive'; - else - document.getElementById(i).className = 'active'; + i = arr[i]; + if (localStorage.getItem(i) != null) + { + $('.'+i).css('display', localStorage.getItem(i)); + if (localStorage.getItem(i) == 'none') + document.getElementById(i).className = 'inactive'; + else + document.getElementById(i).className = 'active'; + } } } - } - else - { - alert('Local Storage nicht unterstuetzt'); + else + { + alert('Local Storage nicht unterstuetzt'); + } } $(".tablesorter").each(function(i,v) @@ -664,23 +667,26 @@ if(isset($_GET['excel'])) function hideColumn(column) { - if ($('.'+column).css('display') == 'table-cell') + if (window.localStorage) { - $('.'+column).css('display', 'none'); - localStorage.setItem(column, 'none'); - if (localStorage.getItem(column) == 'none') - document.getElementById(column).className = 'inactive'; + if ($('.'+column).css('display') == 'table-cell') + { + $('.'+column).css('display', 'none'); + localStorage.setItem(column, 'none'); + if (localStorage.getItem(column) == 'none') + document.getElementById(column).className = 'inactive'; + else + document.getElementById(column).className = 'active'; + } else - document.getElementById(column).className = 'active'; - } - else - { - $('.'+column).css('display', 'table-cell'); - localStorage.setItem(column, 'table-cell'); - if (localStorage.getItem(column) == 'none') - document.getElementById(column).className = 'inactive'; - else - document.getElementById(column).className = 'active'; + { + $('.'+column).css('display', 'table-cell'); + localStorage.setItem(column, 'table-cell'); + if (localStorage.getItem(column) == 'none') + document.getElementById(column).className = 'inactive'; + else + document.getElementById(column).className = 'active'; + } } }