{if $action eq 1 or $action eq 2 or $action eq 8} {* add, update or view *}            
    {include file="CRM/Contribute/Form/Contribution.tpl"}
{elseif $action eq 4}
    {include file="CRM/Contribute/Form/ContributionView.tpl"}
{/if}
{if $honorRows}
    {strip}
    <table class="selector">
        <tr class="columnheader">
	    <th scope="col">{ts}Contributor{/ts}</th> 
	    <th scope="col">{ts}Amount{/ts}</th>
	    <th scope="col">{ts}Type{/ts}</th>
	    <th scope="col">{ts}Source{/ts}</th>
	    <th scope="col">{ts}Received{/ts}</th>
	    <th scope="col">{ts}Status{/ts}</th>
	    <th>&nbsp;</th>   
        </tr>
       	{foreach from=$honorRows item=row}
	    <tr id='rowid{$row.honorId}' class="{cycle values="odd-row,even-row"}">
		<td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.honorId`"}" id="view_contact">{$row.display_name}</a></td>
		<td>{$row.amount}</td>
		<td>{$row.type}</td>
		<td>{$row.source}</td>
		<td>{$row.receive_date|truncate:10:''|crmDate}</td>
		<td>{$row.contribution_status}</td>
	        <td>{$row.action|replace:'xx':$row.honorId}</td>
	    </tr>
        {/foreach}
    </table>
    {/strip}
{/if}

