diff --git a/include/wochenplan.class.php b/include/wochenplan.class.php index f5eea273a..1ff964f4e 100644 --- a/include/wochenplan.class.php +++ b/include/wochenplan.class.php @@ -36,6 +36,9 @@ require_once(dirname(__FILE__).'/studiengang.class.php'); require_once(dirname(__FILE__).'/mitarbeiter.class.php'); require_once(dirname(__FILE__).'/datum.class.php'); require_once(dirname(__FILE__).'/zeitsperre.class.php'); +require_once(dirname(__FILE__).'/phrasen.class.php'); +require_once(dirname(__FILE__).'/globals.inc.php'); +require_once(dirname(__FILE__).'/sprache.class.php'); class wochenplan extends basis_db { @@ -104,6 +107,7 @@ class wochenplan extends basis_db $this->datum=mktime(); $this->init_stdplan(); $this->crlf=crlf(); + } /** @@ -390,6 +394,9 @@ class wochenplan extends basis_db */ public function draw_header() { + $sprache = getSprache(); + $p=new phrasen($sprache); + echo '
| '.$this->crlf;
@@ -398,16 +405,16 @@ class wochenplan extends basis_db
echo 'Person: '.$this->pers_titelpre.' '.$this->pers_vorname.' '.$this->pers_nachname.' '.$this->pers_titelpost.' - '.$this->pers_uid.' '; if ($this->type=='student' || $this->type=='verband') { - echo 'Studiengang: '.$this->stg_kurzbzlang.' - '.$this->stg_bez.' '; - echo 'Semester: '.$this->sem.' '; + echo ''.$p->t('global/studiengang').': '.$this->stg_kurzbzlang.' - '.$this->stg_bez.' '; + echo $p->t('global/semester').': '.$this->sem.' '; if ($this->ver!='0' && $this->ver!='' && $this->ver!=null) - echo 'Verband: '.$this->ver.' '; + echo $p->t('global/verband').': '.$this->ver.' '; if ($this->grp!='0' && $this->grp!='' && $this->grp!=null) - echo 'Gruppe: '.$this->grp.' '; + echo $p->t('global/gruppe').': '.$this->grp.' '; $this->link.='&stg_kz='.$this->stg_kz.'&sem='.$this->sem.'&ver='.$this->ver.'&grp='.$this->grp; } if ($this->type=='ort') - echo 'Ort: '.(1==1 || is_file(RAUMINFO_PATH.trim($this->ort_kurzbz).'.html')?''.$this->ort_kurzbz.'':$this->ort_kurzbz).' - '.$this->ort_bezeichnung.' - '.($this->ort_max_person!=''?'( '.$this->ort_max_person.' Personen )':'').' '.$this->ort_ausstattung.' '; + echo ''.$p->t('global/raum').': '.(1==1 || is_file(RAUMINFO_PATH.trim($this->ort_kurzbz).'.html')?''.$this->ort_kurzbz.'':$this->ort_kurzbz).' - '.$this->ort_bezeichnung.' - '.($this->ort_max_person!=''?'( '.$this->ort_max_person.' Personen )':'').' '.$this->ort_ausstattung.' '; echo ''.$this->crlf; echo ' '.$this->crlf;
@@ -416,7 +423,7 @@ class wochenplan extends basis_db
//global $kalender_begin_ws, $kalender_ende_ws, $kalender_begin_ss, $kalender_ende_ss;
$kal_link_ws=$this->kal_link.'&begin='.$this->studiensemester_now->start.'&ende='.$this->studiensemester_now->ende;
$kal_link_ss=$this->kal_link.'&begin='.$this->studiensemester_next->start.'&ende='.$this->studiensemester_next->ende;
- echo ' Kalender: '.$this->crlf;
+ echo ' '.$p->t('global/kalender').': '.$this->crlf;
echo ' '.$this->studiensemester_now->name.' '.$this->crlf;
echo '
'.$crlf; + for ($anz=1;$anz<26;$anz++) + { + $linknew=$link.'&datum='.$datum; + if ($woche==53) + $woche=1; + echo ' '.$woche.''.$crlf; + if ($anz%5==0) + echo ' '.$crlf; + $datum+=60*60*24*7; + $woche++; + } + echo ' | |||||||||||||||||||||||||