mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
This commit is contained in:
@@ -263,12 +263,17 @@ if($uebung_id_source!='' && $lehreinheit_id_target!='')
|
||||
echo "<span class='error'>Fehler beim Datenbankzugriff!</span>";
|
||||
|
||||
if ($error == 0)
|
||||
{
|
||||
echo "Übung erfolgreich kopiert! (Ü: ".$copy_insert."/".$copy_update."; B: ".$copy_insert_bsp."/".$copy_update_bsp.")";
|
||||
echo '<br><br><a href="'.$_SERVER['PHP_SELF'].'" class="Item">noch eine Übung Kopieren</a>';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '
|
||||
<h1>Kopieren von Übungen in eine andere Lehreinheit</h1>
|
||||
Script zum Kopieren einer Übung in eine beliebige Lehreinheit:<br><br>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'" method="GET">
|
||||
ÜbungID die Kopiert werden soll: <input type="text" name="uebung_id_source"><br>
|
||||
|
||||
@@ -199,23 +199,26 @@
|
||||
$zs=new zeitsperre($conn);
|
||||
foreach ($mitarbeiter as $ma)
|
||||
{
|
||||
$zs->getzeitsperren($ma->uid, false);
|
||||
echo '<TR>';
|
||||
echo "<td>$ma->nachname $ma->vorname</td>";
|
||||
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 "<td class='$class'>$grund<br>$erbk</td>";
|
||||
$zs->getzeitsperren($ma->uid, false);
|
||||
echo '<TR>';
|
||||
echo "<td>$ma->nachname $ma->vorname</td>";
|
||||
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 "<td class='$class'>$grund<br>$erbk</td>";
|
||||
}
|
||||
echo '</TR>';
|
||||
}
|
||||
echo '</TR>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user