• 今日收获


    11.25

    1完善图书管理系统

    <%@ page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8"%>
    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>管理员</title>
    <style >
    .a{
            font-size: 26px;
            margin-top: 20px;
        }
        a{
            text-decoration: none;
        }
        a:hover {
        color: red;
    }
    </style>
    </head>
    <body>
    <div align="center">
    <h1 style="color: black;">管理员功能页</h1>
            <div class="a">
                <a href="tianjia.jsp">添加读者信息</a>
            </div>
            <div class="a">
                <a href="tianjia2.jsp">添加新书信息</a>
            </div>
            <div class="a">
                <a href="dayin.jsp">打印催还图书信息</a>
            </div>
    </div>
    </body>
    </html>
    <%@ 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>
    <style>
        .a{
            margin-top: 20px;
        }
        .b{
            font-size: 20px;
             160px;
            color: white;
            background-color: greenyellow;
        }
        .tb, td {
            border: 1px solid black;
            font-size: 22px;
        }
    </style>
    </head>
    <body>
        <div align="center">
            <h1 style="color: red;">人口信息</h1>
            <a href="duzhegong.jsp">返回主页</a>
        
            <table class="tb">
                <tr>
                    <td>编号</td>
                    <td>书名</td>
                    <td>作者名</td>
                    <td>出版社</td>
                    <td>可借阅数量</td>
            
                </tr>
                <!-- forEach遍历出adminBeans -->
                <c:forEach items="${holds}" var="item" varStatus="status">
                    <tr>
                        <td>${item.bianhao}</td>
                        <td><a>${item.shuming}</a></td>
                        <td>${item.zuozheming}</td>
                        <td>${item.chubanshe}</td>
                        <td>${item.kejieyueshuliang}</td>
            
                    </tr>
                    
                </c:forEach>
            </table>
        <form action="Servlet?method=jieyue" method="post" >
                
                <div class="a">
                    <button type="submit" class="b">借&nbsp;&nbsp;&nbsp;阅</button>
                </div>
            </form>
        </div>
    </body>
    </html>
    <%@ page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8"%>
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>借阅图书</title>
    <style>
        .a{
            margin-top: 20px;
        }
        .b{
            font-size: 20px;
             160px;
            color: white;
            background-color: greenyellow;
        }
    </style>
    </head>
    <body>
        <%
            Object message = request.getAttribute("message");
            if (message != null && !"".equals(message)) {
        %>
        <script type="text/javascript">
                  alert("<%=request.getAttribute("message")%>");
                  var  asd=request.getAttribute("name");         
        </script>
        <%
            }
        %>
        <div align="center">
            <h1 style="color: red;">图书信息</h1>
            <a href="denglu.jsp">返回主页</a>
            
            <form action="Servlet?method=jieyue0" method="post" >
                <div class="a">
                    编号<input type="text" id="bianhao" name="bianhao"/>
                </div>
                <div class="a">
                    <button type="submit" class="b">查&nbsp;&nbsp;&nbsp;看</button>
                </div>
            </form>
        </div>
        
    </body>
    </html>

    2.session部分不太会

    3.继续web

  • 相关阅读:
    Fastjson
    react 使用createContext、Consumer 及 useContext 、Class.contextType父子组件共享数据
    使用useReducer 实现 todoList
    react中 useMemo与useCallback使用
    react17 函数组件 使用 better-scroll2.0 封装方法 及 使用
    react 执行 yarn build ,无法直接打开dist文件下的index
    react-redux 持久数据存储
    document.body.removeChild 获取到 symbol 标签
    react嵌套路由,并设置默认子路由
    Vagrant环境下配置node_exporter、mysqld_exporter、prometheus、grafana
  • 原文地址:https://www.cnblogs.com/feng747/p/14161285.html
Copyright © 2020-2023  润新知