<{foreach item=list key=num from=$offer}>
<li class="fore<{$num+1}>">
    <div class="p-img">
    <a target="_blank" href="<{$config.weburl}>/?m=offer&s=detail&id=<{$list.id}>">
        <{if $list.pic!=''}>
        <img src="<{$list.pic|explode_one:","}>" width="160" height="150" alt="<{$list.title}>" />
        <{else}>
        <img src="image/default/nopic.gif" width="160" height="150" alt="<{$list.title}>" />
        <{/if}>
    </a>
    </div>
    <div class="p-name"><a target="_blank" href="<{$config.weburl}>/?m=offer&s=detail&id=<{$list.id}>"><{$list.title|truncate:80:""}></a></div>
</li>
<{/foreach}>