Location: PHPKode > projects > simpleMVC > myGifts/skins/default/giftList.tpl
{include file="header.tpl" title=$object->ownerName}
{displayBlock name="userList"}
<h1>{$strings.LANG_LIST_OF} {$object->ownerName}</h1>
<table border="1" width="100%" cellspacing="1" cellpadding="3" class="tbl">
<tr class="th"><td>{$strings.LANG_GIFT}</td><td>&nbsp;</td><td>&nbsp;</td></tr>
{foreach name=list item=gift from=$object->gifts}
    <tr valign="top">
     	<td class="col1" width="70%"><p>{$gift.name}<span class="small"><br />
     	{if $gift.comment != ""}
	     	{$gift.comment}
     	{/if}<br />
     	{if $gift.url != ""}
     		{$strings.LANG_MORE_INFO} <a href="{$gift.url}" target="_blank">{$gift.url|urlhost}</a>
     	{/if}
     	</span></p></td>
    	<td class="col2" align="center" width="15%"><span class="smallital">
	    {if $gift.claimerName != ""}
			{$strings.LANG_CLAIMED_BY} {$gift.claimerName}
		{else}
			&nbsp;
		{/if}
		</span></td>
	    <td class="col3" align="center" width="15%" valign="middle"><span class="small">
	    {if $gift.claimerName == ""}
	   		{mvc_link handler="claimGift" method="action" id=$gift.id class="link"}{$strings.LANG_CLAIM}{/mvc_link}
		{elseif $gift.claimerId eq $user->id}
	    	{mvc_link handler="unclaimGift" method="action" id=$gift.id class="link"}{$strings.LANG_CLAIM_OFF}{/mvc_link}
		{/if}
	    </span></td>
	</tr>
{foreachelse}
    <tr><td colspan="2">{$strings.LANG_EMPTY_LIST}</td></tr>
{/foreach}
</table>
<p>&nbsp;</p>
{include file="footer.tpl"}
Return current item: simpleMVC