<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>在线商城后台管理</title>
<link rel="stylesheet" type="text/css" href="view/admin/style/basic.css" />
<script type="text/javascript" src="view/admin/js/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="view/admin/style/template.css" />
{literal}
<script type="text/javascript">
function setupTemplate($tplname){
	$.get("?a=template&m=settpl", { tplname: $tplname},
			  function(data){
			    if(data){
				    alert('恭喜您，模板更新成功');
			    	$("#now_template").html(data);
				}
			    else{
				    alert('对不起，模板切换错误');
				}
	});
}
</script>
{/literal}
</head>
<body>
<div style="padding:10px; overflow:hidden;">
<div style="padding:10px; overflow:hidden;">

	<div class="main_top" style="clear:both;">
		<h4>温馨提示:</h4>
		<p class="green">点击您所看到的模板图片就可以启用模板哦</p>		
		</p>
	</div>

</div>
<div class="tpl_top">
	<div class="now_template">当前默认模板</div>
	<div id="now_template">
		<div class="tpl_img">
			<img src="view/{$Current_tpl.tplname}/images/{$Current_tpl.picture}" />
		</div>
		<div class="tpl_info">
			<dl>
				<dt><h3>模板名称：<span>{$Current_tpl.tplname}</span></h3></dt>
				<dd>版权信息：<span>{$Current_tpl.author}</span></dd>
				<dd>版本：<span>{$Current_tpl.version}</span></dd>
				<dd>描述：<span>{$Current_tpl.info}</span></dd>
			</dl>
		</div>
	</div>
</div>
<div class="now_template">可用模板</div>
<div class="other_tpl">

{foreach from=$All_tpl item=alltpl value=alltpl}
	<div class="all_tpl">
		<h3>模板名称:{$alltpl.tplname}</h3>
		<div class="tpl_img">
			<img src="{$alltpl.picture}"  onclick="javascript:setupTemplate('{$alltpl.tplname}')" />
		</div>		
		<p>版权信息：{$alltpl.author}</p>
		<p>版本：{$alltpl.version}</p>
		<p>描述：{$alltpl.info}</p>
	</div>
{/foreach}	
	
</div>
</div>
</body>
</html>