zoukankan      html  css  js  c++  java
  • 第七天

    第七天
     
    <%@page contentType="text/html;charsetgb2312%>
    <%@taglib uri="http:/java.sun.com/jsp/jstl/core" prefix="c"%>
    <!--加载自己定义的标记库-->
    <%@taglib uri="/WEB- INF/mytags/MyTage.tld" prefix="my"%>
    <jsp:include flush="false" page="checkAdmin.jsp"/>
    <html>
    <head>
    <title> 书籍列表</title>
    <meta http-equiv="Content- Type" content="text/html; charset=gb2312">
    <META HTTP-EQUIV="Pragma" CONTENT="no- cache">
    <META HTTP-EQUlV="Cache-Control" CONTENT="no-cache">
    <link rel="stylesheet" href="images/css.css" type="text/css" media="screen">
    </head>
    <body text="#00000" topmargin=O>
    <!--全部图书的列表 -->
    <table width="98%" border="O" cellpadding="2" cellspacing="O" align="center" class="TableBorder">
          <tr height="22" valign="middle" align="center">
          <th height="25" colspan="10">图书列表</th>
     </tr>
          <!--图书列表的表头-->
    <tr>
          <td width="4%" height="25" class="forumrow">
          <div align="center">ID</div>
    </td>
          <td width="15%" class="forumrow">
          <div align="center">书名</div>
    </td>
    <td width="6%" class="forumrow">
          <div align="center">出版社</div>
    </td>
    <td width="8%" class="forumrow">
          <div align="center">所属类型</div>
    </td>
    <td width="8%" class="forumrow">
          <div align="center">等级</div>
    </td>
    <td width="9%" class="forumrow">
          <div align="center">数量</div>
    </td>
    <td width="7%" class="forumrow">
          <div align="center">单价</div>
    </td>
          <td width="16%" class="forumrow">
          <div align="center">作者</div>
    </td>
          </tr>
          <!--循环显示所有的图书信息-->
          <c:forEach var="list" items="${requestScope.list}">
          <tr>
          <td height="25">
          <div align="center">${list.bookld}</div>
    </td>
          <td height="25">
          <div align="center">${list.bookName}</div>
    </td>
    <td>
          <div align="center">${list.bookComany} </div>
    </td>
    <td>
          <div align="center">${ist.bookType} </div>
    </td>
    <td>
          <!--使用自己定制的标记显示图书的等级-->-、
          <div align="center"> <my:bookStep>${list.bookSptep}</my:bookStep>  </div>
    </td>
    <td>
          <div align="center"> ${list.bookStorage} </div>
    </td>
    <td>
          <div align="center">${list.bookPrice}元</div>
    </td>
    <td>
          <div align="center">${list.bookPenster}</div>
    </td>
          </tr>
          </c:forEach>
    <tr>
          <!--页面导航-->
          <td height="25" colspan="10">
          <div align="center"> 
     ${requestScope.page}  /总页数
     ${requestScope.pagecount}  <a href="BookPage.do?page=1" class="red">首页</a>
          <a href="BookPage.do?page=${requestScope page-1<=0?"1":requestScope. page-1}"class="red">上一页</a>
          <a href="BookPage.do?page=${requestScope page+1>=requestScope.pagecount?requestScope.pagecount:requestScope.page+1)" class="red">下一页</a>
     <a href="BookPage.do?page=${requestScope.pagecount}" calss="red">末页</a>
    </div>
    </td>
    </tr>
    </table>
    </body>
    </html>
    昨天:编写代码;
    今天:编写最后代码,进行调试;
  • 相关阅读:
    BFS(从数字A变到数字B每次只能换一个数)
    BFS(数字a通过三种操作到数字B)
    dfs+bfs(三种路径问题)
    国际象棋跳马问题
    拓扑排序
    hadoop-hdfs、mapreduce学习随笔
    hive初探2_数据模型
    hive初探_框架组成、简单使用
    Scala学习笔记
    Scala安装
  • 原文地址:https://www.cnblogs.com/sjztd-slx/p/9998350.html
Copyright © 2011-2022 走看看