From ecebad8d9a46d3381cb99b68b47e8d47551c92cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Thu, 21 Feb 2008 15:55:07 +0000 Subject: [PATCH] --- cis/private/lvplan/stpl_kalender.php | 2 +- cis/private/profile/zeitwunsch.php | 53 +++++++++--------------- cis/private/profile/zeitwunsch_help.html | 4 +- content/ToDo_FASo.html | 6 +++ include/functions.inc.php | 20 +++++++++ include/wochenplan.class.php | 6 +-- rdf/zeugnis.rdf.php | 2 +- vilesci/personen/personen_anlegen.php | 3 +- 8 files changed, 55 insertions(+), 41 deletions(-) diff --git a/cis/private/lvplan/stpl_kalender.php b/cis/private/lvplan/stpl_kalender.php index 49c509909..bfb4e9097 100644 --- a/cis/private/lvplan/stpl_kalender.php +++ b/cis/private/lvplan/stpl_kalender.php @@ -212,7 +212,7 @@ while ($begin<$ende) // Stundenplan der Woche drucken if ($format=='csv' || $format=='ical') - $stdplan->draw_week_csv($target); + $stdplan->draw_week_csv($target, LVPLAN_KATEGORIE); //else if ($format=='ical') // $stdplan->draw_week_ical($target); else diff --git a/cis/private/profile/zeitwunsch.php b/cis/private/profile/zeitwunsch.php index b9bda052e..314bec0c4 100644 --- a/cis/private/profile/zeitwunsch.php +++ b/cis/private/profile/zeitwunsch.php @@ -21,7 +21,7 @@ */ // ** // * @brief bietet die Moeglichkeit zur Anzeige und -// * Aenderung der Zeitwuensche und Zeitsperren +// * Aenderung der Zeitwuensche require_once('../../config.inc.php'); require_once('../../../include/functions.inc.php'); @@ -105,42 +105,29 @@ @@ -159,7 +146,7 @@ function checkdatum()

Zeitwünsche von titelpre.' '.$person->vorname.' '.$person->nachname; ?>

-
+ - + - +
Hier kann ich unterrichten
-1
diff --git a/cis/private/profile/zeitwunsch_help.html b/cis/private/profile/zeitwunsch_help.html index 3859e00d7..9a758a418 100644 --- a/cis/private/profile/zeitwunsch_help.html +++ b/cis/private/profile/zeitwunsch_help.html @@ -28,12 +28,12 @@
Hier kann ich unterrichten
-1
diff --git a/content/ToDo_FASo.html b/content/ToDo_FASo.html index 34a38a4ef..67a969530 100644 --- a/content/ToDo_FASo.html +++ b/content/ToDo_FASo.html @@ -419,6 +419,12 @@ Duplizierter Wert, etc.)

