|
|
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
|
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
|
|
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
|
|
|
<%
|
|
|
String path = request.getContextPath();
|
|
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
|
|
|
|
|
%>
|
|
|
<!DOCTYPE html>
|
|
|
<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<title>欢迎</title>
|
|
|
<meta name="renderer" content="webkit">
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
|
|
|
|
|
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/xadmin.css">
|
|
|
<script src="<%=request.getContextPath()%>/layui-v2.6.6/layui/layui.js" charset="utf-8"></script>
|
|
|
<script type="text/javascript" src="<%=request.getContextPath()%>/js/xadmin.js"></script>
|
|
|
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
|
|
<!--[if lt IE 9]>
|
|
|
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
|
|
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
|
|
<![endif]-->
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="layui-fluid">
|
|
|
<div class="layui-row layui-col-space15">
|
|
|
<div class="layui-col-md12">
|
|
|
<div class="layui-card">
|
|
|
<div class="layui-card-header">数据统计</div>
|
|
|
<div class="layui-card-body ">
|
|
|
<ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
|
|
|
<li class="layui-col-md2 layui-col-xs6">
|
|
|
<a href="<%=request.getContextPath()%>/user/list.do" class="x-admin-backlog-body">
|
|
|
<h3>用户数</h3>
|
|
|
<p>
|
|
|
<cite>${userTotal}</cite>
|
|
|
</p>
|
|
|
</a>
|
|
|
</li>
|
|
|
<li class="layui-col-md2 layui-col-xs6">
|
|
|
<a href="<%=request.getContextPath()%>/employee/list.do" class="x-admin-backlog-body">
|
|
|
<h3>员工数</h3>
|
|
|
<p>
|
|
|
<cite>${employeeTotal}</cite></p>
|
|
|
</a>
|
|
|
</li>
|
|
|
<li class="layui-col-md2 layui-col-xs6">
|
|
|
<a href="<%=request.getContextPath()%>/dept/list.do" class="x-admin-backlog-body">
|
|
|
<h3>部门数</h3>
|
|
|
<p>
|
|
|
<cite>${deptTotal}</cite></p>
|
|
|
</a>
|
|
|
</li>
|
|
|
<li class="layui-col-md2 layui-col-xs6">
|
|
|
<a href="<%=request.getContextPath()%>/job/list.do" class="x-admin-backlog-body">
|
|
|
<h3>职位数</h3>
|
|
|
<p>
|
|
|
<cite>${jobTotal}</cite></p>
|
|
|
</a>
|
|
|
</li>
|
|
|
<li class="layui-col-md2 layui-col-xs6">
|
|
|
<a href="<%=request.getContextPath()%>/notice/list.do" class="x-admin-backlog-body">
|
|
|
<h3>公告数</h3>
|
|
|
<p>
|
|
|
<cite>${noticeTotal}</cite></p>
|
|
|
</a>
|
|
|
</li>
|
|
|
<li class="layui-col-md2 layui-col-xs6 ">
|
|
|
<a href="<%=request.getContextPath()%>/uploadfile/list.do" class="x-admin-backlog-body">
|
|
|
<h3>文件数</h3>
|
|
|
<p>
|
|
|
<cite>${uploadfileTotal}</cite></p>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="layui-col-md12">
|
|
|
<div class="layui-card">
|
|
|
<div class="layui-card-header"><h2># 最新公告</h2></div>
|
|
|
<div class="layui-card-body ">
|
|
|
<table class="layui-table">
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<th><h1>#</h1></th>
|
|
|
<th><h1>公告标题</h1></th>
|
|
|
<td><h1>作者</h1></td>
|
|
|
<tr>
|
|
|
<c:forEach items="${noticeList}" begin="0" end="4" var="item" varStatus="xh">
|
|
|
<tr>
|
|
|
<th>${xh.count}</th>
|
|
|
<th><a onclick="xadmin.open('公告详情','<%=request.getContextPath()%>/notice/edit/${item.id}.do',800,500,true)" >${item.name}</a></th>
|
|
|
<td>${item.user.username}</td>
|
|
|
<tr>
|
|
|
</c:forEach>
|
|
|
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<style id="welcome_style"></style>
|
|
|
<div class="layui-col-md12">
|
|
|
<blockquote class="layui-elem-quote layui-quote-nm">感谢layui,百度Echarts,jquery,本系统由x-admin提供技术支持。</blockquote></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</body>
|
|
|
</html> |