{assign var="pgLayout" value="layouts/default.tpl"}
{stored_object name=$smarty.session.session_id|truncate:10:"" type="signup" from="signup" assign="signup"}
<!-- return:{$smarty.request.signup.return} -->
{if $smarty.request.confirmReset}{stored_object name=$smarty.session.session_id|truncate:10:"" type="signup" destroy="true"}{/if}

<h1 class="underline">Sign Up - Step 2 - Your Profile</h1>
<p>This step includes recording you initial weight and goals. Each field will be used to calculate 
other factors including your Body Mass Index. To hide your body weight from others select 'Yes.' 
By selecting 'Yes' others will only see your change in weight (i.e. -5 lbs).<br />
<br />
<small> * indicates a required field</small></p>

{include_php file="shared_handle:signup.details"}

<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="{$next.pageName}">
<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>
*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 />

*Gender: 
<input type="radio" name="signup[gender]" value="not specified" checked />Not Specified &nbsp;<input type="radio" name="signup[gender]" value="male" />Male &nbsp; <input type="radio" name="signup[gender]" value="female" />Female &nbsp;<br />

*Current Weight:
<input type="text" name="signup[initialWeight]" size="4" maxlength="3" class="textInput" style="width:25px;" /><br />

*Hide Weight From Others?:
<input type="radio" name="signup[hideInitialWeight]" value="Yes"{if $signup[hideInitialWeight] neq "No"} checked{/if} /> Yes &nbsp;<input type="radio" name="signup[hideInitialWeight]" value="No"{if $signup[hideInitialWeight] eq "No"} checked{/if} /> No &nbsp;<br />

*Goal Weight:
<input type="text" name="signup[goalWeight]" size="4" maxlength="3" class="textInput" style="width:25px;" /><br />

*Height:
<input type="text" name="signup[height][feet]" class="textInput" maxlength="1" style="width:18px;" /> feet, 
<input type="text" name="signup[height][inches]" class="textInput" maxlength="2" style="width:20px;" /> inches<br />
</div>

<div class="chunk300">
	<h2 class="withBG">Department and Personal Goal</h2>
        Please enter the name of the department you work in and also your personal goal.  Your department name will be used to put you onto a team.
	<textarea name="signup[personalGoal]" cols="30" rows="5" style="width:295px; height:125px;"></textarea><br />
</div>

<div class="chunk300">
	<h2 class="withBG">Personal Motto</h2>
        This will show up on your about page, and can be changed often.
	<textarea name="signup[personalSaying]" cols="30" rows="5" style="width:295px; height:125px;"></textarea><br />
</div>

<div class="chunk300">
	<h2 class="withBG">Your Signature</h2>
        Be creative with your signature! This will go at the bottom of the messages you post on the discussion board and can be changed often.
	<textarea name="signup[signature]" cols="30" rows="5" style="width:295px; height:125px;"></textarea><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>