{{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="smartoffer">{{$lang.smartoffer_price}}<br/>{{$lang.smartoffer_current}} / {{$lang.smartoffer_seen}}</th>
			<th class="smartoffer">{{$lang.smartoffer_avail}}<br/>{{$lang.smartoffer_current}}<br/>{{$lang.smartoffer_seen}}</th>
			<th class="date">{{$lang.smartoffer_time}}</th>
			<th class="date">{{$lang.smartoffer_time_ago}}</th>
		</tr>
	</thead>
	{{foreach from=$aSmartoffer.aBasket item=SOaProduct}}
		<tr class="product {{if $SOaProduct.fCurrentPrice < ( $SOaProduct.fOldPrice - 0.01 ) || $SOaProduct.TiAvailable < $SOaProduct.iAvailable}}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="smartoffer">{{number_format( $SOaProduct.fCurrentPrice, 2, '.', '' )}} / {{number_format( $SOaProduct.fOldPrice, 2, '.', '' )}}</td>
			<td class="available smartoffer">{{$aSmartoffer.aAvailabilities[$SOaProduct.TiAvailable]}}<br/>{{$aSmartoffer.aAvailabilities[$SOaProduct.iAvailable]}}</td>
			<td class="date">{{date( 'Y-m-d H:i:s', $SOaProduct.iTime )}}</td>
			<td class="date">{{$SOaProduct.sTimeDifference}}</td>
		</tr>
	{{/foreach}}
	<tr class="legend"><td colspan="7">{{$lang.smartoffer_legend}}</td></tr>
	<tr class="legend"><td colspan="7"><div></div>{{$lang.smartoffer_legend_products_white}}</td></tr>
	<tr class="legend modified"><td colspan="7"><div></div>{{$lang.smartoffer_legend_products_green}}</td></tr>
</table>
