{include file="header.tpl" page_name=$page_name sys_name=$sys_name}
<div align="center">
{$admin_nav}
<div class="templete">
<div style="text-align:left; padding-left:30px;">
<form method="post" action="" enctype="multipart/form-data">
<label>上传模板:</label>	
<input type="file" name="upload_template" />
    	<input type="hidden" value="upload"  name="task"/>
    <input type="submit" value="上 传" />
    <br />
    <font class="yel">(只允许zip格式文件上传,最大上传1M,在上传之前清确保cache和template目录可写)</font>
</form>
</div>
<h1>正在使用中的模板</h1>
<div align="left">
	<table width="100%">
    	<tr>
        	<td width="27%" valign="top"><img src="{$tpl_list.used.view}" width="272" height="171" />
            
           <p class="other_do"> <a href="admincp.php?action=templete&task=bak&folder={$tpl_list.used.folder}" target="_blank">备份</a></p>
            </td>
          <td width="73%" valign="top">
            	<p><b>模板名称:</b><span>{$tpl_list.used.name}</span></p>
                <p><b>发布时间:</b><span>{$tpl_list.used.pub_time}</span></p>
                <p><b>作者:</b>{$tpl_list.used.author}</p>
                <p><b>编码:</b>{$tpl_list.used.charset}</p>
				<p><b>版本:</b>{$tpl_list.used.version}</p>
                <p><b>升级:</b>{$tpl_list.used.update}</p>
                <p><b>描述:</b>{$tpl_list.used.desc}</p>
          </td>
        </tr>
    </table>
</div>
<br  class="clear"/>
<h1>可用模板</h1>
<div>
	{if $tpl_list.other}
    <table width="100%" class="tableborder">
        {foreach from=$tpl_list.other item=l}
    	<tr>
        	<td width="27%" valign="top"><img style="cursor:pointer" onclick="window.location.href='admincp.php?action=templete&task=change&folder={$l.folder}'" title="点此选择模板" src="{$l.view}" width="272" height="171" />
            	<p  class="other_do">{if $l.folder!='default'}<a href="admincp.php?action=templete&task=delete&folder={$l.folder}">删除</a> {/if}&nbsp;<a href="admincp.php?action=templete&task=bak&folder={$l.folder}" target="_blank">备份</a></p>
            </td>
          <td width="73%" valign="top">
            	<p><b>模板名称:</b><span>{$l.name}</span></p>
                <p><b>发布时间:</b><span>{$l.pub_time}</span></p>
                <p><b>作者:</b>{$l.author}</p>
                <p><b>编码:</b>{$l.charset}</p>
				<p><b>版本:</b>{$l.version}</p>
                <p><b>升级:</b>{$l.update}</p>
                <p><b>描述:</b>{$l.desc}</p>
          </td>
        </tr>
            {/foreach}
    </table>
    {else}
    <div class="notice_msg">无可用模板</div>
    {/if}
</div>
</div>
</div>
{include file="footer.tpl"}