<?php mymps_admin_tpl_global_head();?>
<div id="<?=MPS_SOFTNAME?>" style="padding-bottom:0">
	<div class="mpstopic-category">
		<div class="panel-tab">
			<ul class="clearfix tab-list">
				<li><a href="?part=cache" <?php if($part == 'cache'){?>class="current"<?php }?>>页面缓存</a></li>
				<li><a href="?part=cache_sys" <?php if($part == 'cache_sys'){?>class="current"<?php }?>>数据缓存</a></li>
				<li><a href="optimise.php">系统优化</a></li>
			</ul>
		</div>
	</div>
</div>
<div id="<?=MPS_SOFTNAME?>">
<table border="0" cellspacing="0" cellpadding="0" class="vbm">
  <tr class="firstr">
  	<td colspan="2">技巧提示</td>
  </tr>
  <tr bgcolor="#ffffff">
    <td id="menu_tip">
    <li><span style="color:red">如果您的前台路径显示方式采用生成真静态，请勿开启前台页面缓存功能！！！（重要）</span></li>
 <li>注意：启用缓存功能后，在你设定的时间内，系统前台页面显示将不会发生变化</li>
  <li>如您尚未完成系统的配置和初始化安装，建议关闭所有页面的缓存功能</li>
  <li>开启系统缓存功能，可大大提高系统负载能力！缓存时间单位为秒，具体时间视你的网站访问量而自己拟定 </li>
  <li>当贵站数据量过万时，强烈建议开启系统缓存 </li>
    </td>
  </tr>
</table>
</div>
<form action="?part=cache_update" method="post">
<input name="return_url" type="hidden" value="<?=$return_url?>">
<div id="<?=MPS_SOFTNAME?>">
<table border="0" cellspacing="0" cellpadding="0" class="vbm">
  <tr class="firstr">
  	<td colspan="2">清除页面缓存</td>
  </tr>
  <tr>
	<td class="altbg1" valign="center" style="text-align:center;width:15%"><b>选择清除类型</b></td>
	<td class="altbg2">
	
	<label for="smarty_caches"><input checked="checked" name="updatecache[]" value="smarty_caches" type="checkbox" class="checkbox" id="smarty_caches">清除网页缓存文件</label><br />
	<label for="smarty_compiles"><input checked="checked" name="updatecache[]" value="smarty_compiles" type="checkbox" class="checkbox" id="smarty_compiles">清除模板编译文件</label><br />

	</td>
  </tr>
</table>
</div>
<center><input type="submit" value="提 交" class="mymps large"></center>
</form>
<div class="clear" style="height:10px;"></div>
<div id="<?=MPS_SOFTNAME?>">
<table border="0" cellspacing="0" cellpadding="0" class="vbm">
  <tr class="firstr">
  	<td colspan="2">缓存时间参考值</td>
  </tr>
  <tr bgcolor="#ffffff">
    <td>
    	一分钟：<font color="red">60秒</font> &nbsp;&nbsp; 半小时：<font color="red">1800秒</font> &nbsp;&nbsp; 一小时：<font color="red">3600秒</font> &nbsp;&nbsp; 三小时：<font color="red"><?php echo (3600*3); ?>秒</font> &nbsp;&nbsp; 半天：<font color="red"><?php echo (3600*12); ?>秒</font> &nbsp;&nbsp; 一天：<font color="red"><?php echo (3600*12*2); ?>秒</font> &nbsp;&nbsp; 两天：<font color="red"><?php echo (3600*12*2*2); ?>秒</font> &nbsp;&nbsp; 一周：<font color="red"><?php echo (3600*12*2*7); ?>秒</font>
    </td>
  </tr>
</table>
</div>
<form action="?part=cacheupdate" method="post">
<div id="<?=MPS_SOFTNAME?>">
<table border="0" cellspacing="0" cellpadding="0" class="vbm">
    <tr class="firstr">
      <td>针对页面</td>
      <td>缓存时间</td>
      <td>缓存开启状态</td>
      <td>相关说明</td>
    </tr>
    <?foreach ($admin_cache as $k =>$a)
    {
    ?>
<tr bgcolor="#f1f5f8">
      <td align="left">
        <b><?=$admin_cache_array[$k]?> (<?=$k?>)</b>
       </td>
      <td align="left">&nbsp;</td>
      <td align="left"><font style="color:red">页面显示方式设为静态时勿开启</font></td>
      <td align="left" style="line-height:20px">&nbsp;</td>
    </tr>
    <?
  	  foreach ($a as $q => $w)
      {
          if(is_array($w))
            {
    ?>
    <tr bgcolor="#ffffff">
      <td align="left">
        <?=$w["name"]?> (<?=$q?>)      </td>
      <td align="left" bgcolor="white">
       <input name="<?=$q."_time"?>" value='<?=$cache[$q][time]?>' class="txt"/> <font color="red">秒</font>       
      </td>
      <td align="left">
      <label for="<?=$q."0"?>"><input name="<?=$q."_open"?>" type="radio" value="0" id="<?=$q."0"?>" <?if ($cache[$q][open]=='0'){echo "checked";}?> class=radio>关闭</label>
      <label for="<?=$q."1"?>"><input name="<?=$q."_open"?>" type="radio" value="1" id="<?=$q."1"?>" <?if ($cache[$q][open]=='1'){echo "checked";}?> class=radio>开启</label>
      </td>
      <td align="left" style="line-height:20px" bgcolor="white">
      <?=$w["des"]?>      </td>
    </tr>
    <?}
    }}?>
</table>
</div>
<center>
<input class="mymps large" value="提 交" type="submit" > 
</center>
</form>
<?php mymps_admin_tpl_global_foot();?>