Commit 5fa6a03c by biao

1

parent 05903a98
<?php
/**
* メインメニュー
* 首页
* $Id: index.inc
* @author cuixl
* @access public
* @package manager.templates
*/
?>
<a href="javascript:void(0);" onClick="clearAllCache();">清空服务器缓存</a><br />
<br />
<a href="javascript:void(0);" onClick="backupDatabase();">备份数据库数据</a><br />
<!--可以在此设定场用菜单-->
<a href="javascript:void(0);" onClick="backupDatabase();">可以在此设定场用菜单</a><br />
<script>
function clearAllCache() {
$.ajax({
url: 'ajax_clear_memcache.php',
type: 'post',
dataType: 'json',
async: false,
data: {},
success: function (response) {
if (response.status == "OK") {
alert("成功清空服务器缓存。");
} else {
alert("清空服务器缓存失败。");
}
}
});
}
function backupDatabase() {
window.open("backup_database.php");
}
</script>
\ No newline at end of file
......@@ -50,7 +50,7 @@ require(MANAGER_TEMPLATE_DIR_PATH. "/" . $layout_pages["header"]);
})
</script>
<?
// フッター
// 底部
require(MANAGER_TEMPLATE_DIR_PATH . "/" . $layout_pages["footer"]);
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment