{include_php file="shared_handle:loadInvitation"}

<h1 class="underline">Accept an Invitation</h1>

{toc_next assign="next"}

<div><br />
Welcome "<b>{$invitation.name}</b>". <b>{$competition.ownerName}</b> (username: {$competition.ownerUsername}), 
who described you as "<b>{$invitation.relation}</b>" has invited you to join a Weight Loss War&trade;
titled "<b>{$competition.title}</b>", which will end on <b>{$competition.endDate|date_format2:"l n/j/Y"}</b>. 
Are you up to the challenge?<br />
<br />
{$competition.ownerName} selected <b>{$competition.scoringMethod}</b> as the final judging method and 
{if $competition.potMethod eq "Individual Charity"}
	{if $competition.individualPotAmount}
		<b>${$competition.individualPotAmount|number_format:2}</b>
	{else}
		no money
	{/if}
	to be put up by each competitor.
{elseif $competition.potMethod neq "Other-None"}
	{if $competition.individualPotAmount}
		a jackpot of <b>${$competition.individualPotAmount|number_format:2}</b> provided by {$competition.potMethod}.
	{else}
		an unspecified jackpot.
	{/if}
{else}
	an unspecified jackpot.
{/if}
{if $competition.potDescription}
	The jackpot was further described as "<b>{$competition.potDescription}</b>".
{/if}

<br />
If you would like to accept this invitation and join the competition, just click the "Next" button below!<br />
<br />
{if not $user->isLoggedIn()}
	<b>Note:</b> If you are already a member of this site, <b>please log in now</b>, before proceeding!<br /><br />
{/if}

<div class="hBox" align="right" style="margin:0px;">
	<a href="?pg={$next}&cid={$competition.id}&icode={$smarty.request.icode}"><img src="{$skinFolder}images/btn_next.gif" border="0" /></a></div>