{if $items}
{/if}
{foreach from=$items item=i name=foo}
{/foreach}
{$paging}
{else}