<?php /* Smarty version Smarty-3.0.8, created on 2012-03-26 11:03:39
         compiled from "E:/wwwroot/guanjianzi/wwwroot/themes/system/cache.html" */ ?>
<?php /*%%SmartyHeaderCode:265444f6fdc8b0c1a37-54844420%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b846c4af5c392c7c9b7fcd483c66706e02ba1854' => 
    array (
      0 => 'E:/wwwroot/guanjianzi/wwwroot/themes/system/cache.html',
      1 => 1321886222,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '265444f6fdc8b0c1a37-54844420',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>

	<?php if ($_smarty_tpl->getVariable('action')->value=='info'){?>
    <h3 class="title"><em><?php echo $_smarty_tpl->getVariable('pagetitle')->value;?>
</em></h3>
	<div class="listbox">                    
        <form name="mform" method="post" action="<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
">
        <div class="toolbar">
			<select name="act" id="act" class="sel">
			<option value="updateall" style="color: #008800;">更新所有缓存</option>
			</select>
			<input type="submit" class="btn" value="应用" onClick="return confirm('确认执行此操作吗？');">
        </div>
        
		<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th>缓存名称</th>
				<th>缓存说明</th>
				<th>生成时间</th>
				<th>修改时间</th>
				<th>缓存大小</th>
				<th>操作选项</th>
			</tr>
			<?php  $_smarty_tpl->tpl_vars['cache'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('caches')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['cache']->key => $_smarty_tpl->tpl_vars['cache']->value){
?>
			<tr>
				<td><?php echo $_smarty_tpl->tpl_vars['cache']->value['name'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['cache']->value['desc'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['cache']->value['ctime'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['cache']->value['mtime'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['cache']->value['size'];?>
</td>
				<td><a href="<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
?act=show&cache_id=<?php echo $_smarty_tpl->tpl_vars['cache']->value['name'];?>
">查看</a> | <a href="<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
?act=update&cache_id=<?php echo $_smarty_tpl->tpl_vars['cache']->value['name'];?>
">更新</a></td>
			</tr>
			<?php }} ?>
		</table>
		</form>
	</div>
	<?php }?>

	<?php if ($_smarty_tpl->getVariable('action')->value=='show'){?>
	<div class="formbox">
		<form name="mform" method="post" action="<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
">
		<table width="100%" border="0" cellspacing="1" cellpadding="0">
        	<tr>
            	<th>&nbsp;</th>
            	<td><pre><?php echo $_smarty_tpl->getVariable('data')->value;?>
</pre></td>
            </tr>
            <tr class="btnbox">
            	<th>&nbsp;</th>
				<td>
					<input name="act" type="hidden" id="act" value="<?php echo $_smarty_tpl->getVariable('h_action')->value;?>
">
					<input name="cache_id" type="hidden" id="cache_id" value="<?php echo $_smarty_tpl->getVariable('cache')->value['cache_id'];?>
">
					<input name="submit" type="submit" class="btn" value="更 新">&nbsp;
					<input name="reset" type="reset" class="btn" value="取 消" onClick="window.location.href='<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
';">
                </td>
            </tr>
        </table>
        </form>
	</div>
	<?php }?>
            
<?php $_template = new Smarty_Internal_Template("footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>