⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main_jsp.java

📁 一个使用J2EE的Java开发程序
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
if(coll_book!=null && !coll_book.isEmpty()){
	  Iterator it_book=coll_book.iterator();
	  int i=1;
  int degree=0;
  String bookname="";
  String typename="";
  String barcode_book="";
  String bookcase="";
  String pub="";
  String author="";
  String translator="";
  Float price=new Float(0);
	  while(it_book.hasNext() && i<6){
      BorrowForm borrowForm=(BorrowForm)it_book.next();
	bookname=chStr.toChinese(borrowForm.getBookName());
        barcode_book=borrowForm.getBookBarcode();
        typename=chStr.toChinese(borrowForm.getBookType());
	degree=borrowForm.getDegree();
	bookcase=chStr.toChinese(borrowForm.getBookcaseName());
        pub=chStr.toChinese(borrowForm.getPubName());
        author=chStr.toChinese(borrowForm.getAuthor());
        price=borrowForm.getPrice();

	
      out.write(" \r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td height=\"25\" align=\"center\">");
      out.print(i);
      out.write("</td>\r\n");
      out.write("    <td style=\"padding:5px;\">&nbsp;");
      out.print(barcode_book);
      out.write("</td>\r\n");
      out.write("    <td style=\"padding:5px;\">");
      out.print(bookname);
      out.write("</td>\r\n");
      out.write("    <td style=\"padding:5px;\">");
      out.print(typename);
      out.write("</td>\r\n");
      out.write("    <td align=\"center\">&nbsp;");
      out.print(bookcase);
      out.write("</td>\r\n");
      out.write("    <td align=\"center\">&nbsp;");
      out.print(pub);
      out.write("</td>\r\n");
      out.write("    <td width=\"11%\" align=\"center\">");
      out.print(author);
      out.write("</td>\r\n");
      out.write("    <td width=\"8%\" align=\"center\">");
      out.print(price);
      out.write("</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("\t");

	i++;
	}
}
      out.write("\r\n");
      out.write("                </table>\r\n");
      out.write("                  <table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("                    <tr>\r\n");
      out.write("                      <td height=\"39\" align=\"right\"><a href=borrow.do?action=bookBorrowSort><img src=\"Images/more.GIF\" width=\"50\" height=\"20\" border=\"0\"></a></td>\r\n");
      out.write("                    </tr>\r\n");
      out.write("                  </table></td>\r\n");
      out.write("                <td width=\"2%\">&nbsp;</td>\r\n");
      out.write("              </tr>\r\n");
      out.write("            </table></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td height=\"19\" background=\"Images/main_booksort_2.gif\">&nbsp;</td>\r\n");
      out.write("          </tr>\r\n");
      out.write("        </table>\r\n");
      out.write("          <table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"57\" background=\"Images/main_readersort_1.gif\">&nbsp;</td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"72\" valign=\"top\" background=\"Images/main_booksort_1.gif\">\r\n");
      out.write("                <table width=\"100%\" height=\"63\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td width=\"2%\">&nbsp;</td>\r\n");
      out.write("                    <td width=\"96%\" align=\"center\" valign=\"top\"><table width=\"100%\"  border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#FFFFFF\" bordercolordark=\"#eeeeee\" bordercolorlight=\"#FFFFFF\">\r\n");
      out.write("                      <tr align=\"center\" bordercolordark=\"#D2E3E6\">\r\n");
      out.write("                        <td width=\"6%\" height=\"25\" align=\"center\">排名</td>\r\n");
      out.write("    <td width=\"11%\">读者条形码</td>\r\n");
      out.write("    <td width=\"12%\">读者姓名</td>\r\n");
      out.write("    <td width=\"13%\">读者类型</td>\r\n");
      out.write("    <td width=\"23%\">证件类型</td>\r\n");
      out.write("    <td width=\"14%\">证件号码</td>\r\n");
      out.write("    <td width=\"12%\">电话</td>\r\n");
      out.write("    <td colspan=\"2\">性别</td>\r\n");
      out.write("                      </tr>\r\n");
      out.write("\t\t\t\t  ");
if(coll_book!=null && !coll_book.isEmpty()){
	  Iterator it_reader=coll_reader.iterator();
	  int j=1;
	  String readername="";
	  String typename="";
	  String barcode_reader="";
	  String paperType="";
	  String paperNo="";
	  String tel="";
	  String sex="";
	  while(it_reader.hasNext() && j<6){
      BorrowForm borrowForm=(BorrowForm)it_reader.next();
	readername=chStr.toChinese(borrowForm.getReaderName());
        barcode_reader=borrowForm.getReaderBarcode();
        typename=chStr.toChinese(borrowForm.getReaderType());
        paperType=chStr.toChinese(borrowForm.getPaperType());
        paperNo=borrowForm.getPaperNo();
        tel=borrowForm.getTel();
        sex=chStr.toChinese(borrowForm.getSex());

	
      out.write(" \r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td height=\"25\" align=\"center\">");
      out.print(j);
      out.write("</td>\r\n");
      out.write("    <td style=\"padding:5px;\">&nbsp;");
      out.print(barcode_reader);
      out.write("</td>\r\n");
      out.write("    <td style=\"padding:5px;\">");
      out.print(readername);
      out.write("</td>\r\n");
      out.write("    <td style=\"padding:5px;\">");
      out.print(typename);
      out.write("</td>\r\n");
      out.write("    <td align=\"center\">&nbsp;");
      out.print(paperType);
      out.write("</td>\r\n");
      out.write("    <td align=\"center\">&nbsp;");
      out.print(paperNo);
      out.write("</td>\r\n");
      out.write("    <td width=\"12%\" align=\"center\">");
      out.print(tel);
      out.write("</td>\r\n");
      out.write("    <td width=\"7%\" align=\"center\">");
      out.print(sex);
      out.write("</td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("\t\t\t\t");

				j++;
				}
				}
      out.write("\r\n");
      out.write("                    </table>\r\n");
      out.write("                      <table width=\"100%\" height=\"42\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("                        <tr>\r\n");
      out.write("                          <td height=\"35\" align=\"right\"><a href=borrow.do?action=readerBorrowSort><img src=\"Images/more.GIF\" width=\"50\" height=\"20\" border=\"0\"></a></td>\r\n");
      out.write("                        </tr>\r\n");
      out.write("                      </table></td>\r\n");
      out.write("                    <td width=\"2%\">&nbsp;</td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                </table></td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"19\" background=\"Images/main_booksort_2.gif\">&nbsp;</td>\r\n");
      out.write("            </tr>\r\n");
      out.write("          </table></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table>\r\n");
      out.write("      </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<table width=\"99%\" height=\"72\"  border=\"0\" align=\"center\" cellpadding=\"-2\" cellspacing=\"-2\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td height=\"2\" colspan=\"4\"></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td width=\"124\" height=\"23\">&nbsp;</td>\r\n");
      out.write("        <td valign=\"bottom\" align=\"center\"> CopyRight &copy; 2006 www.mingrisoft.com 吉林省明日科技有限公司</td>\r\n");
      out.write("        <td width=\"141\">&nbsp;</td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td height=\"28\">&nbsp;</td>\r\n");
      out.write("        <td align=\"center\">本站请使用IE6.0或以上版本 1024*768为最佳显示效果</td>\r\n");
      out.write("        <td>&nbsp;</td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td height=\"8\"></td>\r\n");
      out.write("        <td height=\"8\"></td>\r\n");
      out.write("        <td height=\"8\"></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table>\r\n");
      out.write("</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("</body>\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -