• 员工工资管理系统---jsp界面


    index.jsp

    <%@ page language="java" contentType="text/html; charset=utf-8"
             pageEncoding="utf-8"%>
    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <title>Login</title>
      <link rel="stylesheet" type="text/css" href="style.css"/>
    </head>
    <body>
    
    <%
      Object message = request.getAttribute("message");
      if(message!=null && !"".equals(message)){
    %>
    <script type="text/javascript">
      alert("<%=request.getAttribute("message")%>");
    </script>
    <%  }  %>
    
    <div id="login">
      <h1>Login</h1>
      <form action="Servlet?method=login" method="post" onsubmit="return check()">
        <input type="text" required="required"  placeholder="请输入账号" name="id"></input>
        <input type="password" required="required"  placeholder="请输入密码" name="password"></input>
        <button class="but" type="submit">登    录</button>
      </form>
    </div>
    </body>
    </html>

    admin.jsp

    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <html>
    <head>
        <title>管理员登陆</title>
        <link rel="stylesheet" type="text/css" href="style.css"/>
    </head>
    <body>
    
    <%
        Object message = request.getAttribute("message");
        if(message!=null && !"".equals(message)){
    %>
    <script type="text/javascript">
        alert("<%=request.getAttribute("message")%>");
    </script>
    <%  } %>
    
    <div align="center" id="div1">
        <h1>管理员登录</h1>
        <form>
            <div>
                <a href="AddBook.jsp" class="txt">添加员工信息</a>
            </div>
            <div>
                <a href="search.jsp" class="txt">删除员工信息</a>
            </div>
            <div>
                <a href="index.jsp" class="txt">返回</a>
            </div>
        </form>
    </div>
    </body>
    </html>

    teacher.jsp

    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <html>
    <head>
        <title>教师登录</title>
        <link rel="stylesheet" type="text/css" href="style.css"/>
    </head>
    <body>
    <%
        Object message = request.getAttribute("message");
        if(message!=null && !"".equals(message)){
    %>
    <script type="text/javascript">
        alert("<%=request.getAttribute("message")%>");
    </script>
    <%  } %>
    <div align="center" id="div1">
        <h1>教师登录</h1>
        <form>
            <div>
                <a href="Servlet?method=look">浏览信息</a>
            </div>
            <div>
                <a href="index.jsp">返回</a>
            </div>
        </form>
    </div>
    </body>
    </html>

    look.jsp

    <%@ page language="java" contentType="text/html; charset=UTF-8"
             pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>图书列表</title>
        <link rel="stylesheet" type="text/css" href="style.css"/>
    </head>
    <body>
    <div align="center" id="div1">
        <h1>信息列表</h1>
        <table class="tb">
            <tr>
                <th>姓名</th>
                <th>性别</th>
                <th>年龄</th>
                <th>单位</th>
                <th>职位</th>
                <th>工资</th>
            </tr>
            <!-- forEach遍历出adminBeans -->
            <c:forEach items="${books}" var="item" varStatus="status">
                <tr>
                    <!--<td><a href="BillServlet?method=getbillbyidcard3&idcard=">  </a></td>-->
                    <td>${item.name}</td>
                    <td>${item.sex}</td>
                    <td>${item.age}</td>
                    <td>${item.unit}</td>
                    <td>${item.work}</td>
                    <td>${item.wage}</td>
                </tr>
            </c:forEach>
        </table>
        <a href="teacher.jsp">返回主页</a>
    </div>
    </body>
    </html>

    search.jsp

    <%@ page language="java" contentType="text/html; charset=UTF-8"
             pageEncoding="UTF-8"%>
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>员工查找</title>
        <link rel="stylesheet" type="text/css" href="style.css"/>
    </head>
    <body>
    <div align="center" id="div1">
        <h1>员工查询</h1>
        <form action="Servlet?method=search" method="post" onsubmit="return check()">
            <div id="a">
                <label>姓名:</label>
                <input type="text" id="name" name="name"/>
            </div>
            <div id="a">
                <button type="submit" class="but">&nbsp;&nbsp;&nbsp;&nbsp;</button>
            </div>
            <div id="a">
                <a href="teacher.jsp" >返回</a>
            </div>
        </form>
    </div>
    </body>
    </html>

    searchlist.jsp

    <%@ page language="java" contentType="text/html; charset=UTF-8"
             pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>Insert title here</title>
        <link rel="stylesheet" type="text/css" href="style.css"/>
    </head>
    <body>
    <div align="center" id="div1">
        <h1>信息列表</h1>
        <a href="search.jsp">继续查询</a>
        <table>
            <tr>
                <th>姓名</th>
                <th>性别</th>
                <th>年龄</th>
                <th>单位</th>
                <th>职位</th>
                <th>工资</th>
                <th>操作</th>
            </tr>
            <!-- forEach遍历出adminBeans -->
            <c:forEach items="${books}" var="item" varStatus="status">
                <tr>
                    <td>${item.name}</td>
                    <td>${item.sex}</td>
                    <td>${item.age}</td>
                    <td>${item.unit}</td>
                    <td>${item.work}</td>
                    <td>${item.wage}</td>
                    <td><a href="Servlet?method=getbookbyname&name=${item.name}">删除</a></td>
                </tr>
            </c:forEach>
        </table>
        <a href="teacher.jsp?">返回主页</a>
    </div>
    </body>
    </html>

    AddBook.jsp

    <%--
      Created by IntelliJ IDEA.
      User: linmob
      Date: 2020/11/17
      Time: 15:45
      To change this template use File | Settings | File Templates.
    --%>
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>图书信息添加</title>
        <link rel="stylesheet" type="text/css" href="style.css"/>
    </head>
    <body>
    <%
        Object message = request.getAttribute("message");
        if(message!=null && !"".equals(message)){
    %>
    <script type="text/javascript">
        alert("<%=request.getAttribute("message")%>");
    </script>
    <%   } %>
    <div align="center" id="div1">
        <h1>添加图书</h1>
        <form action="Servlet?method=addBook" name="information" method="post" onsubmit="return check()">
            <div id="a">
                <label>姓名:</label>
                <input type="text" id="name" name="name"/>
            </div>
            <div id="a">
                <label>性别:</label>
                <input type="text" id="sex"" name="sex"/>
            </div>
            <div id="a">
                <label>年龄:</label>
                <input type="text" id="age" name="age"/>
            </div>
            <div id="a">
                <label>单位:</label>
                <input type="text" id="unit" name="unit"/>
            </div>
            <div id="a">
                <label>职业:</label>
                <input type="text" id="work" name="work"/>
            </div>
            <div id="a">
                <label>基本工资:</label>
                <input type="text" id="swage" name="swage"/>
            </div>
            <div id="a">
                <label>福利补贴:</label>
                <input type="text" id="a1" name="a1"/>
            </div>
            <div id="a">
                <label>奖励工资:</label>
                <input type="text" id="a2" name="a2"/>
            </div>
            <div id="a">
                <label>失业保险:</label>
                <input type="text" id="b1" name="b1"/>
            </div>
            <div id="a">
                <label>住房基金:</label>
                <input type="text" id="b2" name="b2"/>
            </div>
    
            <!--
             <div id="a">
                <label></label>
                <input type="text" id="" name=""/>
            </div>
            -->
    
            <div id="a">
                <button type="submit" class="but">保     存</button>
            </div>
            <div id="a">
                <a href="admin.jsp" class="txt">返回</a>
            </div>
        </form>
    </div>
    <script Language="javaScript">
        function check() {
            /* if (document.information.sqare.value == "") {
                 alert("住房面积不能为空.");
                 document.information.sqare.focus();
                 return false;
             }*/
            return true;
        }
    </script>
    </body>
    </html>
  • 相关阅读:
    ORACLE 9i数据库服务器的体系结构
    datareader ,dataset ,datatable使用的区别
    ArrayList、Hashtable、DataTable、DataView、DataReader和DataSet,DataGrid等的区别和各自的优缺点
    oracle安装后net不能登陆(三a)
    c#的事件机制示例代码: 猫> 老鼠, 主人
    如果你是一个踌躇满志的男人
    oracel 数据字段类型
    ORAL架构
    也谈猫、老鼠、主人的观察者模式问题 (zhuang)
    4 phrases everyday000
  • 原文地址:https://www.cnblogs.com/linmob/p/14162802.html
Copyright © 2020-2023  润新知