📄 index_jsp.java
字号:
out.write(".tacoscript {\n");
out.write(" font-size:10pt;\n");
out.write(" color: #FF99CC;\n");
out.write(" position: absolute;\n");
out.write(" visibility: visible;\n");
out.write("}\n");
out.write("a:active {\n");
out.write("\ttext-decoration: none;\n");
out.write("\tcolor: #CC0066;\n");
out.write("}\n");
out.write(".STYLE5 {font-size: 13px}\n");
out.write(".STYLE7 {\n");
out.write("\tfont-size: 13px;\n");
out.write("\tcolor: #33CC33;\n");
out.write("\tfont-weight: bold;\n");
out.write("}\n");
out.write(".STYLE13 {font-size: 12px; color: #333333; }\n");
out.write("-->\n");
out.write("</style>\n");
out.write("\n");
out.write("<table width=\"974\" border=\"0\">\n");
out.write(" <tr>\n");
out.write(" <td width=\"23\" height=\"20\" align=\"center\" valign=\"middle\"><img src=\"images/cart.gif\" width=\"20\" height=\"18\" /></td>\n");
out.write(" <td width=\"55\" align=\"center\" valign=\"middle\"><span class=\"STYLE13\"><a href=\"showcart.jsp\">购物车</a></span>|</td>\n");
out.write(" <td width=\"60\" align=\"center\" valign=\"middle\"><span class=\"STYLE1\"><a href=\"fuwu.jsp\">客服中心</a></span>|</td>\n");
out.write(" <td width=\"52\" align=\"center\" valign=\"middle\"><span class=\"STYLE1\"><a href=\"daohang.jsp\">首次购物</a></span></td>\n");
out.write(" <td width=\"760\" rowspan=\"4\" align=\"right\"><img src=\"images/FLASH5.gif\" width=\"747\" height=\"201\" /></td>\n");
out.write(" </tr>\n");
out.write(" <tr valign=\"top\">\n");
out.write(" <td height=\"45\" colspan=\"4\" align=\"center\"><img src=\"images/logo.gif\" width=\"184\" height=\"52\" /></td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td height=\"37\" colspan=\"4\" align=\"center\" valign=\"middle\">\n");
out.write(" ");
int usercount; if(session.getAttribute("uname")!=null) { usercount=0; Cookie thisCookie = null; Cookie[] cookies = request.getCookies(); for (int i = 0; i < cookies.length; i++) { thisCookie = cookies[i]; if (thisCookie.getName().equals("Count")) { usercount=Integer.parseInt(thisCookie.getValue()); if (session.isNew()) { usercount++; } thisCookie.setValue(String.valueOf(usercount)); thisCookie.setMaxAge(100000); response.addCookie(thisCookie); break; } } if (usercount==0) { usercount=1; thisCookie = new Cookie("Count", "1"); thisCookie.setMaxAge(100000); response.addCookie(thisCookie); } } else usercount=1;
out.write("\n");
out.write(" \n");
out.write(" ");
Time time=new Time(); String name=(String)session.getAttribute("uname"); if(name==null) {
out.write("\n");
out.write(" <span class=\"STYLE1\">【<span class=\"STYLE3\"><a href=\"login.jsp\">登录</a> </span> <span class=\"STYLE4\"><a href=\"Userregedit.jsp\">新用户注册</a></span>】</span>\n");
out.write(" ");
} else {
out.write("\n");
out.write(" <b><span class=\"STYLE1\"><span class=\"STYLE3\">");
out.print(name);
out.write(" ,欢迎您的光临!</span></span></b>\n");
out.write(" ");
}
out.write("\n");
out.write(" </td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td height=\"82\" colspan=\"4\" align=\"center\" valign=\"middle\"><span class=\"STYLE1\"><span class=\"STYLE3\">");
out.print(time.gettime());
out.write("</span></span></td>\n");
out.write(" </tr>\n");
out.write("</table>\n");
out.write("<table width=\"973\" height=\"37\" border=\"0\" align=\"center\" bgcolor=\"#CCFFCC\">\n");
out.write(" <tr>\n");
out.write(" <td width=\"30\" height=\"20\" rowspan=\"2\"><span class=\"STYLE5\"></span></td>\n");
out.write(" <td width=\"30\" rowspan=\"2\" align=\"center\" valign=\"middle\"><span class=\"STYLE7\"> <a href=\"index.jsp\">首页</a></span></td>\n");
out.write(" <td width=\"32\" rowspan=\"2\"><span class=\"STYLE5\"></span></td>\n");
out.write(" <td width=\"72\" rowspan=\"2\" align=\"center\" valign=\"middle\"><span class=\"STYLE7\"><a href=\"mylive.jsp\">我的LIVE</a></span></td>\n");
out.write(" <td width=\"12\" rowspan=\"2\"><span class=\"STYLE5\"></span></td>\n");
out.write(" <td width=\"86\" rowspan=\"2\" align=\"center\" valign=\"middle\"><span class=\"STYLE7\"><a href=\"paihangbang.jsp\">书籍排行榜</a></span></td>\n");
out.write(" <td width=\"12\" rowspan=\"2\"><span class=\"STYLE5\"></span></td>\n");
out.write(" <td width=\"67\" rowspan=\"2\" align=\"center\" valign=\"middle\"><span class=\"STYLE7\"><a href=\"listBooks.jsp\">书籍分类</a></span></td>\n");
out.write(" <td width=\"48\" rowspan=\"2\"><span class=\"STYLE5\"></span></td>\n");
out.write(" <td width=\"37\" rowspan=\"2\" align=\"center\" valign=\"middle\"><span class=\"STYLE7\"><a href=\"zhuxiao.jsp\">注销</a></span></td>\n");
out.write(" <td width=\"49\" rowspan=\"2\"><span class=\"STYLE5\"></span></td>\n");
out.write(" <td width=\"448\" height=\"8\" align=\"right\" valign=\"bottom\"> </td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td height=\"23\" align=\"center\" valign=\"bottom\">\n");
out.write("\t <form action=\"search.jsp\" method=\"post\" name=\"form1\" class=\"STYLE5\" id=\"form1\">\n");
out.write(" <label>\n");
out.write("\t\t <select name=\"select\"style=\"border-right: #ffffff 1px groove; border-top: #ffffff 1px groove; font: 12px Verdana,Geneva,sans-serif; border-left: #ffffff 1px groove;width: 80px; color: #000000; border-bottom: #ffffff 1px groove; height: 18px; background-color: #ffffff\"> \n");
out.write(" <option value=\"1\" selected>书名</option>\n");
out.write(" <option value=\"2\">作者</option>\n");
out.write(" <option value=\"3\">出版时间</option>\n");
out.write("</select>\n");
out.write("<input name=\"bookname\" type=\"text\" size=\"16\" value=\"关键字\" style=\"border-right: #ffffff 1px groove; border-top: #ffffff 1px groove; font: 12px Verdana,Geneva,sans-serif; border-left: #ffffff 1px groove; width: 70px; color: #000000; border-bottom: #ffffff 1px groove; height: 19px; background-color: #ffffff\"onFocus=\"this.value=''\"> \n");
out.write(" <input style=\"height:20; font:9pt; border-bottom: #cccccc 1px groove; border-right: #cccccc 1px groove; background-color: #ffffff\" type=\"submit\" name=\"Submit2\" value=\"立即查询\" > \n");
out.write(" <input style=\"height:20; font:9pt; border-bottom: #cccccc 1px groove; border-right: #cccccc 1px groove; background-color: #ffffff\" type=\"button\" name=\"Submit2\" value=\"高级查询\" onClick=\"location.href='gaoji.jsp'\"> \n");
out.write(" </label>\n");
out.write(" </form> \n");
out.write("\t</td>\n");
out.write(" </tr>\n");
out.write("</table>\n");
out.write("<br>\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("</head>\n");
out.write("<body>\n");
out.write(" <table width=\"930\" border=\"0\">\n");
out.write(" <tr>\n");
out.write(" <td height=\"44\" colspan=\"2\"><img src=\"images/xin.gif\" width=\"738\" height=\"43\" /></td>\n");
out.write(" <td width=\"212\"><img src=\"images/HELPLEFT.gif\" width=\"212\" height=\"43\" /></td>\n");
out.write(" </tr>\n");
out.write(" <tr>\n");
out.write(" <td width=\"144\" height=\"330\" bgcolor=\"#CCFFFF\" valign=\"top\"><br><a href=\"");
out.print(request.getContextPath());
out.write("/bookdetails.jsp?bookId=001\"><img src=\"images/001.jpg\" width=\"143\" height=\"183\" /></a></td>\n");
out.write(" <td width=\"590\" align=\"left\" bgcolor=\"#CCFFFF\"><p><span class=\"STYLE216\"><span class=\"STYLE217\"><a href=\"");
out.print(request.getContextPath());
out.write("/bookdetails.jsp?bookId=001\">Spring2.0核心技术与最佳实践</a></span> <span class=\"STYLE21\">语言:中文</span></span></p>\n");
out.write(" <p class=\"STYLE215\">作者:<strong>廖雪峰</strong> </p>\n");
out.write(" <p class=\"STYLE218\">出版社:电子工业出版社,2007-06-01出版</p>\n");
out.write(" <p class=\"STYLE218\">市场价:¥<strong>59.8</strong></p>\n");
out.write(" <p class=\"STYLE218\">【简介】本书注重实践而又深入理论,由浅入深且详细介绍了Spring2.0框架的几乎全部的内容,并重点突出2.0版本的新特性。本书将为读者展示如何应用Spring2.0框架创建灵活高效的JavaEE应用,并提供了一个真正可直接部署的完整的Web应用程序??Live在线书店。 <br />\n");
out.write(" 在介绍Spring框架的同时,本书还介绍了与Spring相关的大量第三方框架,涉及领域全面,实用性强。本书另一大特色是实用性强,易于上手,以实际项目为出发点,介绍项目开发中应遵循的最佳开发模式。本书还介绍了大量实践性极强的例子,并给出了完整的配置步骤,几乎覆盖了Spring2.0版本的新特性。 <br />\n");
out.write(" 本书适合有一定Java基础的读者,对JavaEE开发人员特别有帮助。本书既可以作为Spring2.0的学习指南,也可以作为实际项目开发的参考手册。</p></td>\n");
out.write(" <td width=\"212\" align=\"left\" bgcolor=\"#CCFFFF\"><p class=\"STYLE215\"> 联系单位:JAVA工作实验室</p>\n");
out.write(" <p class=\"STYLE215\">联系电话:13181041910</p>\n");
out.write(" <p class=\"STYLE215\">Email:xhj0801@126.com</p>\n");
out.write(" <p class=\"STYLE215\">QQ:273048804</p></td>\n");
out.write(" </tr>\n");
out.write("</table>\n");
out.write("<table width=\"874\" border=\"0\" align=\"center\">\n");
out.write(" <tr>\n");
out.write(" <td align=\"center\"><span class=\"STYLE21\">版权所有@2008,保留所有权利,Live在线书店</span></td>\n");
out.write(" </tr>\n");
out.write("</table>\n");
out.write("<p> </p>\n");
out.write(" \n");
out.write("</body>\n");
out.write("</html>\n");
out.write(" ");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -