From 797aef41bd843fb16f2c4ffde59701cab5065d2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=89=AC?= <2016910632@qq.com> Date: Tue, 17 Dec 2024 23:41:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dormitorySystem_war_exploded/css/font.css | 30 +- .../css/login-style.css | 490 +++++++++++-- .../css/pg_btn.css | 73 +- .../css/usersLogin.css | 143 +++- .../css/xadmin.css | 670 ++++++++++++++---- src/com/itheima/dao/AdminDao.java | 44 -- src/com/itheima/dao/AdminDao.xml | 116 --- src/com/itheima/dao/ClassDao.java | 42 -- src/com/itheima/dao/ClassDao.xml | 122 ---- src/com/itheima/dao/DormCleanDao.java | 42 -- src/com/itheima/dao/DormCleanDao.xml | 95 --- src/com/itheima/dao/DormRepairDao.java | 44 -- src/com/itheima/dao/DormRepairDao.xml | 102 --- src/com/itheima/dao/DormitoryDao.java | 45 -- src/com/itheima/dao/DormitoryDao.xml | 125 ---- src/com/itheima/dao/StudentCleanDao.java | 43 -- src/com/itheima/dao/StudentCleanDao.xml | 113 --- src/com/itheima/dao/StudentDao.java | 41 -- src/com/itheima/dao/StudentDao.xml | 117 --- src/com/itheima/dao/VisitorDao.java | 34 - src/com/itheima/dao/VisitorDao.xml | 52 -- 21 files changed, 1165 insertions(+), 1418 deletions(-) delete mode 100644 src/com/itheima/dao/AdminDao.java delete mode 100644 src/com/itheima/dao/AdminDao.xml delete mode 100644 src/com/itheima/dao/ClassDao.java delete mode 100644 src/com/itheima/dao/ClassDao.xml delete mode 100644 src/com/itheima/dao/DormCleanDao.java delete mode 100644 src/com/itheima/dao/DormCleanDao.xml delete mode 100644 src/com/itheima/dao/DormRepairDao.java delete mode 100644 src/com/itheima/dao/DormRepairDao.xml delete mode 100644 src/com/itheima/dao/DormitoryDao.java delete mode 100644 src/com/itheima/dao/DormitoryDao.xml delete mode 100644 src/com/itheima/dao/StudentCleanDao.java delete mode 100644 src/com/itheima/dao/StudentCleanDao.xml delete mode 100644 src/com/itheima/dao/StudentDao.java delete mode 100644 src/com/itheima/dao/StudentDao.xml delete mode 100644 src/com/itheima/dao/VisitorDao.java delete mode 100644 src/com/itheima/dao/VisitorDao.xml diff --git a/out/artifacts/dormitorySystem_war_exploded/css/font.css b/out/artifacts/dormitorySystem_war_exploded/css/font.css index b83e5b4..7b86028 100644 --- a/out/artifacts/dormitorySystem_war_exploded/css/font.css +++ b/out/artifacts/dormitorySystem_war_exploded/css/font.css @@ -1,16 +1,40 @@ +/** + * 定义一个名为'iconfont'的自定义字体家族。 + * 使用@font-face规则可以指定一个在线字体或者本地字体文件。 + */ @font-face { font-family: 'iconfont'; + /* 定义字体家族的名称 */ src: url('../fonts/iconfont.eot'); + /* 指定eot格式的字体文件路径 */ src: url('../fonts/iconfont.eot?#iefix') format('embedded-opentype'), + /* 为IE浏览器指定eot格式的字体文件路径,并包含iefix以处理旧版IE的兼容性问题 */ url('../fonts/iconfont.woff') format('woff'), + /* 指定woff格式的字体文件路径 */ url('../fonts/iconfont.ttf') format('truetype'), + /* 指定ttf格式的字体文件路径 */ url('../fonts/iconfont.svg#iconfont') format('svg'); + /* 指定svg格式的字体文件路径,并使用#iconfont来指定字体ID */ } -.iconfont{ - font-family:"iconfont" !important; - font-size:16px;font-style:normal; + +/** + * 为使用'iconfont'字体家族的元素设置样式。 + * 这个类可以应用于任何HTML元素,以使用自定义的图标字体。 + */ +.iconfont { + font-family: "iconfont" !important; + /* 强制使用'iconfont'字体家族 */ + font-size: 16px; + /* 设置字体大小 */ + font-style: normal; + /* 设置字体样式为正常 */ + + /* 以下属性用于优化字体渲染,提高在不同浏览器和操作系统上的显示效果 */ -webkit-font-smoothing: antialiased; + /* 在Webkit浏览器上开启字体平滑,以减少锯齿 */ -webkit-text-stroke-width: 0.2px; + /* 设置文本描边的宽度,以增强字体的清晰度 */ -moz-osx-font-smoothing: grayscale; + /* 在Mac OS X系统上的Firefox浏览器上开启灰度平滑,以减少字体渲染的锯齿 */ } diff --git a/out/artifacts/dormitorySystem_war_exploded/css/login-style.css b/out/artifacts/dormitorySystem_war_exploded/css/login-style.css index 4fd30ed..6b17db9 100644 --- a/out/artifacts/dormitorySystem_war_exploded/css/login-style.css +++ b/out/artifacts/dormitorySystem_war_exploded/css/login-style.css @@ -1,66 +1,438 @@ -@charset "utf-8"; -/* CSS Document */ -*{font-size:9pt;border:0;margin:0;padding:0;} -body{font-family:'微软雅黑'; margin:0 auto;min-width:980px;} -ul{display:block;margin:0;padding:0;list-style:none;} -li{display:block;margin:0;padding:0;list-style: none;} -img{border:0;} -dl,dt,dd,span{margin:0;padding:0;display:block;} -a,a:focus{text-decoration:none;color:#000;outline:none;blr:expression(this.onFocus=this.blur());} -a:hover{color:#00a4ac;text-decoration:none;} -table{border-collapse:collapse;border-spacing: 0;} -cite{font-style:normal;} -h2{font-weight:normal;} +/** + * 设置CSS文档的字符集为UTF-8,确保中文等字符可以正确显示 + */ +@charset "utf-8"; + +/** + * 基础样式重置 + * 以下样式用于重置HTML元素的默认样式,确保在不同浏览器中的一致性 + */ +* { + font-size: 9pt; /* 设置所有元素的字体大小为9pt */ + border: 0; /* 移除所有元素的边框 */ + margin: 0; /* 移除所有元素的外边距 */ + padding: 0; /* 移除所有元素的内边距 */ +} + +/** + * 设置body元素的样式 + */ +body { + font-family: '微软雅黑'; /* 设置body的字体为微软雅黑 */ + margin: 0 auto; /* 水平居中body元素 */ + min-width: 980px; /* 设置body的最小宽度为980px */ +} + +/** + * 设置无序列表ul的样式 + */ +ul { + display: block; /* 将ul设置为块级元素 */ + margin: 0; /* 移除ul的外边距 */ + padding: 0; /* 移除ul的内边距 */ + list-style: none; /* 移除ul的项目符号 */ +} + +/** + * 设置列表项li的样式 + */ +li { + display: block; /* 将li设置为块级元素 */ + margin: 0; /* 移除li的外边距 */ + padding: 0; /* 移除li的内边距 */ + list-style: none; /* 移除li的项目符号 */ +} + +/** + * 设置图片img的样式 + */ +img { + border: 0; /* 移除图片的边框 */ +} + +/** + * 设置定义列表dl、dt、dd和span的样式 + */ +dl, dt, dd, span { + margin: 0; /* 移除这些元素的外边距 */ + padding: 0; /* 移除这些元素的内边距 */ + display: block; /* 将这些元素设置为块级元素 */ +} + +/** + * 设置链接a的样式 + */ +a, a:focus { + text-decoration: none; /* 移除链接的下划线 */ + color: #000; /* 设置链接的颜色为黑色 */ + outline: none; /* 移除聚焦时的轮廓线 */ + blr: expression(this.onFocus=this.blur()); /* IE浏览器中移除聚焦时的虚线框 */ +} + +/** + * 设置链接a在鼠标悬停时的样式 + */ +a:hover { + color: #00a4ac; /* 鼠标悬停时改变链接颜色为#00a4ac */ + text-decoration: none; /* 鼠标悬停时保持无下划线 */ +} + +/** + * 设置表格table的样式 + */ +table { + border-collapse: collapse; /* 合并表格边框 */ + border-spacing: 0; /* 移除表格边框间隔 */ +} + +/** + * 设置引用cite的样式 + */ +cite { + font-style: normal; /* 将引用的字体样式设置为正常 */ +} + +/** + * 设置标题h2的样式 + */ +h2 { + font-weight: normal; /* 将h2的字体粗细设置为正常 */ +} /*cloud*/ -#mainBody {width:100%;height:100%;position:absolute;z-index:-1;} -.cloud {position:absolute;top:0px;left:0px;width:100%;height:100%;background:url(../images/cloud.png) no-repeat;z-index:1;opacity:0.5;} -#cloud2 {z-index:2;} +/** + * 设置主容器mainBody的样式 + */ +#mainBody { + width: 100%; /* 容器宽度占满整个视口 */ + height: 100%; /* 容器高度占满整个视口 */ + position: absolute; /* 容器定位方式为绝对定位 */ + z-index: -1; /* 容器的堆叠顺序,-1表示在大多数元素下方 */ +} + +/** + * 设置云朵背景样式 + */ +.cloud { + position: absolute; /* 定位方式为绝对定位 */ + top: 0px; /* 距离顶部0像素 */ + left: 0px; /* 距离左侧0像素 */ + width: 100%; /* 宽度占满整个视口 */ + height: 100%; /* 高度占满整个视口 */ + background: url(../images/cloud.png) no-repeat; /* 设置背景图片,不重复 */ + z-index: 1; /* 堆叠顺序为1,表示在mainBody之上 */ + opacity: 0.5; /* 设置透明度为50% */ +} + +/** + * 设置第二个云朵背景样式,用于覆盖第一个云朵,实现层次效果 + */ +#cloud2 { + z-index: 2; /* 堆叠顺序为2,表示在#cloud之上 */ +} /*login*/ -.logintop{height:47px; position:absolute; top:0; background:url(../images/loginbg1.png) repeat-x;z-index:100; width:100%;} -.logintop span{color:#fff; line-height:47px; background:url(../images/loginsj.png) no-repeat 21px 18px; text-indent:44px; color:#afc5d2; float:left;} -.logintop ul{float:right; padding-right:30px;} -.logintop ul li{float:left; margin-left:20px; line-height:47px;} -.logintop ul li a{color:#afc5d2;} -.logintop ul li a:hover{color:#fff;} -.loginbody{background:url(../images/loginbg3.png) no-repeat center center; width:100%; height:585px; overflow:hidden; position:absolute; top:47px;} -.systemlogo{background:url(../images/loginlogo.png) no-repeat center;width:100%; height:71px; margin-top:75px;} -.loginbox{width:692px; height:336px; background:url(../images/logininfo.png) no-repeat; margin-top:30px;} -.loginbox ul{margin-top:88px; margin-left:285px;} -.loginbox ul li{margin-bottom:25px;} -.loginbox ul li label{color:#687f92; padding-left:25px;} -.loginbox ul li label a{color:#687f92;} -.loginbox ul li label a:hover{color:#3d96c9;} -.loginbox ul li label input{margin-right:5px;} -.loginbox,.loginbox1,.loginbox2,.loginbox3,.loginbox4{width:692px; height:373px;margin-top:30px;} -.loginuser{width:299px; height:48px; background:url(../images/loginuser.png) no-repeat; border:none; line-height:48px; padding-left:44px; font-size:14px; font-weight:bold;} -.loginpwd{width:299px; height:48px; background:url(../images/loginpassword.png) no-repeat; border:none;line-height:48px; padding-left:44px; font-size:14px; color:#90a2bc;} -.loginbtn{width:111px;height:35px; background:url(../images/buttonbg.png) repeat-x; font-size:14px; font-weight:bold; color:#fff;cursor:pointer; line-height:35px;} -.loginbm{height:50px; line-height:50px; text-align:center; background:url(../images/loginbg2.png) repeat-x;position:absolute; bottom:0; width:100%; color:#0b3a58;} -.loginbm a{font-weight:bold;color:#0b3a58;} -.loginbm a:hover{color:#fff;} - -.loginbox1{background:url(../images/logininfo1.png) no-repeat;} -.loginbox1 ul li{margin-bottom:16px;} -.loginbox2{background:url(../images/logininfo2.png) no-repeat;} -.loginbox2 ul li{margin-bottom:16px;} -.loginbox3{background:url(../images/logininfo3.png) no-repeat;} -.loginbox3 ul li{margin-bottom:16px;} -.yzm{width:341px; height:46px; background:url(../images/yzmbg.png) no-repeat; padding-bottom:5px;} -.yzm span{display:block; float:left;width:227px; height:46px;} -.yzm span input{background:none; border:none; width:183px; height:46px; line-height:46px;padding-left:44px;font-size:14px; color:#cee4f1;} -.yzm cite{float:right; width:114px; height:46px; line-height:46px; font-size:18px; color:#fff; text-align:center;} - -.loginbody1{background:url(../images/loginbg4.png) no-repeat center center; width:100%; height:585px; overflow:hidden; position:absolute; top:47px;} -.systemlogo{width:100%; height:71px; margin-top:120px; text-align:center;} -.loginbox0{width:810px;margin-top:0px;height:252px;} -.loginlist{width:810px; overflow:hidden;} -.loginlist{margin-top:110px;} -.loginlist li{float:left; margin-left:3px; margin-right:3px;} -.loginlist li a{ display:block;width:196px; height:252px; background:url(../images/lbg.png) no-repeat; text-align:center; padding-top:25px; cursor:pointer;} -.loginlist li a:hover{background:url(../images/lbg1.png) no-repeat;} -.loginlist li a p{font-size:16px; color:#fff; padding-top:10px;} +/* 定义登录页面的顶部样式 */ +.logintop { + height: 47px; /* 高度为47像素 */ + position: absolute; /* 定位方式为绝对定位 */ + top: 0; /* 距离顶部0像素 */ + background: url(../images/loginbg1.png) repeat-x; /* 设置背景图片,水平重复 */ + z-index: 100; /* 堆叠顺序为100,确保在最上方 */ + width: 100%; /* 宽度占满整个视口 */ +} + +/* 定义.logintop内的span元素样式 */ +.logintop span { + color: #fff; /* 文字颜色为白色 */ + line-height: 47px; /* 行高与.logintop高度相同,实现垂直居中 */ + background: url(../images/loginsj.png) no-repeat 21px 18px; /* 设置背景图片,不重复,并定位 */ + text-indent: 44px; /* 文本缩进,为背景图片留出空间 */ + color: #afc5d2; /* 文字颜色为浅蓝色 */ + float: left; /* 向左浮动 */ +} + +/* 定义.logintop内的ul元素样式 */ +.logintop ul { + float: right; /* 向右浮动 */ + padding-right: 30px; /* 右侧内边距为30像素 */ +} + +/* 定义.logintop内的li元素样式 */ +.logintop ul li { + float: left; /* 向左浮动 */ + margin-left: 20px; /* 左侧外边距为20像素 */ + line-height: 47px; /* 行高与.logintop高度相同,实现垂直居中 */ +} + +/* 定义.logintop内的a元素样式 */ +.logintop ul li a { + color: #afc5d2; /* 文字颜色为浅蓝色 */ +} + +/* 定义.logintop内的a元素鼠标悬停时的样式 */ +.logintop ul li a:hover { + color: #fff; /* 文字颜色变为白色 */ +} + +/* 定义登录页面的主体样式 */ +.loginbody { + background: url(../images/loginbg3.png) no-repeat center center; /* 设置背景图片,不重复,并居中 */ + width: 100%; /* 宽度占满整个视口 */ + height: 585px; /* 高度为585像素 */ + overflow: hidden; /* 隐藏溢出的内容 */ + position: absolute; /* 定位方式为绝对定位 */ + top: 47px; /* 距离顶部47像素,与.logintop高度相同 */ +} + +/* 定义系统logo样式 */ +.systemlogo { + background: url(../images/loginlogo.png) no-repeat center; /* 设置背景图片,不重复,并居中 */ + width: 100%; /* 宽度占满整个视口 */ + height: 71px; /* 高度为71像素 */ + margin-top: 75px; /* 上外边距为75像素 */ +} + +/* 定义登录框基础样式 */ +.loginbox { + width: 692px; /* 宽度为692像素 */ + height: 336px; /* 高度为336像素 */ + background: url(../images/logininfo.png) no-repeat; /* 设置背景图片,不重复 */ + margin-top: 30px; /* 上外边距为30像素 */ +} + +/* 定义.loginbox内的ul元素样式 */ +.loginbox ul { + margin-top: 88px; /* 上外边距为88像素 */ + margin-left: 285px; /* 左外边距为285像素 */ +} + +/* 定义.loginbox内的li元素样式 */ +.loginbox ul li { + margin-bottom: 25px; /* 底部外边距为25像素 */ +} + +/* 定义.loginbox内的label元素样式 */ +.loginbox ul li label { + color: #687f92; /* 文字颜色为深蓝色 */ + padding-left: 25px; /* 左内边距为25像素 */ +} + +/* 定义.loginbox内的label内的a元素样式 */ +.loginbox ul li label a { + color: #687f92; /* 文字颜色为深蓝色 */ +} + +/* 定义.loginbox内的label内的a元素鼠标悬停时的样式 */ +.loginbox ul li label a:hover { + color: #3d96c9; /* 文字颜色变为浅蓝色 */ +} + +/* 定义.loginbox内的input元素样式 */ +.loginbox ul li label input { + margin-right: 5px; /* 右外边距为5像素 */ +} +/* 定义.loginbox, .loginbox1, .loginbox2, .loginbox3, .loginbox4共有的样式 */ +.loginbox, .loginbox1, .loginbox2, .loginbox3, .loginbox4 { + width: 692px; /* 设置宽度为692像素 */ + height: 373px; /* 设置高度为373像素 */ + margin-top: 30px; /* 设置顶部外边距为30像素 */ +} + +/* 定义输入用户名的输入框样式 */ +.loginuser { + width: 299px; /* 设置宽度为299像素 */ + height: 48px; /* 设置高度为48像素 */ + background: url(../images/loginuser.png) no-repeat; /* 设置背景图片,不重复 */ + border: none; /* 去除边框 */ + line-height: 48px; /* 设置行高与高度相同,实现垂直居中 */ + padding-left: 44px; /* 设置左侧内边距为44像素,为背景图片留出空间 */ + font-size: 14px; /* 设置字体大小为14像素 */ + font-weight: bold; /* 设置字体加粗 */ +} + +/* 定义输入密码的输入框样式 */ +.loginpwd { + width: 299px; /* 设置宽度为299像素 */ + height: 48px; /* 设置高度为48像素 */ + background: url(../images/loginpassword.png) no-repeat; /* 设置背景图片,不重复 */ + border: none; /* 去除边框 */ + line-height: 48px; /* 设置行高与高度相同,实现垂直居中 */ + padding-left: 44px; /* 设置左侧内边距为44像素,为背景图片留出空间 */ + font-size: 14px; /* 设置字体大小为14像素 */ + color: #90a2bc; /* 设置字体颜色为浅蓝色 */ +} + +/* 定义登录按钮样式 */ +.loginbtn { + width: 111px; /* 设置宽度为111像素 */ + height: 35px; /* 设置高度为35像素 */ + background: url(../images/buttonbg.png) repeat-x; /* 设置背景图片,水平重复 */ + font-size: 14px; /* 设置字体大小为14像素 */ + font-weight: bold; /* 设置字体加粗 */ + color: #fff; /* 设置字体颜色为白色 */ + cursor: pointer; /* 设置鼠标样式为指针,表示可点击 */ + line-height: 35px; /* 设置行高与高度相同,实现垂直居中 */ +} + +/* 定义页面底部样式 */ +.loginbm { + height: 50px; /* 设置高度为50像素 */ + line-height: 50px; /* 设置行高与高度相同,实现垂直居中 */ + text-align: center; /* 设置文本居中对齐 */ + background: url(../images/loginbg2.png) repeat-x; /* 设置背景图片,水平重复 */ + position: absolute; /* 定位方式为绝对定位 */ + bottom: 0; /* 距离底部0像素 */ + width: 100%; /* 宽度占满整个视口 */ + color: #0b3a58; /* 设置字体颜色为深蓝色 */ +} + +/* 定义.loginbm内的a元素样式 */ +.loginbm a { + font-weight: bold; /* 设置字体加粗 */ + color: #0b3a58; /* 设置字体颜色为深蓝色 */ +} + +/* 定义.loginbm内的a元素鼠标悬停时的样式 */ +.loginbm a:hover { + color: #fff; /* 设置字体颜色为白色 */ +} + + +/* 定义.loginbox1的样式 */ +.loginbox1 { + background: url(../images/logininfo1.png) no-repeat; /* 设置背景图片,不重复 */ +} + +/* 定义.loginbox1中ul元素下的li元素的样式 */ +.loginbox1 ul li { + margin-bottom: 16px; /* 设置底部外边距为16像素,为列表项之间提供间隔 */ +} + +/* 定义.loginbox2的样式 */ +.loginbox2 { + background: url(../images/logininfo2.png) no-repeat; /* 设置背景图片,不重复 */ +} + +/* 定义.loginbox2中ul元素下的li元素的样式 */ +.loginbox2 ul li { + margin-bottom: 16px; /* 设置底部外边距为16像素,为列表项之间提供间隔 */ +} + +/* 定义.loginbox3的样式 */ +.loginbox3 { + background: url(../images/logininfo3.png) no-repeat; /* 设置背景图片,不重复 */ +} + +/* 定义.loginbox3中ul元素下的li元素的样式 */ +.loginbox3 ul li { + margin-bottom: 16px; /* 设置底部外边距为16像素,为列表项之间提供间隔 */ +} + +/* 定义验证码输入框容器的样式 */ +.yzm { + width: 341px; /* 设置宽度为341像素 */ + height: 46px; /* 设置高度为46像素 */ + background: url(../images/yzmbg.png) no-repeat; /* 设置背景图片,不重复 */ + padding-bottom: 5px; /* 设置底部内边距为5像素 */ +} + +/* 定义验证码输入框内部span元素的样式 */ +.yzm span { + display: block; /* 将span元素设置为块级元素 */ + float: left; /* 使span元素左浮动 */ + width: 227px; /* 设置宽度为227像素 */ + height: 46px; /* 设置高度为46像素 */ +} + +/* 定义验证码输入框内部input元素的样式 */ +.yzm span input { + background: none; /* 移除背景 */ + border: none; /* 移除边框 */ + width: 183px; /* 设置宽度为183像素 */ + height: 46px; /* 设置高度为46像素 */ + line-height: 46px; /* 设置行高为46像素,使文本垂直居中 */ + padding-left: 44px; /* 设置左侧内边距为44像素,为输入文本提供空间 */ + font-size: 14px; /* 设置字体大小为14像素 */ + color: #cee4f1; /* 设置字体颜色为浅蓝色 */ +} + +/* 定义验证码显示区域cite元素的样式 */ +.yzm cite { + float: right; /* 使cite元素右浮动 */ + width: 114px; /* 设置宽度为114像素 */ + height: 46px; /* 设置高度为46像素 */ + line-height: 46px; /* 设置行高为46像素,使文本垂直居中 */ + font-size: 18px; /* 设置字体大小为18像素 */ + color: #fff; /* 设置字体颜色为白色 */ + text-align: center; /* 设置文本居中对齐 */ +} + +/* 定义登录页面的主体样式,背景图片居中且不重复 */ +.loginbody1 { + background: url(../images/loginbg4.png) no-repeat center center; /* 设置背景图片,不重复,并使其水平和垂直居中 */ + width: 100%; /* 设置宽度为100% */ + height: 585px; /* 设置高度为585像素 */ + overflow: hidden; /* 隐藏超出容器的内容 */ + position: absolute; /* 定位方式为绝对定位 */ + top: 47px; /* 距离顶部47像素 */ +} + +/* 定义系统logo的样式 */ +.systemlogo { + width: 100%; /* 设置宽度为100% */ + height: 71px; /* 设置高度为71像素 */ + margin-top: 120px; /* 设置顶部外边距为120像素 */ + text-align: center; /* 设置文本居中对齐 */ +} + +/* 定义登录框的样式 */ +.loginbox0 { + width: 810px; /* 设置宽度为810像素 */ + margin-top: 0px; /* 设置顶部外边距为0像素 */ + height: 252px; /* 设置高度为252像素 */ +} + +/* 定义登录列表的样式 */ +.loginlist { + width: 810px; /* 设置宽度为810像素 */ + overflow: hidden; /* 隐藏超出容器的内容 */ +} + +/* 定义登录列表的顶部外边距 */ +.loginlist { + margin-top: 110px; /* 设置顶部外边距为110像素 */ +} + +/* 定义登录列表中列表项的样式 */ +.loginlist li { + float: left; /* 使列表项左浮动,以便水平排列 */ + margin-left: 3px; /* 设置左侧外边距为3像素,为列表项之间提供间隔 */ + margin-right: 3px; /* 设置右侧外边距为3像素,为列表项之间提供间隔 */ +} + +/* 定义登录列表中列表项内链接的样式 */ +.loginlist li a { + display: block; /* 将链接设置为块级元素,使其可以设置宽高 */ + width: 196px; /* 设置链接的宽度为196像素 */ + height: 252px; /* 设置链接的高度为252像素 */ + background: url(../images/lbg.png) no-repeat; /* 设置背景图片,不重复 */ + text-align: center; /* 设置文本居中对齐 */ + padding-top: 25px; /* 设置顶部内边距为25像素,为内容提供空间 */ + cursor: pointer; /* 设置鼠标悬停时为手形指针 */ +} + +/* 定义登录列表中列表项内链接鼠标悬停时的样式 */ +.loginlist li a:hover { + background: url(../images/lbg1.png) no-repeat; /* 当鼠标悬停时,改变背景图片 */ +} + +/* 定义登录列表中列表项内链接中的段落样式 */ +.loginlist li a p { + font-size: 16px; /* 设置字体大小为16像素 */ + color: #fff; /* 设置字体颜色为白色 */ + padding-top: 10px; /* 设置顶部内边距为10像素,为段落内容提供空间 */ +} diff --git a/out/artifacts/dormitorySystem_war_exploded/css/pg_btn.css b/out/artifacts/dormitorySystem_war_exploded/css/pg_btn.css index a267f8f..8c7577c 100644 --- a/out/artifacts/dormitorySystem_war_exploded/css/pg_btn.css +++ b/out/artifacts/dormitorySystem_war_exploded/css/pg_btn.css @@ -1,54 +1,103 @@ -/*分页按钮样式*/ -.page-go-form{ +/* 分页按钮容器的样式 */ +.page-go-form { float: right; + /* 使分页表单容器右浮动,以便靠右显示 */ margin-right: 40px; + /* 设置右侧外边距为40像素,与页面其他内容保持距离 */ width: 200px; + /* 设置容器的宽度为200像素 */ } -.page-bar{ +/* 分页导航条的样式 */ +.page-bar { width: 600px; + /* 设置分页导航条的宽度为600像素 */ height: 30px; + /* 设置分页导航条的高度为30像素 */ float: right; + /* 使分页导航条右浮动,以便靠右显示 */ } -.page-num-ul{ + +/* 分页数字列表的样式 */ +.page-num-ul { width: 250px; + /* 设置列表的宽度为250像素 */ height: 30px; + /* 设置列表的高度为30像素 */ padding-left: 100px; + /* 设置左侧内边距为100像素,为列表内容提供空间 */ float: left; + /* 使列表左浮动,以便在分页导航条中水平排列 */ font-size: 14px; + /* 设置列表中文字的字体大小为14像素 */ } -.pg_a{ + +/* 分页链接的基础样式 */ +.pg_a { margin: 0 5px; + /* 设置链接的左右外边距为5像素,为链接之间提供间隔 */ } -.pg_a:hover{ + +/* 分页链接鼠标悬停时的样式 */ +.pg_a:hover { color: #00a4ac; + /* 设置鼠标悬停时链接文字的颜色为特定的蓝色 */ margin: 0 5px; + /* 保持链接的左右外边距不变 */ } -#inputPage{ + +/* 输入页码框的样式 */ +#inputPage { width: 50px; + /* 设置输入框的宽度为50像素 */ } -.page-btn{ + +/* 分页按钮的基础样式 */ +.page-btn { margin: 0 3px; + /* 设置按钮的左右外边距为3像素,为按钮之间提供间隔 */ width: 50px; + /* 设置按钮的宽度为50像素 */ cursor: pointer; + /* 设置鼠标悬停在按钮上时的光标为指针形状 */ color: #ffffff; + /* 设置按钮文字的颜色为白色 */ background-color: #009688; + /* 设置按钮的背景颜色为特定的绿色 */ } -.page-btn:hover{ + +/* 分页按钮鼠标悬停时的样式 */ +.page-btn:hover { opacity: 0.7; + /* 设置鼠标悬停时按钮的不透明度为0.7,使其看起来更轻 */ cursor: pointer; + /* 保持鼠标悬停时光标为指针形状 */ background-color: #009688; + /* 保持按钮的背景颜色不变 */ } -#f_auto{ + +/* 容器居中样式 */ +#f_auto { margin: 0 auto; + /* 水平居中容器 */ margin-top: 40px; + /* 容器顶部外边距为40像素 */ width: 400px; + /* 容器宽度为400像素 */ } -#btn_on{ + +/* 按钮居左样式 */ +#btn_on { width: 260px; + /* 按钮宽度为260像素 */ margin-left: 45px; + /* 按钮左侧外边距为45像素 */ } -.f_sp{ + +/* 字符间距样式 */ +.f_sp { letter-spacing: 16px; + /* 设置字符间距为16像素 */ } + diff --git a/out/artifacts/dormitorySystem_war_exploded/css/usersLogin.css b/out/artifacts/dormitorySystem_war_exploded/css/usersLogin.css index 4531bf6..ceefc4e 100644 --- a/out/artifacts/dormitorySystem_war_exploded/css/usersLogin.css +++ b/out/artifacts/dormitorySystem_war_exploded/css/usersLogin.css @@ -1,118 +1,203 @@ - -*{ +/* 全局样式重置 */ +* { margin: 0; + /* 移除所有元素的内边距和外边距 */ padding: 0; + /* 移除所有元素的内边距和外边距 */ } -.header{ - background: url("../images/bti.jpg")no-repeat; +/* 头部样式 */ +.header { + background: url("../images/bti.jpg") no-repeat; + /* 设置背景图片,不重复 */ width: 100%; + /* 设置宽度为100% */ height: 200px; + /* 设置高度为200像素 */ } -.body{ +/* 主体样式 */ +.body { background: url("../images/timg-1.jpg"); + /* 设置背景图片 */ width: 100%; + /* 设置宽度为100% */ height: 650px; + /* 设置高度为650像素 */ margin-top: -100px; + /* 设置顶部外边距为-100像素,可能用于与头部重叠效果 */ } -.panel{ + +/* 面板样式 */ +.panel { width: 350px; + /* 设置面板宽度为350像素 */ height: 420px; + /* 设置面板高度为420像素 */ position: relative; + /* 设置定位方式为相对定位 */ left: 800px; + /* 设置面板相对于其正常位置的左侧偏移量为800像素 */ top: 60px; - background-color: #FFFFFF; + /* 设置面板相对于其正常位置的顶部偏移量为60像素 */ + background-color: #FFFFFF; 、 + /* 设置面板背景颜色为白色 */ border: 1px solid #dff0d8; + /* 设置面板边框为1像素实线,颜色为#dff0d8 */ } -.top{ - height:60px; - border-bottom:1px solid #dff0d8; +/* 面板顶部样式 */ +.top { + height: 60px; + /* 设置顶部区域高度为60像素 */ + border-bottom: 1px solid #dff0d8; + /* 设置底部边框为1像素实线,颜色为#dff0d8 */ } -.top>p{ +/* 面板顶部段落样式 */ +.top>p { text-align: center; + /* 设置段落文本居中对齐 */ padding-top: 15px; + /* 设置段落顶部内边距为15像素 */ /*margin: 20px 0;*/ + /* 这行注释掉了,如果需要可以取消注释来设置段落的外边距 */ font-size: 25px; + /* 设置段落字体大小为25像素 */ color: #f57421; + /* 设置段落文本颜色为#f57421 */ } -.middle{ + +/* 面板中部样式 */ +.middle { position: relative; + /* 设置定位方式为相对定位 */ height: 290px; + /* 设置中部区域高度为290像素 */ margin: 10px 0; - /*background-color: red;*/ - border-bottom:1px solid #dff0d8; + /* 设置中部区域上下外边距为10像素,左右外边距为0 */ + /*background-color: red;*/ /* 这行注释掉了,如果需要可以取消注释来设置背景颜色 */ + border-bottom: 1px solid #dff0d8; + /* 设置底部边框为1像素实线,颜色为#dff0d8 */ } -.middle>form>input{ +/* 中部表单内输入框样式 */ +.middle>form>input { height: 40px; + /* 设置输入框高度为40像素 */ width: 290px; + /* 设置输入框宽度为290像素 */ margin: 20px 30px; + /* 设置输入框上下外边距为20像素,左右外边距为30像素 */ border: 1px solid #e0e0e0; + /* 设置输入框边框为1像素实线,颜色为#e0e0e0 */ } -.middle>form>input:last-child{ +/* 中部表单内最后一个输入框样式(通常是提交按钮) */ +.middle>form>input:last-child { background-color: #f57421; + /* 设置背景颜色为#f57421 */ font-size: 18px; + /* 设置字体大小为18像素 */ color: #FFFFFF; + /* 设置字体颜色为白色 */ } -.middle>form>input:last-child:hover{ +/* 中部表单内最后一个输入框鼠标悬停样式 */ +.middle>form>input:last-child:hover { background-color: #f57421; + /* 保持背景颜色不变 */ opacity: 0.7; + /* 设置鼠标悬停时的不透明度为0.7 */ cursor: pointer; + /* 设置鼠标悬停时光标为指针形状 */ font-size: 18px; + /* 保持字体大小不变 */ } -.middle>form>.s1{ +/* 中部表单内特定图标样式(s1) */ +.middle>form>.s1 { height: 40px; + /* 设置图标高度为40像素 */ width: 40px; + /* 设置图标宽度为40像素 */ position: absolute; + /* 设置定位方式为绝对定位 */ left: 35px; + /* 设置图标左侧位置为35像素 */ top: 40px; + /* 设置图标顶部位置为40像素 */ background: url("../images/J1.PNG") no-repeat; + /* 设置背景图片,不重复 */ } -.middle>form>.s2{ +/* 中部表单内特定图标样式(s2) */ +.middle>form>.s2 { height: 40px; + /* 设置图标高度为40像素 */ width: 40px; + /* 设置图标宽度为40像素 */ position: absolute; + /* 设置定位方式为绝对定位 */ left: 35px; + /* 设置图标左侧位置为35像素 */ top: 120px; + /* 设置图标顶部位置为120像素 */ background: url("../images/J2.PNG") no-repeat; + /* 设置背景图片,不重复 */ } -.middle>form>.erro{ +/* 错误信息样式 */ +.middle>form>.erro { color: red; + /* 设置字体颜色为红色 */ font-size: 14px; - margin-left:10px; + /* 设置字体大小为14像素 */ + margin-left: 10px; + /* 设置左侧外边距为10像素 */ } -.tail>a{ + +/* 面板尾部链接样式 */ +.tail>a { float: right; + /* 设置链接右浮动 */ font-size: 12px; + /* 设置字体大小为12像素 */ padding: 10px; - text-decoration:none; + /* 设置内边距为10像素 */ + text-decoration: none; + /* 移除下划线 */ color: black; + /* 设置字体颜色为黑色 */ } -.tail>a:hover{ +/* 面板尾部链接鼠标悬停样式 */ +.tail>a:hover { color: red; + /* 设置鼠标悬停时字体颜色为红色 */ } -.middle>form>.iputs:hover{ - border:1px solid red; +/* 中部表单内输入框鼠标悬停样式 */ +.middle>form>.iputs:hover { + border: 1px solid red; + /* 设置鼠标悬停时边框颜色为红色 */ } -.footer{ +/* 面板底部样式 */ +.footer { margin-top: 20px; + /* 设置底部上外边距为20像素 */ } -.footer>span{ + +/* 面板底部内span元素样式 */ +.footer>span { font-size: 15px; + /* 设置字体大小为15像素 */ position: relative; + /* 设置定位方式为相对定位 */ left: 45%; -} \ No newline at end of file + /* 设置元素相对于其正常位置的左侧偏移量为45% */ +} diff --git a/out/artifacts/dormitorySystem_war_exploded/css/xadmin.css b/out/artifacts/dormitorySystem_war_exploded/css/xadmin.css index d6dc2f3..32f8232 100644 --- a/out/artifacts/dormitorySystem_war_exploded/css/xadmin.css +++ b/out/artifacts/dormitorySystem_war_exploded/css/xadmin.css @@ -1,433 +1,827 @@ +/* 设置字符集为UTF-8,确保页面可以正确显示中文等字符 */ @charset "utf-8"; + +/* 导入layui框架的CSS文件,layui是一个前端UI框架 */ @import url(../lib/layui/css/layui.css); -*{ + +/* 重置所有元素的默认样式 */ +* { margin: 0px; + /* 移除所有元素的默认外边距 */ padding: 0px; + /* 移除所有元素的默认内边距 */ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + /* 设置默认字体为"Helvetica Neue", 如果没有则使用Helvetica, 再没有则使用Arial, 最后使用sans-serif系列字体 */ } -a{ + +/* 移除所有链接的下划线 */ +a { text-decoration: none; } -html{ + +/* 设置HTML元素的宽度为100%,高度也为100%,并确保整个页面的内容在水平方向上不可滚动,垂直方向上可以滚动 */ +html { width: 100%; + /* 宽度为100% */ height: 100%; - overflow-x:hidden; - overflow-y:auto; + /* 高度为100% */ + overflow-x: hidden; + /* 水平方向上隐藏滚动条 */ + overflow-y: auto; + /* 垂直方向上显示滚动条 */ } -body{ + +/* 设置body元素的宽度为100%,最小高度为100%,确保内容可以填满整个视口 */ +body { width: 100%; + /* 宽度为100% */ min-height: 100%; + /* 最小高度为100% */ } -.x-body{ + +/* 容器的基础内边距样式 */ +.x-body { padding: 20px; + /* 设置容器的内边距为20像素 */ } -.x-nav{ + +/* 导航栏的样式 */ +.x-nav { padding: 0 20px; + /* 设置导航栏左右内边距为20像素 */ position: relative; + /* 相对定位,为子元素提供定位上下文 */ z-index: 99; + /* 设置导航栏的堆叠顺序,确保在其他元素之上 */ border-bottom: 1px solid #e5e5e5; + /* 在导航栏底部添加一条1像素的灰色边框 */ line-height: 39px; + /* 设置行高为39像素,使文本垂直居中 */ height: 39px; + /* 设置导航栏的高度为39像素 */ overflow: hidden; + /* 如果内容超出,则隐藏超出部分 */ } -xblock{ + +/* 错误:'xblock' 应该带有 '.' 前缀,表示类选择器 */ +.xblock { display: block; + /* 将元素设置为块级元素 */ margin-bottom: 10px; + /* 在元素下方添加10像素的外边距 */ padding: 5px; + /* 设置元素的内边距为5像素 */ line-height: 22px; - /* border-left: 5px solid #009688; */ + /* 设置行高为22像素 */ + /* border-left: 5px solid #009688; */ /* 注释掉的左边框样式,如果需要可以取消注释 */ border-radius: 0 2px 2px 0; + /* 设置边框圆角,左上角为0,其他角为2像素 */ background-color: #f2f2f2; + /* 设置背景颜色为浅灰色 */ } -.x-right{ - float: right; + +/* 右浮动样式 */ +.x-right { + float: right; + /* 将元素向右浮动 */ } -.x-so{ - /*text-align: center;*/ - /*background: #f2f2f2 url() 0 0 no-repeat;*/ + +/* 搜索操作区域的样式 */ +.x-so { + /* text-align: center; */ /* 注释掉的文本居中样式,如果需要可以取消注释 */ + /* background: #f2f2f2 url() 0 0 no-repeat; */ /* 注释掉的背景图片样式,如果需要可以取消注释 */ margin-bottom: 20px; + /* 在元素下方添加20像素的外边距 */ } -.x-so input.layui-input{ + +/* 搜索输入框的样式 */ +.x-so input.layui-input { width: 150px; + /* 设置输入框的宽度为150像素 */ padding-left: 25px; + /* 设置输入框的左内边距为25像素 */ } -.x-so .layui-form-label{ + +/* 表单标签的样式 */ +.x-so .layui-form-label { display: inline-block; + /* 将表单标签设置为行内块级元素 */ } -.x-so input.layui-input,.x-so input.layui-btn{ + +/* 输入框和按钮的显示样式 */ +.x-so input.layui-input, +.x-so input.layui-btn { display: inline-block; + /* 将输入框和按钮设置为行内块级元素 */ } -.x-red{ + +/* 红色文本样式 */ +.x-red { color: red; + /* 设置文本颜色为红色 */ } -.x-a{ + +/* 链接文本颜色样式 */ +.x-a { color: #1AA093; + /* 设置链接文本颜色为特定的绿色 */ } -.x-a:hover{ + +/* 链接鼠标悬停时的文本颜色样式 */ +.x-a:hover { color: #127F74; + /* 设置链接鼠标悬停时的文本颜色为深绿色 */ } -.x-sort{ + +/* 排序操作区域的样式 */ +.x-sort { height: 30px; + /* 设置排序操作区域的高度为30像素 */ } -.x-show{ + +/* 显示操作,用于鼠标指针变为指针样式 */ +.x-show { cursor: pointer; + /* 将鼠标指针变为指针形状,表示元素是可点击的 */ } -.layui-form-switch{ + +/* layui表单开关控件的样式 */ +.layui-form-switch { margin-top: 0px; + /* 设置开关控件的上外边距为0像素,可能用于微调位置 */ } + +/* layui输入框和文本域获得焦点时的边框颜色样式 */ .layui-input:focus, .layui-textarea:focus { border-color: #189f92!important; + /* 设置输入框和文本域获得焦点时的边框颜色为特定的蓝色,并使用!important提高样式优先级 */ } -.page{ + +/* 分页容器的样式 */ +.page { margin-top: 20px; + /* 设置分页容器顶部外边距为20像素 */ text-align: center; - + /* 将分页容器内的内容居中显示 */ } -.page a{ + +/* 分页链接的样式 */ +.page a { display: inline-block; + /* 将链接设置为行内块级元素 */ background: #fff url(#) 0 0 no-repeat; + /* 设置链接的背景颜色和背景图片,这里没有指定图片地址 */ color: #888; + /* 设置链接文本颜色为灰色 */ padding: 10px; + /* 设置链接的内边距为10像素 */ min-width: 15px; + /* 设置链接的最小宽度为15像素 */ border: 1px solid #E2E2E2; - + /* 设置链接的边框为1像素的浅灰色 */ } -.page span{ + +/* 分页span元素的样式 */ +.page span { display: inline-block; + /* 将span元素设置为行内块级元素 */ padding: 10px; + /* 设置span元素的内边距为10像素 */ min-width: 15px; + /* 设置span元素的最小宽度为15像素 */ border: 1px solid #E2E2E2; + /* 设置span元素的边框为1像素的浅灰色 */ } -.page span.current{ + +/* 当前激活页码的span元素的样式 */ +.page span.current { display: inline-block; + /* 将当前激活的页码设置为行内块级元素 */ background: #009688 url(#) 0 0 no-repeat; + /* 设置当前激活页码的背景颜色和背景图片,这里没有指定图片地址 */ color: #fff; + /* 设置当前激活页码的文本颜色为白色 */ padding: 10px; + /* 设置当前激活页码的内边距为10像素 */ min-width: 15px; + /* 设置当前激活页码的最小宽度为15像素 */ border: 1px solid #009688; + /* 设置当前激活页码的边框为1像素的绿色 */ } -.page .pagination li{ + +/* 分页列表项的样式 */ +.page .pagination li { display: inline-block; + /* 将列表项设置为行内块级元素 */ margin-right: 5px; + /* 设置列表项的右外边距为5像素 */ text-align: center; + /* 将列表项的内容居中显示 */ } -.page .pagination li.active span{ + +/* 激活状态下的分页列表项span元素的样式 */ +.page .pagination li.active span { background: #009688 url(#) 0 0 no-repeat; + /* 设置激活状态下列表项的背景颜色和背景图片,这里没有指定图片地址 */ color: #fff; + /* 设置激活状态下列表项的文本颜色为白色 */ border: 1px solid #009688; - + /* 设置激活状态下列表项的边框为1像素的绿色 */ } + /*登录样式*/ /*头部*/ -.container{ +/* 容器样式,通常用于页面的顶部导航 */ +.container { width: 100%; + /* 设置容器宽度为100% */ height: 45px; + /* 设置容器高度为45像素 */ background-color: #222; + /* 设置容器背景颜色为深灰色 */ border-bottom: 1px solid rgba(255, 255, 255, 0.2); + /* 设置容器底部边框为半透明的白色 */ } -.container .logo a{ + +/* 容器内的logo链接样式 */ +.container .logo a { float: left; + /* 设置链接左浮动 */ color: #fff; + /* 设置链接文本颜色为白色 */ font-size: 18px; + /* 设置链接字体大小为18像素 */ padding-left: 20px; + /* 设置链接左侧内边距为20像素 */ line-height: 45px; + /* 设置链接行高为45像素,与容器高度一致,实现垂直居中 */ width: 200px; + /* 设置链接宽度为200像素 */ } -.container .right{ - background-color:rgba(0,0,0,0); - float: right; +/* 容器右侧内容的样式 */ +.container .right { + background-color: rgba(0, 0, 0, 0); + /* 设置背景颜色为透明 */ + float: right; + /* 设置内容右浮动 */ } -.container .left_open{ + +/* 容器左侧打开按钮的样式 */ +.container .left_open { height: 45px; + /* 设置高度为45像素,与容器高度一致 */ float: left; + /* 设置左浮动 */ } -.container .left_open i{ + +/* 容器左侧打开按钮内的图标样式 */ +.container .left_open i { display: block; - background: rgba(255,255,255,0.1) url(#) 0 0 no-repeat; + /* 设置图标为块级元素 */ + background: rgba(255, 255, 255, 0.1) url(#) 0 0 no-repeat; + /* 设置图标背景颜色和图片,这里没有指定图片地址 */ color: #fff; + /* 设置图标颜色为白色 */ width: 32px; + /* 设置图标宽度为32像素 */ height: 32px; + /* 设置图标高度为32像素 */ line-height: 32px; + /* 设置图标行高为32像素,实现垂直居中 */ border-radius: 3px; + /* 设置图标边角为3像素的圆角 */ text-align: center; + /* 设置图标文本居中 */ margin-top: 7px; + /* 设置图标顶部外边距为7像素,实现垂直居中 */ cursor: pointer; + /* 设置鼠标悬停时为指针形状 */ } -.container .left_open i:hover{ - background: rgba(255,255,255,0.3) url(#) 0 0 no-repeat; + +/* 容器左侧打开按钮内的图标悬停样式 */ +.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); +/* 容器左侧内容的样式 */ +.container .left { + background-color: rgba(0, 0, 0, 0); + /* 设置背景颜色为透明 */ float: left; - + /* 设置左浮动 */ } -.container .layui-nav-item{ + +/* 容器内的导航项样式 */ +.container .layui-nav-item { line-height: 45px; + /* 设置导航项行高为45像素,与容器高度一致 */ } -.container .layui-nav-more{ + +/* 容器内的导航更多按钮样式 */ +.container .layui-nav-more { top: 20px; + /* 设置导航更多按钮的顶部位置 */ } -.container .layui-nav-child{ + +/* 容器内的导航子菜单样式 */ +.container .layui-nav-child { top: 50px; + /* 设置导航子菜单的顶部位置 */ } -.container .layui-nav-child i{ + +/* 容器内的导航子菜单项图标样式 */ +.container .layui-nav-child i { margin-right: 10px; + /* 设置导航子菜单项图标右侧外边距为10像素 */ } -.layui-nav .layui-nav-item a{ + +/* 导航项链接的样式 */ +.layui-nav .layui-nav-item a { color: #fff; + /* 设置导航项链接文本颜色为白色 */ cursor: pointer; + /* 设置鼠标悬停时为指针形状 */ } -.layui-nav .layui-nav-child a{ + +/* 导航子菜单链接的样式 */ +.layui-nav .layui-nav-child a { color: #333; + /* 设置导航子菜单链接文本颜色为深灰色 */ cursor: pointer; + /* 设置鼠标悬停时为指针形状 */ } -.left-nav{ + +/* 左侧导航栏的样式 */ +.left-nav { position: absolute; + /* 设置定位方式为绝对定位 */ top: 46px; + /* 设置顶部距离为46像素 */ bottom: 42px; + /* 设置底部距离为42像素 */ left: 0; + /* 设置左侧距离为0 */ z-index: 2; + /* 设置堆叠顺序为2 */ padding-top: 10px; + /* 设置顶部内边距为10像素 */ background-color: #EEEEEE; + /* 设置背景颜色为浅灰色 */ width: 220px; + /* 设置宽度为220像素 */ max-width: 220px; + /* 设置最大宽度为220像素 */ overflow: auto; - overflow-x:hidden; + /* 设置内容溢出时出现滚动条 */ + overflow-x: hidden; + /* 隐藏水平滚动条 */ border-right: 1px solid #e5e5e5; - - /*width: 0px;*/ + /* 设置右侧边框为浅灰色 */ } -.left-nav #nav li{ + +/* 左侧导航栏中列表项的样式 */ +.left-nav #nav li { border-bottom: 1px solid #e5e5e5; + /* 设置列表项底部边框为浅灰色 */ } -.left-nav #nav li:hover > a{ - /*color: blue;*/ + +/* 左侧导航栏中列表项悬停时的样式 */ +.left-nav #nav li:hover > a { + /*color: blue;*/ /* 注释掉了,如果需要可以取消注释来设置悬停时的文本颜色 */ } -.left-nav #nav .current{ + +/* 左侧导航栏中当前激活的列表项样式 */ +.left-nav #nav .current { background-color: rgba(0, 0, 0, 0.3); + /* 设置背景颜色为半透明的黑色 */ } -.left-nav #nav li a{ + +/* 左侧导航栏中列表项链接的样式 */ +.left-nav #nav li a { font-size: 14px; + /* 设置字体大小为14像素 */ padding: 10px 15px 10px 20px; + /* 设置内边距 */ display: block; + /* 设置为块级元素 */ cursor: pointer; + /* 设置鼠标悬停时为指针形状 */ } -.left-nav #nav li a cite{ + +/* 左侧导航栏中列表项链接的标题样式 */ +.left-nav #nav li a cite { font-size: 14px; + /* 设置标题字体大小为14像素 */ } -.left-nav #nav li .sub-menu{ +/* 左侧导航栏中子菜单的默认样式(隐藏) */ +.left-nav #nav li .sub-menu { display: none; + /* 设置子菜单默认不显示 */ } -.left-nav #nav li .opened{ + +/* 左侧导航栏中展开的子菜单样式 */ +.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:hover { + /*background: #fff url() 0 0 no-repeat;*/ /* 注释掉了,如果需要可以取消注释来设置悬停时的背景 */ } -.left-nav #nav li .opened .current{ - + +/* 左侧导航栏中展开的子菜单中当前激活的列表项样式 */ +.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:hover { + /*color: blue;*/ /* 注释掉了,如果需要可以取消注释来设置悬停时的文本颜色 */ + /*background: #fff url() 0 0 no-repeat;*/ /* 注释掉了,如果需要可以取消注释来设置悬停时的背景 */ } -.left-nav #nav li .sub-menu li a{ + +/* 子菜单列表项链接的样式 */ +.left-nav #nav li .sub-menu li a { padding: 12px 15px 12px 30px; + /* 设置内边距 */ font-size: 14px; + /* 设置字体大小为14像素 */ cursor: pointer; + /* 设置鼠标悬停时为指针形状 */ } -.left-nav #nav li .sub-menu li .sub-menu li a{ + +/* 子菜单中嵌套的子菜单列表项链接的样式 */ +.left-nav #nav li .sub-menu li .sub-menu li a { padding-left: 45px; + /* 设置左侧内边距为45像素,为嵌套的子菜单提供更多空间 */ } -.left-nav #nav li .sub-menu li a:hover{ + +/* 子菜单列表项链接鼠标悬停时的样式 */ +.left-nav #nav li .sub-menu li a:hover { color: #148cf1; + /* 设置鼠标悬停时的文本颜色为蓝色 */ } -.left-nav #nav li .sub-menu li a i{ + +/* 子菜单列表项链接中的图标样式 */ +.left-nav #nav li .sub-menu li a i { font-size: 12px; + /* 设置图标字体大小为12像素 */ } -.left-nav #nav li a i{ + +/* 主菜单列表项链接中的图标样式 */ +.left-nav #nav li a i { padding-right: 10px; + /* 设置图标右侧内边距为10像素 */ line-height: 14px; + /* 设置图标行高为14像素 */ } -.left-nav #nav li .nav_right{ + +/* 主菜单列表项右侧内容的样式 */ +.left-nav #nav li .nav_right { float: right; + /* 设置内容右浮动 */ font-size: 16px; + /* 设置字体大小为16像素 */ } + +/* 左侧导航栏收起按钮的样式 */ .x-slide_left { width: 17px; + /* 设置宽度为17像素 */ height: 61px; + /* 设置高度为61像素 */ background: url(#) 0 0 no-repeat; + /* 设置背景图片,目前为空,需要指定图片URL */ position: absolute; + /* 设置定位方式为绝对定位 */ top: 200px; + /* 设置顶部距离为200像素 */ left: 221px; + /* 设置左侧距离为221像素 */ cursor: pointer; + /* 设置鼠标悬停时为指针形状 */ z-index: 3; + /* 设置堆叠顺序为3 */ } -.page-content{ + +/* 页面内容的样式 */ +.page-content { position: absolute; + /* 绝对定位,相对于最近的已定位祖先元素 */ top: 46px; + /* 顶部距离为46像素 */ right: 0; + /* 右侧距离为0 */ bottom: 42px; + /* 底部距离为42像素 */ left: 221px; + /* 左侧距离为221像素 */ overflow: hidden; + /* 超出内容隐藏 */ z-index: 1; + /* 堆叠顺序为1 */ } -.page-content-bg{ + +/* 页面内容背景的样式,用于遮罩层 */ +.page-content-bg { position: absolute; + /* 绝对定位,相对于最近的已定位祖先元素 */ top: 46px; + /* 顶部距离为46像素 */ right: 0; + /* 右侧距离为0 */ bottom: 42px; + /* 底部距离为42像素 */ left: 221px; - background: rgba(0,0,0,0.5); url() 0 0 no-repeat; + /* 左侧距离为221像素 */ + background: rgba(0,0,0,0.5); + /* 半透明黑色背景 */ +url() 0 0 no-repeat; + /* 背景图片,目前为空,需要指定图片URL */ overflow: hidden; + /* 超出内容隐藏 */ z-index: 100; + /* 堆叠顺序为100 */ display: none; + /* 默认不显示 */ } -.page-content .tab{ +/* 页面内容中的标签页样式 */ +.page-content .tab { height: 100%; + /* 高度为100% */ width: 100%; - background: #EFEEF0 url(#) 0 0 no-repeat; + /* 宽度为100% */ + background: #EFEEF0; + /* 背景颜色为淡灰色 */ +url(#) 0 0 no-repeat; + /* 背景图片,目前为空,需要指定图片URL */ margin: 0px; + /* 外边距为0 */ } -.page-content .layui-tab-title{ - /*padding-top: 5px;*/ + +/* 标签页标题的样式 */ +.page-content .layui-tab-title { height: 35px; - background: #EFEEF0 url(#) 0 0 no-repeat; + /* 高度为35像素 */ + background: #EFEEF0; + /* 背景颜色为淡灰色 */ position: relative; + /* 相对定位 */ z-index: 100; + /* 堆叠顺序为100 */ } -.page-content .layui-tab-title li.home i{ + +/* 标签页标题中首页图标的样式 */ +.page-content .layui-tab-title li.home i { padding-right: 5px; + /* 右侧内边距为5像素 */ } -.page-content .layui-tab-title li.home .layui-tab-close{ + +/* 隐藏首页标签的关闭按钮 */ +.page-content .layui-tab-title li.home .layui-tab-close { display: none; + /* 不显示 */ } -.page-content .layui-tab-title li{ + +/* 标签页标题中所有列表项的样式 */ +.page-content .layui-tab-title li { line-height: 35px; + /* 行高为35像素 */ } -.page-content .layui-tab-title .layui-this:after{ + +/* 当前激活标签页的样式 */ +.page-content .layui-tab-title .layui-this:after { height: 36px; + /* 底部边框高度为36像素 */ } -.page-content .layui-tab-title li .layui-tab-close{ + +/* 标签页关闭按钮的样式 */ +.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-title .layui-this { + background: #fff; + /* 背景颜色为白色 */ +url(#) 0 0 no-repeat; + /* 背景图片,目前为空,需要指定图片URL */ } -.page-content .layui-tab-bar{ - height:34px; + +/* 标签页底部的样式 */ +.page-content .layui-tab-bar { + height: 34px; + /* 高度为34像素 */ line-height: 35px; + /* 行高为35像素 */ } -.page-content .layui-tab-content{ + +/* 标签页内容的样式 */ +.page-content .layui-tab-content { position: absolute; + /* 绝对定位 */ top: 36px; + /* 顶部距离为36像素 */ bottom: 0px; + /* 底部距离为0像素 */ width: 100%; - background: #fff url(#) 0 0 no-repeat; + /* 宽度为100% */ + background: #fff; + /* 背景颜色为白色 */ +url(#) 0 0 no-repeat; + /* 背景图片,目前为空,需要指定图片URL */ padding: 0px; + /* 内边距为0 */ overflow: hidden; + /* 超出内容隐藏 */ } -.page-content .layui-tab-content .layui-tab-item{ + +/* 标签页中每个标签项的样式 */ +.page-content .layui-tab-content .layui-tab-item { width: 100%; + /* 宽度为100% */ height: 100%; - + /* 高度为100% */ } -.page-content .layui-tab-content .layui-tab-item iframe{ + +/* 标签页中每个标签项内部的iframe样式 */ +.page-content .layui-tab-content .layui-tab-item iframe { width: 100%; + /* 宽度为100% */ height: 100%; - + /* 高度为100% */ } -.x-admin-carousel,.layui-carousel,.x-admin-carousel>[carousel-item]>* { - background-color:#fff + +/* 轮播图相关元素的样式 */ +.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 + display: block; + /* 将元素设置为块级元素 */ + padding: 10px 15px; + /* 设置内边距为10像素上/下和15像素左/右 */ + background-color: #f8f8f8; + /* 设置背景颜色为浅灰色 */ + color: #999; + /* 设置文本颜色为灰色 */ + border-radius: 2px; + /* 设置边框圆角为2像素 */ + transition: all .3s; + /* 设置所有属性变化时的过渡效果持续时间为0.3秒 */ + -webkit-transition: all .3s; + /* 设置所有属性变化时的过渡效果持续时间为0.3秒,针对旧版webkit浏览器 */ } + +/* 后台日志标题的样式 */ .x-admin-backlog-body h3 { - padding-bottom:10px; - font-size:12px + padding-bottom: 10px; + /* 设置标题底部内边距为10像素 */ + font-size: 12px; + /* 设置字体大小为12像素 */ } + +/* 后台日志内容中引用文本的样式 */ .x-admin-backlog-body p cite { - font-style:normal; - font-size:30px; - font-weight:300; - color:#009688 + font-style: normal; + /* 设置字体样式为正常 */ + font-size: 30px; + /* 设置字体大小为30像素 */ + font-weight: 300; + /* 设置字体权重为300 */ + color: #009688; + /* 设置文本颜色为特定的蓝色 */ } + +/* 后台日志容器鼠标悬停时的样式 */ .x-admin-backlog-body:hover { - background-color:#CFCFCF; - color:#888 + 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;} +/* 欢迎页脚的样式 */ +.welcome-footer { + padding: 30px 0; + /* 设置顶部和底部内边距为30像素 */ + line-height: 30px; + /* 设置行高为30像素 */ + text-align: center; + /* 设置文本居中对齐 */ + background-color: #eee; + /* 设置背景颜色为浅灰色 */ + color: #666; + /* 设置文本颜色为灰色 */ + font-weight: 300; + /* 设置字体权重为300 */ +} + +/* 在layui布局管理员的页脚演示样式 */ +body .layui-layout-admin .footer-demo { + height: auto; + /* 设置高度为自动 */ + padding: 15px 0; + /* 设置顶部和底部内边距为15像素 */ + line-height: 26px; + /* 设置行高为26像素 */ +} + +/* 欢迎页脚中链接的样式 */ +.welcome-footer a { + padding: 0 5px; + /* 设置左右内边距为5像素 */ +} + +/* 表格单元格的样式 */ table th, table td { word-break: break-all; + /* 允许在表格单元格中单词断行 */ } -.footer{ +/* 固定在底部的页脚样式 */ +.footer { position: fixed; + /* 设置定位为固定 */ bottom: 0px; + /* 设置底部距离为0像素 */ width: 100%; + /* 设置宽度为100% */ background-color: #222; + /* 设置背景颜色为深灰色 */ border-top: 1px solid rgba(255, 255, 255, 0.2); + /* 设置顶部边框为半透明白色 */ line-height: 41px; + /* 设置行高为41像素 */ color: #fff; - /*padding-left: 10px;*/ + /* 设置文本颜色为白色 */ + /*padding-left: 10px;*/ /* 注释掉的左内边距样式,可能不需要 */ } -.footer .copyright{ + +/* 页脚中版权信息的样式 */ +.footer .copyright { margin-left: 10px; + /* 设置左边距为10像素 */ } - -@media screen and (max-width: 768px){ - .fast-add{ +/* 响应式设计:当屏幕宽度小于768像素时的样式 */ +@media screen and (max-width: 768px) { + .fast-add { display: none; + /* 隐藏快速添加按钮 */ } - .layui-nav .to-index{ + .layui-nav .to-index { display: none; + /* 隐藏导航栏中的首页链接 */ } - .container .logo a{ + .container .logo a { width: 140px; + /* 设置logo链接的宽度为140像素 */ } .container .left_open { - /*float: right;*/ + /*float: right;*/ /* 注释掉的浮动样式,可能不需要 */ } - .left-nav{ + .left-nav { left: -221px; + /* 设置左侧导航栏的左边距为-221像素,隐藏导航栏 */ } - .page-content{ + .page-content { left: 0px; + /* 设置页面内容的左边距为0像素 */ } - .page-content .layui-tab-content .layui-tab-item{ - -webkit-overflow-scrolling: touch; - overflow-y: scroll; + .page-content .layui-tab-content .layui-tab-item { + -webkit-overflow-scrolling: touch; + /* 设置在iOS设备上滚动更流畅 */ + overflow-y: scroll; + /* 设置垂直方向上内容溢出时出现滚动条 */ } - .x-so input.layui-input{ + .x-so input.layui-input { width: 100%; + /* 设置输入框宽度为100% */ margin: 10px; + /* 设置上下外边距为10像素 */ } - .layui-input{ + .layui-input { margin-left: 20px; + /* 设置输入框的左边距为20像素 */ } - - } + diff --git a/src/com/itheima/dao/AdminDao.java b/src/com/itheima/dao/AdminDao.java deleted file mode 100644 index 5546fb1..0000000 --- a/src/com/itheima/dao/AdminDao.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.itheima.dao; -import com.itheima.po.Admin; -import org.apache.ibatis.annotations.Param; - - -import java.util.List; - -/** - * 管理员DAO层接口 - */ -public interface AdminDao { - /** - * 通过账号和密码查询管理员 - */ - public Admin findAdmin(Admin admin); - - /** - * 进行分页查询 - */ - - //获取总条数 - public Integer totalCount(@Param("a_username") String a_username, @Param("a_describe") String a_describe,@Param("a_id") Integer a_id); - //获取用户列表 - public List getAdminList(@Param("a_username") String a_username, @Param("a_describe") String a_describe,@Param("a_id") Integer a_id, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize); - -<<<<<<< HEAD - public int addAdmin(Admin admin); - //添加管理员信息 - public int deleteAdmin(Integer a_id); - //删除管理员信息 - public int updateAdmin(Admin admin); - //修改管理员信息 - public Admin findAdminById(Integer a_id); - // 根据ID查询管理员信息 - public List getAll(); - // 获取所有管理员信息 -======= - public int addAdmin(Admin admin); //添加管理员信息 - public int deleteAdmin(Integer a_id); //删除管理员信息 - public int updateAdmin(Admin admin); //修改管理员信息 - public Admin findAdminById(Integer a_id);// 根据ID查询管理员信息 - public List getAll();// 获取所有管理员信息 ->>>>>>> 5a268e17dc083cddf695d0a8f5feff0d7e289ef4 -} diff --git a/src/com/itheima/dao/AdminDao.xml b/src/com/itheima/dao/AdminDao.xml deleted file mode 100644 index 7189526..0000000 --- a/src/com/itheima/dao/AdminDao.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - insert into d_admin (a_username,a_password,a_name,a_phone,a_power,a_describe) - values(#{a_username},#{a_password},#{a_name},#{a_phone},#{a_power},#{a_describe}) - - - - - delete from d_admin where a_id=#{a_id} - - - - - - - - - - - update d_admin - - - - a_username=#{a_username}, - - - - a_password=#{a_password}, - - - - a_name=#{a_name}, - - - - a_phone=#{a_phone}, - - - - a_power=#{a_power}, - - - - a_describe=#{a_describe}, - - - where a_id = #{a_id} - - - diff --git a/src/com/itheima/dao/ClassDao.java b/src/com/itheima/dao/ClassDao.java deleted file mode 100644 index 36aa26d..0000000 --- a/src/com/itheima/dao/ClassDao.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.itheima.dao; - -import com.itheima.po.Class; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 管理员DAO层接口 - */ -public interface ClassDao { - /** - * 进行分页查询 - */ - - //获取总条数 - public Integer totalCount(@Param("c_classname") String c_classname, @Param("c_classid") Integer c_classid, @Param("c_counsellor") String c_counsellor); - //获取用户列表 - public List getClassList(@Param("c_classname") String c_classname, @Param("c_classid") Integer c_classid, @Param("c_counsellor") String c_counsellor, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize); - -<<<<<<< HEAD - public int deleteClass(Integer c_id); - //删除班级信息 - public int addClass(Class ucalss); - //添加班级信息 - public int updateClass(Class uclass); - //修改班级信息 - public Class findClassById(Integer c_id); - // 根据ID查询班级信息 - public List findClassStudent(Class uclass); - //查询班级人员信息 - public List getAll(); - // 获取所有班级信息 -======= - public int deleteClass(Integer c_id); //删除班级信息 - public int addClass(Class ucalss); //添加班级信息 - public int updateClass(Class uclass); //修改班级信息 - public Class findClassById(Integer c_id);// 根据ID查询班级信息 - public List findClassStudent(Class uclass);//查询班级人员信息 - public List getAll();// 获取所有班级信息 ->>>>>>> 5a268e17dc083cddf695d0a8f5feff0d7e289ef4 -} diff --git a/src/com/itheima/dao/ClassDao.xml b/src/com/itheima/dao/ClassDao.xml deleted file mode 100644 index 19cbcfb..0000000 --- a/src/com/itheima/dao/ClassDao.xml +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - delete from d_class where c_id=#{c_id} - - - - - insert into d_class (c_classid, c_classname, c_counsellor) - values(#{c_classid}, #{c_classname}, #{c_counsellor}) - - - - - - - - update d_class - - - - c_classid=#{c_classid}, - - - - c_classname=#{c_classname}, - - - - c_counsellor=#{c_counsellor}, - - - where c_id = #{c_id} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/itheima/dao/DormCleanDao.java b/src/com/itheima/dao/DormCleanDao.java deleted file mode 100644 index b0c8267..0000000 --- a/src/com/itheima/dao/DormCleanDao.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.itheima.dao; - -import com.itheima.po.DormClean; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * @program: dormitorySystem - * @description: 宿舍卫生 - * @author: Joyrocky - * @create: 2019-04-24 14:37 - **/ -public interface DormCleanDao { - /** - * 进行分页查询 - */ - //获取总条数 - public Integer totalCount(@Param("d_id") Integer d_id, @Param("d_dormbuilding") String d_dormbuilding); - //获取用户列表 - public List getDormCleanList(@Param("d_id") Integer d_id, @Param("d_dormbuilding") String d_dormbuilding, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize); - -<<<<<<< HEAD - public int addDormClean(DormClean dormclean); - //添加宿舍卫生信息 - public int deleteDormClean(Integer g_id); - //删除宿舍卫生信息 - public int updateDormClean(DormClean dormclean); - //修改宿舍卫生信息 - public DormClean findDormCleanById(Integer g_id); - // 根据ID查询宿舍卫生信息 - public List getAll(); - // 获取所有宿舍卫生信息 -======= - public int addDormClean(DormClean dormclean); //添加宿舍卫生信息 - public int deleteDormClean(Integer g_id); //删除宿舍卫生信息 - public int updateDormClean(DormClean dormclean); //修改宿舍卫生信息 - public DormClean findDormCleanById(Integer g_id); // 根据ID查询宿舍卫生信息 - public List getAll();// 获取所有宿舍卫生信息 ->>>>>>> 5a268e17dc083cddf695d0a8f5feff0d7e289ef4 - -} diff --git a/src/com/itheima/dao/DormCleanDao.xml b/src/com/itheima/dao/DormCleanDao.xml deleted file mode 100644 index 517e72b..0000000 --- a/src/com/itheima/dao/DormCleanDao.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - - - - - - insert into d_dormgrade (d_id, d_dormbuilding, d_grade, create_time, update_time) - values(#{d_id}, #{d_dormbuilding}, #{d_grade}, now(), now()) - - - - - delete from d_dormgrade where g_id=#{g_id} - - - - - - - - update d_dormgrade - - - - d_id=#{d_id}, - - - - d_dormbuilding=#{d_dormbuilding}, - - - - d_grade=#{d_grade}, - - - - update_time = now(), - - - where g_id = #{g_id} - - - - - - - - - - - - - - - - diff --git a/src/com/itheima/dao/DormRepairDao.java b/src/com/itheima/dao/DormRepairDao.java deleted file mode 100644 index ac7e36b..0000000 --- a/src/com/itheima/dao/DormRepairDao.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.itheima.dao; - -import com.itheima.po.DormRepair; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * @program: dormitorySystem - * @description: 维修登记 - * @author: Joyrocky - * @create: 2019-04-27 17:20 - **/ -public interface DormRepairDao { - - /** - * 进行分页查询 - */ - - //获取总条数 - public Integer totalCount(@Param("d_id") Integer d_id, @Param("d_dormbuilding") String d_dormbuilding); - //获取用户列表 - public List getDormRepairList(@Param("d_id") Integer d_id, @Param("d_dormbuilding") String d_dormbuilding, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize); - -<<<<<<< HEAD - public int addDormRepair(DormRepair dormrepair); - //添加宿舍维修信息 - public int deleteDormRepair(Integer r_id); - //删除宿舍维修信息 - public int updateDormRepair(DormRepair dormrepair); - //修改宿舍维修信息 - public DormRepair findDormRepairById(Integer r_id); - // 根据ID查询宿舍维修信息 - public List getAll(); - // 获取所有宿舍维修信息 -======= - public int addDormRepair(DormRepair dormrepair); //添加宿舍维修信息 - public int deleteDormRepair(Integer r_id); //删除宿舍维修信息 - public int updateDormRepair(DormRepair dormrepair); //修改宿舍维修信息 - public DormRepair findDormRepairById(Integer r_id);// 根据ID查询宿舍维修信息 - public List getAll();// 获取所有宿舍维修信息 ->>>>>>> 5a268e17dc083cddf695d0a8f5feff0d7e289ef4 - -} diff --git a/src/com/itheima/dao/DormRepairDao.xml b/src/com/itheima/dao/DormRepairDao.xml deleted file mode 100644 index 75b1037..0000000 --- a/src/com/itheima/dao/DormRepairDao.xml +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - - - - - - - insert into d_dormrepair (d_id, d_dormbuilding, r_name, reason, create_time, update_time) - values(#{d_id}, #{d_dormbuilding}, #{r_name}, #{reason}, now(), now()) - - - - - delete from d_dormrepair where r_id=#{r_id} - - - - - - - - - - - update d_dormrepair - - - - d_id=#{d_id}, - - - - d_dormbuilding=#{d_dormbuilding}, - - - - r_name=#{r_name}, - - - - reason=#{reason}, - - - - update_time=now(), - - - where r_id = #{r_id} - - - - - - - - - - - - - - - - diff --git a/src/com/itheima/dao/DormitoryDao.java b/src/com/itheima/dao/DormitoryDao.java deleted file mode 100644 index bb0e712..0000000 --- a/src/com/itheima/dao/DormitoryDao.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.itheima.dao; - -import com.itheima.po.Dormitory; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * 管理员DAO层接口 - */ -public interface DormitoryDao { - /** - * 进行分页查询 - */ - - //获取总条数 - public Integer totalCount(@Param("a_name") String a_name, @Param("s_dormitoryid") Integer s_dormitoryid,@Param("d_dormbuilding") String d_dormbuilding); - //获取用户列表 - public List getDormitoryList(@Param("a_name") String a_name, @Param("s_dormitoryid") Integer s_dormitoryid, @Param("d_dormbuilding") String d_dormbuilding, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize); - -<<<<<<< HEAD - public int addDormitory(Dormitory dormitory); - //添加宿舍信息 - public int deleteDormitory(Integer d_id); - //删除宿舍信息 - public int updateDormitory(Dormitory dormitory); - //修改宿舍信息 - public Dormitory findDormitoryById(Integer d_id); - // 根据ID查询宿舍信息 - - public List findDormitoryStudent(Dormitory dormitory); - //查询宿舍人员信息 - public List getAll(); - // 获取所有宿舍信息 -======= - public int addDormitory(Dormitory dormitory); //添加宿舍信息 - public int deleteDormitory(Integer d_id); //删除宿舍信息 - public int updateDormitory(Dormitory dormitory); //修改宿舍信息 - public Dormitory findDormitoryById(Integer d_id); // 根据ID查询宿舍信息 - - public List findDormitoryStudent(Dormitory dormitory);//查询宿舍人员信息 - public List getAll();// 获取所有宿舍信息 ->>>>>>> 5a268e17dc083cddf695d0a8f5feff0d7e289ef4 - -} diff --git a/src/com/itheima/dao/DormitoryDao.xml b/src/com/itheima/dao/DormitoryDao.xml deleted file mode 100644 index ce6691f..0000000 --- a/src/com/itheima/dao/DormitoryDao.xml +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - - - - - - - insert into d_dormitoryinfo (s_dormitoryid, d_dormbuilding, d_bedtotal, d_bed, a_name) - values(#{s_dormitoryid}, #{d_dormbuilding}, #{d_bedtotal}, #{d_bed}, #{a_name}) - - - - - delete from d_dormitoryinfo where d_id=#{d_id} - - - - - - - - update d_dormitoryinfo - - - - s_dormitoryid=#{s_dormitoryid}, - - - - d_dormbuilding=#{d_dormbuilding}, - - - - d_bedtotal=#{d_bedtotal}, - - - - d_bed=#{d_bed}, - - - - a_name=#{a_name}, - - - where d_id = #{d_id} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/itheima/dao/StudentCleanDao.java b/src/com/itheima/dao/StudentCleanDao.java deleted file mode 100644 index 0293e40..0000000 --- a/src/com/itheima/dao/StudentCleanDao.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.itheima.dao; - -import com.itheima.po.StudentClean; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * @program: dormitorySystem - * @description: 学生卫生 - * @author: Joyrocky - * @create: 2019-04-25 12:14 - **/ -public interface StudentCleanDao { - /** - * 进行分页查询 - */ - //获取总条数 - public Integer totalCount(@Param("s_studentid") Integer s_studentid, @Param("s_name") String s_name,@Param("s_dormitoryid") Integer s_dormitoryid); - //获取用户列表 - public List getStudentCleanList(@Param("s_studentid") Integer s_studentid, @Param("s_name") String s_name, @Param("s_dormitoryid") Integer s_dormitoryid, @Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize); - -<<<<<<< HEAD - public int addStudentClean(StudentClean studentclean); - //添加学生卫生信息 - public int deleteStudentClean(Integer g_id); - //删除学生卫生信息 - public int updateStudentClean(StudentClean studentclean); - //修改学生卫生信息 - public StudentClean findStudentCleanById(Integer g_id); - // 根据ID查询学生卫生信息 - - public List getAll(); - // 获取所有学生卫生信息 -======= - public int addStudentClean(StudentClean studentclean); //添加学生卫生信息 - public int deleteStudentClean(Integer g_id); //删除学生卫生信息 - public int updateStudentClean(StudentClean studentclean); //修改学生卫生信息 - public StudentClean findStudentCleanById(Integer g_id);// 根据ID查询学生卫生信息 - - public List getAll();// 获取所有学生卫生信息 ->>>>>>> 5a268e17dc083cddf695d0a8f5feff0d7e289ef4 -} diff --git a/src/com/itheima/dao/StudentCleanDao.xml b/src/com/itheima/dao/StudentCleanDao.xml deleted file mode 100644 index 5e55bec..0000000 --- a/src/com/itheima/dao/StudentCleanDao.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - - - - insert into d_stgrade (s_studentid, s_name, s_grade, s_classid, s_dormitoryid, create_time, update_time) - values(#{s_studentid}, #{s_name}, #{s_grade}, #{s_classid}, #{s_dormitoryid}, now(), now()) - - - - - delete from d_stgrade where g_id=#{g_id} - - - - - - - - - - - update d_stgrade - - - - s_studentid=#{s_studentid}, - - - - s_name=#{s_name}, - - - - s_grade=#{s_grade}, - - - - s_classid=#{s_classid}, - - - - s_dormitoryid=#{s_dormitoryid}, - - - - update_time = now(), - - - where g_id = #{g_id} - - - - - - - - - - - - - - - diff --git a/src/com/itheima/dao/StudentDao.java b/src/com/itheima/dao/StudentDao.java deleted file mode 100644 index 8152a7c..0000000 --- a/src/com/itheima/dao/StudentDao.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.itheima.dao; -import com.itheima.po.Student; -import org.apache.ibatis.annotations.Param; - - -import java.util.List; - -/** - * 管理员DAO层接口 - */ -public interface StudentDao { - /** - * 进行分页查询 - */ - - //获取总条数 - public Integer totalCount(@Param("s_name") String s_name, @Param("s_studentid")Integer s_studentid, - @Param("s_classid")Integer s_classid,@Param("s_classname")String s_classname); - //获取用户列表 - public List getStudentList(@Param("s_name") String s_name, @Param("s_studentid")Integer s_studentid,@Param("s_classid")Integer s_classid, - @Param("s_classname")String s_classname, @Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize); - -<<<<<<< HEAD - public int deleteStudent(Integer s_id); - //删除学生信息 - public int addStudent(Student student); - //添加学生信息 - public int updateStudent(Student student); - //修改学生信息 - public Student findStudentById(Integer s_id); - // 根据ID查询学生信息 - public List getAll(); - // 获取所有学生信息 -======= - public int deleteStudent(Integer s_id); //删除学生信息 - public int addStudent(Student student); //添加学生信息 - public int updateStudent(Student student); //修改学生信息 - public Student findStudentById(Integer s_id);// 根据ID查询学生信息 - public List getAll();// 获取所有学生信息 ->>>>>>> 5a268e17dc083cddf695d0a8f5feff0d7e289ef4 -} diff --git a/src/com/itheima/dao/StudentDao.xml b/src/com/itheima/dao/StudentDao.xml deleted file mode 100644 index 92e5e70..0000000 --- a/src/com/itheima/dao/StudentDao.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - delete from d_student where s_id=#{s_id} - - - - - insert into d_student (s_studentid, s_name, s_sex, s_age, s_phone, s_classid, s_classname, s_dormitoryid) - values(#{s_studentid}, #{s_name}, #{s_sex}, #{s_age}, #{s_phone}, #{s_classid}, #{s_classname}, #{s_dormitoryid}) - - - - - - - - update d_student - - - - s_studentid=#{s_studentid}, - - - - s_name=#{s_name}, - - - - s_sex=#{s_sex}, - - - - s_age=#{s_age}, - - - - s_phone=#{s_phone}, - - - - s_classid=#{s_classid}, - - - - s_classname=#{s_classname}, - - - - s_dormitoryid=#{s_dormitoryid}, - - - where s_id = #{s_id} - - - - - - diff --git a/src/com/itheima/dao/VisitorDao.java b/src/com/itheima/dao/VisitorDao.java deleted file mode 100644 index e7a25ef..0000000 --- a/src/com/itheima/dao/VisitorDao.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.itheima.dao; - -import com.itheima.po.Visitor; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * @program: dormitorySystem - * @description: 访客 - * @author: Joyrocky - * @create: 2019-05-14 12:57 - **/ -public interface VisitorDao { - /** - * 进行分页查询 - */ - - //获取总条数 - public Integer totalCount(@Param("v_name") String v_name, @Param("v_phone")Integer v_phone); - //获取用户列表 - public List getVisitorList(@Param("v_name") String v_name, @Param("v_phone")Integer v_phone,@Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize); - -<<<<<<< HEAD - public int addVisitor(Visitor visitor); - //添加访客信息 - public List getAll(); - //获取所有访客信息 -======= - public int addVisitor(Visitor visitor); //添加访客信息 - public List getAll();//获取所有访客信息 ->>>>>>> 5a268e17dc083cddf695d0a8f5feff0d7e289ef4 - -} diff --git a/src/com/itheima/dao/VisitorDao.xml b/src/com/itheima/dao/VisitorDao.xml deleted file mode 100644 index 848b445..0000000 --- a/src/com/itheima/dao/VisitorDao.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - insert into d_visitor (v_name, v_phone, v_dormitoryid, v_dormbuilding, create_time) - values(#{v_name}, #{v_phone}, #{v_dormitoryid}, #{v_dormbuilding}, now()) - - - - - - -