<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 type="text/javascript">
$(document).ready(function(){
	$(".checkbox").dgStyle();
});
</script>
<div class="guide w">
    <a href="<{$config.weburl}>">Home</a>
    >
    <a href="<{$config.weburl}>/?m=company">Company</a>
    <{$guide}>
</div>
<div class="w clearfix">
	<div class="left">
        <div class="cat">
        	<h1>Categorie</h1>
            <ul>
			<{foreach item=list key=num from=$cat}>
                <li <{if $smarty.get.id==$list.catid}>class="cur"<{/if}>><a href="<{$config.weburl}>/?m=company&id=<{$list.catid}>"><{$list.cat}></a></li>
			<{/foreach}>
            </ul>
        </div>
        <div class="adv200"><script src='<{$config.weburl}>/api/ad.php?id=5&catid=<{$smarty.get.id}>&name=<{$smarty.get.key}>'></script></div>
    </div>
	<div class="right">
    	<div class="filter">
        	<div class="fl">
                <label class="checkbox"><input <{if $smarty.get.ifpay=="2"}>checked="checked"<{/if}> name="ifpay" type="checkbox" value="2" />Gold Supplier</label>
                <label class="checkbox"><input <{if $smarty.get.statu=="1"}>checked="checked"<{/if}> name="statu" type="checkbox" value="1" />Assessed Supplier</label>
            </div>
            <div class="fr">
                <div class="selectbox">
                    <div class="select"><div><{if $smarty.get.ct}><{$smarty.get.ct}><{else}>Campany Type<{/if}></div><b></b></div>
                    <div url="<{insert name='getseach' notkey='ct'}>" name="ct" class="i-select hidden">
                        <ul>
                            <li key="" class="sub-line">ALL</li>
                            <{foreach item=clist from=$companyType}>
                            <li key="<{$clist|urlencode}>" class="sub-line"><{$clist}></li>
                            <{/foreach}>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="list">
            <{foreach item=list from=$info.list}>
			<div class="item clearfix">
            	<{if $list.logo}> 
            	<div class="fl"><div class="img"><a target="_blank" href="<{geturl uid=$list.company_id user=$list.user com=$list.company}>"><img src="<{$list.logo}>" width="100" /></a></div></div>
                <{/if}>
                <div class="fr<{if !$list.logo}> w1<{/if}>">
                    <dl>
                    	<dt class="clearfix"><!--<{$list.user_type}>--><a target="_blank" href="<{geturl uid=$list.company_id user=$list.user com=$list.company}>"><{$list.company}></a></dt>
                        <dd>
                        	<span>From: <{if $list.country}><img align="absmiddle" src="<{$config.weburl}>/image/cflag/<{$list.country}>.gif" /><{/if}><{$list.province}> <{$list.city}></span>
                        	<span>Contacts: <{$list.contact}></span>
                        	<{if $list.staff_num}><span>Employees: <{$list.staff_num}></span><{/if}>
                        	<{if $list.turnover}><span>Turnover: <{$config.money}> <{$list.turnover}></span><{/if}>
                        	<{if !$list.logo&&$list.registered_capital}><span>Registered Capital: <{$config.money}> <{$list.registered_capital}></span><{/if}>
                        </dd>
                        <dd>Address: <{$list.addr}></dd>
                        <dd>Main Products: <{$list.main_pro|substr:0:-1}></dd>
                        <dd>
                            <a class="pro" href="<{$config.weburl}>/shop.php?uid=<{$list.company_id}>&action=offer_list&m=offer">See related products</a>
                            <a class="mail" href="<{$config.weburl}>/shop.php?uid=<{$list.company_id}>&action=mail&m=company">Send Email</a>
                        </dd>
                    </dl>
                </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 class="bottom clearfix">
                <div class="fl gotop">BACK TO TOP<b></b></div>
                <div class="page fr"><{$info.pages}></div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
$(".checkbox input").click(function(){
	var name = $(this).attr('name');
	var val = $(this).val();
	var checked = $(this).attr('checked');
	var url=name=='ifpay'?"<{$config.weburl}>/?<{insert name='getseach' notkey='ifpay'}>":"<{$config.weburl}>/?<{insert name='getseach' notkey='statu'}>";
	if(checked)
	{
		url= url+"&"+name+"="+val;
	}
	window.location=url;
});
</script>