This repository has been archived on 2026-06-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
wsh5485 7e47ce238b chore: 添加多个图片和资源文件
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
2025-06-15 13:04:37 +08:00

225 lines
6.5 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>首页-e订通后台</title>
<link rel="stylesheet" href="layuiadmin/layui/css/layui.css">
<link rel="stylesheet" href="index.css">
<script src="layuiadmin/layui/layui.js"></script>
<script src="js/function.js"></script>
<style>
.panel{ text-align:center; height:70px;}
.panel_box_div{display:block; border-radius:5px; overflow:hidden; height:60px; background-color:#f2f2f2 !important; }
.panel_icon{ width:40%; display: inline-block; line-height:60px; float:left; position:relative; height:100%;}
.panel_icon i{ font-size:30px !important; color:#fff; display: inline-block;}
.panel_word{ width:60%; display: inline-block; float:right; margin:13px 0 14px; }
.panel_word span{ font-size:16px; display:block; height:28px; }
.panel_word a{ cursor:pointer; }
.panel em{ font-style:normal;}
.layui-elem-quote.title{ padding:10px 15px; margin-bottom:0;}
</style>
</head>
<body>
<div style="padding:6px;">
<div class="layui-row panel_box layui-col-space10">
<div class="panel layui-col-lg3 layui-col-md3 layui-col-sm3 layui-col-xs6">
<div class="panel_box_div">
<div class="panel_icon layui-bg-green">
<i class="layui-icon layui-icon-user"></i>
</div>
<div class="panel_word">
<span id="num_client"></span>
<a lay-href="client.htm">客户端管理</a>
</div>
</div>
</div>
<div class="panel layui-col-lg3 layui-col-md3 layui-col-sm3 layui-col-xs6">
<div class="panel_box_div">
<div class="panel_icon layui-bg-green">
<i class="layui-icon layui-icon-picture"></i>
</div>
<div class="panel_word">
<span id="num_kh"></span>
<a lay-href="kh.htm">款号管理</a>
</div>
</div>
</div>
<div class="panel layui-col-lg3 layui-col-md3 layui-col-sm3 layui-col-xs6">
<div class="panel_box_div">
<div class="panel_icon layui-bg-green">
<i class="layui-icon layui-icon-rmb"></i>
</div>
<div class="panel_word">
<span id="num_dd"></span>
<a lay-href="order.htm">订单管理</a>
</div>
</div>
</div>
<div class="panel layui-col-lg3 layui-col-md3 layui-col-sm3 layui-col-xs6">
<div class="panel_box_div">
<div class="panel_icon layui-bg-green">
<i class="layui-icon layui-icon-template-1"></i>
</div>
<div class="panel_word">
<span id="num_data"></span>
<a lay-href="database_export.htm">数据备份</a>
</div>
</div>
</div>
</div>
<div class="layui-row layui-col-space10">
<div class="layui-col-lg6 layui-col-md6 layui-col-sm6 layui-col-xs12">
<blockquote class="layui-elem-quote">系统基本参数</blockquote>
<table class="layui-table">
<colgroup>
<col width="150">
<col>
</colgroup>
<tbody>
<tr>
<td>服务器 / 时间</td>
<td class="server"></td>
</tr>
<tr>
<td>数据库 / 时间</td>
<td class="mysql"></td>
</tr>
<tr>
<td>PHP版本</td>
<td class="php"></td>
</tr>
<tr>
<td>Zender版本</td>
<td class="zend"></td>
</tr>
<tr>
<td>目录权限</td>
<td class="path_priv"></td>
</tr>
<tr>
<td>最大上传限制</td>
<td class="php_max_upload"></td>
</tr>
</tbody>
</table>
<!-- <blockquote class="layui-elem-quote">授权信息</blockquote>
<table class="layui-table">
<colgroup>
<col width="150">
<col>
</colgroup>
<tbody>
<tr>
<td>授权抬头</td>
<td class="lic_title"></td>
</tr>
<tr>
<td>授权客户端数</td>
<td class="lic_client_num"></td>
</tr>
<tr>
<td>授权时间</td>
<td class="lic_date"></td>
</tr>
</tbody>
</table> -->
</div>
<div class="layui-col-lg6 layui-col-md6 layui-col-sm6 layui-col-xs12">
<blockquote class="layui-elem-quote">最新操作日志</blockquote>
<table class="layui-table" id="table_czrz">
<colgroup>
<col width="60">
<col width="170">
<col width="100">
<col width="100">
<col>
</colgroup>
<thead>
<tr>
<th>编号</th>
<th>时间</th>
<th>用户</th>
<th>IP</th>
<th>操作</th>
</tr>
</thead>
<tbody class="czrz">
</tbody>
</table>
</div>
</div>
</div>
<script>
layui.config({
base: 'layuiadmin/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
}).use(['index','element','jquery','layer'],function(){
var $=layui.jquery,table=layui.table;;
var element = layui.element;
element.init();
$.ajax(
{
url: "./?_m=home",
contentType: "application/json",
method: 'POST',
success: function (res) {
var json_data=$.parseJSON(res);
if(json_data.uid>0){
//概览数量
$("#num_client").html(json_data.client_num);
$("#num_kh").html(json_data.kh_num);
$("#num_dd").html(json_data.order_js+'件 / '+json_data.order_je+'元');
$("#num_data").html(json_data.data_num+'条');
//服务器
var html1=json_data.server+'<br>'+json_data.server_time;
$(".server").html(html1);
//php
html1=json_data.php;
$(".php").html(html1);
//Zender
html1=json_data.zend;
$(".zend").html(html1);
//mysql
html1="MYSQL "+json_data.mysql+'<br>'+json_data.mysql_time;
$(".mysql").html(html1);
//目录权限
html1="";
for(var i=0;i<json_data.path_priv.length;i++){
html1+=json_data.path_priv[i].title+':';
if(json_data.path_priv[i].priv=="y")
html1+='可写';
else
html1+='<span class="layui-bg-red"><b>不可写</b></span>';
html1+='<br>';
}
$(".path_priv").html(html1);
//最大上传
html1=json_data.php_max_upload;
$(".php_max_upload").html(html1);
//license信息
$(".lic_title").html(json_data.lic_title);
$(".lic_client_num").html(json_data.lic_client_num+" (已用:"+json_data.lic_client_used+")");
$(".lic_date").html(json_data.lic_date);
//操作日志
html1="";
for(var i=0;i<json_data.log_info.length;i++){
html1+='<tr><td>'+json_data.log_info[i].bh+'</td><td>'+json_data.log_info[i].add_date+'</td><td>'+json_data.log_info[i].username+'</td><td>'+json_data.log_info[i].ip+'</td><td>'+json_data.log_info[i].action+'</td></tr>';
}
$(".czrz").html(html1);
}else{
//未登录
go_url("login");
}
},
error: function () {
layui.layer.msg("与服务器通信失败!");
}
}
);
});
</script>
</body>
</html>