Merge branch 'pr/35' into dev
commit
26dcd1fadc
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,40 +1,42 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>页面无法找到哦 - {$config["appName"]} </title>
|
||||
<meta name="keywords" content=""/>
|
||||
<meta name="description" content=""/>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="shortcut icon" href="/favicon.ico"/>
|
||||
<link rel="bookmark" href="/favicon.ico" type="image/x-icon"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
|
||||
<link rel="shortcut icon" type="image/ico" href="images/ssr.ico">
|
||||
<link rel="stylesheet" href="/assets/css/main.css" />
|
||||
<head>
|
||||
<title>页面无法找到哦 - {$config["appName"]} </title>
|
||||
<meta name="keywords" content=""/>
|
||||
<meta name="description" content=""/>
|
||||
<meta charset="utf-8"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico"/>
|
||||
<link rel="bookmark" href="/favicon.ico" type="image/x-icon"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
|
||||
<link rel="shortcut icon" type="image/ico" href="images/ssr.ico">
|
||||
<link rel="stylesheet" href="/assets/css/main.css"/>
|
||||
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="/assets/css/noscript.css" />
|
||||
</noscript>
|
||||
</head>
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="/assets/css/noscript.css"/>
|
||||
</noscript>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<header id="header">
|
||||
<div class="logo">
|
||||
<span class="icon fa-rocket"></span></div>
|
||||
<div class="content">
|
||||
<div class="inner">
|
||||
<h1>404错误</h1>
|
||||
<p>您的页面查找不到咯</p></div></div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="./#">返回首页</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<footer id="footer"><p class="copyright">©{date("Y")} {$config["appName"]}</p></footer>
|
||||
</div>
|
||||
<div id="bg"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@1.11.3"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/ajlkn/skel@3.0.1/dist/skel.min.js"></script>
|
||||
<script src="/assets/js/util.js"></script>
|
||||
<script src="/assets/js/main.js"></script>
|
||||
</body></html>
|
||||
<div id="wrapper">
|
||||
<header id="header">
|
||||
<div class="logo">
|
||||
<span class="icon fa-rocket"></span></div>
|
||||
<div class="content">
|
||||
<div class="inner">
|
||||
<h1>404错误</h1>
|
||||
<p>您的页面查找不到咯</p></div>
|
||||
</div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="./#">返回首页</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<footer id="footer"><p class="copyright">©{date("Y")} {$config["appName"]}</p></footer>
|
||||
</div>
|
||||
<div id="bg"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@1.11.3"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/ajlkn/skel@3.0.1/dist/skel.min.js"></script>
|
||||
<script src="/assets/js/util.js"></script>
|
||||
<script src="/assets/js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,40 +1,42 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>您的访问方式不正确 - {$config["appName"]} </title>
|
||||
<meta name="keywords" content=""/>
|
||||
<meta name="description" content=""/>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="shortcut icon" href="/favicon.ico"/>
|
||||
<link rel="bookmark" href="/favicon.ico" type="image/x-icon"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
|
||||
<link rel="shortcut icon" type="image/ico" href="images/ssr.ico">
|
||||
<link rel="stylesheet" href="/assets/css/main.css" />
|
||||
<head>
|
||||
<title>您的访问方式不正确 - {$config["appName"]} </title>
|
||||
<meta name="keywords" content=""/>
|
||||
<meta name="description" content=""/>
|
||||
<meta charset="utf-8"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico"/>
|
||||
<link rel="bookmark" href="/favicon.ico" type="image/x-icon"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
|
||||
<link rel="shortcut icon" type="image/ico" href="images/ssr.ico">
|
||||
<link rel="stylesheet" href="/assets/css/main.css"/>
|
||||
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="/assets/css/noscript.css" />
|
||||
</noscript>
|
||||
</head>
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="/assets/css/noscript.css"/>
|
||||
</noscript>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<header id="header">
|
||||
<div class="logo">
|
||||
<span class="icon fa-rocket"></span></div>
|
||||
<div class="content">
|
||||
<div class="inner">
|
||||
<h1>405错误</h1>
|
||||
<p>您的访问方式不正确。</p></div></div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="./#">返回首页</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<footer id="footer"><p class="copyright">©{date("Y")} {$config["appName"]} </p></footer>
|
||||
</div>
|
||||
<div id="bg"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@1.11.3"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/ajlkn/skel@3.0.1/dist/skel.min.js"></script>
|
||||
<script src="/assets/js/util.js"></script>
|
||||
<script src="/assets/js/main.js"></script>
|
||||
</body></html>
|
||||
<div id="wrapper">
|
||||
<header id="header">
|
||||
<div class="logo">
|
||||
<span class="icon fa-rocket"></span></div>
|
||||
<div class="content">
|
||||
<div class="inner">
|
||||
<h1>405错误</h1>
|
||||
<p>您的访问方式不正确。</p></div>
|
||||
</div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="./#">返回首页</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<footer id="footer"><p class="copyright">©{date("Y")} {$config["appName"]} </p></footer>
|
||||
</div>
|
||||
<div id="bg"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@1.11.3"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/ajlkn/skel@3.0.1/dist/skel.min.js"></script>
|
||||
<script src="/assets/js/util.js"></script>
|
||||
<script src="/assets/js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,46 +1,47 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>该网页无法正常运作 - {$config["appName"]}</title>
|
||||
<meta name="keywords" content=""/>
|
||||
<meta name="description" content=""/>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="shortcut icon" href="/favicon.ico"/>
|
||||
<link rel="bookmark" href="/favicon.ico" type="image/x-icon"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
|
||||
<link rel="shortcut icon" type="image/ico" href="images/ssr.ico">
|
||||
<link rel="stylesheet" href="/assets/css/main.css" />
|
||||
<head>
|
||||
<title>该网页无法正常运作 - {$config["appName"]}</title>
|
||||
<meta name="keywords" content=""/>
|
||||
<meta name="description" content=""/>
|
||||
<meta charset="utf-8"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico"/>
|
||||
<link rel="bookmark" href="/favicon.ico" type="image/x-icon"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
|
||||
<link rel="shortcut icon" type="image/ico" href="images/ssr.ico">
|
||||
<link rel="stylesheet" href="/assets/css/main.css"/>
|
||||
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="/assets/css/noscript.css" />
|
||||
</noscript>
|
||||
</head>
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="/assets/css/noscript.css"/>
|
||||
</noscript>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<header id="header">
|
||||
<div class="logo">
|
||||
<span class="icon fa-rocket"></span>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="inner">
|
||||
<h1>500错误</h1>
|
||||
<p>服务娘崩溃了呢... TwT</p>
|
||||
<p>这件事儿不应该发生的...如果反复出现可以提交一下工单联系站主.</p>
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="./#">返回首页</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<footer id="footer">
|
||||
<p class="copyright">©{date("Y")} {$config["appName"]} </p>
|
||||
</footer>
|
||||
</div>
|
||||
<div id="bg"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@1.11.3"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/ajlkn/skel@3.0.1/dist/skel.min.js"></script>
|
||||
<script src="/assets/js/util.js"></script>
|
||||
<script src="/assets/js/main.js"></script>
|
||||
</body></html>
|
||||
<div id="wrapper">
|
||||
<header id="header">
|
||||
<div class="logo">
|
||||
<span class="icon fa-rocket"></span>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div class="inner">
|
||||
<h1>500错误</h1>
|
||||
<p>服务娘崩溃了呢... TwT</p>
|
||||
<p>这件事儿不应该发生的...如果反复出现可以提交一下工单联系站主.</p>
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="./#">返回首页</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<footer id="footer">
|
||||
<p class="copyright">©{date("Y")} {$config["appName"]} </p>
|
||||
</footer>
|
||||
</div>
|
||||
<div id="bg"></div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@1.11.3"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/ajlkn/skel@3.0.1/dist/skel.min.js"></script>
|
||||
<script src="/assets/js/util.js"></script>
|
||||
<script src="/assets/js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,74 +1,71 @@
|
||||
{include file='admin/main.tpl'}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{include file='admin/main.tpl'}
|
||||
|
||||
|
||||
<main class="content">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">充值码{if $config['enable_donate']=='true'}与捐赠{/if}管理</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="col-lg-12 col-md-12">
|
||||
<section class="content-inner margin-top-no">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<p>系统中金额流转记录。</p>
|
||||
<p>显示表项:
|
||||
{include file='table/checkbox.tpl'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
{include file='table/table.tpl'}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="fbtn-container">
|
||||
<div class="fbtn-inner">
|
||||
<a class="fbtn fbtn-lg fbtn-brand-accent waves-attach waves-circle waves-light" href="/admin/code/create">+</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="fbtn-container">
|
||||
<div class="fbtn-inner">
|
||||
<a class="fbtn fbtn-lg fbtn-brand-accent waves-attach waves-circle waves-light" data-toggle="dropdown"><span class="fbtn-ori icon">add</span><span class="fbtn-sub icon">close</span></a>
|
||||
<div class="fbtn-dropup">
|
||||
<a class="fbtn fbtn-brand waves-attach waves-circle waves-light" href="/admin/code/create"><span class="fbtn-text fbtn-text-left">充值码</span><span class="icon">code</span></a> {if $config['enable_donate']=='true'}
|
||||
<a class="fbtn fbtn-green waves-attach waves-circle waves-light" href="/admin/donate/create"><span class="fbtn-text fbtn-text-left">捐赠和支出</span><span class="icon">attach_money</span></a> {/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">充值码{if $config['enable_donate']=='true'}与捐赠{/if}管理</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="col-lg-12 col-md-12">
|
||||
<section class="content-inner margin-top-no">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<p>系统中金额流转记录。</p>
|
||||
<p>显示表项:
|
||||
{include file='table/checkbox.tpl'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
{include file='table/table.tpl'}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="fbtn-container">
|
||||
<div class="fbtn-inner">
|
||||
<a class="fbtn fbtn-lg fbtn-brand-accent waves-attach waves-circle waves-light"
|
||||
href="/admin/code/create">+</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="fbtn-container">
|
||||
<div class="fbtn-inner">
|
||||
<a class="fbtn fbtn-lg fbtn-brand-accent waves-attach waves-circle waves-light"
|
||||
data-toggle="dropdown"><span class="fbtn-ori icon">add</span><span class="fbtn-sub icon">close</span></a>
|
||||
<div class="fbtn-dropup">
|
||||
<a class="fbtn fbtn-brand waves-attach waves-circle waves-light"
|
||||
href="/admin/code/create"><span class="fbtn-text fbtn-text-left">充值码</span><span
|
||||
class="icon">code</span></a> {if $config['enable_donate']=='true'}
|
||||
<a class="fbtn fbtn-green waves-attach waves-circle waves-light"
|
||||
href="/admin/donate/create"><span class="fbtn-text fbtn-text-left">捐赠和支出</span><span
|
||||
class="icon">attach_money</span></a>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{include file='admin/footer.tpl'}
|
||||
|
||||
<script>
|
||||
{include file='table/js_1.tpl'}
|
||||
{include file='table/js_1.tpl'}
|
||||
|
||||
$(document).ready(function(){
|
||||
{include file='table/js_2.tpl'}
|
||||
});
|
||||
$(document).ready(function () {
|
||||
{include file='table/js_2.tpl'}
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -1,138 +1,123 @@
|
||||
|
||||
|
||||
|
||||
{include file='admin/main.tpl'}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<main class="content">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading"> 编辑规则 #{$rule->id}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<section class="content-inner margin-top-no">
|
||||
<form id="main_form">
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<div class="form-group form-group-label">
|
||||
<label class="floating-label" for="name">规则名称</label>
|
||||
<input class="form-control maxwidth-edit" id="name" name="name" type="text" value="{$rule->name}">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group form-group-label">
|
||||
<label class="floating-label" for="text">规则描述</label>
|
||||
<input class="form-control maxwidth-edit" id="text" name="text" type="text" value="{$rule->text}">
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-label">
|
||||
<label class="floating-label" for="regex">规则正则表达式</label>
|
||||
<input class="form-control maxwidth-edit" id="regex" name="regex" type="text" value="{$rule->regex}">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group form-group-label">
|
||||
<div class="form-group form-group-label">
|
||||
<label class="floating-label" for="type">规则类型</label>
|
||||
<select id="type" class="form-control maxwidth-edit" name="type">
|
||||
<option value="1" {if $rule->type == 1}selected{/if}>数据包明文匹配</option>
|
||||
<option value="2" {if $rule->type == 2}selected{/if}>数据包 hex 匹配</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-md-push-1">
|
||||
<button id="submit" type="submit" class="btn btn-block btn-brand waves-attach waves-light">修改</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{include file='dialog.tpl'}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<main class="content">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading"> 编辑规则 #{$rule->id}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<section class="content-inner margin-top-no">
|
||||
<form id="main_form">
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<div class="form-group form-group-label">
|
||||
<label class="floating-label" for="name">规则名称</label>
|
||||
<input class="form-control maxwidth-edit" id="name" name="name" type="text"
|
||||
value="{$rule->name}">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group form-group-label">
|
||||
<label class="floating-label" for="text">规则描述</label>
|
||||
<input class="form-control maxwidth-edit" id="text" name="text" type="text"
|
||||
value="{$rule->text}">
|
||||
</div>
|
||||
|
||||
<div class="form-group form-group-label">
|
||||
<label class="floating-label" for="regex">规则正则表达式</label>
|
||||
<input class="form-control maxwidth-edit" id="regex" name="regex" type="text"
|
||||
value="{$rule->regex}">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group form-group-label">
|
||||
<div class="form-group form-group-label">
|
||||
<label class="floating-label" for="type">规则类型</label>
|
||||
<select id="type" class="form-control maxwidth-edit" name="type">
|
||||
<option value="1" {if $rule->type == 1}selected{/if}>数据包明文匹配</option>
|
||||
<option value="2" {if $rule->type == 2}selected{/if}>数据包 hex 匹配</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-md-push-1">
|
||||
<button id="submit" type="submit"
|
||||
class="btn btn-block btn-brand waves-attach waves-light">修改
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{include file='dialog.tpl'}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
{include file='admin/footer.tpl'}
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
$('#main_form').validate({
|
||||
{literal}
|
||||
rules: {
|
||||
name: {required: true},
|
||||
text: {required: true},
|
||||
regex: {required: true}
|
||||
},
|
||||
{/literal}
|
||||
submitHandler: function() {
|
||||
|
||||
$.ajax({
|
||||
type: "PUT",
|
||||
url: "/admin/detect/{$rule->id}",
|
||||
dataType: "json",
|
||||
|
||||
data: {
|
||||
name: $$getValue("name"),
|
||||
text: $$getValue("text"),
|
||||
regex: $$getValue("regex"),
|
||||
type: $$getValue("type")
|
||||
},
|
||||
success: data => {
|
||||
if (data.ret) {
|
||||
$("#result").modal();
|
||||
$$.getElementById('msg').innerHTML = data.msg;
|
||||
window.setTimeout("location.href=top.document.referrer", {$config['jump_delay']});
|
||||
} else {
|
||||
$("#result").modal();
|
||||
$$.getElementById('msg').innerHTML = data.msg;
|
||||
}
|
||||
},
|
||||
error: jqXHR => {
|
||||
$("#result").modal();
|
||||
$$.getElementById('msg').innerHTML = `${ldelim}data.msg{rdelim} 发生错误了。`;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
$('#main_form').validate({
|
||||
{literal}
|
||||
rules: {
|
||||
name: {required: true},
|
||||
text: {required: true},
|
||||
regex: {required: true}
|
||||
},
|
||||
{/literal}
|
||||
submitHandler: function () {
|
||||
|
||||
$.ajax({
|
||||
type: "PUT",
|
||||
url: "/admin/detect/{$rule->id}",
|
||||
dataType: "json",
|
||||
|
||||
data: {
|
||||
name: $$getValue("name"),
|
||||
text: $$getValue("text"),
|
||||
regex: $$getValue("regex"),
|
||||
type: $$getValue("type")
|
||||
},
|
||||
success: data => {
|
||||
if (data.ret) {
|
||||
$("#result").modal();
|
||||
$$.getElementById('msg').innerHTML = data.msg;
|
||||
window.setTimeout("location.href=top.document.referrer", {$config['jump_delay']});
|
||||
} else {
|
||||
$("#result").modal();
|
||||
$$.getElementById('msg').innerHTML = data.msg;
|
||||
}
|
||||
},
|
||||
error: jqXHR => {
|
||||
$("#result").modal();
|
||||
$$.getElementById('msg').innerHTML = `${ldelim}data.msg{rdelim} 发生错误了。`;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@ -1,56 +1,45 @@
|
||||
{include file='admin/main.tpl'}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{include file='admin/main.tpl'}
|
||||
|
||||
|
||||
<main class="content">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">审计记录查看</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="col-lg-12 col-md-12">
|
||||
<section class="content-inner margin-top-no">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<p>系统中所有审计记录。</p>
|
||||
<p>显示表项:
|
||||
{include file='table/checkbox.tpl'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
{include file='table/table.tpl'}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">审计记录查看</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="col-lg-12 col-md-12">
|
||||
<section class="content-inner margin-top-no">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<p>系统中所有审计记录。</p>
|
||||
<p>显示表项:
|
||||
{include file='table/checkbox.tpl'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
{include file='table/table.tpl'}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{include file='admin/footer.tpl'}
|
||||
|
||||
<script>
|
||||
{include file='table/js_1.tpl'}
|
||||
{include file='table/js_1.tpl'}
|
||||
|
||||
$(document).ready(function(){
|
||||
{include file='table/js_2.tpl'}
|
||||
});
|
||||
$(document).ready(function () {
|
||||
{include file='table/js_2.tpl'}
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -1,291 +1,319 @@
|
||||
{include file='admin/main.tpl'}
|
||||
|
||||
<main class="content">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">汇总</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<section class="content-inner margin-top-no">
|
||||
<div class="row">
|
||||
<div class="col-xx-12">
|
||||
<div class="card margin-bottom-no">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<p>下面是系统运行情况简报。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-card-wrap">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xx-12 col-sm-6">
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
|
||||
<div id="check_chart" style="height: 300px; width: 100%;"></div>
|
||||
|
||||
<script src="//cdn.jsdelivr.net/gh/SuicidalCat/canvasjs.js@v2.3.1/canvasjs.min.js"></script>
|
||||
<script>
|
||||
var chart = new CanvasJS.Chart("check_chart",
|
||||
{
|
||||
title:{
|
||||
text: "用户签到情况(总用户 {$sts->getTotalUser()}人)",
|
||||
fontFamily: "Impact",
|
||||
fontWeight: "normal"
|
||||
},
|
||||
|
||||
legend:{
|
||||
verticalAlign: "bottom",
|
||||
horizontalAlign: "center"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
//startAngle: 45,
|
||||
indexLabelFontSize: 20,
|
||||
indexLabelFontFamily: "Garamond",
|
||||
indexLabelFontColor: "darkgrey",
|
||||
indexLabelLineColor: "darkgrey",
|
||||
indexLabelPlacement: "outside",
|
||||
type: "doughnut",
|
||||
showInLegend: true,
|
||||
dataPoints: [
|
||||
{
|
||||
y: {(1-($sts->getCheckinUser()/$sts->getTotalUser()))*100}, legendText:"没有签到过的用户 {number_format((1-($sts->getCheckinUser()/$sts->getTotalUser()))*100,2)}% {$sts->getTotalUser()-$sts->getCheckinUser()}人", indexLabel: "没有签到过的用户 {number_format((1-($sts->getCheckinUser()/$sts->getTotalUser()))*100,2)}% {$sts->getTotalUser()-$sts->getCheckinUser()}人"
|
||||
},
|
||||
{
|
||||
y: {(($sts->getCheckinUser()-$sts->getTodayCheckinUser())/$sts->getTotalUser())*100}, legendText:"曾经签到过的用户 {number_format((($sts->getCheckinUser()-$sts->getTodayCheckinUser())/$sts->getTotalUser())*100,2)}% {$sts->getCheckinUser()-$sts->getTodayCheckinUser()}人", indexLabel: "曾经签到过的用户 {number_format((($sts->getCheckinUser()-$sts->getTodayCheckinUser())/$sts->getTotalUser())*100,2)}% {$sts->getCheckinUser()-$sts->getTodayCheckinUser()}人"
|
||||
},
|
||||
{
|
||||
y: {$sts->getTodayCheckinUser()/$sts->getTotalUser()*100}, legendText:"今日签到用户 {number_format($sts->getTodayCheckinUser()/$sts->getTotalUser()*100,2)}% {$sts->getTodayCheckinUser()}人", indexLabel: "今日签到用户 {number_format($sts->getTodayCheckinUser()/$sts->getTotalUser()*100,2)}% {$sts->getTodayCheckinUser()}人"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
chart.render();
|
||||
|
||||
function chartRender(chart){
|
||||
chart.render();
|
||||
chart.ctx.shadowBlur = 8;
|
||||
chart.ctx.shadowOffsetX = 4;
|
||||
chart.ctx.shadowColor = "black";
|
||||
|
||||
for (let i in chart.plotInfo.plotTypes) {
|
||||
let plotType = chart.plotInfo.plotTypes[i];
|
||||
for (let j in plotType.plotUnits) {
|
||||
let plotUnit = plotType.plotUnits[j];
|
||||
if (plotUnit.type === "doughnut") {
|
||||
// For Column Chart
|
||||
chart.renderDoughnut(plotUnit);
|
||||
} else if (plotUnit.type === "bar") {
|
||||
// For Bar Chart
|
||||
chart.renderBar(plotUnit);
|
||||
<main class="content">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">汇总</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<section class="content-inner margin-top-no">
|
||||
<div class="row">
|
||||
<div class="col-xx-12">
|
||||
<div class="card margin-bottom-no">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<p>下面是系统运行情况简报。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-card-wrap">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xx-12 col-sm-6">
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
|
||||
<div id="check_chart" style="height: 300px; width: 100%;"></div>
|
||||
|
||||
<script src="//cdn.jsdelivr.net/gh/SuicidalCat/canvasjs.js@v2.3.1/canvasjs.min.js"></script>
|
||||
<script>
|
||||
var chart = new CanvasJS.Chart("check_chart",
|
||||
{
|
||||
title: {
|
||||
text: "用户签到情况(总用户 {$sts->getTotalUser()}人)",
|
||||
fontFamily: "Impact",
|
||||
fontWeight: "normal"
|
||||
},
|
||||
|
||||
legend: {
|
||||
verticalAlign: "bottom",
|
||||
horizontalAlign: "center"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
//startAngle: 45,
|
||||
indexLabelFontSize: 20,
|
||||
indexLabelFontFamily: "Garamond",
|
||||
indexLabelFontColor: "darkgrey",
|
||||
indexLabelLineColor: "darkgrey",
|
||||
indexLabelPlacement: "outside",
|
||||
type: "doughnut",
|
||||
showInLegend: true,
|
||||
dataPoints: [
|
||||
{
|
||||
y: {(1-($sts->getCheckinUser()/$sts->getTotalUser()))*100},
|
||||
legendText: "没有签到过的用户 {number_format((1-($sts->getCheckinUser()/$sts->getTotalUser()))*100,2)}% {$sts->getTotalUser()-$sts->getCheckinUser()}人",
|
||||
indexLabel: "没有签到过的用户 {number_format((1-($sts->getCheckinUser()/$sts->getTotalUser()))*100,2)}% {$sts->getTotalUser()-$sts->getCheckinUser()}人"
|
||||
},
|
||||
{
|
||||
y: {(($sts->getCheckinUser()-$sts->getTodayCheckinUser())/$sts->getTotalUser())*100},
|
||||
legendText: "曾经签到过的用户 {number_format((($sts->getCheckinUser()-$sts->getTodayCheckinUser())/$sts->getTotalUser())*100,2)}% {$sts->getCheckinUser()-$sts->getTodayCheckinUser()}人",
|
||||
indexLabel: "曾经签到过的用户 {number_format((($sts->getCheckinUser()-$sts->getTodayCheckinUser())/$sts->getTotalUser())*100,2)}% {$sts->getCheckinUser()-$sts->getTodayCheckinUser()}人"
|
||||
},
|
||||
{
|
||||
y: {$sts->getTodayCheckinUser()/$sts->getTotalUser()*100},
|
||||
legendText: "今日签到用户 {number_format($sts->getTodayCheckinUser()/$sts->getTotalUser()*100,2)}% {$sts->getTodayCheckinUser()}人",
|
||||
indexLabel: "今日签到用户 {number_format($sts->getTodayCheckinUser()/$sts->getTotalUser()*100,2)}% {$sts->getTodayCheckinUser()}人"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
chart.render();
|
||||
|
||||
function chartRender(chart) {
|
||||
chart.render();
|
||||
chart.ctx.shadowBlur = 8;
|
||||
chart.ctx.shadowOffsetX = 4;
|
||||
chart.ctx.shadowColor = "black";
|
||||
|
||||
for (let i in chart.plotInfo.plotTypes) {
|
||||
let plotType = chart.plotInfo.plotTypes[i];
|
||||
for (let j in plotType.plotUnits) {
|
||||
let plotUnit = plotType.plotUnits[j];
|
||||
if (plotUnit.type === "doughnut") {
|
||||
// For Column Chart
|
||||
chart.renderDoughnut(plotUnit);
|
||||
} else if (plotUnit.type === "bar") {
|
||||
// For Bar Chart
|
||||
chart.renderBar(plotUnit);
|
||||
}
|
||||
}
|
||||
chart.ctx.shadowBlur = 0;
|
||||
chart.ctx.shadowOffsetX = 0;
|
||||
chart.ctx.shadowColor = "transparent";
|
||||
}
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
|
||||
<div id="alive_chart" style="height: 300px; width: 100%;"></div>
|
||||
|
||||
<script src="//cdn.jsdelivr.net/gh/YihanH/canvasjs.js@v2.2/canvasjs.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var chart = new CanvasJS.Chart("alive_chart",
|
||||
{
|
||||
title:{
|
||||
text: "用户在线情况(总用户 {$sts->getTotalUser()}人)",
|
||||
fontFamily: "Impact",
|
||||
fontWeight: "normal"
|
||||
},
|
||||
|
||||
legend:{
|
||||
verticalAlign: "bottom",
|
||||
horizontalAlign: "center"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
//startAngle: 45,
|
||||
indexLabelFontSize: 20,
|
||||
indexLabelFontFamily: "Garamond",
|
||||
indexLabelFontColor: "darkgrey",
|
||||
indexLabelLineColor: "darkgrey",
|
||||
indexLabelPlacement: "outside",
|
||||
type: "doughnut",
|
||||
showInLegend: true,
|
||||
dataPoints: [
|
||||
{
|
||||
y: {(($sts->getUnusedUser()/$sts->getTotalUser()))*100}, legendText:"从未在线的用户 {number_format((($sts->getUnusedUser()/$sts->getTotalUser()))*100,2)}% {(($sts->getUnusedUser()))}人", indexLabel: "从未在线的用户 {number_format((($sts->getUnusedUser()/$sts->getTotalUser()))*100,2)}% {(($sts->getUnusedUser()))}人"
|
||||
},
|
||||
{
|
||||
y: {(($sts->getTotalUser()-$sts->getOnlineUser(86400)-$sts->getUnusedUser())/$sts->getTotalUser())*100}, legendText:"一天以前在线的用户 {number_format((($sts->getTotalUser()-$sts->getOnlineUser(86400)-$sts->getUnusedUser())/$sts->getTotalUser())*100,2)}% {($sts->getTotalUser()-$sts->getOnlineUser(86400)-$sts->getUnusedUser())}人", indexLabel: "一天以前在线的用户 {number_format((($sts->getTotalUser()-$sts->getOnlineUser(86400)-$sts->getUnusedUser())/$sts->getTotalUser())*100,2)}% {($sts->getTotalUser()-$sts->getOnlineUser(86400)-$sts->getUnusedUser())}人"
|
||||
},
|
||||
{
|
||||
y: {($sts->getOnlineUser(86400)-$sts->getOnlineUser(3600))/$sts->getTotalUser()*100}, legendText:"一天内在线的用户 {number_format(($sts->getOnlineUser(86400)-$sts->getOnlineUser(3600))/$sts->getTotalUser()*100,2)}% {($sts->getOnlineUser(86400)-$sts->getOnlineUser(3600))}人", indexLabel: "一天内在线的用户 {number_format(($sts->getOnlineUser(86400)-$sts->getOnlineUser(3600))/$sts->getTotalUser()*100,2)}% {($sts->getOnlineUser(86400)-$sts->getOnlineUser(3600))}人"
|
||||
},
|
||||
{
|
||||
y: {($sts->getOnlineUser(3600)-$sts->getOnlineUser(60))/$sts->getTotalUser()*100}, legendText:"一小时内在线的用户 {number_format(($sts->getOnlineUser(3600)-$sts->getOnlineUser(60))/$sts->getTotalUser()*100,2)}% {($sts->getOnlineUser(3600)-$sts->getOnlineUser(60))}人", indexLabel: "一小时内在线的用户 {number_format(($sts->getOnlineUser(3600)-$sts->getOnlineUser(60))/$sts->getTotalUser()*100,2)}% {($sts->getOnlineUser(3600)-$sts->getOnlineUser(60))}人"
|
||||
},
|
||||
{
|
||||
y: {($sts->getOnlineUser(60))/$sts->getTotalUser()*100}, legendText:"一分钟内在线的用户 {number_format(($sts->getOnlineUser(60))/$sts->getTotalUser()*100,2)}% {($sts->getOnlineUser(60))}人", indexLabel: "一分钟内在线的用户 {number_format(($sts->getOnlineUser(60))/$sts->getTotalUser()*100,2)}% {($sts->getOnlineUser(60))}人"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
chart.render();
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xx-12 col-sm-6">
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
|
||||
<div id="node_chart" style="height: 300px; width: 100%;"></div>
|
||||
|
||||
<script src="//cdn.jsdelivr.net/gh/YihanH/canvasjs.js@v2.2/canvasjs.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var chart = new CanvasJS.Chart("node_chart",
|
||||
{
|
||||
title:{
|
||||
text: "节点在线情况(节点数 {$sts->getTotalNodes()}个)",
|
||||
fontFamily: "Impact",
|
||||
fontWeight: "normal"
|
||||
},
|
||||
|
||||
legend:{
|
||||
verticalAlign: "bottom",
|
||||
horizontalAlign: "center"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
//startAngle: 45,
|
||||
indexLabelFontSize: 20,
|
||||
indexLabelFontFamily: "Garamond",
|
||||
indexLabelFontColor: "darkgrey",
|
||||
indexLabelLineColor: "darkgrey",
|
||||
indexLabelPlacement: "outside",
|
||||
type: "doughnut",
|
||||
showInLegend: true,
|
||||
dataPoints: [
|
||||
{if $sts->getTotalNodes()!=0}
|
||||
{
|
||||
y: {(1-($sts->getAliveNodes()/$sts->getTotalNodes()))*100}, legendText:"离线节点 {number_format((1-($sts->getAliveNodes()/$sts->getTotalNodes()))*100,2)}% {$sts->getTotalNodes()-$sts->getAliveNodes()}个", indexLabel: "离线节点 {number_format((1-($sts->getAliveNodes()/$sts->getTotalNodes()))*100,2)}% {$sts->getTotalNodes()-$sts->getAliveNodes()}个"
|
||||
},
|
||||
{
|
||||
y: {(($sts->getAliveNodes()/$sts->getTotalNodes()))*100}, legendText:"在线节点 {number_format((($sts->getAliveNodes()/$sts->getTotalNodes()))*100,2)}% {$sts->getAliveNodes()}个", indexLabel: "在线节点 {number_format((($sts->getAliveNodes()/$sts->getTotalNodes()))*100,2)}% {$sts->getAliveNodes()}个"
|
||||
}
|
||||
{/if}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
chart.render();
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
|
||||
<div id="traffic_chart" style="height: 300px; width: 100%;"></div>
|
||||
|
||||
<script src="//cdn.jsdelivr.net/gh/YihanH/canvasjs.js@v2.2/canvasjs.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var chart = new CanvasJS.Chart("traffic_chart",
|
||||
{
|
||||
title:{
|
||||
text: "流量使用情况(总分配流量 {$sts->getTotalTraffic()})",
|
||||
fontFamily: "Impact",
|
||||
fontWeight: "normal"
|
||||
},
|
||||
|
||||
legend:{
|
||||
verticalAlign: "bottom",
|
||||
horizontalAlign: "center"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
//startAngle: 45,
|
||||
indexLabelFontSize: 20,
|
||||
indexLabelFontFamily: "Garamond",
|
||||
indexLabelFontColor: "darkgrey",
|
||||
indexLabelLineColor: "darkgrey",
|
||||
indexLabelPlacement: "outside",
|
||||
type: "doughnut",
|
||||
showInLegend: true,
|
||||
dataPoints: [
|
||||
{if $sts->getRawTotalTraffic()!=0}
|
||||
{
|
||||
y: {(($sts->getRawUnusedTrafficUsage()/$sts->getRawTotalTraffic()))*100},label: "总剩余可用", legendText:"总剩余可用 {number_format((($sts->getRawUnusedTrafficUsage()/$sts->getRawTotalTraffic()))*100,2)}% {(($sts->getUnusedTrafficUsage()))}", indexLabel: "总剩余可用 {number_format((($sts->getRawUnusedTrafficUsage()/$sts->getRawTotalTraffic()))*100,2)}% {(($sts->getUnusedTrafficUsage()))}"
|
||||
},
|
||||
{
|
||||
y: {(($sts->getRawLastTrafficUsage()/$sts->getRawTotalTraffic()))*100},label: "总过去已用", legendText:"总过去已用 {number_format((($sts->getRawLastTrafficUsage()/$sts->getRawTotalTraffic()))*100,2)}% {(($sts->getLastTrafficUsage()))}", indexLabel: "总过去已用 {number_format((($sts->getRawLastTrafficUsage()/$sts->getRawTotalTraffic()))*100,2)}% {(($sts->getLastTrafficUsage()))}"
|
||||
},
|
||||
{
|
||||
y: {(($sts->getRawTodayTrafficUsage()/$sts->getRawTotalTraffic()))*100},label: "总今日已用", legendText:"总今日已用 {number_format((($sts->getRawTodayTrafficUsage()/$sts->getRawTotalTraffic()))*100,2)}% {(($sts->getTodayTrafficUsage()))}", indexLabel: "总今日已用 {number_format((($sts->getRawTodayTrafficUsage()/$sts->getRawTotalTraffic()))*100,2)}% {(($sts->getTodayTrafficUsage()))}"
|
||||
}
|
||||
{/if}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
chart.render();
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
chart.ctx.shadowBlur = 0;
|
||||
chart.ctx.shadowOffsetX = 0;
|
||||
chart.ctx.shadowColor = "transparent";
|
||||
}
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
|
||||
<div id="alive_chart" style="height: 300px; width: 100%;"></div>
|
||||
|
||||
<script src="//cdn.jsdelivr.net/gh/YihanH/canvasjs.js@v2.2/canvasjs.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var chart = new CanvasJS.Chart("alive_chart",
|
||||
{
|
||||
title: {
|
||||
text: "用户在线情况(总用户 {$sts->getTotalUser()}人)",
|
||||
fontFamily: "Impact",
|
||||
fontWeight: "normal"
|
||||
},
|
||||
|
||||
legend: {
|
||||
verticalAlign: "bottom",
|
||||
horizontalAlign: "center"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
//startAngle: 45,
|
||||
indexLabelFontSize: 20,
|
||||
indexLabelFontFamily: "Garamond",
|
||||
indexLabelFontColor: "darkgrey",
|
||||
indexLabelLineColor: "darkgrey",
|
||||
indexLabelPlacement: "outside",
|
||||
type: "doughnut",
|
||||
showInLegend: true,
|
||||
dataPoints: [
|
||||
{
|
||||
y: {(($sts->getUnusedUser()/$sts->getTotalUser()))*100},
|
||||
legendText: "从未在线的用户 {number_format((($sts->getUnusedUser()/$sts->getTotalUser()))*100,2)}% {(($sts->getUnusedUser()))}人",
|
||||
indexLabel: "从未在线的用户 {number_format((($sts->getUnusedUser()/$sts->getTotalUser()))*100,2)}% {(($sts->getUnusedUser()))}人"
|
||||
},
|
||||
{
|
||||
y: {(($sts->getTotalUser()-$sts->getOnlineUser(86400)-$sts->getUnusedUser())/$sts->getTotalUser())*100},
|
||||
legendText: "一天以前在线的用户 {number_format((($sts->getTotalUser()-$sts->getOnlineUser(86400)-$sts->getUnusedUser())/$sts->getTotalUser())*100,2)}% {($sts->getTotalUser()-$sts->getOnlineUser(86400)-$sts->getUnusedUser())}人",
|
||||
indexLabel: "一天以前在线的用户 {number_format((($sts->getTotalUser()-$sts->getOnlineUser(86400)-$sts->getUnusedUser())/$sts->getTotalUser())*100,2)}% {($sts->getTotalUser()-$sts->getOnlineUser(86400)-$sts->getUnusedUser())}人"
|
||||
},
|
||||
{
|
||||
y: {($sts->getOnlineUser(86400)-$sts->getOnlineUser(3600))/$sts->getTotalUser()*100},
|
||||
legendText: "一天内在线的用户 {number_format(($sts->getOnlineUser(86400)-$sts->getOnlineUser(3600))/$sts->getTotalUser()*100,2)}% {($sts->getOnlineUser(86400)-$sts->getOnlineUser(3600))}人",
|
||||
indexLabel: "一天内在线的用户 {number_format(($sts->getOnlineUser(86400)-$sts->getOnlineUser(3600))/$sts->getTotalUser()*100,2)}% {($sts->getOnlineUser(86400)-$sts->getOnlineUser(3600))}人"
|
||||
},
|
||||
{
|
||||
y: {($sts->getOnlineUser(3600)-$sts->getOnlineUser(60))/$sts->getTotalUser()*100},
|
||||
legendText: "一小时内在线的用户 {number_format(($sts->getOnlineUser(3600)-$sts->getOnlineUser(60))/$sts->getTotalUser()*100,2)}% {($sts->getOnlineUser(3600)-$sts->getOnlineUser(60))}人",
|
||||
indexLabel: "一小时内在线的用户 {number_format(($sts->getOnlineUser(3600)-$sts->getOnlineUser(60))/$sts->getTotalUser()*100,2)}% {($sts->getOnlineUser(3600)-$sts->getOnlineUser(60))}人"
|
||||
},
|
||||
{
|
||||
y: {($sts->getOnlineUser(60))/$sts->getTotalUser()*100},
|
||||
legendText: "一分钟内在线的用户 {number_format(($sts->getOnlineUser(60))/$sts->getTotalUser()*100,2)}% {($sts->getOnlineUser(60))}人",
|
||||
indexLabel: "一分钟内在线的用户 {number_format(($sts->getOnlineUser(60))/$sts->getTotalUser()*100,2)}% {($sts->getOnlineUser(60))}人"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
chart.render();
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xx-12 col-sm-6">
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
|
||||
<div id="node_chart" style="height: 300px; width: 100%;"></div>
|
||||
|
||||
<script src="//cdn.jsdelivr.net/gh/YihanH/canvasjs.js@v2.2/canvasjs.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var chart = new CanvasJS.Chart("node_chart",
|
||||
{
|
||||
title: {
|
||||
text: "节点在线情况(节点数 {$sts->getTotalNodes()}个)",
|
||||
fontFamily: "Impact",
|
||||
fontWeight: "normal"
|
||||
},
|
||||
|
||||
legend: {
|
||||
verticalAlign: "bottom",
|
||||
horizontalAlign: "center"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
//startAngle: 45,
|
||||
indexLabelFontSize: 20,
|
||||
indexLabelFontFamily: "Garamond",
|
||||
indexLabelFontColor: "darkgrey",
|
||||
indexLabelLineColor: "darkgrey",
|
||||
indexLabelPlacement: "outside",
|
||||
type: "doughnut",
|
||||
showInLegend: true,
|
||||
dataPoints: [
|
||||
{if $sts->getTotalNodes()!=0}
|
||||
{
|
||||
y: {(1-($sts->getAliveNodes()/$sts->getTotalNodes()))*100},
|
||||
legendText: "离线节点 {number_format((1-($sts->getAliveNodes()/$sts->getTotalNodes()))*100,2)}% {$sts->getTotalNodes()-$sts->getAliveNodes()}个",
|
||||
indexLabel: "离线节点 {number_format((1-($sts->getAliveNodes()/$sts->getTotalNodes()))*100,2)}% {$sts->getTotalNodes()-$sts->getAliveNodes()}个"
|
||||
},
|
||||
{
|
||||
y: {(($sts->getAliveNodes()/$sts->getTotalNodes()))*100},
|
||||
legendText: "在线节点 {number_format((($sts->getAliveNodes()/$sts->getTotalNodes()))*100,2)}% {$sts->getAliveNodes()}个",
|
||||
indexLabel: "在线节点 {number_format((($sts->getAliveNodes()/$sts->getTotalNodes()))*100,2)}% {$sts->getAliveNodes()}个"
|
||||
}
|
||||
{/if}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
chart.render();
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
|
||||
<div id="traffic_chart" style="height: 300px; width: 100%;"></div>
|
||||
|
||||
<script src="//cdn.jsdelivr.net/gh/YihanH/canvasjs.js@v2.2/canvasjs.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var chart = new CanvasJS.Chart("traffic_chart",
|
||||
{
|
||||
title: {
|
||||
text: "流量使用情况(总分配流量 {$sts->getTotalTraffic()})",
|
||||
fontFamily: "Impact",
|
||||
fontWeight: "normal"
|
||||
},
|
||||
|
||||
legend: {
|
||||
verticalAlign: "bottom",
|
||||
horizontalAlign: "center"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
//startAngle: 45,
|
||||
indexLabelFontSize: 20,
|
||||
indexLabelFontFamily: "Garamond",
|
||||
indexLabelFontColor: "darkgrey",
|
||||
indexLabelLineColor: "darkgrey",
|
||||
indexLabelPlacement: "outside",
|
||||
type: "doughnut",
|
||||
showInLegend: true,
|
||||
dataPoints: [
|
||||
{if $sts->getRawTotalTraffic()!=0}
|
||||
{
|
||||
y: {(($sts->getRawUnusedTrafficUsage()/$sts->getRawTotalTraffic()))*100},
|
||||
label: "总剩余可用",
|
||||
legendText: "总剩余可用 {number_format((($sts->getRawUnusedTrafficUsage()/$sts->getRawTotalTraffic()))*100,2)}% {(($sts->getUnusedTrafficUsage()))}",
|
||||
indexLabel: "总剩余可用 {number_format((($sts->getRawUnusedTrafficUsage()/$sts->getRawTotalTraffic()))*100,2)}% {(($sts->getUnusedTrafficUsage()))}"
|
||||
},
|
||||
{
|
||||
y: {(($sts->getRawLastTrafficUsage()/$sts->getRawTotalTraffic()))*100},
|
||||
label: "总过去已用",
|
||||
legendText: "总过去已用 {number_format((($sts->getRawLastTrafficUsage()/$sts->getRawTotalTraffic()))*100,2)}% {(($sts->getLastTrafficUsage()))}",
|
||||
indexLabel: "总过去已用 {number_format((($sts->getRawLastTrafficUsage()/$sts->getRawTotalTraffic()))*100,2)}% {(($sts->getLastTrafficUsage()))}"
|
||||
},
|
||||
{
|
||||
y: {(($sts->getRawTodayTrafficUsage()/$sts->getRawTotalTraffic()))*100},
|
||||
label: "总今日已用",
|
||||
legendText: "总今日已用 {number_format((($sts->getRawTodayTrafficUsage()/$sts->getRawTotalTraffic()))*100,2)}% {(($sts->getTodayTrafficUsage()))}",
|
||||
indexLabel: "总今日已用 {number_format((($sts->getRawTodayTrafficUsage()/$sts->getRawTotalTraffic()))*100,2)}% {(($sts->getTodayTrafficUsage()))}"
|
||||
}
|
||||
{/if}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
chart.render();
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
{include file='admin/footer.tpl'}
|
||||
|
||||
@ -1,41 +1,40 @@
|
||||
{include file='admin/main.tpl'}
|
||||
|
||||
<main class="content">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">在线IP</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<section class="content-inner margin-top-no">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">在线IP</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<section class="content-inner margin-top-no">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<p>显示表项: {include file='table/checkbox.tpl'}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<p>显示表项: {include file='table/checkbox.tpl'}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
{include file='table/table.tpl'}
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
{include file='table/table.tpl'}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{include file='admin/footer.tpl'}
|
||||
|
||||
<script>
|
||||
{include file='table/js_1.tpl'}
|
||||
{include file='table/js_1.tpl'}
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
{include file='table/js_2.tpl'}
|
||||
});
|
||||
window.addEventListener('load', () => {
|
||||
{include file='table/js_2.tpl'}
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -1,42 +1,41 @@
|
||||
{include file='admin/main.tpl'}
|
||||
|
||||
<main class="content">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">最近登录记录</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<section class="content-inner margin-top-no">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">最近登录记录</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<section class="content-inner margin-top-no">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<p>这里是最近的登录记录。</p>
|
||||
<p>显示表项: {include file='table/checkbox.tpl'}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<p>这里是最近的登录记录。</p>
|
||||
<p>显示表项: {include file='table/checkbox.tpl'}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
{include file='table/table.tpl'}
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
{include file='table/table.tpl'}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{include file='admin/footer.tpl'}
|
||||
|
||||
<script>
|
||||
{include file='table/js_1.tpl'}
|
||||
{include file='table/js_1.tpl'}
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
{include file='table/js_2.tpl'}
|
||||
});
|
||||
window.addEventListener('load', () => {
|
||||
{include file='table/js_2.tpl'}
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -1,43 +1,42 @@
|
||||
{include file='admin/main.tpl'}
|
||||
|
||||
<main class="content">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">解封IP记录</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<section class="content-inner margin-top-no">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<p>这里是最近的解封IP记录。</p>
|
||||
<p>显示表项: {include file='table/checkbox.tpl'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
{include file='table/table.tpl'}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">解封IP记录</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<section class="content-inner margin-top-no">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<p>这里是最近的解封IP记录。</p>
|
||||
<p>显示表项: {include file='table/checkbox.tpl'}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
{include file='table/table.tpl'}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
{include file='admin/footer.tpl'}
|
||||
|
||||
<script>
|
||||
{include file='table/js_1.tpl'}
|
||||
{include file='table/js_1.tpl'}
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
{include file='table/js_2.tpl'}
|
||||
});
|
||||
window.addEventListener('load', () => {
|
||||
{include file='table/js_2.tpl'}
|
||||
});
|
||||
</script>
|
||||
|
||||
@ -1,12 +1,16 @@
|
||||
<div aria-hidden="true" class="modal modal-va-middle fade" id="result" role="dialog" tabindex="-1">
|
||||
<div class="modal-dialog modal-xs">
|
||||
<div class="modal-content">
|
||||
<div class="modal-inner">
|
||||
<p class="h5 margin-top-sm text-black-hint" id="msg"></p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<p class="text-right"><button class="btn btn-flat btn-brand-accent waves-attach" data-dismiss="modal" type="button" id="result_ok">知道了</button></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-dialog modal-xs">
|
||||
<div class="modal-content">
|
||||
<div class="modal-inner">
|
||||
<p class="h5 margin-top-sm text-black-hint" id="msg"></p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<p class="text-right">
|
||||
<button class="btn btn-flat btn-brand-accent waves-attach" data-dismiss="modal" type="button"
|
||||
id="result_ok">知道了
|
||||
</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1,16 +1,16 @@
|
||||
<ul>
|
||||
<img src="/images/email_nrcy.jpg" height="458" width="468">
|
||||
<br />
|
||||
{if $config["enable_admin_contact"] == 'true'}
|
||||
<p>如果发现“收信查询”中没有找到邮件,请联系管理员:</p>
|
||||
{if $config["admin_contact1"]!=null}
|
||||
<li>{$config["admin_contact1"]}</li>
|
||||
{/if}
|
||||
{if $config["admin_contact2"]!=null}
|
||||
<li>{$config["admin_contact2"]}</li>
|
||||
{/if}
|
||||
{if $config["admin_contact3"]!=null}
|
||||
<li>{$config["admin_contact3"]}</li>
|
||||
{/if}
|
||||
{/if}
|
||||
<img src="/images/email_nrcy.jpg" height="458" width="468">
|
||||
<br/>
|
||||
{if $config["enable_admin_contact"] == 'true'}
|
||||
<p>如果发现“收信查询”中没有找到邮件,请联系管理员:</p>
|
||||
{if $config["admin_contact1"]!=null}
|
||||
<li>{$config["admin_contact1"]}</li>
|
||||
{/if}
|
||||
{if $config["admin_contact2"]!=null}
|
||||
<li>{$config["admin_contact2"]}</li>
|
||||
{/if}
|
||||
{if $config["admin_contact3"]!=null}
|
||||
<li>{$config["admin_contact3"]}</li>
|
||||
{/if}
|
||||
{/if}
|
||||
</ul>
|
||||
@ -1,96 +1,99 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="IE=edge" http-equiv="X-UA-Compatible">
|
||||
<meta content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" name="viewport">
|
||||
<meta name="theme-color" content="#4285f4">
|
||||
<title>{$config["appName"]}</title>
|
||||
<!-- css -->
|
||||
<link href="/theme/material/css/base.min.css" rel="stylesheet">
|
||||
<link href="/theme/material/css/project.min.css" rel="stylesheet">
|
||||
<link href="/theme/material/css/auth.css" rel="stylesheet">
|
||||
<link href="https://fonts.loli.net/css?family=Roboto:300,300italic,400,400italic,500,500italic|Material+Icons" rel="stylesheet">
|
||||
<!-- favicon -->
|
||||
<!-- js -->
|
||||
<script src="/assets/js/fuck.js"></script>
|
||||
<!-- ... -->
|
||||
<meta charset="UTF-8">
|
||||
<meta content="IE=edge" http-equiv="X-UA-Compatible">
|
||||
<meta content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" name="viewport">
|
||||
<meta name="theme-color" content="#4285f4">
|
||||
<title>{$config["appName"]}</title>
|
||||
<!-- css -->
|
||||
<link href="/theme/material/css/base.min.css" rel="stylesheet">
|
||||
<link href="/theme/material/css/project.min.css" rel="stylesheet">
|
||||
<link href="/theme/material/css/auth.css" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css?family=Material+Icons" rel="stylesheet">
|
||||
<!-- favicon -->
|
||||
<!-- js -->
|
||||
<script src="/assets/js/fuck.js"></script>
|
||||
<!-- ... -->
|
||||
</head>
|
||||
<style>
|
||||
.divcss5{ position:fixed; bottom:0;}
|
||||
<style>
|
||||
.divcss5 {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
}
|
||||
</style>
|
||||
<body class="page-brand">
|
||||
{* <header class="header header-transparent header-waterfall ui-header">
|
||||
<ul class="nav nav-list pull-left">
|
||||
<li>
|
||||
<a data-toggle="menu" href="#ui_menu">
|
||||
<span class="icon icon-lg">format_align_justify</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{* <header class="header header-transparent header-waterfall ui-header">
|
||||
<ul class="nav nav-list pull-left">
|
||||
<li>
|
||||
<a data-toggle="menu" href="#ui_menu">
|
||||
<span class="icon icon-lg">format_align_justify</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="nav nav-list pull-right">
|
||||
<li class="dropdown margin-right">
|
||||
<a class="dropdown-toggle padding-left-no padding-right-no" data-toggle="dropdown">
|
||||
{if $user->isLogin}
|
||||
<span class="access-hide">{$user->user_name}</span>
|
||||
<span class="icon icon-cd margin-right">account_circle</span>
|
||||
<!-- <span class="avatar avatar-sm"><img alt="alt text for John Smith avatar" src="{$user->gravatar}"></span> -->
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li>
|
||||
<a class="padding-right-lg waves-attach" href="/user/"><span class="icon icon-lg margin-right">account_box</span>用户中心</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="padding-right-lg waves-attach" href="/user/logout"><span class="icon icon-lg margin-right">exit_to_app</span>登出</a>
|
||||
</li>
|
||||
</ul>
|
||||
{else}
|
||||
<span class="access-hide">未登录</span>
|
||||
<span class="icon icon-cd margin-right">account_circle</span>
|
||||
<!-- <span class="avatar avatar-sm"><img alt="alt text for John Smith avatar" src="/theme/material/images/users/avatar-001.jpg"></span> -->
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li>
|
||||
<a class="padding-right-lg waves-attach" href="/auth/login"><span class="icon icon-lg margin-right">vpn_key</span>登录</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="padding-right-lg waves-attach" href="/auth/register"><span class="icon icon-lg margin-right">person_add</span>注册</a>
|
||||
</li>
|
||||
</ul>
|
||||
{/if}
|
||||
<ul class="nav nav-list pull-right">
|
||||
<li class="dropdown margin-right">
|
||||
<a class="dropdown-toggle padding-left-no padding-right-no" data-toggle="dropdown">
|
||||
{if $user->isLogin}
|
||||
<span class="access-hide">{$user->user_name}</span>
|
||||
<span class="icon icon-cd margin-right">account_circle</span>
|
||||
<!-- <span class="avatar avatar-sm"><img alt="alt text for John Smith avatar" src="{$user->gravatar}"></span> -->
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li>
|
||||
<a class="padding-right-lg waves-attach" href="/user/"><span class="icon icon-lg margin-right">account_box</span>用户中心</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="padding-right-lg waves-attach" href="/user/logout"><span class="icon icon-lg margin-right">exit_to_app</span>登出</a>
|
||||
</li>
|
||||
</ul>
|
||||
{else}
|
||||
<span class="access-hide">未登录</span>
|
||||
<span class="icon icon-cd margin-right">account_circle</span>
|
||||
<!-- <span class="avatar avatar-sm"><img alt="alt text for John Smith avatar" src="/theme/material/images/users/avatar-001.jpg"></span> -->
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li>
|
||||
<a class="padding-right-lg waves-attach" href="/auth/login"><span class="icon icon-lg margin-right">vpn_key</span>登录</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="padding-right-lg waves-attach" href="/auth/register"><span class="icon icon-lg margin-right">person_add</span>注册</a>
|
||||
</li>
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
<nav aria-hidden="true" class="menu menu-left nav-drawer nav-drawer-md" id="ui_menu" tabindex="-1">
|
||||
<div class="menu-scroll">
|
||||
<div class="menu-content">
|
||||
<a class="menu-logo" href="/"><i class="icon icon-lg">language</i> 点击返回官网</a>
|
||||
<ul class="nav">
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
<nav aria-hidden="true" class="menu menu-left nav-drawer nav-drawer-md" id="ui_menu" tabindex="-1">
|
||||
<div class="menu-scroll">
|
||||
<div class="menu-content">
|
||||
<a class="menu-logo" href="/"><i class="icon icon-lg">language</i> 点击返回官网</a>
|
||||
<ul class="nav">
|
||||
|
||||
{if $user->isLogin}
|
||||
<li>
|
||||
<a href="/user"><i class="icon icon-lg">person</i> 用户中心</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/user/logout"><i class="icon icon-lg">call_missed_outgoing</i> 退出</a>
|
||||
</li>
|
||||
{else}
|
||||
<li>
|
||||
<a href="/auth/login"><i class="icon icon-lg">vpn_key</i> 登录</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/auth/register"><i class="icon icon-lg">person_add</i> 注册</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/password/reset"><i class="icon icon-lg">security</i> 重置密码</a>
|
||||
</li>
|
||||
{if $user->isLogin}
|
||||
<li>
|
||||
<a href="/user"><i class="icon icon-lg">person</i> 用户中心</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/user/logout"><i class="icon icon-lg">call_missed_outgoing</i> 退出</a>
|
||||
</li>
|
||||
{else}
|
||||
<li>
|
||||
<a href="/auth/login"><i class="icon icon-lg">vpn_key</i> 登录</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/auth/register"><i class="icon icon-lg">person_add</i> 注册</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/password/reset"><i class="icon icon-lg">security</i> 重置密码</a>
|
||||
</li>
|
||||
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav> *}
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav> *}
|
||||
|
||||
{if $config["enable_mylivechat"] == 'true'}{include file='mylivechat.tpl'}{/if}
|
||||
|
||||
@ -1,202 +1,206 @@
|
||||
<!DOCTYPE HTML>
|
||||
<!DOCTYPE HTML>
|
||||
<!--
|
||||
Dimension by HTML5 UP
|
||||
html5up.net | @ajlkn
|
||||
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
-->
|
||||
{if $config['appName'] == '跑路'}
|
||||
<script>window.location.href='{$config["baseUrl"]}/paolu.html';</script>
|
||||
<script>window.location.href = '{$config["baseUrl"]}/paolu.html';</script>
|
||||
{/if}
|
||||
<html>
|
||||
<head>
|
||||
<title>{$config["appName"]}</title>
|
||||
<meta name="keywords" content=""/>
|
||||
<meta name="description" content=""/>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="shortcut icon" href="/favicon.ico"/>
|
||||
<link rel="bookmark" href="/favicon.ico"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
|
||||
<link rel="stylesheet" href="/assets/css/main.css"/>
|
||||
|
||||
<noscript><link rel="stylesheet" href="/assets/css/noscript.css" /></noscript>
|
||||
<link href="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.css" rel="stylesheet" />
|
||||
<head>
|
||||
<title>{$config["appName"]}</title>
|
||||
<meta name="keywords" content=""/>
|
||||
<meta name="description" content=""/>
|
||||
<meta charset="utf-8"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico"/>
|
||||
<link rel="bookmark" href="/favicon.ico"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
|
||||
<link rel="stylesheet" href="/assets/css/main.css"/>
|
||||
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="/assets/css/noscript.css"/>
|
||||
</noscript>
|
||||
<link href="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.css" rel="stylesheet"/>
|
||||
<script src="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<!--首页开始-->
|
||||
<header id="header">
|
||||
<div class="logo">
|
||||
<span class="icon fa-rocket"></span>
|
||||
</div>
|
||||
{if $user->isLogin}
|
||||
<div class="content">
|
||||
<div class="inner">
|
||||
<p>用户:<code>{$user->user_name}</code>
|
||||
等级:{if $user->class!=0}
|
||||
<code>VIP{$user->class}</code>
|
||||
{else}
|
||||
<code>免费</code>
|
||||
{/if}
|
||||
过期时间:{if $user->class_expire!="1989-06-04 00:05:00"}
|
||||
<code>{$user->class_expire}</code>
|
||||
{else}
|
||||
<code>不过期</code>
|
||||
{/if}</p>
|
||||
<p>总流量:<code>{$user->enableTraffic()}</code>
|
||||
已用流量:<code>{$user->usedTraffic()}</code>
|
||||
剩余流量:<code>{$user->unusedTraffic()}</code></p>
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="#1">简介</a></li>
|
||||
<li><a href="/user">用户中心</a></li>
|
||||
<li><a href="/user/logout">退出登录</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
{else}
|
||||
<div class="content">
|
||||
<div class="inner">
|
||||
<h1>{$config["appName"]}</h1>
|
||||
<!--
|
||||
如果想自定义文本请删除下面这段script代码,格式为
|
||||
<p>自定义文本</p>
|
||||
-->
|
||||
<div id="lwlhitokoto"></div>
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="#1">简介</a></li>
|
||||
<li><a href="/auth/login">登录</a></li>
|
||||
<li><a href="/auth/register">注册</a></li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
{/if}
|
||||
|
||||
</header>
|
||||
<!--首页结束-->
|
||||
<div id="main">
|
||||
<!--标签1开始-->
|
||||
<article id="1">
|
||||
<h2 class="major">简介</h2>
|
||||
<p>「ホワイトアルバムの季節」が、また、やってきた。</p></article>
|
||||
<!--
|
||||
简介修改示例:
|
||||
<p> 123</p>
|
||||
一个 <p> 123</p> 为一行,请不要删除 </article>
|
||||
-->
|
||||
<!--标签4开始-->
|
||||
<article id="4">
|
||||
<h2 class="major">联系我们</h2>
|
||||
<ul class="icons">
|
||||
<p>此处填写联系方式</p>
|
||||
<li>
|
||||
<a target="_blank" href="#" class="icon fa-facebook">
|
||||
<!-- 请在fontawesome.com寻找替换图标 href替换链接 -->
|
||||
<span class="label">Facebook</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</article>
|
||||
<article id="login">
|
||||
|
||||
<h2 class="major">登录</h2>
|
||||
<form method="post" action="javascript:void(0);">
|
||||
<div class="field half first">
|
||||
<label for="email2">邮箱</label>
|
||||
<input type="text" name="Email" id="email2" />
|
||||
</div>
|
||||
<div class="field half">
|
||||
<label for="passwd">密码</label>
|
||||
<input type="password" name="Password" id="passwd" />
|
||||
</div>
|
||||
|
||||
<ul class="actions">
|
||||
<li><input id="login" type="submit" value="登录" class="special" /></li>
|
||||
<li><input type="reset" value="清空" /></li>
|
||||
</ul>
|
||||
</form>
|
||||
|
||||
|
||||
<div class="field half">
|
||||
<input value="week" id="remember_me" name="remember_me" type="checkbox" checked>
|
||||
<label for="remember_me">记住我</label>
|
||||
</div>
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
<div id="result" role="dialog" >
|
||||
<p color class="h5 margin-top-sm text-black-hint" id="msg"></p>
|
||||
</div>
|
||||
</article>
|
||||
<!--全部标签结束-->
|
||||
|
||||
</div>
|
||||
<!-- 版权底部 -->
|
||||
<footer id="footer">
|
||||
<p class="copyright">©{date("Y")} {$config["appName"]}</p>
|
||||
</footer>
|
||||
<!-- 版权结束 -->
|
||||
</div>
|
||||
<!-- BG -->
|
||||
<div id="bg"></div>
|
||||
<!-- Scripts -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@1.11.3"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/ajlkn/skel@3.0.1/dist/skel.min.js"></script>
|
||||
<script src="/assets/js/util.js"></script>
|
||||
<script src="/assets/js/main.js"></script>
|
||||
<script language="javascript">
|
||||
try{
|
||||
if(window.console&&window.console.log){
|
||||
|
||||
console.log("%c{$config["appName"]}"," text-shadow: 0 1px 0 #ccc,0 2px 0 #c9c9c9,0 3px 0 #bbb,0 4px 0 #b9b9b9,0 5px 0 #aaa,0 6px 1px rgba(0,0,0,.1),0 0 5px rgba(0,0,0,.1),0 1px 3px rgba(0,0,0,.3),0 3px 5px rgba(0,0,0,.2),0 5px 10px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.2),0 20px 20px rgba(0,0,0,.15);font-size:5em");
|
||||
console.log("%chttps://github.com/NimaQu/ss-panel-v3-mod_Uim","background: rgba(252,234,187,1);background: -moz-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%,rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -webkit-gradient(left top, right top, color-stop(0%, rgba(252,234,187,1)), color-stop(12%, rgba(175,250,77,1)), color-stop(28%, rgba(0,247,49,1)), color-stop(39%, rgba(0,210,247,1)), color-stop(51%, rgba(0,189,247,1)), color-stop(64%, rgba(133,108,217,1)), color-stop(78%, rgba(177,0,247,1)), color-stop(87%, rgba(247,0,189,1)), color-stop(100%, rgba(245,22,52,1)));background: -webkit-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -o-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -ms-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: linear-gradient(to right, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fceabb', endColorstr='#f51634', GradientType=1 );font-size:3em");
|
||||
}
|
||||
}catch(e){
|
||||
};
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<!--首页开始-->
|
||||
<header id="header">
|
||||
<div class="logo">
|
||||
<span class="icon fa-rocket"></span>
|
||||
</div>
|
||||
{if $user->isLogin}
|
||||
<div class="content">
|
||||
<div class="inner">
|
||||
<p>用户:<code>{$user->user_name}</code>
|
||||
等级:{if $user->class!=0}
|
||||
<code>VIP{$user->class}</code>
|
||||
{else}
|
||||
<code>免费</code>
|
||||
{/if}
|
||||
过期时间:{if $user->class_expire!="1989-06-04 00:05:00"}
|
||||
<code>{$user->class_expire}</code>
|
||||
{else}
|
||||
<code>不过期</code>
|
||||
{/if}</p>
|
||||
<p>总流量:<code>{$user->enableTraffic()}</code>
|
||||
已用流量:<code>{$user->usedTraffic()}</code>
|
||||
剩余流量:<code>{$user->unusedTraffic()}</code></p>
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="#1">简介</a></li>
|
||||
<li><a href="/user">用户中心</a></li>
|
||||
<li><a href="/user/logout">退出登录</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
{else}
|
||||
<div class="content">
|
||||
<div class="inner">
|
||||
<h1>{$config["appName"]}</h1>
|
||||
<!--
|
||||
如果想自定义文本请删除下面这段script代码,格式为
|
||||
<p>自定义文本</p>
|
||||
-->
|
||||
<div id="lwlhitokoto"></div>
|
||||
</div>
|
||||
</div>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="#1">简介</a></li>
|
||||
<li><a href="/auth/login">登录</a></li>
|
||||
<li><a href="/auth/register">注册</a></li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
{/if}
|
||||
|
||||
</header>
|
||||
<!--首页结束-->
|
||||
<div id="main">
|
||||
<!--标签1开始-->
|
||||
<article id="1">
|
||||
<h2 class="major">简介</h2>
|
||||
<p>「ホワイトアルバムの季節」が、また、やってきた。</p></article>
|
||||
<!--
|
||||
简介修改示例:
|
||||
<p> 123</p>
|
||||
一个 <p> 123</p> 为一行,请不要删除 </article>
|
||||
-->
|
||||
<!--标签4开始-->
|
||||
<article id="4">
|
||||
<h2 class="major">联系我们</h2>
|
||||
<ul class="icons">
|
||||
<p>此处填写联系方式</p>
|
||||
<li>
|
||||
<a target="_blank" href="#" class="icon fa-facebook">
|
||||
<!-- 请在fontawesome.com寻找替换图标 href替换链接 -->
|
||||
<span class="label">Facebook</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</article>
|
||||
<article id="login">
|
||||
|
||||
<h2 class="major">登录</h2>
|
||||
<form method="post" action="javascript:void(0);">
|
||||
<div class="field half first">
|
||||
<label for="email2">邮箱</label>
|
||||
<input type="text" name="Email" id="email2"/>
|
||||
</div>
|
||||
<div class="field half">
|
||||
<label for="passwd">密码</label>
|
||||
<input type="password" name="Password" id="passwd"/>
|
||||
</div>
|
||||
|
||||
<ul class="actions">
|
||||
<li><input id="login" type="submit" value="登录" class="special"/></li>
|
||||
<li><input type="reset" value="清空"/></li>
|
||||
</ul>
|
||||
</form>
|
||||
|
||||
|
||||
<div class="field half">
|
||||
<input value="week" id="remember_me" name="remember_me" type="checkbox" checked>
|
||||
<label for="remember_me">记住我</label>
|
||||
</div>
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
<div id="result" role="dialog">
|
||||
<p color class="h5 margin-top-sm text-black-hint" id="msg"></p>
|
||||
</div>
|
||||
</article>
|
||||
<!--全部标签结束-->
|
||||
|
||||
</div>
|
||||
<!-- 版权底部 -->
|
||||
<footer id="footer">
|
||||
<p class="copyright">©{date("Y")} {$config["appName"]}</p>
|
||||
</footer>
|
||||
<!-- 版权结束 -->
|
||||
</div>
|
||||
<!-- BG -->
|
||||
<div id="bg"></div>
|
||||
<!-- Scripts -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@1.11.3"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/ajlkn/skel@3.0.1/dist/skel.min.js"></script>
|
||||
<script src="/assets/js/util.js"></script>
|
||||
<script src="/assets/js/main.js"></script>
|
||||
<script>
|
||||
try {
|
||||
if (window.console && window.console.log) {
|
||||
console.log("%c{$config["appName"]}", " text-shadow: 0 1px 0 #ccc,0 2px 0 #c9c9c9,0 3px 0 #bbb,0 4px 0 #b9b9b9,0 5px 0 #aaa,0 6px 1px rgba(0,0,0,.1),0 0 5px rgba(0,0,0,.1),0 1px 3px rgba(0,0,0,.3),0 3px 5px rgba(0,0,0,.2),0 5px 10px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.2),0 20px 20px rgba(0,0,0,.15);font-size:5em");
|
||||
console.log("%chttps://github.com/Anankke/SSPanel-Uim", "background: rgba(252,234,187,1);background: -moz-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%,rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -webkit-gradient(left top, right top, color-stop(0%, rgba(252,234,187,1)), color-stop(12%, rgba(175,250,77,1)), color-stop(28%, rgba(0,247,49,1)), color-stop(39%, rgba(0,210,247,1)), color-stop(51%, rgba(0,189,247,1)), color-stop(64%, rgba(133,108,217,1)), color-stop(78%, rgba(177,0,247,1)), color-stop(87%, rgba(247,0,189,1)), color-stop(100%, rgba(245,22,52,1)));background: -webkit-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -o-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: -ms-linear-gradient(left, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);background: linear-gradient(to right, rgba(252,234,187,1) 0%, rgba(175,250,77,1) 12%, rgba(0,247,49,1) 28%, rgba(0,210,247,1) 39%, rgba(0,189,247,1) 51%, rgba(133,108,217,1) 64%, rgba(177,0,247,1) 78%, rgba(247,0,189,1) 87%, rgba(245,22,52,1) 100%);filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fceabb', endColorstr='#f51634', GradientType=1 );font-size:3em");
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<!-- 進度條 -->
|
||||
<script>
|
||||
$(function() {
|
||||
$(window).load(function(){
|
||||
NProgress.done();
|
||||
});
|
||||
NProgress.set(0.0);
|
||||
NProgress.configure({ showSpinner: false });
|
||||
NProgress.configure({ minimum: 0.4 });
|
||||
NProgress.configure({ easing: 'ease', speed: 1200 });
|
||||
NProgress.configure({ trickleSpeed: 200 });
|
||||
NProgress.configure({ trickleRate: 0.2, trickleSpeed: 1200 });
|
||||
NProgress.inc();
|
||||
$(window).ready(function(){
|
||||
NProgress.start();
|
||||
});
|
||||
})
|
||||
|
||||
window.addEventListener('load',()=>{
|
||||
fetch('https://api.lwl12.com/hitokoto/v1?encode=realjson',{
|
||||
method: 'GET',
|
||||
}).then((response)=>{
|
||||
return response.json();
|
||||
}).then((r)=>{
|
||||
insertHitokoto(r);
|
||||
})
|
||||
});
|
||||
|
||||
function insertHitokoto(data) {
|
||||
let hitokoto = document.getElementById('lwlhitokoto');
|
||||
if (data.author || data.source) {
|
||||
hitokoto.innerHTML = `${ldelim}data.text{rdelim} —— ${ldelim}data.author{rdelim} ${ldelim}data.source{rdelim}`;
|
||||
} else {
|
||||
hitokoto.innerHTML = `${ldelim}data.text{rdelim}`;
|
||||
}
|
||||
}
|
||||
{literal}
|
||||
$(function () {
|
||||
$(window).load(function () {
|
||||
NProgress.done();
|
||||
});
|
||||
NProgress.set(0.0);
|
||||
NProgress.configure({showSpinner: false});
|
||||
NProgress.configure({minimum: 0.4});
|
||||
NProgress.configure({easing: 'ease', speed: 1200});
|
||||
NProgress.configure({trickleSpeed: 200});
|
||||
NProgress.configure({trickleRate: 0.2, trickleSpeed: 1200});
|
||||
NProgress.inc();
|
||||
$(window).ready(function () {
|
||||
NProgress.start();
|
||||
});
|
||||
});
|
||||
{/literal}
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
fetch('https://api.lwl12.com/hitokoto/v1?encode=realjson', {
|
||||
method: 'GET',
|
||||
}).then((response) => {
|
||||
return response.json();
|
||||
}).then((r) => {
|
||||
insertHitokoto(r);
|
||||
})
|
||||
});
|
||||
|
||||
function insertHitokoto(data) {
|
||||
let hitokoto = document.getElementById('lwlhitokoto');
|
||||
if (data.author || data.source) {
|
||||
hitokoto.innerHTML = `${ldelim}data.text{rdelim} —— ${ldelim}data.author{rdelim} ${ldelim}data.source{rdelim}`;
|
||||
} else {
|
||||
hitokoto.innerHTML = `${ldelim}data.text{rdelim}`;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
function add_chatinline(){
|
||||
var hccid="{$config["mylivechat_id"]}";
|
||||
var nt=document.createElement("script");
|
||||
nt.async=true;
|
||||
nt.src="https://mylivechat.com/chatinline.aspx?hccid="+hccid;
|
||||
var ct=document.getElementsByTagName("script")[0];
|
||||
ct.parentNode.insertBefore(nt,ct);
|
||||
}
|
||||
add_chatinline();
|
||||
function add_chatinline() {
|
||||
var hccid = "{$config["mylivechat_id"]}";
|
||||
var nt = document.createElement("script");
|
||||
nt.async = true;
|
||||
nt.src = "https://mylivechat.com/chatinline.aspx?hccid=" + hccid;
|
||||
var ct = document.getElementsByTagName("script")[0];
|
||||
ct.parentNode.insertBefore(nt, ct);
|
||||
}
|
||||
|
||||
add_chatinline();
|
||||
</script>
|
||||
|
||||
@ -1,112 +1,115 @@
|
||||
{include file='header.tpl'}
|
||||
|
||||
|
||||
<!-- 新的 -->
|
||||
<div class="authpage">
|
||||
<div class="container">
|
||||
|
||||
<div class="auth-main auth-row auth-col-one">
|
||||
<div class="auth-top auth-row">
|
||||
<a class="boardtop-left" href="/">
|
||||
<div>首 页</div>
|
||||
</a>
|
||||
<div class="auth-logo">
|
||||
<img src="/images/authlogo.jpg" alt="">
|
||||
</div>
|
||||
<a href="/auth/login" class="boardtop-right">
|
||||
<div>登 录</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="auth-row">
|
||||
<div class="form-group-label auth-row row-login">
|
||||
<label class="floating-label" for="email">邮箱</label>
|
||||
<input class="form-control maxwidth-auth" id="email" type="text">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-auth auth-row">
|
||||
<button id="reset" type="submit" class="btn btn-block btn-brand waves-attach waves-light">重置密码</button>
|
||||
</div>
|
||||
<div class="auth-help auth-row">
|
||||
<div class="auth-help-table auth-row auth-reset">
|
||||
<a href="" onclick="return false;" data-toggle='modal' data-target='#email_nrcy_modal'>收不到验证码?点击这里</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="auth-bottom auth-row auth-reset">
|
||||
<div class="tgauth">
|
||||
<p>请妥善保管好自己的登录密码</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card auth-tg">
|
||||
<div class="card-main">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{include file='dialog.tpl'}
|
||||
|
||||
<div aria-hidden="true" class="modal modal-va-middle fade" id="email_nrcy_modal" role="dialog" tabindex="-1">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-heading">
|
||||
<h2 class="modal-title">收不到验证码?</h2>
|
||||
</div>
|
||||
<div class="modal-inner">
|
||||
{include file='email_nrcy.tpl'}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<p class="text-right">
|
||||
<button class="btn btn-flat btn-brand-accent waves-attach waves-effect" data-dismiss="modal" type="button">我知道了</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- 新的 -->
|
||||
<div class="authpage">
|
||||
<div class="container">
|
||||
|
||||
<div class="auth-main auth-row auth-col-one">
|
||||
<div class="auth-top auth-row">
|
||||
<a class="boardtop-left" href="/">
|
||||
<div>首 页</div>
|
||||
</a>
|
||||
<div class="auth-logo">
|
||||
<img src="/images/authlogo.jpg" alt="">
|
||||
</div>
|
||||
<a href="/auth/login" class="boardtop-right">
|
||||
<div>登 录</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="auth-row">
|
||||
<div class="form-group-label auth-row row-login">
|
||||
<label class="floating-label" for="email">邮箱</label>
|
||||
<input class="form-control maxwidth-auth" id="email" type="text">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-auth auth-row">
|
||||
<button id="reset" type="submit" class="btn btn-block btn-brand waves-attach waves-light">重置密码</button>
|
||||
</div>
|
||||
<div class="auth-help auth-row">
|
||||
<div class="auth-help-table auth-row auth-reset">
|
||||
<a href="" onclick="return false;" data-toggle='modal'
|
||||
data-target='#email_nrcy_modal'>收不到验证码?点击这里</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="auth-bottom auth-row auth-reset">
|
||||
<div class="tgauth">
|
||||
<p>请妥善保管好自己的登录密码</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card auth-tg">
|
||||
<div class="card-main">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{include file='dialog.tpl'}
|
||||
|
||||
<div aria-hidden="true" class="modal modal-va-middle fade" id="email_nrcy_modal" role="dialog" tabindex="-1">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-heading">
|
||||
<h2 class="modal-title">收不到验证码?</h2>
|
||||
</div>
|
||||
<div class="modal-inner">
|
||||
{include file='email_nrcy.tpl'}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<p class="text-right">
|
||||
<button class="btn btn-flat btn-brand-accent waves-attach waves-effect" data-dismiss="modal"
|
||||
type="button">我知道了
|
||||
</button>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{include file='footer.tpl'}
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
function reset(){
|
||||
$("#result").modal();
|
||||
$(document).ready(function () {
|
||||
function reset() {
|
||||
$("#result").modal();
|
||||
$("#msg").html("sending, please wait....");
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
url:"/password/reset",
|
||||
dataType:"json",
|
||||
data:{
|
||||
type: "POST",
|
||||
url: "/password/reset",
|
||||
dataType: "json",
|
||||
data: {
|
||||
email: $("#email").val(),
|
||||
},
|
||||
success:function(data){
|
||||
if(data.ret == 1){
|
||||
success: function (data) {
|
||||
if (data.ret == 1) {
|
||||
$("#result").modal();
|
||||
$("#msg").html(data.msg);
|
||||
window.setTimeout("location.href='/auth/login'", 2000);
|
||||
}else{
|
||||
window.setTimeout("location.href='/auth/login'", 2000);
|
||||
} else {
|
||||
$("#result").modal();
|
||||
$("#msg").html(data.msg);
|
||||
}
|
||||
},
|
||||
error:function(jqXHR){
|
||||
error: function (jqXHR) {
|
||||
$("#result").modal();
|
||||
$("#msg").html(data.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
$("html").keydown(function(event){
|
||||
if(event.keyCode==13){
|
||||
|
||||
$("html").keydown(function (event) {
|
||||
if (event.keyCode == 13) {
|
||||
reset();
|
||||
}
|
||||
});
|
||||
$("#reset").click(function(){
|
||||
$("#reset").click(function () {
|
||||
reset();
|
||||
});
|
||||
})
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<ul>
|
||||
<li>请提供真实邮箱,并自行保管。邮箱为用户的唯一凭证。</li>
|
||||
<li>本站会加密存储用户密码,尽量保证数据安全,但并不保证这些信息的绝对安全。</li>
|
||||
<li>禁止使用本站服务进行任何违法恶意活动。</li>
|
||||
<li>使用任何节点,需遵循节点所属国家的相关法律以及中国法律。</li>
|
||||
<li>禁止滥用本站提供的服务。</li>
|
||||
<li>对于免费用户,我们有权在不通知的情况下删除账户。</li>
|
||||
<li>任何违反使用条款的用户,我们将会删除违规账户并收回使用本站服务的权利。</li>
|
||||
<li>请提供真实邮箱,并自行保管。邮箱为用户的唯一凭证。</li>
|
||||
<li>本站会加密存储用户密码,尽量保证数据安全,但并不保证这些信息的绝对安全。</li>
|
||||
<li>禁止使用本站服务进行任何违法恶意活动。</li>
|
||||
<li>使用任何节点,需遵循节点所属国家的相关法律以及中国法律。</li>
|
||||
<li>禁止滥用本站提供的服务。</li>
|
||||
<li>对于免费用户,我们有权在不通知的情况下删除账户。</li>
|
||||
<li>任何违反使用条款的用户,我们将会删除违规账户并收回使用本站服务的权利。</li>
|
||||
</ul>
|
||||
@ -1,8 +1,11 @@
|
||||
{foreach $table_config['total_column'] as $key => $value}
|
||||
<div class="checkbox checkbox-adv checkbox-inline">
|
||||
<label for="checkbox_{$key}">
|
||||
<input href="javascript:void(0);" onClick="modify_table_visible('checkbox_{$key}', '{$key}')" {if in_array($key, $table_config['default_show_column']) || count($table_config['default_show_column']) == 0}checked=""{/if} class="access-hide" id="checkbox_{$key}" name="checkbox_{$key}" type="checkbox">{$value}
|
||||
<span class="checkbox-circle"></span><span class="checkbox-circle-check"></span><span class="checkbox-circle-icon icon">done</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox checkbox-adv checkbox-inline">
|
||||
<label for="checkbox_{$key}">
|
||||
<input href="javascript:void(0);" onClick="modify_table_visible('checkbox_{$key}', '{$key}')"
|
||||
{if in_array($key, $table_config['default_show_column']) || count($table_config['default_show_column']) == 0}checked=""{/if}
|
||||
class="access-hide" id="checkbox_{$key}" name="checkbox_{$key}" type="checkbox">{$value}
|
||||
<span class="checkbox-circle"></span><span class="checkbox-circle-check"></span><span
|
||||
class="checkbox-circle-icon icon">done</span>
|
||||
</label>
|
||||
</div>
|
||||
{/foreach}
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
function modify_table_visible(id, key) {
|
||||
if(document.getElementById(id).checked)
|
||||
{
|
||||
table_1.columns( '.' + key ).visible( true );
|
||||
localStorage.setItem(window.location.href + '-haschecked-' + id, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
table_1.columns( '.' + key ).visible( false );
|
||||
localStorage.setItem(window.location.href + '-haschecked-' + id, false);
|
||||
}
|
||||
if(document.getElementById(id).checked)
|
||||
{
|
||||
table_1.columns( '.' + key ).visible( true );
|
||||
localStorage.setItem(window.location.href + '-haschecked-' + id, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
table_1.columns( '.' + key ).visible( false );
|
||||
localStorage.setItem(window.location.href + '-haschecked-' + id, false);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,41 +1,41 @@
|
||||
table_1 = $('#table_1').DataTable({
|
||||
ajax: {
|
||||
url: '{$table_config['ajax_url']}',
|
||||
type: "POST"
|
||||
},
|
||||
processing: true,
|
||||
serverSide: true,
|
||||
order: [[ 0, 'desc' ]],
|
||||
stateSave: true,
|
||||
columnDefs: [
|
||||
{
|
||||
targets: [ '_all' ],
|
||||
className: 'mdl-data-table__cell--non-numeric'
|
||||
}
|
||||
],
|
||||
columns: [
|
||||
{foreach $table_config['total_column'] as $key => $value}
|
||||
{ "data": "{$key}" },
|
||||
{/foreach}
|
||||
],
|
||||
{include file='table/lang_chinese.tpl'}
|
||||
ajax: {
|
||||
url: '{$table_config['ajax_url']}',
|
||||
type: "POST"
|
||||
},
|
||||
processing: true,
|
||||
serverSide: true,
|
||||
order: [[ 0, 'desc' ]],
|
||||
stateSave: true,
|
||||
columnDefs: [
|
||||
{
|
||||
targets: [ '_all' ],
|
||||
className: 'mdl-data-table__cell--non-numeric'
|
||||
}
|
||||
],
|
||||
columns: [
|
||||
{foreach $table_config['total_column'] as $key => $value}
|
||||
{ "data": "{$key}" },
|
||||
{/foreach}
|
||||
],
|
||||
{include file='table/lang_chinese.tpl'}
|
||||
})
|
||||
|
||||
|
||||
var has_init = JSON.parse(localStorage.getItem(window.location.href + '-hasinit'));
|
||||
if (has_init != true) {
|
||||
localStorage.setItem(window.location.href + '-hasinit', true);
|
||||
localStorage.setItem(window.location.href + '-hasinit', true);
|
||||
} else {
|
||||
{foreach $table_config['total_column'] as $key => $value}
|
||||
var checked = JSON.parse(localStorage.getItem(window.location.href + '-haschecked-checkbox_{$key}'));
|
||||
if (checked == true) {
|
||||
document.getElementById('checkbox_{$key}').checked = true;
|
||||
} else {
|
||||
document.getElementById('checkbox_{$key}').checked = false;
|
||||
}
|
||||
{/foreach}
|
||||
{foreach $table_config['total_column'] as $key => $value}
|
||||
var checked = JSON.parse(localStorage.getItem(window.location.href + '-haschecked-checkbox_{$key}'));
|
||||
if (checked == true) {
|
||||
document.getElementById('checkbox_{$key}').checked = true;
|
||||
} else {
|
||||
document.getElementById('checkbox_{$key}').checked = false;
|
||||
}
|
||||
{/foreach}
|
||||
}
|
||||
|
||||
{foreach $table_config['total_column'] as $key => $value}
|
||||
modify_table_visible('checkbox_{$key}', '{$key}');
|
||||
modify_table_visible('checkbox_{$key}', '{$key}');
|
||||
{/foreach}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
table_1
|
||||
.row('#row_1_' + deleteid)
|
||||
.remove()
|
||||
.draw();
|
||||
.row('#row_1_' + deleteid)
|
||||
.remove()
|
||||
.draw();
|
||||
|
||||
@ -1,24 +1,24 @@
|
||||
language: {
|
||||
"sProcessing": "处理中...",
|
||||
"sLengthMenu": "显示 _MENU_ 项结果",
|
||||
"sZeroRecords": "没有匹配结果",
|
||||
"sInfo": "显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项",
|
||||
"sInfoEmpty": "显示第 0 至 0 项结果,共 0 项",
|
||||
"sInfoFiltered": "(由 _MAX_ 项结果过滤)",
|
||||
"sInfoPostFix": "",
|
||||
"sSearch": "搜索:",
|
||||
"sUrl": "",
|
||||
"sEmptyTable": "表中数据为空",
|
||||
"sLoadingRecords": "载入中...",
|
||||
"sInfoThousands": ",",
|
||||
"oPaginate": {
|
||||
"sFirst": "首页",
|
||||
"sPrevious": "上页",
|
||||
"sNext": "下页",
|
||||
"sLast": "末页"
|
||||
},
|
||||
"oAria": {
|
||||
"sSortAscending": ": 以升序排列此列",
|
||||
"sSortDescending": ": 以降序排列此列"
|
||||
}
|
||||
}
|
||||
"sProcessing": "处理中...",
|
||||
"sLengthMenu": "显示 _MENU_ 项结果",
|
||||
"sZeroRecords": "没有匹配结果",
|
||||
"sInfo": "显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项",
|
||||
"sInfoEmpty": "显示第 0 至 0 项结果,共 0 项",
|
||||
"sInfoFiltered": "(由 _MAX_ 项结果过滤)",
|
||||
"sInfoPostFix": "",
|
||||
"sSearch": "搜索:",
|
||||
"sUrl": "",
|
||||
"sEmptyTable": "表中数据为空",
|
||||
"sLoadingRecords": "载入中...",
|
||||
"sInfoThousands": ",",
|
||||
"oPaginate": {
|
||||
"sFirst": "首页",
|
||||
"sPrevious": "上页",
|
||||
"sNext": "下页",
|
||||
"sLast": "末页"
|
||||
},
|
||||
"oAria": {
|
||||
"sSortAscending": ": 以升序排列此列",
|
||||
"sSortDescending": ": 以降序排列此列"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,18 +1,18 @@
|
||||
<table id="table_1" class="mdl-data-table" cellspacing="0" width="100%">
|
||||
<thead>
|
||||
<thead>
|
||||
<tr>
|
||||
{foreach $table_config['total_column'] as $key => $value}
|
||||
<th class="{$key}">{$value}</th>
|
||||
{/foreach}
|
||||
{foreach $table_config['total_column'] as $key => $value}
|
||||
<th class="{$key}">{$value}</th>
|
||||
{/foreach}
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
{foreach $table_config['total_column'] as $key => $value}
|
||||
<th class="{$key}">{$value}</th>
|
||||
{/foreach}
|
||||
{foreach $table_config['total_column'] as $key => $value}
|
||||
<th class="{$key}">{$value}</th>
|
||||
{/foreach}
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@ -1,52 +1,52 @@
|
||||
{include file='user/main.tpl'}
|
||||
|
||||
<main class="content">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">公告</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<section class="content-inner margin-top-no">
|
||||
<div class="ui-card-wrap">
|
||||
|
||||
<div class="col-lg-12 col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner margin-bottom-no">
|
||||
<p class="card-heading">公告</p>
|
||||
<div class="card-table">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>日期</th>
|
||||
<th>内容</th>
|
||||
</tr>
|
||||
{foreach $anns as $ann}
|
||||
<tr>
|
||||
<td>#{$ann->id}</td>
|
||||
<td>{$ann->date}</td>
|
||||
<td>{$ann->content}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file='dialog.tpl'}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
<main class="content">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">公告</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<section class="content-inner margin-top-no">
|
||||
<div class="ui-card-wrap">
|
||||
|
||||
<div class="col-lg-12 col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner margin-bottom-no">
|
||||
<p class="card-heading">公告</p>
|
||||
<div class="card-table">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>日期</th>
|
||||
<th>内容</th>
|
||||
</tr>
|
||||
{foreach $anns as $ann}
|
||||
<tr>
|
||||
<td>#{$ann->id}</td>
|
||||
<td>{$ann->date}</td>
|
||||
<td>{$ann->content}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file='dialog.tpl'}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
{include file='user/footer.tpl'}
|
||||
@ -1,88 +1,88 @@
|
||||
<div class="card-inner">
|
||||
<p class="card-heading">充值</p>
|
||||
您的余额:{$user->money}
|
||||
<h5>支付方式:</h5>
|
||||
<nav class="tab-nav margin-top-no">
|
||||
<ul class="nav nav-list">
|
||||
{if $enabled['wepay']}
|
||||
<li class="active">
|
||||
<a class="waves-attach waves-effect type" data-toggle="tab" href="#" data-pay="wepay">微信支付</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $enabled['alipay']}
|
||||
<li>
|
||||
<a class="waves-attach waves-effect type" data-toggle="tab" href="#" data-pay="alipay">支付宝</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $enabled['qqpay']}
|
||||
<li>
|
||||
<a class="waves-attach waves-effect type" data-toggle="tab" href="#" data-pay="qqpay">QQ支付</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
<div class="tab-nav-indicator"></div>
|
||||
</nav>
|
||||
<div class="form-group form-group-label">
|
||||
<label class="floating-label" for="amount">金额</label>
|
||||
<input class="form-control" id="amount" type="text">
|
||||
</div>
|
||||
<p class="card-heading">充值</p>
|
||||
您的余额:{$user->money}
|
||||
<h5>支付方式:</h5>
|
||||
<nav class="tab-nav margin-top-no">
|
||||
<ul class="nav nav-list">
|
||||
{if $enabled['wepay']}
|
||||
<li class="active">
|
||||
<a class="waves-attach waves-effect type" data-toggle="tab" href="#" data-pay="wepay">微信支付</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $enabled['alipay']}
|
||||
<li>
|
||||
<a class="waves-attach waves-effect type" data-toggle="tab" href="#" data-pay="alipay">支付宝</a>
|
||||
</li>
|
||||
{/if}
|
||||
{if $enabled['qqpay']}
|
||||
<li>
|
||||
<a class="waves-attach waves-effect type" data-toggle="tab" href="#" data-pay="qqpay">QQ支付</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
<div class="tab-nav-indicator"></div>
|
||||
</nav>
|
||||
<div class="form-group form-group-label">
|
||||
<label class="floating-label" for="amount">金额</label>
|
||||
<input class="form-control" id="amount" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-action">
|
||||
<div class="card-action-btn pull-left">
|
||||
<button class="btn btn-flat waves-attach" id="submit" ><span class="icon">check</span> 充值</button>
|
||||
</div>
|
||||
<div class="card-action-btn pull-left">
|
||||
<button class="btn btn-flat waves-attach" id="submit"><span class="icon">check</span> 充值</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var type = "wepay";
|
||||
var pid = 0;
|
||||
window.onload = function() {
|
||||
var qrcode = new QRCode(document.getElementById("dmy"));
|
||||
$(".type").click(function(){
|
||||
type = $(this).data("pay");
|
||||
});
|
||||
type = 'alipay';
|
||||
$("#submit").click(function(){
|
||||
var price = parseFloat($("#amount").val());
|
||||
console.log("将要使用"+type+"方法充值"+price+"元");
|
||||
if(isNaN(price)){
|
||||
$("#result").modal();
|
||||
$("#msg").html("非法的金额!");
|
||||
}
|
||||
$.ajax({
|
||||
'url':"/user/payment/purchase",
|
||||
'data':{
|
||||
'price':price,
|
||||
'type':type,
|
||||
},
|
||||
'dataType':'json',
|
||||
'type':"POST",
|
||||
success:function(data){
|
||||
console.log(data);
|
||||
if(data.errcode==-1){
|
||||
$("#result").modal();
|
||||
$("#msg").html(data.errmsg);
|
||||
}
|
||||
if(data.errcode==0){
|
||||
pid = data.pid;
|
||||
if(type=="wepay"){
|
||||
$("#result").modal();
|
||||
$("#msg").html('<div class="text-center">使用微信扫描二维码支付.<div id="dmy" style="padding-top: 10px;"></div></div>');
|
||||
qrcode.clear();
|
||||
qrcode.makeCode(data.code);
|
||||
setTimeout(f, 2000);
|
||||
}else if(type=="alipay"){
|
||||
$("#result").modal();
|
||||
$("#msg").html("正在跳转到支付宝..."+data.code);
|
||||
}else if(type=="qqpay"){
|
||||
$("#result").modal();
|
||||
$("#msg").html('<div class="text-center">使用QQ扫描二维码支付.<div id="dmy"></div></div>');
|
||||
qrcode.clear();
|
||||
qrcode.makeCode(data.code);
|
||||
setTimeout(f, 2000);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
var type = "wepay";
|
||||
var pid = 0;
|
||||
window.onload = function () {
|
||||
var qrcode = new QRCode(document.getElementById("dmy"));
|
||||
$(".type").click(function () {
|
||||
type = $(this).data("pay");
|
||||
});
|
||||
type = 'alipay';
|
||||
$("#submit").click(function () {
|
||||
var price = parseFloat($("#amount").val());
|
||||
console.log("将要使用" + type + "方法充值" + price + "元");
|
||||
if (isNaN(price)) {
|
||||
$("#result").modal();
|
||||
$("#msg").html("非法的金额!");
|
||||
}
|
||||
$.ajax({
|
||||
'url': "/user/payment/purchase",
|
||||
'data': {
|
||||
'price': price,
|
||||
'type': type,
|
||||
},
|
||||
'dataType': 'json',
|
||||
'type': "POST",
|
||||
success: function (data) {
|
||||
console.log(data);
|
||||
if (data.errcode == -1) {
|
||||
$("#result").modal();
|
||||
$("#msg").html(data.errmsg);
|
||||
}
|
||||
if (data.errcode == 0) {
|
||||
pid = data.pid;
|
||||
if (type == "wepay") {
|
||||
$("#result").modal();
|
||||
$("#msg").html('<div class="text-center">使用微信扫描二维码支付.<div id="dmy" style="padding-top: 10px;"></div></div>');
|
||||
qrcode.clear();
|
||||
qrcode.makeCode(data.code);
|
||||
setTimeout(f, 2000);
|
||||
} else if (type == "alipay") {
|
||||
$("#result").modal();
|
||||
$("#msg").html("正在跳转到支付宝..." + data.code);
|
||||
} else if (type == "qqpay") {
|
||||
$("#result").modal();
|
||||
$("#msg").html('<div class="text-center">使用QQ扫描二维码支付.<div id="dmy"></div></div>');
|
||||
qrcode.clear();
|
||||
qrcode.makeCode(data.code);
|
||||
setTimeout(f, 2000);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,182 +1,200 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="IE=edge" http-equiv="X-UA-Compatible">
|
||||
<meta content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" name="viewport">
|
||||
<meta name="theme-color" content="#4caf50">
|
||||
<meta http-equiv="X-Frame-Options" content="sameorigin">
|
||||
<title>{$config["appName"]}</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="IE=edge" http-equiv="X-UA-Compatible">
|
||||
<meta content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" name="viewport">
|
||||
<meta name="theme-color" content="#4caf50">
|
||||
<meta http-equiv="X-Frame-Options" content="sameorigin">
|
||||
<title>{$config["appName"]}</title>
|
||||
|
||||
|
||||
|
||||
<!-- css -->
|
||||
<link href="/theme/material/css/base.min.css" rel="stylesheet">
|
||||
<link href="/theme/material/css/project.min.css" rel="stylesheet">
|
||||
<link href="https://fonts.loli.net/css?family=Roboto:300,300italic,400,400italic,500,500italic|Material+Icons" rel="stylesheet">
|
||||
|
||||
<!-- jquery -->
|
||||
<!-- css -->
|
||||
<link href="/theme/material/css/base.min.css" rel="stylesheet">
|
||||
<link href="/theme/material/css/project.min.css" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css?family=Material+Icons" rel="stylesheet">
|
||||
|
||||
<!-- jquery -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1"></script>
|
||||
|
||||
|
||||
<!-- favicon -->
|
||||
<!-- ... -->
|
||||
<style>
|
||||
.pagination {
|
||||
display:inline-block;
|
||||
padding-left:0;
|
||||
margin:20px 0;
|
||||
border-radius:4px
|
||||
}
|
||||
.pagination>li {
|
||||
display:inline
|
||||
}
|
||||
.pagination>li>a,.pagination>li>span {
|
||||
position:relative;
|
||||
float:left;
|
||||
padding:6px 12px;
|
||||
margin-left:-1px;
|
||||
line-height:1.42857143;
|
||||
color:#337ab7;
|
||||
text-decoration:none;
|
||||
background-color:#fff;
|
||||
border:1px solid #ddd
|
||||
}
|
||||
.pagination>li:first-child>a,.pagination>li:first-child>span {
|
||||
margin-left:0;
|
||||
border-top-left-radius:4px;
|
||||
border-bottom-left-radius:4px
|
||||
}
|
||||
.pagination>li:last-child>a,.pagination>li:last-child>span {
|
||||
border-top-right-radius:4px;
|
||||
border-bottom-right-radius:4px
|
||||
}
|
||||
.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover {
|
||||
color:#23527c;
|
||||
background-color:#eee;
|
||||
border-color:#ddd
|
||||
}
|
||||
.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover {
|
||||
z-index:2;
|
||||
color:#fff;
|
||||
cursor:default;
|
||||
background-color:#337ab7;
|
||||
border-color:#337ab7
|
||||
}
|
||||
.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover {
|
||||
color:#777;
|
||||
cursor:not-allowed;
|
||||
background-color:#fff;
|
||||
border-color:#ddd
|
||||
}
|
||||
.pagination-lg>li>a,.pagination-lg>li>span {
|
||||
padding:10px 16px;
|
||||
font-size:18px
|
||||
}
|
||||
.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span {
|
||||
border-top-left-radius:6px;
|
||||
border-bottom-left-radius:6px
|
||||
}
|
||||
.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span {
|
||||
border-top-right-radius:6px;
|
||||
border-bottom-right-radius:6px
|
||||
}
|
||||
.pagination-sm>li>a,.pagination-sm>li>span {
|
||||
padding:5px 10px;
|
||||
font-size:12px
|
||||
}
|
||||
.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span {
|
||||
border-top-left-radius:3px;
|
||||
border-bottom-left-radius:3px
|
||||
}
|
||||
.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span {
|
||||
border-top-right-radius:3px;
|
||||
border-bottom-right-radius:3px
|
||||
}
|
||||
.pager {
|
||||
padding-left:0;
|
||||
margin:20px 0;
|
||||
text-align:center;
|
||||
list-style:none
|
||||
}
|
||||
.pager li {
|
||||
display:inline
|
||||
}
|
||||
.pager li>a,.pager li>span {
|
||||
display:inline-block;
|
||||
padding:5px 14px;
|
||||
background-color:#fff;
|
||||
border:1px solid #ddd;
|
||||
border-radius:15px
|
||||
}
|
||||
.pager li>a:focus,.pager li>a:hover {
|
||||
text-decoration:none;
|
||||
background-color:#eee
|
||||
}
|
||||
.pager .next>a,.pager .next>span {
|
||||
float:right
|
||||
}
|
||||
.pager .previous>a,.pager .previous>span {
|
||||
float:left
|
||||
}
|
||||
.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span {
|
||||
color:#777;
|
||||
cursor:not-allowed;
|
||||
background-color:#fff
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
.pagination>li>a,
|
||||
.pagination>li>span {
|
||||
border: 1px solid white;
|
||||
}
|
||||
.pagination>li.active>a {
|
||||
background: #f50057;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.pagination>li>a {
|
||||
background: white;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
|
||||
.pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
|
||||
color: #fff;
|
||||
background-color: #000;
|
||||
border-color: #000;
|
||||
}
|
||||
.pagination>.active>span {
|
||||
background-color: #f50057;
|
||||
color: #fff;
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.pagination > .disabled > span {
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
|
||||
pre {
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.page-green .ui-content-header {
|
||||
background-image: url(/theme/material/css/images/bg/amber.jpg);
|
||||
}
|
||||
|
||||
|
||||
.content-header-green, .page-green .content-header {
|
||||
background-color: #459f47;
|
||||
color: #fff;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- favicon -->
|
||||
<!-- ... -->
|
||||
<style>
|
||||
.pagination {
|
||||
display: inline-block;
|
||||
padding-left: 0;
|
||||
margin: 20px 0;
|
||||
border-radius: 4px
|
||||
}
|
||||
|
||||
.pagination > li {
|
||||
display: inline
|
||||
}
|
||||
|
||||
.pagination > li > a, .pagination > li > span {
|
||||
position: relative;
|
||||
float: left;
|
||||
padding: 6px 12px;
|
||||
margin-left: -1px;
|
||||
line-height: 1.42857143;
|
||||
color: #337ab7;
|
||||
text-decoration: none;
|
||||
background-color: #fff;
|
||||
border: 1px solid #ddd
|
||||
}
|
||||
|
||||
.pagination > li:first-child > a, .pagination > li:first-child > span {
|
||||
margin-left: 0;
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px
|
||||
}
|
||||
|
||||
.pagination > li:last-child > a, .pagination > li:last-child > span {
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px
|
||||
}
|
||||
|
||||
.pagination > li > a:focus, .pagination > li > a:hover, .pagination > li > span:focus, .pagination > li > span:hover {
|
||||
color: #23527c;
|
||||
background-color: #eee;
|
||||
border-color: #ddd
|
||||
}
|
||||
|
||||
.pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
|
||||
z-index: 2;
|
||||
color: #fff;
|
||||
cursor: default;
|
||||
background-color: #337ab7;
|
||||
border-color: #337ab7
|
||||
}
|
||||
|
||||
.pagination > .disabled > a, .pagination > .disabled > a:focus, .pagination > .disabled > a:hover, .pagination > .disabled > span, .pagination > .disabled > span:focus, .pagination > .disabled > span:hover {
|
||||
color: #777;
|
||||
cursor: not-allowed;
|
||||
background-color: #fff;
|
||||
border-color: #ddd
|
||||
}
|
||||
|
||||
.pagination-lg > li > a, .pagination-lg > li > span {
|
||||
padding: 10px 16px;
|
||||
font-size: 18px
|
||||
}
|
||||
|
||||
.pagination-lg > li:first-child > a, .pagination-lg > li:first-child > span {
|
||||
border-top-left-radius: 6px;
|
||||
border-bottom-left-radius: 6px
|
||||
}
|
||||
|
||||
.pagination-lg > li:last-child > a, .pagination-lg > li:last-child > span {
|
||||
border-top-right-radius: 6px;
|
||||
border-bottom-right-radius: 6px
|
||||
}
|
||||
|
||||
.pagination-sm > li > a, .pagination-sm > li > span {
|
||||
padding: 5px 10px;
|
||||
font-size: 12px
|
||||
}
|
||||
|
||||
.pagination-sm > li:first-child > a, .pagination-sm > li:first-child > span {
|
||||
border-top-left-radius: 3px;
|
||||
border-bottom-left-radius: 3px
|
||||
}
|
||||
|
||||
.pagination-sm > li:last-child > a, .pagination-sm > li:last-child > span {
|
||||
border-top-right-radius: 3px;
|
||||
border-bottom-right-radius: 3px
|
||||
}
|
||||
|
||||
.pager {
|
||||
padding-left: 0;
|
||||
margin: 20px 0;
|
||||
text-align: center;
|
||||
list-style: none
|
||||
}
|
||||
|
||||
.pager li {
|
||||
display: inline
|
||||
}
|
||||
|
||||
.pager li > a, .pager li > span {
|
||||
display: inline-block;
|
||||
padding: 5px 14px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 15px
|
||||
}
|
||||
|
||||
.pager li > a:focus, .pager li > a:hover {
|
||||
text-decoration: none;
|
||||
background-color: #eee
|
||||
}
|
||||
|
||||
.pager .next > a, .pager .next > span {
|
||||
float: right
|
||||
}
|
||||
|
||||
.pager .previous > a, .pager .previous > span {
|
||||
float: left
|
||||
}
|
||||
|
||||
.pager .disabled > a, .pager .disabled > a:focus, .pager .disabled > a:hover, .pager .disabled > span {
|
||||
color: #777;
|
||||
cursor: not-allowed;
|
||||
background-color: #fff
|
||||
}
|
||||
|
||||
|
||||
.pagination > li > a,
|
||||
.pagination > li > span {
|
||||
border: 1px solid white;
|
||||
}
|
||||
|
||||
.pagination > li.active > a {
|
||||
background: #f50057;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.pagination > li > a {
|
||||
background: white;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
|
||||
.pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
|
||||
color: #fff;
|
||||
background-color: #000;
|
||||
border-color: #000;
|
||||
}
|
||||
|
||||
.pagination > .active > span {
|
||||
background-color: #f50057;
|
||||
color: #fff;
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
|
||||
.pagination > .disabled > span {
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
|
||||
pre {
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.page-green .ui-content-header {
|
||||
background-image: url(/theme/material/css/images/bg/amber.jpg);
|
||||
}
|
||||
|
||||
|
||||
.content-header-green, .page-green .content-header {
|
||||
background-color: #459f47;
|
||||
color: #fff;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="page-green">
|
||||
{*<script src="/assets/js/fuck.js"></script>*}
|
||||
{*<script src="/assets/js/fuck.js"></script>*}
|
||||
|
||||
|
||||
@ -1,97 +1,81 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{include file='user/main.tpl'}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<main class="content">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">延迟检测</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<section class="content-inner margin-top-no">
|
||||
<div class="ui-card-wrap">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner margin-bottom-no">
|
||||
<!-- <p class="card-heading">注意!</p> -->
|
||||
<p>此处只展示最近{$hour}小时的记录。<b>测试节点来自 <a href="http://speedtest.net">Speedtest</a>,数据仅供参考~</b></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<div class="card-doubleinner">
|
||||
<p class="card-heading">三网延迟检测</p>
|
||||
</div>
|
||||
|
||||
<div class="card-table">
|
||||
<div class="table-responsive table-user">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>节点</th>
|
||||
<th>电信延迟</th>
|
||||
<!-- <th>电信下载速度</th>
|
||||
<th>电信上传速度</th> -->
|
||||
<th>联通延迟</th>
|
||||
<!-- <th>联通下载速度</th>
|
||||
<th>联通上传速度</th> -->
|
||||
<th>移动延迟</th>
|
||||
<!-- <th>移动下载速度</th>
|
||||
<th>移动上传速度</th> -->
|
||||
</tr>
|
||||
{foreach $speedtest as $single}
|
||||
|
||||
<tr>
|
||||
<td>{$single->node()->name}</td>
|
||||
<td>{$single->telecomping}</td>
|
||||
<!-- <td>{$single->telecomeupload}</td>
|
||||
<main class="content">
|
||||
<div class="content-header ui-content-header">
|
||||
<div class="container">
|
||||
<h1 class="content-heading">延迟检测</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<section class="content-inner margin-top-no">
|
||||
<div class="ui-card-wrap">
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner margin-bottom-no">
|
||||
<!-- <p class="card-heading">注意!</p> -->
|
||||
<p>此处只展示最近{$hour}小时的记录。<b>测试节点来自 <a href="http://speedtest.net">Speedtest</a>,数据仅供参考~</b>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-sm-12">
|
||||
<div class="card">
|
||||
<div class="card-main">
|
||||
<div class="card-inner">
|
||||
<div class="card-doubleinner">
|
||||
<p class="card-heading">三网延迟检测</p>
|
||||
</div>
|
||||
|
||||
<div class="card-table">
|
||||
<div class="table-responsive table-user">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>节点</th>
|
||||
<th>电信延迟</th>
|
||||
<!-- <th>电信下载速度</th>
|
||||
<th>电信上传速度</th> -->
|
||||
<th>联通延迟</th>
|
||||
<!-- <th>联通下载速度</th>
|
||||
<th>联通上传速度</th> -->
|
||||
<th>移动延迟</th>
|
||||
<!-- <th>移动下载速度</th>
|
||||
<th>移动上传速度</th> -->
|
||||
</tr>
|
||||
{foreach $speedtest as $single}
|
||||
<tr>
|
||||
<td>{$single->node()->name}</td>
|
||||
<td>{$single->telecomping}</td>
|
||||
<!-- <td>{$single->telecomeupload}</td>
|
||||
<td>{$single->telecomedownload}</td> -->
|
||||
<td>{$single->unicomping}</td>
|
||||
<!-- <td>{$single->unicomupload}</td>
|
||||
<td>{$single->unicomping}</td>
|
||||
<!-- <td>{$single->unicomupload}</td>
|
||||
<td>{$single->unicomdownload}</td> -->
|
||||
<td>{$single->cmccping}</td>
|
||||
<!-- <td>{$single->cmccupload}</td>
|
||||
<td>{$single->cmccping}</td>
|
||||
<!-- <td>{$single->cmccupload}</td>
|
||||
<td>{$single->cmccdownload}</td> -->
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
{include file='user/footer.tpl'}
|
||||
@ -1,198 +1,201 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-cn">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta content="IE=edge" http-equiv="X-UA-Compatible">
|
||||
<meta content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" name="viewport">
|
||||
<meta name="theme-color" content="#4285f4">
|
||||
<title>{$config["appName"]}</title>
|
||||
|
||||
<!-- css -->
|
||||
<link href="/theme/material/css/base.min.css" rel="stylesheet">
|
||||
<link href="/theme/material/css/project.min.css" rel="stylesheet">
|
||||
<link href="https://fonts.loli.net/css?family=Roboto:300,300italic,400,400italic,500,500italic|Material+Icons" rel="stylesheet">
|
||||
<meta charset="UTF-8">
|
||||
<meta content="IE=edge" http-equiv="X-UA-Compatible">
|
||||
<meta content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width" name="viewport">
|
||||
<meta name="theme-color" content="#4285f4">
|
||||
<title>{$config["appName"]}</title>
|
||||
|
||||
<!-- css -->
|
||||
<link href="/theme/material/css/base.min.css" rel="stylesheet">
|
||||
<link href="/theme/material/css/project.min.css" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css?family=Material+Icons" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/theme/material/css/user.css">
|
||||
<!-- jquery -->
|
||||
<!-- jquery -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1"></script>
|
||||
<script src="https://cdn.jsdelivr.net/gh/davidshimjs/qrcodejs@gh-pages/qrcode.min.js"></script>
|
||||
<!-- js -->
|
||||
<script src="/assets/js/fuck.js"></script>
|
||||
<!-- js -->
|
||||
<script src="/assets/js/fuck.js"></script>
|
||||
</head>
|
||||
<body class="page-orange">
|
||||
<header class="header header-orange header-transparent header-waterfall ui-header">
|
||||
<ul class="nav nav-list pull-left">
|
||||
<div>
|
||||
<a data-toggle="menu" href="#ui_menu">
|
||||
<span class="icon icon-lg text-white">menu</span>
|
||||
</a>
|
||||
</div>
|
||||
</ul>
|
||||
|
||||
<ul class="nav nav-list pull-right">
|
||||
<div class="dropdown margin-right">
|
||||
<a class="dropdown-toggle padding-left-no padding-right-no" data-toggle="dropdown">
|
||||
{if $user->isLogin}
|
||||
<span class="access-hide">{$user->user_name}</span>
|
||||
<span class="icon icon-cd margin-right">account_circle</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li>
|
||||
<a class="waves-attach" href="/user/"><span class="icon icon-lg margin-right">account_box</span>用户中心</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="padding-right-cd waves-attach" href="/user/logout"><span class="icon icon-lg margin-right">exit_to_app</span>登出</a>
|
||||
</li>
|
||||
</ul>
|
||||
{else}
|
||||
<span class="access-hide">未登录</span>
|
||||
<span class="icon icon-lg margin-right">account_circle</span>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li>
|
||||
<a class="padding-right-lg waves-attach" href="/auth/login"><span class="icon icon-lg margin-right">account_box</span>登录</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="padding-right-lg waves-attach" href="/auth/register"><span class="icon icon-lg margin-right">pregnant_woman</span>注册</a>
|
||||
</li>
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</ul>
|
||||
</header>
|
||||
<nav aria-hidden="true" class="menu menu-left nav-drawer nav-drawer-md" id="ui_menu" tabindex="-1">
|
||||
<div class="menu-scroll">
|
||||
<div class="menu-content">
|
||||
<a class="menu-logo" href="/"><i class="icon icon-lg" >language</i> {$config["appName"]}</a>
|
||||
<ul class="nav">
|
||||
<li>
|
||||
<a class="waves-attach" data-toggle="collapse" href="#ui_menu_me">我的</a>
|
||||
<ul class="menu-collapse collapse in" id="ui_menu_me">
|
||||
<li>
|
||||
<a href="/user">
|
||||
<i class="icon icon-lg">account_balance_wallet</i> 用户中心
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/user/profile">
|
||||
<i class="icon icon-lg">account_box</i> 账户信息
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/user/edit">
|
||||
<i class="icon icon-lg">sync_problem</i> 资料编辑
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/user/trafficlog">
|
||||
<i class="icon icon-lg">hourglass_empty</i> 流量记录
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{if $config['enable_ticket']=='true'}
|
||||
<header class="header header-orange header-transparent header-waterfall ui-header">
|
||||
<ul class="nav nav-list pull-left">
|
||||
<div>
|
||||
<a data-toggle="menu" href="#ui_menu">
|
||||
<span class="icon icon-lg text-white">menu</span>
|
||||
</a>
|
||||
</div>
|
||||
</ul>
|
||||
|
||||
<ul class="nav nav-list pull-right">
|
||||
<div class="dropdown margin-right">
|
||||
<a class="dropdown-toggle padding-left-no padding-right-no" data-toggle="dropdown">
|
||||
{if $user->isLogin}
|
||||
<span class="access-hide">{$user->user_name}</span>
|
||||
<span class="icon icon-cd margin-right">account_circle</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li>
|
||||
<a class="waves-attach" href="/user/"><span class="icon icon-lg margin-right">account_box</span>用户中心</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="padding-right-cd waves-attach" href="/user/logout"><span
|
||||
class="icon icon-lg margin-right">exit_to_app</span>登出</a>
|
||||
</li>
|
||||
</ul>
|
||||
{else}
|
||||
<span class="access-hide">未登录</span>
|
||||
<span class="icon icon-lg margin-right">account_circle</span>
|
||||
<ul class="dropdown-menu dropdown-menu-right">
|
||||
<li>
|
||||
<a class="padding-right-lg waves-attach" href="/auth/login"><span class="icon icon-lg margin-right">account_box</span>登录</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="padding-right-lg waves-attach" href="/auth/register"><span
|
||||
class="icon icon-lg margin-right">pregnant_woman</span>注册</a>
|
||||
</li>
|
||||
</ul>
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
</ul>
|
||||
</header>
|
||||
<nav aria-hidden="true" class="menu menu-left nav-drawer nav-drawer-md" id="ui_menu" tabindex="-1">
|
||||
<div class="menu-scroll">
|
||||
<div class="menu-content">
|
||||
<a class="menu-logo" href="/"><i class="icon icon-lg">language</i> {$config["appName"]}</a>
|
||||
<ul class="nav">
|
||||
<li>
|
||||
<a class="waves-attach" data-toggle="collapse" href="#ui_menu_me">我的</a>
|
||||
<ul class="menu-collapse collapse in" id="ui_menu_me">
|
||||
<li>
|
||||
<a href="/user">
|
||||
<i class="icon icon-lg">account_balance_wallet</i> 用户中心
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/user/profile">
|
||||
<i class="icon icon-lg">account_box</i> 账户信息
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/user/edit">
|
||||
<i class="icon icon-lg">sync_problem</i> 资料编辑
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/user/trafficlog">
|
||||
<i class="icon icon-lg">hourglass_empty</i> 流量记录
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{if $config['enable_ticket']=='true'}
|
||||
<li>
|
||||
<a href="/user/ticket">
|
||||
<i class="icon icon-lg">question_answer</i> 工单系统
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
<a href="/user/ticket">
|
||||
<i class="icon icon-lg">question_answer</i> 工单系统
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
|
||||
<li>
|
||||
<a href="/user/invite">
|
||||
<i class="icon icon-lg">loyalty</i> 邀请链接
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<a class="waves-attach" data-toggle="collapse" href="#ui_menu_use">使用</a>
|
||||
<ul class="menu-collapse collapse in" id="ui_menu_use">
|
||||
<li>
|
||||
<a href="/user/node">
|
||||
<i class="icon icon-lg">airplanemode_active</i> 节点列表
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/user/relay">
|
||||
<i class="icon icon-lg">compare_arrows</i> 中转规则
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/user/lookingglass">
|
||||
<i class="icon icon-lg">visibility</i> 延迟检测
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/user/announcement">
|
||||
<i class="icon icon-lg">announcement</i> 网站公告
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/doc/">
|
||||
<i class="icon icon-lg">start</i> 使用教程
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<a class="waves-attach" data-toggle="collapse" href="#ui_menu_detect">审计</a>
|
||||
<ul class="menu-collapse collapse in" id="ui_menu_detect">
|
||||
<li><a href="/user/detect"><i class="icon icon-lg">account_balance</i> 审计规则</a></li>
|
||||
<li><a href="/user/detect/log"><i class="icon icon-lg">assignment_late</i> 审计记录</a></li>
|
||||
</ul>
|
||||
|
||||
<a class="waves-attach" data-toggle="collapse" href="#ui_menu_help">商店</a>
|
||||
<ul class="menu-collapse collapse in" id="ui_menu_help">
|
||||
<li>
|
||||
<a href="/user/code">
|
||||
<i class="icon icon-lg">code</i> 充值
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/user/shop">
|
||||
<i class="icon icon-lg">shop</i> 套餐购买
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li><a href="/user/bought"><i class="icon icon-lg">shopping_cart</i> 购买记录</a></li>
|
||||
|
||||
|
||||
{if $config['enable_donate']=='true'}
|
||||
<li>
|
||||
<a href="/user/invite">
|
||||
<i class="icon icon-lg">loyalty</i> 邀请链接
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<a class="waves-attach" data-toggle="collapse" href="#ui_menu_use">使用</a>
|
||||
<ul class="menu-collapse collapse in" id="ui_menu_use">
|
||||
<li>
|
||||
<a href="/user/node">
|
||||
<i class="icon icon-lg">airplanemode_active</i> 节点列表
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/user/relay">
|
||||
<i class="icon icon-lg">compare_arrows</i> 中转规则
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/user/lookingglass">
|
||||
<i class="icon icon-lg">visibility</i> 延迟检测
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/user/announcement">
|
||||
<i class="icon icon-lg">announcement</i> 网站公告
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/doc/">
|
||||
<i class="icon icon-lg">start</i> 使用教程
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<a class="waves-attach" data-toggle="collapse" href="#ui_menu_detect">审计</a>
|
||||
<ul class="menu-collapse collapse in" id="ui_menu_detect">
|
||||
<li><a href="/user/detect"><i class="icon icon-lg">account_balance</i> 审计规则</a></li>
|
||||
<li><a href="/user/detect/log"><i class="icon icon-lg">assignment_late</i> 审计记录</a></li>
|
||||
</ul>
|
||||
|
||||
<a class="waves-attach" data-toggle="collapse" href="#ui_menu_help">商店</a>
|
||||
<ul class="menu-collapse collapse in" id="ui_menu_help">
|
||||
<li>
|
||||
<a href="/user/code">
|
||||
<i class="icon icon-lg">code</i> 充值
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="/user/shop">
|
||||
<i class="icon icon-lg">shop</i> 套餐购买
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li><a href="/user/bought"><i class="icon icon-lg">shopping_cart</i> 购买记录</a></li>
|
||||
|
||||
|
||||
{if $config['enable_donate']=='true'}
|
||||
<li>
|
||||
<a href="/user/donate">
|
||||
<i class="icon icon-lg">attach_money</i> 捐赠公示
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
|
||||
</ul>
|
||||
|
||||
{if $user->isAdmin()}
|
||||
<li>
|
||||
<a href="/admin">
|
||||
<i class="icon icon-lg">person_pin</i> 管理面板
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
|
||||
{if $can_backtoadmin}
|
||||
<li>
|
||||
<a class="padding-right-cd waves-attach" href="/user/backtoadmin"><span class="icon icon-lg margin-right">backtoadmin</span>返回管理员身份</a>
|
||||
<li>
|
||||
<a href="/user/donate">
|
||||
<i class="icon icon-lg">attach_money</i> 捐赠公示
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</ul>
|
||||
|
||||
{if $user->isAdmin()}
|
||||
<li>
|
||||
<a href="/admin">
|
||||
<i class="icon icon-lg">person_pin</i> 管理面板
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
|
||||
{if $can_backtoadmin}
|
||||
<li>
|
||||
<a class="padding-right-cd waves-attach" href="/user/backtoadmin"><span
|
||||
class="icon icon-lg margin-right">backtoadmin</span>返回管理员身份</a>
|
||||
<li>
|
||||
{/if}
|
||||
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{if $config["enable_mylivechat"] == 'true'}{include file='mylivechat.tpl'}{/if}
|
||||
|
||||
@ -1,442 +1,478 @@
|
||||
{$load=$point_node->getNodeLoad()}
|
||||
|
||||
<div id="load{$id}_chart" style="height: 300px; width: 100%;"></div>
|
||||
<div id="up{$id}_chart" style="height: 300px; width: 100%;"></div>
|
||||
<div id="alive{$id}_chart" style="height: 300px; width: 100%;"></div>
|
||||
<div id="speedtest{$id}_chart" style="height: 300px; width: 100%;"></div>
|
||||
<div id="speedtest{$id}_ping_chart" style="height: 300px; width: 100%;"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$().ready(function(){
|
||||
chart{$id} = new CanvasJS.Chart("load{$id}_chart",
|
||||
{
|
||||
title:{
|
||||
text: "节点负载情况 {$prefix}"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
type: "line",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $load as $single_load}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_load->log_time*1000}), y:{$single_load->getNodeLoad()}
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
,{
|
||||
{/literal}
|
||||
x: new Date({$single_load->log_time*1000}), y:{$single_load->getNodeLoad()}
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
|
||||
up_chart{$id} = new CanvasJS.Chart("up{$id}_chart",
|
||||
{
|
||||
title:{
|
||||
text: "最近一天节点在线情况 {$prefix} - 在线 {$point_node->getNodeUptime()}"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
//startAngle: 45,
|
||||
indexLabelFontSize: 20,
|
||||
indexLabelFontFamily: "Garamond",
|
||||
indexLabelFontColor: "darkgrey",
|
||||
indexLabelLineColor: "darkgrey",
|
||||
yValueFormatString: "##0.00\"%\"",
|
||||
indexLabelPlacement: "outside",
|
||||
type: "doughnut",
|
||||
showInLegend: true,
|
||||
dataPoints: [
|
||||
{
|
||||
y: {$point_node->getNodeUpRate()*100}, label: "在线率",legendText:"在线率 {number_format($point_node->getNodeUpRate()*100,2)}%", indexLabel: "在线率 {number_format($point_node->getNodeUpRate()*100,2)}%"
|
||||
},
|
||||
{
|
||||
y: {(1-$point_node->getNodeUpRate())*100}, label: "离线率",legendText:"离线率 {number_format((1-$point_node->getNodeUpRate())*100,2)}%", indexLabel: "离线率 {number_format((1-$point_node->getNodeUpRate())*100,2)}%"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
{$load=$point_node->getNodeAlive()}
|
||||
alive_chart{$id} = new CanvasJS.Chart("alive{$id}_chart",
|
||||
{
|
||||
title:{
|
||||
text: "最近一天节点在线人数情况 {$prefix}"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
type: "line",
|
||||
yValueFormatString: "##0\"人\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $load as $single_load}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_load->log_time*1000}), y:{$single_load->online_user},label: "同时在线人数"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
,{
|
||||
{/literal}
|
||||
x: new Date({$single_load->log_time*1000}), y:{$single_load->online_user},label: "同时在线人数"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
|
||||
{$speedtests=$point_node->getSpeedtestResult()}
|
||||
speedtest_chart{$id} = new CanvasJS.Chart("speedtest{$id}_chart",
|
||||
{
|
||||
title:{
|
||||
text: "最近节点测速延时情况报告 {$prefix}"
|
||||
},
|
||||
axisY: {
|
||||
suffix: " ms"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "电信延时",
|
||||
yValueFormatString: "##0\"ms\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getTelecomPing()},label: "电信延时"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
,{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getTelecomPing()},label: "电信延时"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "联通延时",
|
||||
yValueFormatString: "##0\"ms\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getUnicomPing()},label: "联通延时"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
,{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getUnicomPing()},label: "联通延时"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText:"移动延时",
|
||||
yValueFormatString: "##0\"ms\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getCmccPing()},label: "移动延时"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
,{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getCmccPing()},label: "移动延时"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
speedtest_ping_chart{$id} = new CanvasJS.Chart("speedtest{$id}_ping_chart",
|
||||
{
|
||||
title:{
|
||||
text: "最近节点测速速度情况报告 {$prefix}"
|
||||
},
|
||||
axisY: {
|
||||
includeZero: false,
|
||||
suffix: " Mbps"
|
||||
},
|
||||
toolTip:{
|
||||
shared: true
|
||||
},
|
||||
data: [
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "电信上传速度",
|
||||
name: "电信上传",
|
||||
yValueFormatString: "##0.00\"Mb\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getTelecomUpload()},label: "电信上传"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
,{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getTelecomUpload()},label: "电信上传"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "电信下载速度",
|
||||
name: "电信下载",
|
||||
yValueFormatString: "##0.00\"Mb\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getTelecomDownload()},label: "电信下载"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
,{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getTelecomDownload()},label: "电信下载"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "联通上传速度",
|
||||
name: "联通上传",
|
||||
yValueFormatString: "##0.00\"Mb\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getUnicomUpload()},label: "联通上传"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
,{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getUnicomUpload()},label: "联通上传"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "联通下载速度",
|
||||
name: "联通下载",
|
||||
yValueFormatString: "##0.00\"Mb\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getUnicomDownload()},label: "联通下载"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
,{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getUnicomDownload()},label: "联通下载"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText:"移动下载速度",
|
||||
name: "移动下载",
|
||||
yValueFormatString: "##0.00\"Mb\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getCmccDownload()},label: "移动下载"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
,{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getCmccDownload()},label: "移动下载"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText:"移动上传速度",
|
||||
name: "移动上传",
|
||||
yValueFormatString: "##0.00\"Mb\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getCmccUpload()},label: "移动上传"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
,{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}), y:{$single_speedtest->getCmccUpload()},label: "移动上传"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
chart{$id}.render();
|
||||
up_chart{$id}.render();
|
||||
alive_chart{$id}.render();
|
||||
speedtest_chart{$id}.render();
|
||||
speedtest_ping_chart{$id}.render();
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<div id="up{$id}_chart" style="height: 300px; width: 100%;"></div>
|
||||
<div id="alive{$id}_chart" style="height: 300px; width: 100%;"></div>
|
||||
<div id="speedtest{$id}_chart" style="height: 300px; width: 100%;"></div>
|
||||
<div id="speedtest{$id}_ping_chart" style="height: 300px; width: 100%;"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$().ready(function () {
|
||||
chart{$id} = new CanvasJS.Chart("load{$id}_chart",
|
||||
{
|
||||
title: {
|
||||
text: "节点负载情况 {$prefix}"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
type: "line",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $load as $single_load}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_load->log_time*1000}), y:{$single_load->getNodeLoad()}
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
, {
|
||||
{/literal}
|
||||
x: new Date({$single_load->log_time*1000}), y:{$single_load->getNodeLoad()}
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
up_chart{$id} = new CanvasJS.Chart("up{$id}_chart",
|
||||
{
|
||||
title: {
|
||||
text: "最近一天节点在线情况 {$prefix} - 在线 {$point_node->getNodeUptime()}"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
//startAngle: 45,
|
||||
indexLabelFontSize: 20,
|
||||
indexLabelFontFamily: "Garamond",
|
||||
indexLabelFontColor: "darkgrey",
|
||||
indexLabelLineColor: "darkgrey",
|
||||
yValueFormatString: "##0.00\"%\"",
|
||||
indexLabelPlacement: "outside",
|
||||
type: "doughnut",
|
||||
showInLegend: true,
|
||||
dataPoints: [
|
||||
{
|
||||
y: {$point_node->getNodeUpRate()*100},
|
||||
label: "在线率",
|
||||
legendText: "在线率 {number_format($point_node->getNodeUpRate()*100,2)}%",
|
||||
indexLabel: "在线率 {number_format($point_node->getNodeUpRate()*100,2)}%"
|
||||
},
|
||||
{
|
||||
y: {(1-$point_node->getNodeUpRate())*100},
|
||||
label: "离线率",
|
||||
legendText: "离线率 {number_format((1-$point_node->getNodeUpRate())*100,2)}%",
|
||||
indexLabel: "离线率 {number_format((1-$point_node->getNodeUpRate())*100,2)}%"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
{$load=$point_node->getNodeAlive()}
|
||||
alive_chart{$id} = new CanvasJS.Chart("alive{$id}_chart",
|
||||
{
|
||||
title: {
|
||||
text: "最近一天节点在线人数情况 {$prefix}"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
type: "line",
|
||||
yValueFormatString: "##0\"人\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $load as $single_load}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_load->log_time*1000}),
|
||||
y:{$single_load->online_user},
|
||||
label: "同时在线人数"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
, {
|
||||
{/literal}
|
||||
x: new Date({$single_load->log_time*1000}),
|
||||
y:{$single_load->online_user},
|
||||
label: "同时在线人数"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
|
||||
{$speedtests=$point_node->getSpeedtestResult()}
|
||||
speedtest_chart{$id} = new CanvasJS.Chart("speedtest{$id}_chart",
|
||||
{
|
||||
title: {
|
||||
text: "最近节点测速延时情况报告 {$prefix}"
|
||||
},
|
||||
axisY: {
|
||||
suffix: " ms"
|
||||
},
|
||||
data: [
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "电信延时",
|
||||
yValueFormatString: "##0\"ms\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getTelecomPing()},
|
||||
label: "电信延时"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
, {
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getTelecomPing()},
|
||||
label: "电信延时"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "联通延时",
|
||||
yValueFormatString: "##0\"ms\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getUnicomPing()},
|
||||
label: "联通延时"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
, {
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getUnicomPing()},
|
||||
label: "联通延时"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "移动延时",
|
||||
yValueFormatString: "##0\"ms\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getCmccPing()},
|
||||
label: "移动延时"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
, {
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getCmccPing()},
|
||||
label: "移动延时"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
speedtest_ping_chart{$id} = new CanvasJS.Chart("speedtest{$id}_ping_chart",
|
||||
{
|
||||
title: {
|
||||
text: "最近节点测速速度情况报告 {$prefix}"
|
||||
},
|
||||
axisY: {
|
||||
includeZero: false,
|
||||
suffix: " Mbps"
|
||||
},
|
||||
toolTip: {
|
||||
shared: true
|
||||
},
|
||||
data: [
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "电信上传速度",
|
||||
name: "电信上传",
|
||||
yValueFormatString: "##0.00\"Mb\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getTelecomUpload()},
|
||||
label: "电信上传"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
, {
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getTelecomUpload()},
|
||||
label: "电信上传"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "电信下载速度",
|
||||
name: "电信下载",
|
||||
yValueFormatString: "##0.00\"Mb\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getTelecomDownload()},
|
||||
label: "电信下载"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
, {
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getTelecomDownload()},
|
||||
label: "电信下载"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "联通上传速度",
|
||||
name: "联通上传",
|
||||
yValueFormatString: "##0.00\"Mb\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getUnicomUpload()},
|
||||
label: "联通上传"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
, {
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getUnicomUpload()},
|
||||
label: "联通上传"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "联通下载速度",
|
||||
name: "联通下载",
|
||||
yValueFormatString: "##0.00\"Mb\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getUnicomDownload()},
|
||||
label: "联通下载"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
, {
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getUnicomDownload()},
|
||||
label: "联通下载"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "移动下载速度",
|
||||
name: "移动下载",
|
||||
yValueFormatString: "##0.00\"Mb\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getCmccDownload()},
|
||||
label: "移动下载"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
, {
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getCmccDownload()},
|
||||
label: "移动下载"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
type: "line",
|
||||
showInLegend: true,
|
||||
legendText: "移动上传速度",
|
||||
name: "移动上传",
|
||||
yValueFormatString: "##0.00\"Mb\"",
|
||||
dataPoints: [
|
||||
{$i=0}
|
||||
{foreach $speedtests as $single_speedtest}
|
||||
{if $i==0}
|
||||
{literal}
|
||||
{
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getCmccUpload()},
|
||||
label: "移动上传"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{$i=1}
|
||||
{else}
|
||||
{literal}
|
||||
, {
|
||||
{/literal}
|
||||
x: new Date({$single_speedtest->datetime*1000}),
|
||||
y:{$single_speedtest->getCmccUpload()},
|
||||
label: "移动上传"
|
||||
{literal}
|
||||
}
|
||||
{/literal}
|
||||
{/if}
|
||||
{/foreach}
|
||||
|
||||
]
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
chart{$id}.render();
|
||||
up_chart{$id}.render();
|
||||
alive_chart{$id}.render();
|
||||
speedtest_chart{$id}.render();
|
||||
speedtest_ping_chart{$id}.render();
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue