{assign var="pgLayout" value="layouts/default.tpl"}
{stored_object name=$smarty.session.session_id|truncate:10:"" type="integration/signup" from="signup" assign="signup"}
{if $signup.session_id != $smarty.session.session_id}{message type="error" value="There has been a problem loading your user data, please return to the original site and log in again. If this problem persists please contact our support department." db_log=0 is_critical=0}{store_messages}{redirect href="?pg=apple/landing"}{/if}
{if $smarty.post.signup.alias}{include_php file="handle:integration/signup.verifyProfile"}{/if}
<h1 class="underline">Create My Profile</h1>

<div>
{toc_next assign="next"}
{toc_prev assign="prev"}
<form name="signup" method="post" action="index.php" style="margin:0px;">
<input type="hidden" name="pg" value="{$page.name}">
<input type="hidden" name="no_expire" value="true">

<table cellpadding="0" cellspacing="0" align="center"><tr><td>

<div class="chunk300" style="width:310px;">
<h2 class="withBG">Personal Profile</h2>
*Choose an Alias:
<input type="text" name="signup[alias]" value="" /><br />
<br />
*Date of Birth:
{get_month name="signup[dob][month]"}
{get_day   name="signup[dob][day]"}
{math assign="end_year" equation="x - 18" x=$smarty.now|date_format2:"Y"}  {* Minimum age is 18 years for now *}
{get_year  name="signup[dob][year]" start="1915" end=$end_year}<br />
<br />
*Gender: 
<input type="radio" name="signup[gender]" value="not specified" checked style="display:none;"/><input type="radio" name="signup[gender]" value="male" />Male &nbsp; <input type="radio" name="signup[gender]" value="female" />Female &nbsp;<br />
</div>
</td></tr></table>

<div class="hBox" align="right">
	<br />
	{if $prev.pageName}<input type="image" src="{$skinFolder}images/btn_back.gif" class="btn_image" onclick="pg.value='{$prev.pageName}';">&nbsp; {/if}
	{if $next.pageName}<input type="image" src="{$skinFolder}images/btn_next.gif" class="btn_image">{/if}
</div>

{stored_object_fill_form object=$signup name="signup"}
</form>
</div>