kopierbutton ausblenden wenn nur eine le

This commit is contained in:
Gerald Raab
2007-08-28 08:47:14 +00:00
parent 7b2f17c81c
commit 3f784b9a7a
+12 -8
View File
@@ -148,7 +148,8 @@ $gewicht = (isset($_POST['gewicht'])?$_POST['gewicht']:'');
$positiv = (isset($_POST['positiv'])?$_POST['positiv']:'');
$uebung_id = (isset($_GET['uebung_id'])?$_GET['uebung_id']:'');
$copy_content = '';
$copy_content = '';
$copy_dropdown = '';
//Kopfzeile
echo '<table class="tabcontent" height="100%">';
@@ -864,13 +865,16 @@ else
echo "</td></tr>";
}
echo "<tr><td colspan='3' align='right'><input type='Submit' value='Auswahl löschen' name='delete_uebung' onclick='return confirmdelete();'></td><td></td></tr>";
echo "</form>";
echo "<tr><td colspan='3'>&nbsp;</td></tr>";
echo "<tr><td colspan='3' class='ContentHeader3'>Vorhandene Übungen kopieren</td></tr>";
$uebung_id_source_dropdown .= "</select>";
echo "<tr><td colspan='3'>";
echo "<form name='copy' action='verwaltung.php?lvid=$lvid&stsem=$stsem&lehreinheit_id=$lehreinheit_id' method='POST'><table><tr><td>Übung</td><td></td><td>Lehreinheit</td><td></td></tr><tr><td>".$uebung_id_source_dropdown."</td><td>-></td><td>".$copy_dropdown."</td><td><input type='submit' name='copy_uebung' value='kopieren'></td></tr></table></form>";
echo "</form>";
if ($copy_dropdown != '')
{
echo "<tr><td colspan='3'>&nbsp;</td></tr>";
echo "<tr><td colspan='3' class='ContentHeader3'>Vorhandene Übungen kopieren</td></tr>";
$uebung_id_source_dropdown .= "</select>";
echo "<tr><td colspan='3'>";
echo "<form name='copy' action='verwaltung.php?lvid=$lvid&stsem=$stsem&lehreinheit_id=$lehreinheit_id' method='POST'><table><tr><td>Übung</td><td></td><td>Lehreinheit</td><td></td></tr><tr><td>".$uebung_id_source_dropdown."</td><td>-></td><td>".$copy_dropdown."</td><td><input type='submit' name='copy_uebung' value='kopieren'></td></tr></table></form>";
echo "</td></tr>";
}
}
else