<h1 class="underline">My Profile</h1>

<p>We know goals change throughout the weight loss experience.  Here you can change your goals and other profile items. Your Personal Goal and Motto will show up on your "About page" <em>(Coming Soon)</em>, and the signature will go at the bottom of your discussion board messages when you post a new message.</p>

{include_php file="shared_handle:myProfile"}

<form name="myProfileForm" 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>
	Date of Birth: <b>{$profile.dateOfBirth|date_format2:"n/j/Y"}</b>
	<input type="hidden" name="profile[dateOfBirth]" value="{$profile.dateOfBirth}" />
	<br />
	Hide my weight from others?:
	<input type="radio" name="profile[hideInitialWeight]" value="Yes"{if $profile.hideInitialWeight eq "Yes"} checked{/if} /> Yes &nbsp; <input type="radio" name="profile[hideInitialWeight]" value="No"{if $profile.hideInitialWeight neq "Yes"} checked{/if} /> No
	<br />
	Initial Weight: <b>{$profile.initialWeight}</b>
	<input type="hidden" name="profile[initialWeight]" value="{$profile.initialWeight}" />
	<br />
	Goal Weight:
	<input type="text" name="profile[goalWeight]" value="{$profile.goalWeight}" size="4" maxlength="3" class="textInput" style="width:25px;" />
	<br />
	Current Height:
	<input type="text" name="profile[height][feet]" value="{$profile.height.feet|htmlspecialchars}" class="textInput" maxlength="1" style="width:18px;" /> feet, 
	<input type="text" name="profile[height][inches]" value="{$profile.height.inches|htmlspecialchars}" class="textInput" maxlength="2" style="width:20px;" /> inches
</div>

<div class="chunk300">
	<h2 class="withBG">Personal Goal</h2>
	<textarea name="profile[personalGoal]" cols="30" rows="5" style="width:295px; height:125px;">{$profile.personalGoal|htmlspecialchars}</textarea><br />
</div>

<div class="chunk300">
	<h2 class="withBG">Personal Motto</h2>
	<textarea name="profile[personalSaying]" cols="30" rows="5" style="width:295px; height:125px;">{$profile.personalSaying|htmlspecialchars}</textarea><br />
</div>

<div class="chunk300">
	<h2 class="withBG">Your Signature</h2>
	<textarea name="profile[signature]" cols="30" rows="5" style="width:295px; height:125px;">{$profile.signature|htmlspecialchars}</textarea><br />
</div>
</td></tr></table>

<div class="hBox" align="right">
	<a href="javascript://" onclick="document.myProfileForm.submit();return false;" class="link">Submit Changes</a> | 
	<a href="?pg=myhome" class="link">Back to My Home</a>
</div>

</form>
