<!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" />
<link rel="stylesheet" type="text/css" href="view/admin/style/check.css" />
<script type="text/javascript" src="view/admin/js/jquery.js"></script>
{literal}
<style type="text/css">
.cache{
	font-size:12px;
}
.cache table{
	width:100%;
}
.cache table th {
    background: none repeat scroll 0 0 #F4FAFB;
    border-bottom: 1px solid #D5DFE8;
    font-weight: normal;
    height: 24px;
    line-height: 24px;
	text-align:left;
	font-size:12px;

}
.cache table td{
    border-bottom: 1px solid #EEEEEE;
    height: 29px;
    line-height: 29px;
    text-align: center;
	text-align:left;
	font-size:12px;
}
.cache table td a{
    color:#367ABB;
    padding:2px 10px;
	border:1px solid #ccc;
	background:#efefef;
}
.cache table td.child{
	padding-left:20px;
}
.clear_all{
	background: none repeat scroll 0 0 #EFEFEF;
    border: 1px solid #CCCCCC;
    color: #367ABB;
    display:block;
	height:22px;
	line-height:22px;
	width:70px;
	text-align:center;
	padding-right:10px;
	float:right;
	margin-top:4px;
	cursor:pointer;
}
.check_title a:hover{
	text-decoration:none;
}
</style>
{/literal}
</head>
<body>
<div style="padding:10px; overflow:hidden;">
<div class="main_top" style="clear:both;">
	<h4>温馨提示:</h4>
	<p class="green">温馨提示：所有缓存位于"cache"目录. 如果您的服务器空间小于200M建议不要开启模板缓存，本程序会自动根据清理缓存，只有在程序无法正常访问的情况下，建议手动清理 </p>
</div>
<div class="cache" style="margin-top:10px;">
<div class="check_title"><a href="./?a=clearcache&m=clearall" class="clear_all">全部清除</a>清除缓存</div>
	<table>
		<tr>
			<th width=40%>缓存目录</th>
			<th width=45%>描述</th>
			<th>操作</th>
		</tr>
		<tr>
			<td><img src="view/admin/images/folde.gif" alt="文件夹" /> tpl_cache</td>
			<td>模板缓存</td>
			<td><a href="?a=clearcache&m=clearsmarty">清除</a></td>
		</tr>	
		{foreach from=$alldir item=alldir name=alldir}
		<tr>
			<td><img src="view/admin/images/folde.gif" alt="文件夹" /> {$alldir.dir}</td>
			<td>{$alldir.name}</td>
			<td><a href="?a=clearcache&m=apicache&dir={$alldir.dir}">清除</a></td>
		</tr>
			{foreach from=$alldir.child_dir item=child_dir name=child_dir}			
			<tr>
				<td class="child">├ <img src="view/admin/images/folde.gif" alt="文件夹" /> {$child_dir.dir}</td>
				<td>&nbsp;</td>
				<td><a href="?a=clearcache&m=apicache&dir={$alldir.dir}/{$child_dir.dir}">清除</a></td>
			</tr>
			{/foreach}
		{/foreach}
	</table>	
</div>
</div>
</body>
</html>