|
-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!='')
|