{include file='header.tpl' p="general"} 

<br />
<table width="886" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
	<div id="registration_index">
	<h1 class="h1_default">{$lang.create_account}</h1>

{if $success == 1}
	<h2>{$lang.register_msg1}</h2>
	<meta http-equiv="refresh" content="5;URL={$smarty.const._URL}" />
	<div class="confirm_send">
		{$lang.register_msg2} {$inputs.email}. <br />{$msg}<br />
	</div>
{else}
<form name="register-form" method="post" action="{$form_action}">
<table width="100%" border="0" cellspacing="1" cellpadding="5">
  <tr>
    <td colspan="2"><h2>{$lang.account_info}</h2></td>
    </tr>
  <tr>
    <td width="14%" {if $errors.name != ''} class="input-warning" {/if}>{$lang.your_name}:</td>
    <td width="86%"><input type="text" name="name" value="{$inputs.name}" class="inputtext" /><br /><span class="small-warning">{$errors.name}</span></td>
  </tr>
  <tr>
    <td>{$lang.gender}:</td>
    <td>
	<select name="gender">
	<option value="male" {if $inputs.gender == 'male'}selected="selected"{/if}>{$lang.male}</option>
	<option value="female"{if $inputs.gender == 'female'}selected="selected"{/if}>{$lang.female}</option>
	</select>
	</td>
  </tr>
  <tr>
    <td {if $errors.country != ''} class="input-warning" {/if}>{$lang.country}:</td>
    <td>
		{if $show_countries_list}
		<select name="country" size="1" >
		<option value="-1">{$lang.select}</option>
			{foreach from=$countries_list key=k item=v}
			<option value="{$k}" {if $inputs.country == $k}selected{/if}>{$v}</option>
			{/foreach}
		</select>
		<br /><span class="small-warning">{$errors.country}</span>
		{/if}	</td>
  </tr>
  <tr>
    <td {if $errors.username != ''} class="input-warning" {/if}>{$lang.username}:</td>
    <td><input type="text" name="username" value="{$inputs.username}" maxlength="32" class="inputtext" /><br /><span class="small-warning">{$errors.username}</span></td>
  </tr>
  <tr>
    <td {if $errors.pass != ''} class="input-warning" {/if}>{$lang.password}:</td>
    <td><input name="pass" type="password" maxlength="32" class="inputtext" /><br /><span class="small-warning">{$errors.pass}</span></td>
  </tr>
  <tr>
    <td {if $errors.pass != ''} class="input-warning" {/if}>{$lang.password_retype}:</td>
    <td><input name="confirm_pass" type="password" maxlength="32" class="inputtext" /><br /><span class="small-warning">{$errors.pass}</span></td>
  </tr>
  <tr>
    <td {if $errors.email != ''} class="input-warning" {/if}>{$lang.your_email}:</td>
    <td><input type="text" name="email" value="{$inputs.email}" class="inputtext" /><br /><span class="small-warning">{$errors.email}</span></td>
  </tr>
  <tr>
    <td colspan="2"><h2>{$lang.verify_registration}</h2></td>
  </tr>
  <tr>
    <td {if $errors.capcha != ''} class="input-warning" {/if}>{$lang.enter_captcha}:</td>
    <td>
		
	<img src="{$smarty.const._URL}/include/securimage_show.php?sid={php} echo md5(uniqid(time())); {/php}" id="image" align="absmiddle" />
	<a href="#" onclick="document.getElementById('image').src = '{$smarty.const._URL}/include/securimage_show.php?sid=' + Math.random(); return false"><img src="{$smarty.const._URL}/templates/{$template_dir}/images/reload.gif" border="0" align="absmiddle" /></a>
		
    <br />
<label for="imagetext"></label><input type="text" name="imagetext" maxlength="10" autocomplete="off" class="inputtext" /><br /><span class="small-warning">{$errors.capcha}</span></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><input type="submit" name="Register" value="{$lang.register}" class="inputbutton" /></td>
  </tr>
</table>
</form>
{/if}	</div>	</td>
  </tr>
</table>
{include file='footer.tpl'} 