Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zong
Compass
Commits
5fa6a03c
Commit
5fa6a03c
authored
Jan 17, 2020
by
biao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
05903a98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
24 deletions
+7
-24
index.inc
src/manager/templates/index.inc
+5
-23
leftmenu_layout.inc
src/manager/templates/layout/leftmenu_layout.inc
+2
-1
No files found.
src/manager/templates/index.inc
View file @
5fa6a03c
<?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
src/manager/templates/layout/leftmenu_layout.inc
View file @
5fa6a03c
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment