Gæsteliste
Hej!Jeg mangler en som kan lave lidt om på det.
1. Skal sende til min mail.
2. "Reg. Kode" skal byttes ud med Mobil nr.
<html>
<head>
<title>//GÆSTE LISTE</title>
<link rel="stylesheet" type="text/css" href="css/main.css" media="all">
<script type="text/javascript" language="JavaScript" src="includeJS/frameBuster.js"></script>
<script type="text/javascript" language="JavaScript" src="includeJS/fnEmailValidate.js"></script>
<script type="text/javascript" language="JavaScript" src="includeJS/fnIsValidChars.js"></script>
<script type="text/javascript" language="JavaScript">
function fnFormGuestListCheck(oForm) {
if (oForm.frmPartyDate.value == '-1') {
alert('Vælg dato')
oForm.frmPartyDate.focus()
return false
}
if (oForm.frmFirstName.value == '') {
alert('Fornavn skal udfyldes')
oForm.frmFirstName.focus()
return false
}
if (oForm.frmLastName.value == '') {
alert('Efternavn skal udfyldes')
oForm.frmLastName.focus()
return false
}
if (oForm.frmSchoolName.value == '') {
alert('Skolens navn skal udfyldes')
oForm.frmSchoolName.focus()
return false
}
if (!fnEmailValidate(oForm.frmEmail.value)) {
oForm.frmEmail.focus()
return false
}
if (oForm.frmTicketCode.value == '') {
alert('Billetkode skal udfyldes')
oForm.frmTicketCode.focus()
return false
}
if (!fnIsValidChars(oForm.frmTicketNo.value, '0123456789') || oForm.frmTicketNo.value.length != 4) {
alert('Billetnummer skal være 4 tal')
oForm.frmTicketNo.focus()
return false
}
}
function fnPartyDateChange(oObject, oForm) {
if (oObject.value == '-1') {
oForm.frmTicketCodeGhost.value = ''
oForm.frmTicketCode.value = ''
document.imgTicket.src = 'images/trans.gif'
}
if (oObject.value == '27-08-2005') {
oForm.frmTicketCodeGhost.value = 'A'
oForm.frmTicketCode.value = 'A'
document.imgTicket.src = 'images/ticket/2005-08-27.gif'
}
if (oObject.value == '10-09-2005') {
oForm.frmTicketCodeGhost.value = 'G'
oForm.frmTicketCode.value = 'G'
document.imgTicket.src = 'images/ticket/2005-09-10.gif'
}
}
</script>
</head>
<body onload="document.FormGuestList.frmPartyDate.focus();">
<form name="FormGuestList" action="guestListSubmit.asp" method="post" onsubmit="return fnFormGuestListCheck(this);">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td>
Dato:</td>
<td>
<select name="frmPartyDate" class="FormSelect" style="width: 125px;" onchange="fnPartyDateChange(this, this.form);">
<option value="-1">Vælg dato</option>
<option value="27-08-2005">27. august 2005</option>
<option value="10-09-2005">10. september 2005</option>
</select>
</td>
</tr>
<tr>
<td>
Fornavn:</td>
<td>
<input name="frmFirstName" maxlength="75" class="FormInput" style="width: 125px;"></td>
</tr>
<tr>
<td>
Efternavn:</td>
<td>
<input name="frmLastName" maxlength="75" class="FormInput" style="width: 125px;"></td>
</tr>
<tr>
<td nowrap="nowrap">
Skolens navn:</td>
<td>
<input name="frmSchoolName" maxlength="75" class="FormInput" style="width: 125px;"></td>
</tr>
<tr>
<td>
E-mail:</td>
<td>
<input name="frmEmail" maxlength="75" class="FormInput" style="width: 125px;"></td>
</tr>
<tr>
<td>
Reg. Kode:</td>
<td>
<input type="hidden" name="frmTicketCode" value="A">
<input disabled="disabled" name="frmTicketCodeGhost" value="" class="FormInput" style="width: 12px;">
<input name="frmTicketNo" maxlength="4" class="FormInput" style="width: 60px; text-align: center;">
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="submit" value="TILMELD" class="FormButton" style="width: 100%;"></td>
</tr>
</table>
</td>
<td width="100%" valign="top">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
Det er her du skal tilmelde dig gæste listen.<br/>
<br/>
For at kunne skrive sig på gæste listen, skal du have en invitation med en Reg. Kode<br/>
<br/>
Du skal medbringe invitationen på selve aftenen, det <b>skal</b> være samme invitation som du tilmelder dig gæste listen med. "<b>SAMME REG. KODE</b>"
</td>
<td width="200" align="right">
<img name="imgTicket" border="0" alt="" src="images/trans.gif"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>