<link href="<{$config.weburl}>/templates/<{$config.temp}>/css/<{$smarty.get.m}>.css" rel="stylesheet" type="text/css" />
<script src="<{$config.weburl}>/script/jquery.niceforms.js" type="text/javascript"></script>
<script src="<{$config.weburl}>/script/index.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$(".checkbox").dgStyle();
});
$(function(){
	/* 全选 */
	 $('.checkall').click(function(){
		var _self = this;
		$('.checkitem').each(function(){
			if (!this.disabled)
			{
				$(this).attr('checked', _self.checked);
				if(_self.checked)
				$(this).parent().css("backgroundPosition","left -"+"50px");
				else
				$(this).parent().css("backgroundPosition","left -"+"0");
			}
		});
		$('.checkall').attr('checked', this.checked);
	});	 
});
</script>
<div class="guide w">
    <a href="<{$config.weburl}>">Home</a>
    >
    <a href="<{$config.weburl}>/?m=offer">Product</a>
    <{$guide}>
</div>
<div class="w clearfix">
	<div class="left fl">
        <{if $subcat}>
        <div class="cat clearfix">
            <{foreach item=list from=$subcat}>
            <li><a href="<{$config.weburl}>/?m=offer&id=<{$list.catid}>"><{$list.cat}></a></li>
            <{/foreach}>
        </div>
        <{/if}>
        <{if $catfile}>
            <div class="cat clearfix">
            <{foreach item=list from=$catfile}>
            <{assign var=fieldName value=$list.fieldName}>
            <dl class="clearfix">
                <dt><{$list.fieldDisplay}></dt>
                <{foreach item=slist from=$list.catItem}>
				<dd><a <{if $smarty.get.$fieldName==$slist.0}>class="cur"<{/if}> href="<{$config.weburl}>/?<{insert name='getseach' notkey=$list.fieldName va=$slist.0}>&<{$list.fieldName}>=<{$slist.0}>"><{$slist.1}></a></dd>
                <{/foreach}>
            </dl>
            <{/foreach}> 
            </div>
        <{/if}>
        <div class="filter">
            <div class="fl">
                <label class="checkbox"><input class="checkall" type="checkbox" /></label>
                <a onclick="add_inquery('info','<{$config.weburl}>','');" href="javascript:void(0);">Add to basket</a>
            </div>
        </div>
        <div class="list clearfix">
            <{foreach item=list from=$info.list}>
            <div class="item clearfix">
				<label class="checkbox">
                	<input name="inquery" class="checkitem" type="checkbox" value="<{$list.id}>" />
                </label>
                <div class="p-img">
                	<a href="<{$config.weburl}>/?m=offer&s=detail&id=<{$list.id}>" target="_blank" title="<{$list.title}>"><img src="<{$list.pic}>" width="150" /></a>
                </div>
                <div class="p-name">
                	<a class="el_ltit" href="<{$config.weburl}>/?m=offer&s=detail&id=<{$list.id}>" target="_blank" title="<{$list.title}>"><{$list.title}></a>
                </div>
                <div class="p-time"><{$list.uptime|date_format}></div>
				<div class="p-act">
                	<a href="javascript:void(0);" onclick="add_inquery('info','<{$config.weburl}>','<{$list.id}>');">Add to Basket</a>
                </div>
            </div>
            <{foreachelse}>
			<p class="empty">NO information you want to find,<a href="<{$config.weburl}>/<{$config.regname}>">Click here to register for free member</a></p>
            <{/foreach}>
        </div>
        <div class="bottom clearfix">
            <div class="fl gotop">BACK TO TOP<b></b></div>
            <div class="page fr"><{$info.page}></div>
        </div>
    </div>
    <div class="right fr">
    	<div class="m">
            <div class="mt">Premium Related Products</div>
            <div class="mc">
            	<{insert name="label" catid=$smarty.get.id type="offer" temp="offer_list_li" limit=5}>
            </div>
        </div>
    </div>
</div>