From 31a9db41e2158ac8d223e7b0900173f5d99f7bc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Mon, 20 Oct 2008 11:43:32 +0000 Subject: [PATCH] --- .../lehre/benotungstool/studentenansicht.php | 2 +- .../studentenpunkteverwalten.php | 2 +- include/preinteressent.class.php | 18 +++++++++---- vilesci/personen/preinteressent_detail.php | 25 ++++++++++++++++--- .../personen/preinteressent_uebersicht.php | 10 +++++++- 5 files changed, 46 insertions(+), 11 deletions(-) diff --git a/cis/private/lehre/benotungstool/studentenansicht.php b/cis/private/lehre/benotungstool/studentenansicht.php index 0392bc8eb..361ec8ddb 100644 --- a/cis/private/lehre/benotungstool/studentenansicht.php +++ b/cis/private/lehre/benotungstool/studentenansicht.php @@ -799,7 +799,7 @@ if (!isset($_GET["notenuebersicht"]))

- + diff --git a/cis/private/lehre/benotungstool/studentenpunkteverwalten.php b/cis/private/lehre/benotungstool/studentenpunkteverwalten.php index 02c055a22..9ef2d2e8f 100644 --- a/cis/private/lehre/benotungstool/studentenpunkteverwalten.php +++ b/cis/private/lehre/benotungstool/studentenpunkteverwalten.php @@ -732,7 +732,7 @@ if(isset($_GET['uid']) && $_GET['uid']!='')

