From df07d039000fecf2128765ea7357fd9e8d820e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Tue, 27 Jan 2009 16:55:27 +0000 Subject: [PATCH] --- .../lehre/benotungstool/copy_uebung.php | 5 +++ cis/private/profile/zeitsperre.php | 33 ++++++++++--------- content/student/studentnotenoverlay.xul.php | 7 +++- include/resturlaub.class.php | 2 +- include/tw/vilesci_menu_main.inc.php | 3 +- rdf/zeugnisnote.rdf.php | 1 + 6 files changed, 33 insertions(+), 18 deletions(-) diff --git a/cis/private/lehre/benotungstool/copy_uebung.php b/cis/private/lehre/benotungstool/copy_uebung.php index 52f87c2cb..cd3863f53 100644 --- a/cis/private/lehre/benotungstool/copy_uebung.php +++ b/cis/private/lehre/benotungstool/copy_uebung.php @@ -263,12 +263,17 @@ if($uebung_id_source!='' && $lehreinheit_id_target!='') echo "Fehler beim Datenbankzugriff!"; if ($error == 0) + { echo "Übung erfolgreich kopiert! (Ü: ".$copy_insert."/".$copy_update."; B: ".$copy_insert_bsp."/".$copy_update_bsp.")"; + echo '

noch eine Übung Kopieren'; + } + } } else { echo ' +

Kopieren von Übungen in eine andere Lehreinheit

Script zum Kopieren einer Übung in eine beliebige Lehreinheit:

ÜbungID die Kopiert werden soll:
diff --git a/cis/private/profile/zeitsperre.php b/cis/private/profile/zeitsperre.php index b6d2f5851..1ebcc76ff 100644 --- a/cis/private/profile/zeitsperre.php +++ b/cis/private/profile/zeitsperre.php @@ -199,23 +199,26 @@ $zs=new zeitsperre($conn); foreach ($mitarbeiter as $ma) { - $zs->getzeitsperren($ma->uid, false); - echo ''; - echo "$ma->nachname $ma->vorname"; - for ($ts=$ts_beginn;$ts<$ts_ende; $ts+=$datum_obj->ts_day) + if($ma->aktiv) { - $tag=date('d',$ts); - $monat=date('M',$ts); - $wt=date('w',$ts); - if ($wt==0 || $wt==6) - $class='feiertag'; - else - $class=''; - $grund=$zs->getTyp($ts); - $erbk=$zs->getErreichbarkeit($ts); - echo "$grund
$erbk"; + $zs->getzeitsperren($ma->uid, false); + echo ''; + echo "$ma->nachname $ma->vorname"; + for ($ts=$ts_beginn;$ts<$ts_ende; $ts+=$datum_obj->ts_day) + { + $tag=date('d',$ts); + $monat=date('M',$ts); + $wt=date('w',$ts); + if ($wt==0 || $wt==6) + $class='feiertag'; + else + $class=''; + $grund=$zs->getTyp($ts); + $erbk=$zs->getErreichbarkeit($ts); + echo "$grund
$erbk"; + } + echo ''; } - echo ''; } ?> diff --git a/content/student/studentnotenoverlay.xul.php b/content/student/studentnotenoverlay.xul.php index 22bec98e8..3b335fafa 100644 --- a/content/student/studentnotenoverlay.xul.php +++ b/content/student/studentnotenoverlay.xul.php @@ -94,7 +94,11 @@ echo "