Location: PHPKode > projects > simpleMVC > myGifts/skins/default/myList.tpl
{include file="header.tpl" title=$strings.LANG_MY_LIST}
{displayBlock name="userList"}
<h1>{$strings.LANG_MY_LIST}</h1>
<table border="1" width="100%" cellspacing="1" cellpadding="3" class="tbl">
<tr class="th"><td>{$strings.LANG_GIFT}</td><td align="center">{$strings.LANG_GIFT_RESTRICTED|capitalize}</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.restricted == 1}
			{displayBlock name="visibilityList" id=$gift.id}
		{else}
			&nbsp;
		{/if}</span>
		</td>
	    <td class="col3" align="center" width="15%" valign="middle"><span class="small">
	    {mvc_link handler="modifyGift" method="display" id=$gift.id class="link"}{$strings.LANG_EDIT}{/mvc_link}<br />
	    {mvc_link handler="removeGift" method="action" id=$gift.id class="link"}{$strings.LANG_REMOVE}{/mvc_link}
	    </span></td>
	</tr>
{foreachelse}
    <tr><td colspan="3">{$strings.LANG_EMPTY_LIST}</td></tr>
{/foreach}
</table>
<p>&nbsp;</p>
<table border="0" cellspacing="5"><tr valign="top"><td width="60%">
<h2>{$strings.LANG_ADD_GIFT|capitalize}</h2>
{include file="editGift.tpl"}
</td><td width="40%">
{displayBlock name="sendByEmail"}
</td></tr></table>
{include file="footer.tpl"}
Return current item: simpleMVC