<h2>Create a new account</h2>
<form action="{$smarty.server.PHP_SELF}" method="post">
<input type="hidden" name="createaccount" value="1">
<table border="0">
	{if $error}
		<tr>
			<td class="error" colspan="2">{$error}</td>
		</tr>
	{/if}
	{if !EMAIL_IS_LOGIN}
		<tr>
			<td align="right">Login: </td>
			<td>
				<input type="text" name="login" value="{$smarty.post.login|stripslashes}">
			</td>
		</tr>
	{/if}
	<tr>
		<td align="right">Email: </td>
		<td><input type="text" name="email" value="{$smarty.post.email|stripslashes}"></td>
	</tr>
	<tr>
		<td align="right">First Name (optional):</td>
		<td>
			<input type="text" name="firstname" value="{$smarty.post.firstname|stripslashes}">
		</td>
	</tr>
	<tr>
		<td align="right">Last Name (optional):</td>
		<td>
			<input type="text" name="lastname" value="{$smarty.post.lastname|stripslashes}">
		</td>
	</tr>
</table>
<input type="submit" value="Create new account">
</form>
