mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.'",,,,,';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user