<html>
<head><title>Mitglieder</title>
<link rel="stylesheet" href="stylesheet.css" type="text/css">
</head>
<script language="JavaScript">
<!--
function LeapYear(year) {
return ((year % 4) == 0) ? (((year % 100) == 0) ? (((year % 400) == 0) ? true : false) : true) : false;
}
function DaysInMonth(month, year) {
var days;
switch (month) {
case 1:
case 3:
case 5:
case 7:
case 8:
case 0:
case 12:
days = 31;
break;
case 4:
case 6:
case 9:
case 11:
days = 30;
break;
case 2:
days = LeapYear(year) ? 29 : 28;
break;
}
return days;
}
function ValidDateTime(theDate)
{
var day, month, year;
var hour, minute, second;
var i1,i2,i3,i4, i5;
i1 = theDate.indexOf(".");
if (i1 == -1)
return (false);
i2 = theDate.indexOf(".", i1 + 1);
if (i2 == -1)
return (false);
i3 = theDate.indexOf(" ", i2 + 1);
day = Number(theDate.substr(0, i1));
month = Number(theDate.substr(i1 + 1, i2 - i1 - 1));
if (i3 == -1)
{
year = Number(theDate.substr(i2 + 1));
hour = 0;
minute = 0;
second = 0;
}
else
{
year = Number(theDate.substr(i2 + 1, i3 - i2 - 1));
i4 = theDate.indexOf(":", i3 + 1);
if (i4 == -1)
return (false)
hour = Number(theDate.substr(i3 + 1, i4 - i3 - 1));
i5 = theDate.indexOf(":", i4 + 1);
if (i5 == -1)
{
minute = Number(theDate.substr(i4 + 1));
second = 0;
}
else
{
minute = Number(theDate.substr(i4 + 1, i5 - i4 - 1));
second = Number(theDate.substr(i5 + 1));
}
}
if (isNaN(day) || isNaN(month) || isNaN(year) || isNaN(hour) || isNaN(minute) || isNaN(second))
return (false);
if (year < 100)
{
if (year < 30)
year = year + 2000;
else
year = year + 1900;
}
if ((day < 1) || (day > 31))
return (false);
if ((month < 1) || (month > 12))
return (false);
if (day > DaysInMonth(month, year))
return (false);
if ((hour < 0) || (hour > 23))
return (false);
if ((minute < 0) || (minute > 59))
return (false);
if ((second < 0) || (second > 59))
return (false);
return (true);
}
function CheckThisForm(frmCheck)
{
if ('' == frmCheck.Name.value)
{
window.alert('Bitte Name eingeben!');
frmCheck.Name.focus();
return false;
}
if ('' == frmCheck.Vorname.value)
{
window.alert('Bitte Vorname eingeben!');
frmCheck.Vorname.focus();
return false;
}
if ('' == frmCheck.Instrument.value)
{
window.alert('Bitte Instrument eingeben!');
frmCheck.Instrument.focus();
return false;
}
if ('' == frmCheck.aktiv.value)
{
window.alert('Bitte Mitgliedschaft eingeben!');
frmCheck.aktiv.focus();
return false;
}
return true;
}
// -->
</script>
<body>
<form name="Mitglieder" onSubmit="var bOK = CheckThisForm(document.event); return bOK;" method="POST" action="">
<table border="0">
<tr>
<td>
<table border="0">
<tr>
<td colspan="3"><p><a href="javascript:history.back();"><<< back / zurück</a></td>
</tr>
<tr>
<td colspan="3" valign="top"><h1>Mitglied Eintragen</h1></td>
<td rowspan="15">
<p>
</script>
</td>
</tr>
<tr>
<td colspan="3" valign="top"><font size="1">* <b>obligation field</b> / Pflichtfeld</font></td>
</tr>
<tr>
<td><br>Name</td>
<td colspan="2"><input type="text" name="Name" size="40"></td>
</tr>
<tr>
<td><br>Vorname</td>
<td colspan="2"><input type="text" name="Vorname" size="40"></td>
</tr>
<tr>
<td><br>Instrument</td>
<td colspan="2"><input type="text" name="Instrument" size="40"></td>
</tr>
<td><b>Mitgliedschaft</b></td>
<td><input type="radio" value="Aktiv" name="aktiv" >Aktiv
<input type="radio" value="Passiv" name="aktiv" >Passiv</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" valign="top"><input type="submit" value="save/speichern" name="b1" /></td>
</tr>
</table>
</form>
</body>
</html>
______________
Ciao Michael
Wenn man keine Ahnung hat, einfach mal fragen!
No Support via PN, E-Mail or Messenger - only here :
FORUM