bookType.jsp
上传用户:ycdfsj258
上传日期:2022-08-04
资源大小:1094k
文件大小:3k
源码类别:

图形图象

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <%@ page import="com.dao.BookTypeDAO" %>
  3. <%@ page import="com.actionForm.BookTypeForm" %>
  4. <%@ page import="java.util.*"%>
  5. <html>
  6. <%
  7. Collection coll=(Collection)request.getAttribute("bookType");
  8. %>
  9. <head>
  10. <title>图书馆管理系统</title>
  11. <link href="CSS/style.css" rel="stylesheet">
  12. </head>
  13. <body onLoad="clockon(bgclock)">
  14. <table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="tableBorder">
  15.   <tr>
  16.     <td height="183">
  17. <%@include file="navigation.jsp"%>
  18. </td>
  19. </tr>
  20. <td>
  21. <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  22.   <tr>
  23.     <td valign="top" bgcolor="#FFFFFF"><table width="99%" height="510"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableBorder_gray">
  24.   <tr>
  25.     <td height="510" valign="top" style="padding:5px;"><table width="98%" height="487"  border="0" cellpadding="0" cellspacing="0">
  26.       <tr>
  27.         <td height="22" valign="top" class="word_orange">当前位置:图书管理 &gt; 图书类型设置 &gt;&gt;&gt;</td>
  28.       </tr>
  29.       <tr>
  30.         <td align="center" valign="top"><%
  31. if(coll==null || coll.isEmpty()){
  32. %>
  33.           <table width="100%" height="30"  border="0" cellpadding="0" cellspacing="0">
  34.             <tr>
  35.               <td height="36" align="center">暂无图书类型信息!</td>
  36.             </tr>
  37.           </table>
  38.           <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  39.   <tr>
  40.     <td>
  41.       <a href="#" onClick="window.open('bookType_add.jsp','','width=292,height=175')">添加图书类型信息</a> </td>
  42.   </tr>
  43. </table>
  44.  <%
  45. }else{
  46.   //通过迭代方式显示数据
  47.   Iterator it=coll.iterator();
  48.   int ID=0;
  49.   String typename="";
  50.   int days=0;
  51.   %>
  52.  <table width="91%"  border="0" cellspacing="0" cellpadding="0">
  53.   <tr>
  54.     <td width="82%">&nbsp;      </td>
  55. <td width="18%" align="right">
  56.       <a href="#" onClick="window.open('bookType_add.jsp','','width=292,height=175')">添加图书类型信息</a> </td>   
  57.   </tr>
  58. </table>  
  59.   <table width="91%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
  60.   <tr align="center" bgcolor="#e3F4F7">
  61.     <td width="35%">图书类型名称</td>
  62.     <td width="35%">可借天数</td>
  63.     <td width="16%">修改</td>
  64.     <td width="14%">删除</td>
  65.   </tr>
  66. <%
  67.   while(it.hasNext()){
  68.     BookTypeForm bookTypeForm=(BookTypeForm)it.next();
  69. ID=bookTypeForm.getId().intValue();
  70. typename=chStr.toChinese(bookTypeForm.getTypeName());
  71. days=bookTypeForm.getDays();
  72. %> 
  73.   <tr>
  74.     <td style="padding:5px;"><%=typename%></td>
  75.     <td style="padding:5px;"><%=days%></td>
  76.     <td align="center"><a href="#" onClick="window.open('bookType.do?action=bookTypeModifyQuery&ID=<%=ID%>','','width=292,height=175')">修改</a></td>
  77.     <td align="center"><a href="bookType.do?action=bookTypeDel&ID=<%=ID%>">删除</a></td>
  78.   </tr>
  79. <%
  80.   }
  81. }
  82. %>  
  83. </table></td>
  84.       </tr>
  85.     </table>
  86. </td>
  87.   </tr>
  88. </table><%@ include file="copyright.jsp"%></td>
  89.   </tr>
  90. </table>
  91. </td>
  92. </table>
  93. </body>
  94. </html>