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

📄 cart_0005fsee_0002ejsp_jsp.java

📁 网上购物系统 用JSP做的 好几十页 用jbuilder运行
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
                {
                    String _jspx_qStr = "";
                    JspRuntimeLibrary.include(request, response, "left.jsp" + _jspx_qStr, out, false);
                    if ("true".equals(request.getAttribute("javax.servlet.forward.seen")))
                        return;
                }
            // end
            // HTML // begin [file="/cart_see.jsp";from=(28,33);to=(56,1)]
                out.write(" \r\n\t\t</td>\r\n          <td width=\"5\" valign=\"top\" background=\"Images/Cen_separate.gif\"></td>\r\n          <td width=\"73%\" valign=\"top\"><table width=\"100%\" height=\"272\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n            <tr>\r\n              <td width=\"97%\" height=\"220\" valign=\"top\">\r\n\t\t\t   <table width=\"100%\" height=\"126\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n\r\n\t\t\t    <tr>\r\n                  <td valign=\"top\"><table width=\"100%\" height=\"59\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n                    <tr>\r\n                      <td width=\"86%\" height=\"59\" class=\"tableBorder_B\"><img src=\"Images/ico_cart.gif\" width=\"176\" height=\"70\"></td>\r\n                    </tr>\r\n                  </table>\r\n                    <table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n                      <tr>\r\n                        <td>\r\n<form method=\"post\" action=\"cart_modify.jsp\" name=\"form1\">\r\n<table width=\"100%\" height=\"48\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n      <tr align=\"center\" valign=\"middle\">\r\n        <td height=\"27\" class=\"tableBorder_B1\">编号</td>\r\n        <td height=\"27\" class=\"tableBorder_B1\">书号</td>\r\n        <td class=\"tableBorder_B1\">书名</td>\r\n        <td height=\"27\" class=\"tableBorder_B1\">单价</td>\r\n        <td height=\"27\" class=\"tableBorder_B1\">数量</td>\r\n        <td height=\"27\" class=\"tableBorder_B1\">金额</td>\r\n        <td class=\"tableBorder_B1\">退回</td>\r\n      </tr> \r\n\t");

            // end
            // begin [file="/cart_see.jsp";from=(56,3);to=(72,1)]
                
                		float sum=0;
                		float pric=0;
                		String ISBN="";
                		String bookname="";
                		String publisher="";
                		for(int i=0;i<cart.size();i++){
                			bookelement bookitem=(bookelement)cart.elementAt(i);
                			sum=sum+bookitem.number*bookitem.price;
                			ISBN=(String)bookitem.ISBN;
                			if (ISBN!=""){
                				ResultSet rs_book=connDB.executeQuery("select * from tb_bookinfo where ISBN='"+ISBN+"'");
                				if (rs_book.next()){
                					bookname=rs_book.getString("Bookname");
                				}
                			}
                	
            // end
            // HTML // begin [file="/cart_see.jsp";from=(72,3);to=(74,35)]
                out.write(" \r\n      <tr align=\"center\" valign=\"middle\"> \r\n        <td width=\"32\" height=\"27\">");

            // end
            // begin [file="/cart_see.jsp";from=(74,38);to=(74,41)]
                out.print(i+1);
            // end
            // HTML // begin [file="/cart_see.jsp";from=(74,43);to=(75,36)]
                out.write("</td>\r\n        <td width=\"109\" height=\"27\">");

            // end
            // begin [file="/cart_see.jsp";from=(75,39);to=(75,43)]
                out.print(ISBN);
            // end
            // HTML // begin [file="/cart_see.jsp";from=(75,45);to=(76,36)]
                out.write("</td> \r\n        <td width=\"199\" height=\"27\">");

            // end
            // begin [file="/cart_see.jsp";from=(76,39);to=(76,47)]
                out.print(bookname);
            // end
            // HTML // begin [file="/cart_see.jsp";from=(76,49);to=(77,36)]
                out.write("</td>\r\n        <td width=\"59\" height=\"27\">¥");

            // end
            // begin [file="/cart_see.jsp";from=(77,39);to=(77,53)]
                out.print(bookitem.price);
            // end
            // HTML // begin [file="/cart_see.jsp";from=(77,55);to=(79,26)]
                out.write("</td> \r\n        <td width=\"51\" height=\"27\">\r\n          <input name=\"num");

            // end
            // begin [file="/cart_see.jsp";from=(79,29);to=(79,30)]
                out.print(i);
            // end
            // HTML // begin [file="/cart_see.jsp";from=(79,32);to=(79,79)]
                out.write("\" size=\"7\" type=\"text\" class=\"txt_grey\" value=\"");

            // end
            // begin [file="/cart_see.jsp";from=(79,82);to=(79,97)]
                out.print(bookitem.number);
            // end
            // HTML // begin [file="/cart_see.jsp";from=(79,99);to=(80,36)]
                out.write("\" onBlur=\"form1.submit();\"></td> \r\n        <td width=\"65\" height=\"27\">¥");

            // end
            // begin [file="/cart_see.jsp";from=(80,39);to=(80,71)]
                out.print((bookitem.price*bookitem.number));
            // end
            // HTML // begin [file="/cart_see.jsp";from=(80,73);to=(81,49)]
                out.write("</td> \r\n        <td width=\"34\"><a href=\"cart_move.jsp?ID=");

            // end
            // begin [file="/cart_see.jsp";from=(81,52);to=(81,53)]
                out.print(i);
            // end
            // HTML // begin [file="/cart_see.jsp";from=(81,55);to=(85,22)]
                out.write("\"><img src=\"Images/del.gif\" width=\"16\" height=\"16\"></a></td>\r\n        <script language=\"javascript\">\r\n\t\t\t<!--\r\n\t\t\tfunction check(){\r\n\t\t\t\tif(isNaN(form1.num");

            // end
            // begin [file="/cart_see.jsp";from=(85,25);to=(85,26)]
                out.print(i);
            // end
            // HTML // begin [file="/cart_see.jsp";from=(85,28);to=(90,16)]
                out.write(".value)){\r\n\t\t\t\t\talert(\"请不要输入非法字符\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t\thistory.back();\r\n\t\t\t\t}\r\n\t\t\t\tif(form1.num");

            // end
            // begin [file="/cart_see.jsp";from=(90,19);to=(90,20)]
                out.print(i);
            // end
            // HTML // begin [file="/cart_see.jsp";from=(90,22);to=(98,1)]
                out.write(".value==\"\"){\r\n\t\t\t\t\talert(\"请输入修改的数量\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t\thistory.back();\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\t-->\r\n\t\t</script>\r\n\t");

            // end
            // begin [file="/cart_see.jsp";from=(98,3);to=(101,1)]
                
                		}
                
                	
            // end
            // HTML // begin [file="/cart_see.jsp";from=(101,3);to=(111,80)]
                out.write(" </tr>\r\n      </table>\r\n\t  </form>\r\n<table width=\"100%\" height=\"52\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n      <tr align=\"center\" valign=\"middle\">\r\n\t\t<td height=\"10\">&nbsp;\t\t</td>\r\n        <td width=\"24%\" height=\"10\" colspan=\"-3\" align=\"left\">&nbsp;</td>\r\n\t\t</tr>\r\n      <tr align=\"center\" valign=\"middle\">\r\n        <td height=\"21\" class=\"tableBorder_B1\">&nbsp;</td>\r\n        <td height=\"21\" colspan=\"-3\" align=\"left\" class=\"tableBorder_B1\">合计总金额:¥");

            // end
            // begin [file="/cart_see.jsp";from=(111,83);to=(111,86)]
                out.print(sum);
            // end
            // HTML // begin [file="/cart_see.jsp";from=(111,88);to=(128,6)]
                out.write("</td>\r\n      </tr>\r\n      <tr align=\"center\" valign=\"middle\">\r\n        <td height=\"21\" colspan=\"2\"> <a href=\"#\" onClick=\"form1.submit();\">修改数量</a> | <a href=\"BookSort.jsp\">继续购书</a> | <a href=\"cart_checkout.jsp\">去收银台结账</a> | <a href=\"cart_clear.jsp\">清空购物车</a></td>\r\n        </tr>\r\n</table>\r\n\t\t\t\t\t\t</td>\r\n                      </tr>\r\n                    </table></td>\r\n\t\t\t     </tr>\r\n              </table>\r\n\t\t\t\t\t  </td>\r\n              <td width=\"3%\" valign=\"top\">&nbsp;</td>\r\n            </tr>\r\n          </table></td>\r\n        </tr>\r\n      </table>\r\n      ");

            // end
            // begin [file="/cart_see.jsp";from=(128,6);to=(128,41)]
                {
                    String _jspx_qStr = "";
                    JspRuntimeLibrary.include(request, response, "copyright.jsp" + _jspx_qStr, out, false);
                    if ("true".equals(request.getAttribute("javax.servlet.forward.seen")))
                        return;
                }
            // end
            // HTML // begin [file="/cart_see.jsp";from=(128,41);to=(137,0)]
                out.write("\r\n    </td>\r\n  </tr>\r\n</table>\r\n</td>\r\n  </tr>\r\n</table>\r\n</body>\r\n</html>\r\n");

            // end
            // begin [file="/cart_see.jsp";from=(137,2);to=(137,4)]
                	}
            // end

        } catch (Throwable t) {
            if (out != null && out.getBufferSize() != 0)
                out.clearBuffer();
            if (pageContext != null) pageContext.handlePageException(t);
        } finally {
            if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
        }
    }
}

⌨️ 快捷键说明

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