期末4

login

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户登录</title>
</head>
<body>
  <table align="center" border="0px" cellpadding="10px" cellspacing="10px">
  <form action="qimoServlet?method=login"  method="post"  onsubmit="return check()">
  <tr>
  <td>用户名:</td>
  <td><input type="text" name="username" id="username"></td>
  </tr>
  <tr>
  <td>密码:</td>
  <td><input type="password" name="password" id="password"></td>
  </tr>
    <tr align="center">
    <th colspan="2">
    <input type="submit" value="登录">
    </th>
    </tr>
  <tr>
  <td><a href="addzhiyuan.jsp">注册</a></td>
  </tr>
  </form>
  </table>
</body>
</html>

shanchuhuiyishi

<%@ page import="Bean.room" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: 榕宝
  Date: 2021/12/9
  Time: 9:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- 需导入sql包,user实体包 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <meta charset="utf-8">
    <title>删除会议室页面</title>
    <style type="text/css">
        .bg {
            background-image:url(images/bg_2.jpg);
            background-size:cover;
        }
        *{font-style: "微软雅黑"}
        #table{ border-collapse: collapse; margin: auto;text-align: center;}
        #table th{background-color: #fff7d5;border: 1px solid black;}
        #table td{background-color:#cffcd5;border: 1px solid black;padding: 15px;color: #000;}
        #table a{text-decoration: none;font-weight: bold;}
        #table a:hover {text-decoration: underline;}
    </style>
</head>
<body class="bg">
<h2 style="text-align: center;">会议室信息</h2>


<jsp:useBean id="util" class="Dao.Dao"/>

<br>
<%
    request.setCharacterEncoding("utf-8");
    response.setCharacterEncoding("utf-8");
    List<meetroom> list = util.readRoom();
%>
<%if(list.isEmpty()) {%>
<br>
<br>
<br>
<p style="text-align: center;font-size: xx-large;font-weight: 500;">当前数据库无相关信息</p>
<%}else {%>
<table  id="table">
    <tr>
        <th>会议室编号</th>
        <th>会议室名称</th>
        <th>会议室地址</th>
        <th>可用状态</th>
        <th>目前状态</th>
        <th>容纳人数</th>
        <th>操作</th>
    </tr>
    <%for (room r : list) { %>
    <tr>
        <td><%=r.getMeetroomId()%></td>
        <td><%=r.getMeetroomName()%></td>
        <td><%=r.getAddress()%></td>
        <td><%=r.getReadyState()%></td>
        <td><%=r.getStatus()%></td>
        <td><%=r.getCapacity()%></td>
        <td><a href="shanchuhuiyishi`.jsp?id=<%=r.getId() %>">删除</a>

    </tr>
    <%}} %>
</table>

</body>
</html>

updatehuiyishi

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改会议室信息</title>
<script>
</script>
</head>
<body>
<%
         Object message = request.getAttribute("message");
         if(message!=null && !"".equals(message)){
     
    %>
         <script type="text/javascript">
              alert("<%=request.getAttribute("message")%>");
         </script>
    <%} %>
  <table align="center" border="0px" cellpadding="10px" cellspacing="10px">
  <form action="qimoServlet?method=updatehuiyishi"  method="post"  onsubmit="return check()">
  <tr>
  <td><a href="guanlileft.jsp">返回管理员功能页面</a></td>
  </tr>
   <tr>
    <td>会议室编号:</td>
    <td><input type="text" name="meetroomid" id="meetroomid"></td>
   </tr>
   <tr>
   <td>会议室级别(容纳人数):</td>
   <td>
   <select name="capacity">
   <option value="A(大型会议室,容纳50人以上)">A(大型会议室,容纳50人以上)</option>
   <option value="B(中型会议室,容纳20人—40人)">B(中型会议室,容纳20人—40人)</option>
   <option value="C(小型会议室,容纳10人以下)">C(小型会议室,容纳10人以下)</option>
    </select>
   </td>
   </tr>
   <tr>
   <td>会议室名称:</td>
   <td><input type="text" name="meetroomname" id="meetroomname"></td>
   </tr>
   <tr>
   <td>会议室地址:</td>
   <td><input type="text" name="address" id="address"></td>
   </tr>
   <tr>
   <td>可用状态:</td>
   <td>
   <select name="readystate">
   <option value="可用">可用</option>
   <option value="不可用">不可用</option>
    </select>
   </td>
   <tr>
   <td>目前状态:</td>
   <td>
   <select name="status">
   <option value="占用">占用</option>
   <option value="不占用">不占用</option>
    </select>
   </td>
   </tr>
 
    <tr align="center">
    <th colspan="2">
    <input type="submit" value="提交">
    </th>
    </tr>
    </form>
</table>
</body>
</html>

updatemima

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改密码</title>
</head>
<body>
<script>
    var updatemima='<%=request.getParameter("updatemima")%>';
    if(updatemima=='yes'){
        alert("修改成功!");
    }
</script>
    <form action="qimoServlet?method=updatemima" method="post">
        <table align="center">
            <tr>
                <td>请输入要修改的密码:</td>
                <td>
                    <input type="text" name="password">
                </td>
            </tr>
            <tr>
                <td>请输入信密码:</td>
                <td>
                    <input type="text" name="password1">
                </td>
            </tr>
            <tr align="center">
                <td>
                    <input type="submit" value="确定">
                    <input type="submit" value="返回" formaction="jingjiren.jsp" formmethod="post">
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

zhiyuanleft

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>职员功能页面</title>
</head>
<body>

<table align="center" border="0px" cellpadding="10px" cellspacing="10px">
  <form action="qimoServlet?method=zhiyuanleft"  method="post"  onsubmit="return check()">
  <tr>
  <td><a href="login.jsp">返回登陆页面</a></td>
  </tr>
   <tr>
    <td>职员功能页面</td>
   </tr>
   <tr>
  <td><a href="qimoServlet?method=liulanzhiyuan">查看个人信息</a></td>
  </tr>
  
  <tr>
  <td><a href="updatemima.jsp">修改个人密码</a></td>
  </tr>
 
 
   <tr>
  <td><a href="qimoServlet?method=liulanhuiyishi">浏览会议室信息</a></td>
  </tr>
  
  
  <tr>
  <td><a href="applyfc.jsp">查询会议室</a></td>
  </tr>
  
  <tr>
  <td><a href="deletefc.jsp">浏览参会信息</a></td>
  </tr>
  
  <tr>
  <td><a href="updateglmm.jsp">预约会议</a></td>
  </tr>
    </form>
</table>

</body>
</html>

 

posted @ 2021-12-16 19:38  清梦韶华  阅读(27)  评论(0编辑  收藏  举报