{{function page_tree aPageTree=[] bMenu=true}}{{if $bMenu && isset($aPageTree.sMenu)}}{{$aPageTree.sMenu}}&nbsp;&raquo;&nbsp;{{/if}}{{foreach from=$aPageTree.aPath item=aPage}}{{$aPage.sName}}&nbsp;&raquo;&nbsp;{{/foreach}}{{/function}}
<table class="list">
	<thead>
		<tr>
			<th class="id">{{$lang.smartoffer_id}}</th>
			<th class="photo">{{$lang.Photo}}</th>
			<th class="name">{{$lang.smartoffer_name}}</th>
			<th class="date">{{$lang.smartoffer_time}}<br/>{{$lang.smartoffer_time_ago}}</th>
			<th class="date">{{$lang.smartoffer_time_sent}}<br/>{{$lang.smartoffer_time_ago}}</th>
		</tr>
	</thead>
	{{foreach from=$aSmartoffer.aProducts item=SOaProduct}}
		<tr class="product {{if !empty( $SOaProduct.iTimeSent )}}modified{{/if}}">
			<td class="id">{{$SOaProduct.iProduct}}</td>
			<td class="photo">
				{{if isset( $SOaProduct.aDataImage )}}
					<a href="{{$config.dir_files}}{{$SOaProduct.aDataImage.sFileName}}" class="photo">
						<img src="{{$config.dir_files}}30/{{$SOaProduct.aDataImage.sFileName}}" alt="(f)"/>
					</a>
				{{/if}}
			</td>
			<td class="name">{{page_tree aPageTree=$SOaProduct.aPageTree}}<strong>{{$SOaProduct.sName}}</strong></td>
			<td class="date">{{date( 'Y-m-d H:i:s', $SOaProduct.iTime )}}<br/>{{$SOaProduct.sTimeDifference}}</td>
			<td class="date">{{if !empty( $SOaProduct.iTimeSent )}}{{date( 'Y-m-d H:i:s', $SOaProduct.iTimeSent )}}<br/>{{$SOaProduct.sTimeDifferenceSent}}{{else}}-{{/if}}</td>
		</tr>
	{{/foreach}}
	<tr class="legend"><td colspan="5">{{$lang.smartoffer_legend}}</td></tr>
	<tr class="legend"><td colspan="5"><div></div>{{$lang.smartoffer_avail_newsletter_legend_products_white}}</td></tr>
	<tr class="legend modified"><td colspan="5"><div></div>{{$lang.smartoffer_avail_newsletter_legend_products_green}}</td></tr>
</table>
