mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
überprüfen ob kst ausgewählt ist bei neu anlegen
This commit is contained in:
+14
-1
@@ -590,8 +590,21 @@ if($aktion == 'suche')
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
echo "<td> </td>\n";
|
||||
echo "<tr><td><input type='submit' name='submit' value='Anlegen'></td></tr>\n";
|
||||
echo "<tr><td><input type='submit' id='submit' name='submit' value='Anlegen' onclick='return checkKst();'></td></tr>\n";
|
||||
echo "</table>\n";
|
||||
|
||||
echo '
|
||||
<script type="text/javascript">
|
||||
function checkKst()
|
||||
{
|
||||
if(document.newForm.filter_kst.options[0].selected == true)
|
||||
{
|
||||
alert("Keine Kostenstelle ausgewählt.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>';
|
||||
}
|
||||
else if($aktion == 'save')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user