{strip}
{assign var=break value=7}
{assign var=empty value="false"}
{include file="header.tpl"}
{include file="left.tpl"}
{include file="top_links.tpl"}
{include file="header_cms.tpl"}
<div class="title">{include file="breadcrumbs.tpl"}
</div> {if $mode eq "folder"}
{foreach from=$cms_item_types item=type}
{assign var=current value=$type}
{/foreach}
{if $current eq "product" or $current eq "article"}
{if $cms_item_types neq null}
{foreach from=$cms_item_types item=type}
<div class="head_pagination">{if $subpages->$type neq null}{include file="pagination.tpl" subpage=$subpages->$type}{/if}
</div> {/foreach}
{foreach from=$cms_item_types item=type}
{if $type eq "product"}
<div class="clear"></div> <table border="0" cellspacing="0" cellpadding="0"> {foreach name=loop_name item=product from=$items.product}
{assign var=count_me value=$smarty.foreach.loop_name.iteration}
<td width="1"><img src="/img/line.jpg"></td> <td width="100"><a href="{$pathto}/{$product.named_id}.{$product.node.type}"><img src="/img/shop/{$product.attrs->primary.picture.value}" alt="" /></a><div class="label"><a href="{$pathto}/{$product.named_id}.{$product.node.type}">Model: {$product.attrs->primary.model.value}</a></div></td> {if $smarty.foreach.loop_name.last and $count_me neq $break}
<td width="1"><img src="/img/line.jpg"></td>
{/if}
{if $smarty.foreach.loop_name.iteration mod $break eq 0}
<td width="1"><img src="/img/line.jpg"></td></tr><tr>
{/if}
{if $count_me eq 7}{assign var=count_me value=0}{/if}
{/foreach}
</tr>
</table>
{elseif $type eq "article"}
<div class="clear"></div>
<br>Article List<br>
{/if}
{foreach from=$cms_item_types item=type}
<div class="subtitle">{include file="breadcrumbs.tpl"}</div>
<div class="foot_pagination">{if $subpages->$type neq null}{include file="pagination.tpl" subpage=$subpages->$type}{/if}</div>
{/foreach}
{/foreach}
{else}{assign var=empty value="true"}{/if}
{/if}
{if $cms_item_types eq NULL or $empty eq "true"}
<div class="head_pagination"> </div>
<div class="clear"></div>
<div align="center" style="padding: 5px;">There is nothing here at the moment. <a href="javascript:history.back()">Go back</a></div>
{/if}
{/if}
{if $mode eq "item"}
{if $item.node.type eq "product"}
<div class="head_pagination">Creation Date: 12/02/2008</div>
<div class="clear"></div>
<br>Product Details<br>
{elseif $item.node.type eq "article"}
{foreach item=article from=$items.article}
<div class="head_pagination">{$article.time|date_format:"%e %b %Y - %H:%M"}</div>
<div class="clear"></div>
<br>Article Details<br>
{/foreach}
{/if}
{/if}
</div>
<div class="clear"></div>
</div>
</div>
<div class="clear"></div>
</div>
{include file="footer.tpl"}
{/strip}