@ -0,0 +1,39 @@
|
||||
*.class
|
||||
|
||||
# package file
|
||||
|
||||
*.war
|
||||
*.ear
|
||||
|
||||
# kdiff3 ignore
|
||||
*.orig
|
||||
|
||||
# maven ignore
|
||||
target/
|
||||
|
||||
# eclipse ignore
|
||||
.settings/
|
||||
.project
|
||||
.classpatch
|
||||
|
||||
# idea
|
||||
.idea/
|
||||
/idea/
|
||||
*.ipr
|
||||
*.iml
|
||||
*.iws
|
||||
|
||||
# temp file
|
||||
|
||||
*.log
|
||||
*.cache
|
||||
*.diff
|
||||
*.patch
|
||||
*.tmp
|
||||
|
||||
# system ignore
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
|
||||
|
@ -1,2 +1,23 @@
|
||||
# SDMS
|
||||
## DormitorySystem
|
||||
  
|
||||
- 毕业设计💼
|
||||
- MD5加密🔒
|
||||
- SSM框架🎨
|
||||
- Layui框架🎄
|
||||
|
||||
#### 实现功能
|
||||
- [x] 管理员的登录与登出
|
||||
- [x] 管理员,班级,学生,宿舍,卫生,访客各模块增删改查
|
||||
- [x] 个别模块关联查询
|
||||
- [x] 各个模块数据导出Excel
|
||||
|
||||
#### 一些截图
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
|
||||
|
@ -0,0 +1,81 @@
|
||||
<!--suppress ALL -->
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xmlns:aop="http://www.springframework.org/schema/aop"
|
||||
xmlns:tx="http://www.springframework.org/schema/tx"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
|
||||
http://www.springframework.org/schema/mvc
|
||||
http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd
|
||||
http://www.springframework.org/schema/context
|
||||
http://www.springframework.org/schema/context/spring-context-4.3.xsd
|
||||
http://www.springframework.org/schema/aop
|
||||
http://www.springframework.org/schema/aop/spring-aop-4.3.xsd
|
||||
http://www.springframework.org/schema/tx
|
||||
http://www.springframework.org/schema/tx/spring-tx-4.3.xsd">
|
||||
<!--读取db.properties -->
|
||||
<context:property-placeholder location="classpath:db.properties"/>
|
||||
<!-- 配置数据源 -->
|
||||
<bean id="dataSource"
|
||||
class="org.apache.commons.dbcp2.BasicDataSource">
|
||||
<!--数据库驱动 -->
|
||||
<property name="driverClassName" value="${jdbc.driver}" />
|
||||
<!--连接数据库的url -->
|
||||
<property name="url" value="${jdbc.url}" />
|
||||
<!--连接数据库的用户名 -->
|
||||
<property name="username" value="${jdbc.username}" />
|
||||
<!--连接数据库的密码 -->
|
||||
<property name="password" value="${jdbc.password}" />
|
||||
<!--最大连接数 -->
|
||||
<property name="maxTotal" value="${jdbc.maxTotal}" />
|
||||
<!--最大空闲连接 -->
|
||||
<property name="maxIdle" value="${jdbc.maxIdle}" />
|
||||
<!--初始化连接数 -->
|
||||
<property name="initialSize" value="${jdbc.initialSize}" />
|
||||
</bean>
|
||||
<!-- 事务管理器 -->
|
||||
<bean id="transactionManager" class=
|
||||
"org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
||||
<!-- 数据源 -->
|
||||
<property name="dataSource" ref="dataSource" />
|
||||
</bean>
|
||||
<!-- 通知 -->
|
||||
<tx:advice id="txAdvice" transaction-manager="transactionManager">
|
||||
<tx:attributes>
|
||||
<!-- 传播行为 -->
|
||||
<tx:method name="save*" propagation="REQUIRED" />
|
||||
<tx:method name="insert*" propagation="REQUIRED" />
|
||||
<tx:method name="add*" propagation="REQUIRED" />
|
||||
<tx:method name="create*" propagation="REQUIRED" />
|
||||
<tx:method name="delete*" propagation="REQUIRED" />
|
||||
<tx:method name="update*" propagation="REQUIRED" />
|
||||
<tx:method name="find*" propagation="SUPPORTS"
|
||||
read-only="true" />
|
||||
<tx:method name="select*" propagation="SUPPORTS"
|
||||
read-only="true" />
|
||||
<tx:method name="get*" propagation="SUPPORTS"
|
||||
read-only="true" />
|
||||
</tx:attributes>
|
||||
</tx:advice>
|
||||
<!-- 切面 -->
|
||||
<aop:config>
|
||||
<aop:advisor advice-ref="txAdvice"
|
||||
pointcut="execution(* com.itheima.service.*.*(..))" />
|
||||
</aop:config>
|
||||
<!-- 配置 MyBatis的工厂 -->
|
||||
<bean class="org.mybatis.spring.SqlSessionFactoryBean">
|
||||
<!-- 数据源 -->
|
||||
<property name="dataSource" ref="dataSource" />
|
||||
<!-- 配置MyBatis的核心配置文件所在位置 -->
|
||||
<property name="configLocation"
|
||||
value="classpath:mybatis-config.xml" />
|
||||
</bean>
|
||||
<!-- 接口开发,扫描 com.itheima.core.dao包 ,写在此包下的接口即可被扫描到 -->
|
||||
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
|
||||
<property name="basePackage" value="com.itheima.dao" />
|
||||
</bean>
|
||||
<!-- 配置扫描@Service注解 -->
|
||||
<context:component-scan base-package="com.itheima.service"/>
|
||||
</beans>
|
@ -0,0 +1,7 @@
|
||||
jdbc.driver=com.mysql.jdbc.Driver
|
||||
jdbc.url=jdbc:mysql://localhost:3306/bookstone
|
||||
jdbc.username=root
|
||||
jdbc.password=root
|
||||
jdbc.maxTotal=30
|
||||
jdbc.maxIdle=10
|
||||
jdbc.initialSize=5
|
@ -0,0 +1,8 @@
|
||||
# Global logging configuration
|
||||
log4j.rootLogger=ERROR, stdout
|
||||
# MyBatis logging configuration...
|
||||
log4j.logger.com.itheima=DEBUG
|
||||
# Console output...
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] - %m%n
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-config.dtd">
|
||||
<configuration>
|
||||
<!-- 别名定义 -->
|
||||
<typeAliases>
|
||||
<package name="com.itheima.po" />
|
||||
</typeAliases>
|
||||
</configuration>
|
@ -0,0 +1,3 @@
|
||||
customer.from.type=002
|
||||
customer.industry.type=001
|
||||
customer.level.type=006
|
@ -0,0 +1,44 @@
|
||||
<!--suppress ALL -->
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:mvc="http://www.springframework.org/schema/mvc"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xmlns:aop="http://www.springframework.org/schema/aop"
|
||||
xmlns:tx="http://www.springframework.org/schema/tx"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||
http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
|
||||
http://www.springframework.org/schema/mvc
|
||||
http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd
|
||||
http://www.springframework.org/schema/context
|
||||
http://www.springframework.org/schema/context/spring-context-4.3.xsd
|
||||
http://www.springframework.org/schema/aop
|
||||
http://www.springframework.org/schema/aop/spring-aop-4.3.xsd
|
||||
http://www.springframework.org/schema/tx
|
||||
http://www.springframework.org/schema/tx/spring-tx-4.3.xsd">
|
||||
<!-- 加载属性文件 -->
|
||||
<context:property-placeholder
|
||||
location="classpath:resource.properties" />
|
||||
<!-- 配置扫描器 -->
|
||||
<context:component-scan base-package="com.itheima.controller" />
|
||||
<!-- 注解驱动:配置处理器映射器和适配器 -->
|
||||
<mvc:annotation-driven />
|
||||
<!--配置静态资源的访问映射,此配置中的文件,将不被前端控制器拦截 -->
|
||||
<mvc:resources location="/js/" mapping="/js/**" />
|
||||
<mvc:resources location="/css/" mapping="/css/**" />
|
||||
<mvc:resources location="/fonts/" mapping="/fonts/**" />
|
||||
<mvc:resources location="/images/" mapping="/images/**" />
|
||||
<mvc:resources location="/assets/" mapping="/assets/**" />
|
||||
<mvc:resources location="/lib/" mapping="/lib/**" />
|
||||
<!-- 配置视图解释器ViewResolver
|
||||
<bean id="jspViewResolver" class=
|
||||
"org.springframework.web.servlet.view.InternalResourceViewResolver">
|
||||
<property name="prefix" value="/WEB-INF/jsp/" />
|
||||
<property name="suffix" value=".jsp" />
|
||||
</bean> -->
|
||||
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
|
||||
<property name="defaultEncoding" value="UTF-8"/>
|
||||
</bean>
|
||||
|
||||
<!-- 配置拦截器-->
|
||||
|
||||
</beans>
|
@ -0,0 +1,218 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: hkw
|
||||
Date: 2018/10/15
|
||||
Time: 21:42
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>后台登录-X-admin2.0</title>
|
||||
<meta name="renderer" content="webkit|ie-comp|ie-stand">
|
||||
<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" />
|
||||
<%--<meta http-equiv="Cache-Control" content="no-siteapp" />--%>
|
||||
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="./css/font.css">
|
||||
<link rel="stylesheet" href="./css/xadmin.css">
|
||||
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
|
||||
<script src="lib/layui/layui.js"></script>
|
||||
<script type="text/javascript" src="./js/xadmin.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<!-- 顶部开始 -->
|
||||
<div class="container">
|
||||
<div class="logo"><a href="./index.html">X-admin v2.0</a></div>
|
||||
<div class="left_open">
|
||||
<i title="展开左侧栏" class="iconfont"></i>
|
||||
</div>
|
||||
<ul class="layui-nav left fast-add" lay-filter="">
|
||||
<li class="layui-nav-item">
|
||||
<a href="javascript:;">+新增</a>
|
||||
<dl class="layui-nav-child"> <!-- 二级菜单 -->
|
||||
<dd><a onclick="x_admin_show('资讯','http://www.baidu.com')"><i class="iconfont"></i>资讯</a></dd>
|
||||
<dd><a onclick="x_admin_show('图片','http://www.baidu.com')"><i class="iconfont"></i>图片</a></dd>
|
||||
<dd><a onclick="x_admin_show('用户','http://www.baidu.com')"><i class="iconfont"></i>用户</a></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="layui-nav right" lay-filter="">
|
||||
<li class="layui-nav-item">
|
||||
<a href="javascript:;">admin</a>
|
||||
<dl class="layui-nav-child"> <!-- 二级菜单 -->
|
||||
<dd><a onclick="x_admin_show('个人信息','http://www.baidu.com')">个人信息</a></dd>
|
||||
<dd><a onclick="x_admin_show('切换帐号','http://www.baidu.com')">切换帐号</a></dd>
|
||||
<dd><a href="./login.html">退出</a></dd>
|
||||
</dl>
|
||||
</li>
|
||||
<li class="layui-nav-item to-index"><a href="/">前台首页</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<!-- 顶部结束 -->
|
||||
<!-- 中部开始 -->
|
||||
<!-- 左侧菜单开始 -->
|
||||
<div class="left-nav">
|
||||
<div id="side-nav">
|
||||
<ul id="nav">
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<i class="iconfont"></i>
|
||||
<cite>用户管理</cite>
|
||||
<i class="iconfont nav_right"></i>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a _href="student_list.jsp">
|
||||
<i class="iconfont"></i>
|
||||
<cite>会员列表</cite>
|
||||
|
||||
</a>
|
||||
</li >
|
||||
<li>
|
||||
<a _href="member-del.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>会员删除</cite>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<i class="iconfont"></i>
|
||||
<cite>会员管理</cite>
|
||||
<i class="iconfont nav_right"></i>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a _href="xxx.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>会员列表</cite>
|
||||
|
||||
</a>
|
||||
</li >
|
||||
<li>
|
||||
<a _href="xx.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>会员删除</cite>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a _href="xx.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>等级管理</cite>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<i class="iconfont"></i>
|
||||
<cite>订单管理</cite>
|
||||
<i class="iconfont nav_right"></i>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a _href="order-list.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>订单列表</cite>
|
||||
</a>
|
||||
</li >
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<i class="iconfont"></i>
|
||||
<cite>管理员管理</cite>
|
||||
<i class="iconfont nav_right"></i>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a _href="admin-list.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>管理员列表</cite>
|
||||
</a>
|
||||
</li >
|
||||
<li>
|
||||
<a _href="admin-role.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>角色管理</cite>
|
||||
</a>
|
||||
</li >
|
||||
<li>
|
||||
<a _href="admin-cate.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>权限分类</cite>
|
||||
</a>
|
||||
</li >
|
||||
<li>
|
||||
<a _href="admin-rule.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>权限管理</cite>
|
||||
</a>
|
||||
</li >
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<i class="iconfont"></i>
|
||||
<cite>图标字体</cite>
|
||||
<i class="iconfont nav_right"></i>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a _href="unicode.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>图标对应字体</cite>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="x-slide_left"></div> -->
|
||||
<!-- 左侧菜单结束 -->
|
||||
<!-- 右侧主体开始 -->
|
||||
<div class="page-content">
|
||||
<div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="home"><i class="layui-icon"></i>我的桌面</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<iframe src='./welcome.html' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="page-content-bg"></div>
|
||||
<!-- 右侧主体结束 -->
|
||||
<!-- 中部结束 -->
|
||||
<!-- 底部开始 -->
|
||||
<div class="footer">
|
||||
<div class="copyright">Copyright ©2017 x-admin v2.3 All Rights Reserved</div>
|
||||
</div>
|
||||
<!-- 底部结束 -->
|
||||
<script>
|
||||
//百度统计可去掉
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>aaaaaaaaaaaaaaaaaa</h1>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--suppress ALL -->
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
|
||||
version="3.1">
|
||||
<!-- 配置加载Spring文件的监听器-->
|
||||
<context-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>classpath:applicationContext.xml</param-value>
|
||||
</context-param>
|
||||
<listener>
|
||||
<listener-class>
|
||||
org.springframework.web.context.ContextLoaderListener
|
||||
</listener-class>
|
||||
</listener>
|
||||
<!-- 编码过滤器 -->
|
||||
<filter>
|
||||
<filter-name>encoding</filter-name>
|
||||
<filter-class>
|
||||
org.springframework.web.filter.CharacterEncodingFilter
|
||||
</filter-class>
|
||||
<init-param>
|
||||
<param-name>encoding</param-name>
|
||||
<param-value>UTF-8</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>encoding</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<!-- 配置Spring MVC前端核心控制器 -->
|
||||
<servlet>
|
||||
<servlet-name>crm</servlet-name>
|
||||
<servlet-class>
|
||||
org.springframework.web.servlet.DispatcherServlet
|
||||
</servlet-class>
|
||||
<init-param>
|
||||
<param-name>contextConfigLocation</param-name>
|
||||
<param-value>classpath:springmvc-config.xml</param-value>
|
||||
</init-param>
|
||||
<!-- 配置服务器启动后立即加载Spring MVC配置文件 -->
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<!--<servlet-name>crm</servlet-name>-->
|
||||
<!--<url-pattern>/</url-pattern>-->
|
||||
<servlet-name>jsp</servlet-name>
|
||||
<url-pattern>*.html</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- 系统默认页面 -->
|
||||
<welcome-file-list>
|
||||
<welcome-file>login.jsp</welcome-file>
|
||||
</welcome-file-list>
|
||||
</web-app>
|
@ -0,0 +1,16 @@
|
||||
@font-face {
|
||||
font-family: 'iconfont';
|
||||
src: url('../fonts/iconfont.eot');
|
||||
src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/iconfont.woff') format('woff'),
|
||||
url('../fonts/iconfont.ttf') format('truetype'),
|
||||
url('../fonts/iconfont.svg#iconfont') format('svg');
|
||||
}
|
||||
.iconfont{
|
||||
font-family:"iconfont" !important;
|
||||
font-size:16px;font-style:normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-text-stroke-width: 0.2px;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
@ -0,0 +1,426 @@
|
||||
@charset "utf-8";
|
||||
@import url(../lib/layui/css/layui.css);
|
||||
*{
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
a{
|
||||
text-decoration: none;
|
||||
}
|
||||
html{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow-x:hidden;
|
||||
overflow-y:auto;
|
||||
}
|
||||
body{
|
||||
width: 100%;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
|
||||
.x-body{
|
||||
padding: 20px;
|
||||
}
|
||||
.x-nav{
|
||||
padding: 0 20px;
|
||||
position: relative;
|
||||
z-index: 99;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
line-height: 39px;
|
||||
height: 39px;
|
||||
overflow: hidden;
|
||||
}
|
||||
xblock{
|
||||
display: block;
|
||||
margin-bottom: 10px;
|
||||
padding: 5px;
|
||||
line-height: 22px;
|
||||
/* border-left: 5px solid #009688; */
|
||||
border-radius: 0 2px 2px 0;
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
.x-right{
|
||||
float: right;
|
||||
}
|
||||
.x-so{
|
||||
/*text-align: center;*/
|
||||
/*background: #f2f2f2 url() 0 0 no-repeat;*/
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.x-so input.layui-input{
|
||||
width: 150px;
|
||||
}
|
||||
.x-so .layui-form-label{
|
||||
display: inline-block;
|
||||
}
|
||||
.x-so input.layui-input,.x-so input.layui-btn{
|
||||
display: inline-block;
|
||||
}
|
||||
.x-red{
|
||||
color: red;
|
||||
}
|
||||
.x-a{
|
||||
color: #1AA093;
|
||||
}
|
||||
.x-a:hover{
|
||||
color: #127F74;
|
||||
}
|
||||
.x-sort{
|
||||
height: 30px;
|
||||
}
|
||||
.x-show{
|
||||
cursor: pointer;
|
||||
}
|
||||
.layui-form-switch{
|
||||
margin-top: 0px;
|
||||
}
|
||||
.layui-input:focus, .layui-textarea:focus {
|
||||
border-color: #189f92!important;
|
||||
}
|
||||
|
||||
.page{
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
|
||||
}
|
||||
.page a{
|
||||
display: inline-block;
|
||||
background: #fff url(#) 0 0 no-repeat;
|
||||
color: #888;
|
||||
padding: 10px;
|
||||
min-width: 15px;
|
||||
border: 1px solid #E2E2E2;
|
||||
|
||||
}
|
||||
.page span{
|
||||
display: inline-block;
|
||||
padding: 10px;
|
||||
min-width: 15px;
|
||||
border: 1px solid #E2E2E2;
|
||||
}
|
||||
.page span.current{
|
||||
display: inline-block;
|
||||
background: #009688 url(#) 0 0 no-repeat;
|
||||
color: #fff;
|
||||
padding: 10px;
|
||||
min-width: 15px;
|
||||
border: 1px solid #009688;
|
||||
}
|
||||
.page .pagination li{
|
||||
display: inline-block;
|
||||
margin-right: 5px;
|
||||
text-align: center;
|
||||
}
|
||||
.page .pagination li.active span{
|
||||
background: #009688 url(#) 0 0 no-repeat;
|
||||
color: #fff;
|
||||
border: 1px solid #009688;
|
||||
|
||||
}
|
||||
|
||||
/*登录样式*/
|
||||
/*头部*/
|
||||
.container{
|
||||
width: 100%;
|
||||
height: 45px;
|
||||
background-color: #222;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
.container .logo a{
|
||||
float: left;
|
||||
color: #fff;
|
||||
font-size: 18px;
|
||||
padding-left: 20px;
|
||||
line-height: 45px;
|
||||
width: 200px;
|
||||
}
|
||||
.container .right{
|
||||
background-color:rgba(0,0,0,0);
|
||||
float: right;
|
||||
|
||||
}
|
||||
.container .left_open{
|
||||
height: 45px;
|
||||
float: left;
|
||||
}
|
||||
.container .left_open i{
|
||||
display: block;
|
||||
background: rgba(255,255,255,0.1) url(#) 0 0 no-repeat;
|
||||
color: #fff;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
border-radius: 3px;
|
||||
text-align: center;
|
||||
margin-top: 7px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.container .left_open i:hover{
|
||||
background: rgba(255,255,255,0.3) url(#) 0 0 no-repeat;
|
||||
}
|
||||
|
||||
.container .left{
|
||||
background-color:rgba(0,0,0,0);
|
||||
float: left;
|
||||
|
||||
}
|
||||
.container .layui-nav-item{
|
||||
line-height: 45px;
|
||||
}
|
||||
.container .layui-nav-more{
|
||||
top: 20px;
|
||||
}
|
||||
.container .layui-nav-child{
|
||||
top: 50px;
|
||||
}
|
||||
.container .layui-nav-child i{
|
||||
margin-right: 10px;
|
||||
}
|
||||
.layui-nav .layui-nav-item a{
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
.layui-nav .layui-nav-child a{
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
}
|
||||
.left-nav{
|
||||
position: absolute;
|
||||
top: 46px;
|
||||
bottom: 42px;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
padding-top: 10px;
|
||||
background-color: #EEEEEE;
|
||||
width: 220px;
|
||||
max-width: 220px;
|
||||
overflow: auto;
|
||||
overflow-x:hidden;
|
||||
border-right: 1px solid #e5e5e5;
|
||||
|
||||
/*width: 0px;*/
|
||||
}
|
||||
.left-nav #nav li{
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
.left-nav #nav li:hover > a{
|
||||
/*color: blue;*/
|
||||
}
|
||||
.left-nav #nav .current{
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
.left-nav #nav li a{
|
||||
font-size: 14px;
|
||||
padding: 10px 15px 10px 20px;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
}
|
||||
.left-nav #nav li a cite{
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.left-nav #nav li .sub-menu{
|
||||
display: none;
|
||||
}
|
||||
.left-nav #nav li .opened{
|
||||
display: block;
|
||||
}
|
||||
.left-nav #nav li .opened:hover{
|
||||
/*background: #fff url() 0 0 no-repeat;*/
|
||||
}
|
||||
.left-nav #nav li .opened .current{
|
||||
|
||||
}
|
||||
.left-nav #nav li .sub-menu li:hover{
|
||||
/*color: blue;*/
|
||||
/*background: #fff url() 0 0 no-repeat;*/
|
||||
}
|
||||
.left-nav #nav li .sub-menu li a{
|
||||
padding: 12px 15px 12px 30px;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.left-nav #nav li .sub-menu li .sub-menu li a{
|
||||
padding-left: 45px;
|
||||
}
|
||||
.left-nav #nav li .sub-menu li a:hover{
|
||||
color: #148cf1;
|
||||
}
|
||||
.left-nav #nav li .sub-menu li a i{
|
||||
font-size: 12px;
|
||||
}
|
||||
.left-nav #nav li a i{
|
||||
padding-right: 10px;
|
||||
line-height: 14px;
|
||||
}
|
||||
.left-nav #nav li .nav_right{
|
||||
float: right;
|
||||
font-size: 16px;
|
||||
}
|
||||
.x-slide_left {
|
||||
width: 17px;
|
||||
height: 61px;
|
||||
background: url(#) 0 0 no-repeat;
|
||||
position: absolute;
|
||||
top: 200px;
|
||||
left: 221px;
|
||||
cursor: pointer;
|
||||
z-index: 3;
|
||||
}
|
||||
.page-content{
|
||||
position: absolute;
|
||||
top: 46px;
|
||||
right: 0;
|
||||
bottom: 42px;
|
||||
left: 221px;
|
||||
overflow: hidden;
|
||||
z-index: 1;
|
||||
}
|
||||
.page-content-bg{
|
||||
position: absolute;
|
||||
top: 46px;
|
||||
right: 0;
|
||||
bottom: 42px;
|
||||
left: 221px;
|
||||
background: rgba(0,0,0,0.5); url() 0 0 no-repeat;
|
||||
overflow: hidden;
|
||||
z-index: 100;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.page-content .tab{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: #EFEEF0 url(#) 0 0 no-repeat;
|
||||
margin: 0px;
|
||||
}
|
||||
.page-content .layui-tab-title{
|
||||
/*padding-top: 5px;*/
|
||||
height: 35px;
|
||||
background: #EFEEF0 url(#) 0 0 no-repeat;
|
||||
position: relative;
|
||||
z-index: 100;
|
||||
}
|
||||
.page-content .layui-tab-title li.home i{
|
||||
padding-right: 5px;
|
||||
}
|
||||
.page-content .layui-tab-title li.home .layui-tab-close{
|
||||
display: none;
|
||||
}
|
||||
.page-content .layui-tab-title li{
|
||||
line-height: 35px;
|
||||
}
|
||||
.page-content .layui-tab-title .layui-this:after{
|
||||
height: 36px;
|
||||
}
|
||||
.page-content .layui-tab-title li .layui-tab-close{
|
||||
border-radius: 50%;
|
||||
}
|
||||
.page-content .layui-tab-title .layui-this{
|
||||
background: #fff url(#) 0 0 no-repeat;
|
||||
}
|
||||
.page-content .layui-tab-bar{
|
||||
height:34px;
|
||||
line-height: 35px;
|
||||
}
|
||||
.page-content .layui-tab-content{
|
||||
position: absolute;
|
||||
top: 36px;
|
||||
bottom: 0px;
|
||||
width: 100%;
|
||||
background: #fff url(#) 0 0 no-repeat;
|
||||
padding: 0px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.page-content .layui-tab-content .layui-tab-item{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
}
|
||||
.page-content .layui-tab-content .layui-tab-item iframe{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
}
|
||||
.x-admin-carousel,.layui-carousel,.x-admin-carousel>[carousel-item]>* {
|
||||
background-color:#fff
|
||||
}
|
||||
|
||||
.x-admin-backlog .x-admin-backlog-body {
|
||||
display:block;
|
||||
padding:10px 15px;
|
||||
background-color:#f8f8f8;
|
||||
color:#999;
|
||||
border-radius:2px;
|
||||
transition:all .3s;
|
||||
-webkit-transition:all .3s
|
||||
}
|
||||
.x-admin-backlog-body h3 {
|
||||
padding-bottom:10px;
|
||||
font-size:12px
|
||||
}
|
||||
.x-admin-backlog-body p cite {
|
||||
font-style:normal;
|
||||
font-size:30px;
|
||||
font-weight:300;
|
||||
color:#009688
|
||||
}
|
||||
.x-admin-backlog-body:hover {
|
||||
background-color:#CFCFCF;
|
||||
color:#888
|
||||
}
|
||||
|
||||
.welcome-footer{padding: 30px 0; line-height: 30px; text-align: center; background-color: #eee; color: #666; font-weight: 300;}
|
||||
body .layui-layout-admin .footer-demo{height: auto; padding: 15px 0; line-height: 26px;}
|
||||
.welcome-footer a{padding: 0 5px;}
|
||||
|
||||
table th, table td {
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.footer{
|
||||
position: fixed;
|
||||
bottom: 0px;
|
||||
width: 100%;
|
||||
background-color: #222;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.2);
|
||||
line-height: 41px;
|
||||
color: #fff;
|
||||
/*padding-left: 10px;*/
|
||||
}
|
||||
.footer .copyright{
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 768px){
|
||||
.fast-add{
|
||||
display: none;
|
||||
}
|
||||
.layui-nav .to-index{
|
||||
display: none;
|
||||
}
|
||||
.container .logo a{
|
||||
width: 140px;
|
||||
}
|
||||
.container .left_open {
|
||||
/*float: right;*/
|
||||
}
|
||||
.left-nav{
|
||||
left: -221px;
|
||||
}
|
||||
.page-content{
|
||||
left: 0px;
|
||||
}
|
||||
.page-content .layui-tab-content .layui-tab-item{
|
||||
-webkit-overflow-scrolling: touch;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
.x-so input.layui-input{
|
||||
width: 100%;
|
||||
margin: 10px;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 315 KiB |
@ -0,0 +1,218 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: hkw
|
||||
Date: 2018/10/15
|
||||
Time: 21:42
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>后台登录-X-admin2.0</title>
|
||||
<meta name="renderer" content="webkit|ie-comp|ie-stand">
|
||||
<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" />
|
||||
<%--<meta http-equiv="Cache-Control" content="no-siteapp" />--%>
|
||||
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="./css/font.css">
|
||||
<link rel="stylesheet" href="./css/xadmin.css">
|
||||
<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
|
||||
<script src="lib/layui/layui.js"></script>
|
||||
<script type="text/javascript" src="./js/xadmin.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<!-- 顶部开始 -->
|
||||
<div class="container">
|
||||
<div class="logo"><a href="./index.html">X-admin v2.0</a></div>
|
||||
<div class="left_open">
|
||||
<i title="展开左侧栏" class="iconfont"></i>
|
||||
</div>
|
||||
<ul class="layui-nav left fast-add" lay-filter="">
|
||||
<li class="layui-nav-item">
|
||||
<a href="javascript:;">+新增</a>
|
||||
<dl class="layui-nav-child"> <!-- 二级菜单 -->
|
||||
<dd><a onclick="x_admin_show('资讯','http://www.baidu.com')"><i class="iconfont"></i>资讯</a></dd>
|
||||
<dd><a onclick="x_admin_show('图片','http://www.baidu.com')"><i class="iconfont"></i>图片</a></dd>
|
||||
<dd><a onclick="x_admin_show('用户','http://www.baidu.com')"><i class="iconfont"></i>用户</a></dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="layui-nav right" lay-filter="">
|
||||
<li class="layui-nav-item">
|
||||
<a href="javascript:;">admin</a>
|
||||
<dl class="layui-nav-child"> <!-- 二级菜单 -->
|
||||
<dd><a onclick="x_admin_show('个人信息','http://www.baidu.com')">个人信息</a></dd>
|
||||
<dd><a onclick="x_admin_show('切换帐号','http://www.baidu.com')">切换帐号</a></dd>
|
||||
<dd><a href="./login.html">退出</a></dd>
|
||||
</dl>
|
||||
</li>
|
||||
<li class="layui-nav-item to-index"><a href="/">前台首页</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<!-- 顶部结束 -->
|
||||
<!-- 中部开始 -->
|
||||
<!-- 左侧菜单开始 -->
|
||||
<div class="left-nav">
|
||||
<div id="side-nav">
|
||||
<ul id="nav">
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<i class="iconfont"></i>
|
||||
<cite>用户管理</cite>
|
||||
<i class="iconfont nav_right"></i>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a _href="student_list.jsp">
|
||||
<i class="iconfont"></i>
|
||||
<cite>会员列表</cite>
|
||||
|
||||
</a>
|
||||
</li >
|
||||
<li>
|
||||
<a _href="member-del.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>会员删除</cite>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<i class="iconfont"></i>
|
||||
<cite>会员管理</cite>
|
||||
<i class="iconfont nav_right"></i>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a _href="xxx.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>会员列表</cite>
|
||||
|
||||
</a>
|
||||
</li >
|
||||
<li>
|
||||
<a _href="xx.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>会员删除</cite>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a _href="xx.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>等级管理</cite>
|
||||
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<i class="iconfont"></i>
|
||||
<cite>订单管理</cite>
|
||||
<i class="iconfont nav_right"></i>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a _href="order-list.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>订单列表</cite>
|
||||
</a>
|
||||
</li >
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<i class="iconfont"></i>
|
||||
<cite>管理员管理</cite>
|
||||
<i class="iconfont nav_right"></i>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a _href="admin-list.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>管理员列表</cite>
|
||||
</a>
|
||||
</li >
|
||||
<li>
|
||||
<a _href="admin-role.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>角色管理</cite>
|
||||
</a>
|
||||
</li >
|
||||
<li>
|
||||
<a _href="admin-cate.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>权限分类</cite>
|
||||
</a>
|
||||
</li >
|
||||
<li>
|
||||
<a _href="admin-rule.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>权限管理</cite>
|
||||
</a>
|
||||
</li >
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="javascript:;">
|
||||
<i class="iconfont"></i>
|
||||
<cite>图标字体</cite>
|
||||
<i class="iconfont nav_right"></i>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a _href="unicode.html">
|
||||
<i class="iconfont"></i>
|
||||
<cite>图标对应字体</cite>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="x-slide_left"></div> -->
|
||||
<!-- 左侧菜单结束 -->
|
||||
<!-- 右侧主体开始 -->
|
||||
<div class="page-content">
|
||||
<div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="home"><i class="layui-icon"></i>我的桌面</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<iframe src='./welcome.html' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="page-content-bg"></div>
|
||||
<!-- 右侧主体结束 -->
|
||||
<!-- 中部结束 -->
|
||||
<!-- 底部开始 -->
|
||||
<div class="footer">
|
||||
<div class="copyright">Copyright ©2017 x-admin v2.3 All Rights Reserved</div>
|
||||
</div>
|
||||
<!-- 底部结束 -->
|
||||
<script>
|
||||
//百度统计可去掉
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,2 @@
|
||||
/** layui-v2.2.6 MIT License By https://www.layui.com */
|
||||
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}
|
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 5.7 KiB |
After Width: | Height: | Size: 701 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 269 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 3.1 KiB |