{include file="header.tpl.html" extra_title="Account Signup"}
<br /><br /><br />
{if $app_setup.open_signup != 'enabled'}
<center>
<span class="default">
<b>{t}Sorry, but this feature has been disabled by the administrator.{/t}</b>
<br /><br />
<a class="link" href="javascript:history.go(-1);">{t}Go Back{/t}</a>
</span>
</center>
{else}
{literal}
<script language="JavaScript">
<!--
function validateForm(f)
{
if (isWhitespace(f.full_name.value)) {
alert('{/literal}{t escape=js}Please enter your full name.{/t}{literal}');
selectField(f, 'full_name');
return false;
}
if (isWhitespace(f.email.value)) {
alert('{/literal}{t escape=js}Please enter your email address.{/t}{literal}');
selectField(f, 'email');
return false;
}
if (!isEmail(f.email.value)) {
alert('{/literal}{t escape=js}Please enter a valid email address.{/t}{literal}');
selectField(f, 'email');
return false;
}
if (isWhitespace(f.passwd.value)) {
alert('{/literal}{t escape=js}Please enter your password.{/t}{literal}');
selectField(f, 'passwd');
return false;
}
return true;
}
//-->
</script>
{/literal}
<form name="signup_form" onSubmit="javascript:return validateForm(this);" method="post" action="signup.php">
<input type="hidden" name="cat" value="signup">
<table align="center" width="500" border="0" cellspacing="0" cellpadding="1" bgcolor="#000000">
<tr>
<td>
<table bgcolor="#006486" width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td colspan="2" align="center">
<h2 style="color: white;">{t}Account Signup{/t}</h2>
<hr size="1" noshade color="white">
</td>
</tr>
{if $signup_result != ''}
<tr>
<td colspan="2" align="center" class="error">
<b>
{if $signup_result == -1}
{t}Error: An error occurred while trying to run your query.{/t}
{elseif $signup_result == -2}
{t}Error: The email address specified is already associated with an user in the system.{/t}
{elseif $signup_result == 1}
{t}Thank you, your account creation request was processed successfully. For security reasons a confirmation email was sent to the provided email address with instructions on how to confirm your request and activate your account.{/t}
{/if}
</b>
</td>
</tr>
{/if}
{if $signup_result != 1}
<tr>
<td align="right" width="130" class="default_white"><b>{t}Full Name:{/t}</b></td>
<td width="75%">
<input accessKey="f" class="default" type="text" name="full_name" size="50" maxlength="255">
{include file="error_icon.tpl.html" field="full_name"}
</td>
</tr>
<tr>
<td align="right" width="130" class="default_white"><b>{t}Email Address:{/t}</b></td>
<td width="75%">
<input accessKey="e" class="default" type="text" name="email" size="50" maxlength="255">
{include file="error_icon.tpl.html" field="email"}
</td>
</tr>
<tr>
<td align="right" width="130" class="default_white"><b>{t}Password:{/t}</b></td>
<td width="75%">
<input accessKey="p" class="default" type="password" name="passwd" size="20" maxlength="32">
{include file="error_icon.tpl.html" field="passwd"}
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input class="button" type="submit" value="{t}Create Account{/t}">
</td>
</tr>
{/if}
<tr align="center">
<td colspan="2" class="default_white">
<a class="white_link" href="index.php">{t}Back to Login Form{/t}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
{literal}
<script language="JavaScript">
<!--
window.onload = setFocus;
function setFocus()
{
if (document.signup_form.full_name != null) {
document.signup_form.full_name.focus();
}
}
//-->
</script>
{/literal}
{/if}
{include file="footer.tpl.html"}