Erledigte Anforderungen

    +
  • Am Zeugnis werden jetzt die Sonderzeichen +(üöäàè...) im Nachnamen auch groß +geschrieben.
    +21.02.2008 oesi
    +
    +
  • Neuer Filter zum Anzeigen aller Studenten bei denen der ZGV-Typ eingetragen ist, aber noch kein ZGV-Datum
    20.02.2008 oesi
    diff --git a/include/functions.inc.php b/include/functions.inc.php index f60d2a8ed..29ad9f6ac 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -286,6 +286,26 @@ function utf8_strlen($str) return $count; } +// **************************************************************** +// * strtoupper das auch Umlaute und andere Sonderzeichen +// * in Grossbuchstaben umwandelt +// **************************************************************** +function strtoupperFULL($str) +{ + // convert to entities + $subject = htmlentities($str,ENT_QUOTES); + $pattern = '/&([a-z])(uml|acute|circ'; + $pattern.= '|tilde|ring|elig|grave|slash|horn|cedil|th);/e'; + $replace = "'&'.strtoupper('\\1').'\\2'.';'"; + $result = preg_replace($pattern, $replace, $subject); + // convert from entities back to characters + $htmltable = get_html_translation_table(HTML_ENTITIES); + foreach($htmltable as $key => $value) { + $result = ereg_replace(addslashes($value),$key,$result); + } + return(strtoupper($result)); +} + // **************************************************************** // * Prueft den uebergebenen Alias auf Gueltigkeit. // * Format: mindestens 1 Punkt enhalten, mind. 1 Zeichen vor und diff --git a/include/wochenplan.class.php b/include/wochenplan.class.php index 1d2f17666..4127fb4c9 100644 --- a/include/wochenplan.class.php +++ b/include/wochenplan.class.php @@ -1472,7 +1472,7 @@ class wochenplan * @return true oder false * */ - function draw_week_csv($target) + function draw_week_csv($target, $lvplan_kategorie) { if (!date("w",$this->datum)) $this->datum=jump_day($this->datum,1); @@ -1590,14 +1590,14 @@ class wochenplan .'SUMMARY:'.$lehrfach[0].' '.$this->std_plan[$i][$j][0]->ort.' - '.$lvb.$this->crlf .'DESCRIPTION:'.$lehrfach[0].'\n'.$this->std_plan[$i][$j][0]->lektor.'\n'.$lvb.'\n'.$this->std_plan[$i][$j][0]->ort.$this->crlf .'LOCATION:'.$this->std_plan[$i][$j][0]->ort.$this->crlf - .'CATEGORIES:StundenplanTW'.$this->crlf + .'CATEGORIES:'.$lvplan_kategorie.$this->crlf .'DTSTART:'.$start_date_time_ical.$this->crlf .'DTEND:'.$end_date_time_ical.$this->crlf .'END:VEVENT'; } else { - echo $this->crlf.'"'.$lehrfach[0].'","StundenplanTW","'.$this->std_plan[$i][$j][0]->ort.'","Stundenplan'.$this->crlf.$this->std_plan[$i][$j][0]->lehrfach.$this->crlf; + echo $this->crlf.'"'.$lehrfach[0].'","'.$lvplan_kategorie.'","'.$this->std_plan[$i][$j][0]->ort.'","Stundenplan'.$this->crlf.$this->std_plan[$i][$j][0]->lehrfach.$this->crlf; echo $this->std_plan[$i][$j][0]->lektor.$this->crlf.$lvb.$this->crlf.$this->std_plan[$i][$j][0]->ort.'","Stundenplan",'; echo '"'.$start_date.'","'.$start_time.'","'.$end_date.'","'.$end_time.'",,,,,'; } diff --git a/rdf/zeugnis.rdf.php b/rdf/zeugnis.rdf.php index c1fa9115c..32721f9a9 100644 --- a/rdf/zeugnis.rdf.php +++ b/rdf/zeugnis.rdf.php @@ -157,7 +157,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") $xml .= " ".sprintf('%04s', $row->studiengang_kz).""; $xml .= "\n ".$row->vorname.""; $xml .= " ".$row->nachname.""; - $xml .= " ".trim($row->titelpre.' '.trim($row->vorname.' '.$row->vornamen).' '.strtoupper($row->nachname).($row->titelpost!=''?', '.$row->titelpost:'')).""; + $xml .= " ".trim($row->titelpre.' '.trim($row->vorname.' '.$row->vornamen).' '.strtoupperFULL($row->nachname).($row->titelpost!=''?', '.$row->titelpost:'')).""; $gebdatum = date('d.m.Y',strtotime($row->gebdatum)); $xml .= " ".$gebdatum.""; $xml .= " ".$row->matrikelnr.""; diff --git a/vilesci/personen/personen_anlegen.php b/vilesci/personen/personen_anlegen.php index a5de8132a..36afbbdfa 100644 --- a/vilesci/personen/personen_anlegen.php +++ b/vilesci/personen/personen_anlegen.php @@ -25,6 +25,7 @@ require_once('../../include/functions.inc.php'); require_once('../../include/benutzerberechtigung.class.php'); require_once('../../include/person.class.php'); require_once('../../include/datum.class.php'); +require_once('../../include/kontakt.class.php'); if(!$conn=pg_pconnect(CONN_STRING)) die('Fehler beim Herstellen der DB Connection'); @@ -331,7 +332,7 @@ if($geburtsdatum!='') '; +echo ''; echo ''; echo ''; echo '';
    Titel(Pre)
    Titel(Pre) *
    Vorname
    Nachname *
    Titel(Post)