Alle Kreuzerllisten bisher:Alle Kreuzerllisten dieser Übung:
Punkte insgesamt möglich:
- + diff --git a/include/preinteressent.class.php b/include/preinteressent.class.php index 6681f7941..a6ccf9b80 100644 --- a/include/preinteressent.class.php +++ b/include/preinteressent.class.php @@ -43,6 +43,7 @@ class preinteressent var $updatevon; // varchar(16) var $maturajahr; // numeric(4,0) var $infozusendung; // date + var $kontaktmedium_kurzbz; // varchar(32) var $studiengang_kz; var $prioritaet; // smallint @@ -111,6 +112,7 @@ class preinteressent $this->updatevon = $row->updatevon; $this->insertamum = $row->insertamum; $this->insertvon = $row->insertvon; + $this->kontaktmedium_kurzbz = $row->kontaktmedium_kurzbz; return true; } else @@ -151,7 +153,7 @@ class preinteressent { $undo.=" INSERT INTO public.tbl_preinteressent(preinteressent_id, person_id, studiensemester_kurzbz, aufmerksamdurch_kurzbz, firma_id, erfassungsdatum, einverstaendnis, absagedatum, anmerkung, - insertamum, insertvon, updateamum, updatevon, maturajahr, infozusendung) VALUES (". + insertamum, insertvon, updateamum, updatevon, maturajahr, infozusendung, kontaktmedium_kurzbz) VALUES (". $this->addslashes($row->preinteressent_id).', '. $this->addslashes($row->person_id).', '. $this->addslashes($row->studiensemester_kurzbz).', '. @@ -166,7 +168,8 @@ class preinteressent $this->addslashes($row->updateamum).', '. $this->addslashes($row->updatevon).', '. $this->addslashes($row->maturajahr).', '. - $this->addslashes($row->infozusendung).');'; + $this->addslashes($row->infozusendung).', '. + $this->addslashes($row->kontaktmedium_kurzbz).');'; } } else @@ -297,7 +300,7 @@ class preinteressent //Neuen Datensatz anlegen $qry = "BEGIN;INSERT INTO public.tbl_preinteressent (studiensemester_kurzbz, aufmerksamdurch_kurzbz, firma_id, anmerkung, erfassungsdatum, einverstaendnis, absagedatum, - maturajahr, infozusendung, person_id, updateamum, updatevon, insertamum, insertvon) VALUES (". + maturajahr, infozusendung, person_id, updateamum, updatevon, insertamum, insertvon, kontaktmedium_kurzbz) VALUES (". $this->addslashes($this->studiensemester_kurzbz).', '. $this->addslashes($this->aufmerksamdurch_kurzbz).', '. $this->addslashes($this->firma_id).', '. @@ -311,7 +314,8 @@ class preinteressent $this->addslashes($this->updateamum).', '. $this->addslashes($this->updatevon).', '. $this->addslashes($this->insertamum).', '. - $this->addslashes($this->insertvon).');'; + $this->addslashes($this->insertvon).', '. + $this->addslashes($this->kontaktmedium_kurzbz).');'; } else { @@ -328,7 +332,8 @@ class preinteressent " infozusendung=".$this->addslashes($this->infozusendung).",". " person_id=".$this->addslashes($this->person_id).",". " updatevon=".$this->addslashes($this->updatevon).",". - " updateamum=".$this->addslashes($this->updateamum). + " updateamum=".$this->addslashes($this->updateamum).','. + " kontaktmedium_kurzbz=".$this->addslashes($this->kontaktmedium_kurzbz). " WHERE preinteressent_id='".addslashes($this->preinteressent_id)."'"; } @@ -409,6 +414,7 @@ class preinteressent $obj->prioritaet = $row->prioritaet; $obj->freigabedatum = $row->freigabedatum; $obj->uebernahmedatum = $row->uebernahmedatum; + $obj->kontaktmedium_kurzbz = $row->kontaktmedium_kurzbz; $this->result[] = $obj; } @@ -475,6 +481,7 @@ class preinteressent $obj->maturajahr = $row->maturajahr; $obj->infozusendung = $row->infozusendung; $obj->person_id = $row->person_id; + $obj->kontaktmedium_kurzbz = $row->kontaktmedium_kurzbz; $this->result[] = $obj; } @@ -686,6 +693,7 @@ class preinteressent $obj->updatevon = $row->updatevon; $obj->insertamum = $row->insertamum; $obj->insertvon = $row->insertvon; + $obj->kontaktmedium_kurzbz = $row->kontaktmedium_kurzbz; $this->result[] = $obj; } diff --git a/vilesci/personen/preinteressent_detail.php b/vilesci/personen/preinteressent_detail.php index 377fa8e4d..0735b5d16 100644 --- a/vilesci/personen/preinteressent_detail.php +++ b/vilesci/personen/preinteressent_detail.php @@ -290,6 +290,7 @@ if(isset($_POST['save_preinteressent'])) $preinteressent->updatevon = $user; $preinteressent->maturajahr = $_POST['maturajahr']; $preinteressent->infozusendung = $_POST['infozusendung']; + $preinteressent->kontaktmedium_kurzbz = $_POST['kontaktmedium_kurzbz']; if(!$preinteressent->save(false)) echo "Fehler beim Speichern der Daten: $preinteressent->errormsg"; @@ -651,13 +652,29 @@ foreach ($aufmerksam->result as $row) } echo ""; echo ''; -//Einverstaendnis -echo ""; + +echo ""; //Absagedatum echo ""; - echo ''; //Erfassungsdatum @@ -670,6 +687,8 @@ echo ""; +//Einverstaendnis +echo ""; echo ''; diff --git a/vilesci/personen/preinteressent_uebersicht.php b/vilesci/personen/preinteressent_uebersicht.php index 1e50393c5..0ba48b2f8 100644 --- a/vilesci/personen/preinteressent_uebersicht.php +++ b/vilesci/personen/preinteressent_uebersicht.php @@ -275,11 +275,12 @@ echo '
'; echo "
Alle Kreuzerllisten bisher:Alle Kreuzerllisten dieser Übung:
Punkte insgesamt möglich:Einverständnis:einverstaendnis?'checked':'')." name='einverstaendnis'>Kontaktmedium (Woher)Absageabsagedatum!=''?'checked':'')." name='absagedatum'>
Infozusendung amMaturajahrEinverständnis:einverstaendnis?'checked':'')." name='einverstaendnis'>
- + + @@ -327,6 +328,13 @@ foreach ($preinteressent->result as $row) //echo ""; echo ""; echo ""; + switch ($person->geschlecht) + { + case 'm': $geschlecht='männlich'; break; + case 'w': $geschlecht='weiblich'; break; + default: $geschlecht=''; + } + echo ""; //EMail $qry = "SELECT kontakt FROM public.tbl_kontakt WHERE person_id='$person->person_id' AND kontakttyp='email' ORDER BY zustellung DESC LIMIT 1";
IDID Nachname Vorname StSem Erf.datumGeschlecht E-Mail Status Freigabe".$datum_obj->convertISODate($person->gebdatum)."$row->studiensemester_kurzbz$row->erfassungsdatum".$datum_obj->formatDatum($row->erfassungsdatum,'d.m.Y')."$geschlecht