<div class="admin_right_top"><{$lang.select_template}></div>
<table class="admin_table">
    <tr>
        <td>
        <{foreach item=list key=num from=$templist.list}>
            <li style="float:left;width:33%;text-align:center;margin:10px 0;">
                <a target="_blank" href="shop.php?uid=<{$bcid}>&template=<{$list.temp_file}>">
                <img width="200" src="templates/<{$list.temp_file}>/img/temp.jpg" />
                </a>  
                <{if $de.template==$list.temp_file||($de.template==''&&$list.temp_file=='user_templates_default')}>
                	 <p><{$lang.using}></p>
                <{elseif $list.right==0}>
                	 <p><{$lang.noright}></p>
                <{else}>
                    <p><{$list.tname}></p>
                	<p>
                    [<a target="_blank" href="shop.php?uid=<{$bcid}>&template=<{$list.temp_file}>"><{$lang.preview}></a>]
                    [<a href="main.php?action=m&m=company&s=admin_template&select_tem=<{$list.id}>"><{$lang.apply}></a>]
                	</p>
            	<{/if}>
            </li>
        <{/foreach}>
        </td>
    </tr>
    <{if $templist.pages&&$templist.pages!="   "}>
    <tr>
    	<td><div class="page"><{$templist.pages}></div></td>
    </tr>
    <{/if}>
</table>