{{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="name">{{$lang.smartoffer_name}}</th>
			<th class="date">{{$lang.smartoffer_time}}</th>
			<th class="date">{{$lang.smartoffer_time_ago}}</th>
		</tr>
	</thead>
	{{foreach from=$aSmartoffer.aPages item=SOaPage}}
		<tr>
			<td class="id">{{$SOaPage.iPage}}</td>
			<td class="name">{{page_tree aPageTree=$SOaPage.aPageTree}}{{if $SOaPage.iProducts}}<strong>{{$SOaPage.sName}}</strong>{{else}}{{$SOaPage.sName}}{{/if}}</td>
			<td class="date">{{date( 'Y-m-d H:i:s', $SOaPage.iTime )}}</td>
			<td class="date">{{$SOaPage.sTimeDifference}}</td>
		</tr>
	{{/foreach}}
</table>