📄 ordersearch_0002ejsp_jsp.java
字号:
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class ordersearch_0002ejsp_jsp extends HttpJspBase {
// begin [file="/ordersearch.jsp";from=(1,0);to=(1,60)]
// end
// begin [file="/ordersearch.jsp";from=(2,0);to=(2,58)]
// end
static {
}
public ordersearch_0002ejsp_jsp( ) {
}
private static boolean _jspx_inited = false;
public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
String _value = null;
try {
if (_jspx_inited == false) {
synchronized (this) {
if (_jspx_inited == false) {
_jspx_init();
_jspx_inited = true;
}
}
}
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/ordersearch.jsp";from=(0,100);to=(1,0)]
out.write("\r\n");
// end
// begin [file="/ordersearch.jsp";from=(1,0);to=(1,60)]
beans.connDB connDB = null;
boolean _jspx_specialconnDB = false;
synchronized (pageContext) {
connDB= (beans.connDB)
pageContext.getAttribute("connDB",PageContext.PAGE_SCOPE);
if ( connDB == null ) {
_jspx_specialconnDB = true;
try {
connDB = (beans.connDB) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "beans.connDB");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"beans.connDB", exc);
}
pageContext.setAttribute("connDB", connDB, PageContext.PAGE_SCOPE);
}
}
if(_jspx_specialconnDB == true) {
// end
// begin [file="/ordersearch.jsp";from=(1,0);to=(1,60)]
}
// end
// HTML // begin [file="/ordersearch.jsp";from=(1,60);to=(2,0)]
out.write("\r\n");
// end
// begin [file="/ordersearch.jsp";from=(2,0);to=(2,58)]
beans.chStr chStr = null;
boolean _jspx_specialchStr = false;
synchronized (pageContext) {
chStr= (beans.chStr)
pageContext.getAttribute("chStr",PageContext.PAGE_SCOPE);
if ( chStr == null ) {
_jspx_specialchStr = true;
try {
chStr = (beans.chStr) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "beans.chStr");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"beans.chStr", exc);
}
pageContext.setAttribute("chStr", chStr, PageContext.PAGE_SCOPE);
}
}
if(_jspx_specialchStr == true) {
// end
// begin [file="/ordersearch.jsp";from=(2,0);to=(2,58)]
}
// end
// HTML // begin [file="/ordersearch.jsp";from=(2,58);to=(3,0)]
out.write("\r\n");
// end
// begin [file="/ordersearch.jsp";from=(3,0);to=(3,30)]
{
String _jspx_qStr = "";
JspRuntimeLibrary.include(request, response, "safe.jsp" + _jspx_qStr, out, false);
if ("true".equals(request.getAttribute("javax.servlet.forward.seen")))
return;
}
// end
// HTML // begin [file="/ordersearch.jsp";from=(3,30);to=(4,0)]
out.write("\r\n");
// end
// begin [file="/ordersearch.jsp";from=(4,2);to=(20,0)]
ResultSet rs=connDB.executeQuery("select * from tb_order where username='"+
(String)session.getAttribute("UserName")+"'");
int orderID=0;
String username="";
int bnumber=0;
String truename="";
String address="";
String postcode="";
String tel="";
String pay="";
String carry="";
String email="";
float rebate=1;
String orderDate="";
String bz="";
// end
// HTML // begin [file="/ordersearch.jsp";from=(20,2);to=(34,1)]
out.write("\r\n<html>\r\n<head>\r\n<title>订单查询</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<link href=\"CSS/style.css\" rel=\"stylesheet\">\r\n</head>\r\n<body>\r\n<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\"Images/bg.gif\">\r\n <tr>\r\n <td>\r\n<table width=\"777\" height=\"768\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">\r\n <tr>\r\n <td valign=\"top\">\r\n\t");
// end
// begin [file="/ordersearch.jsp";from=(34,1);to=(34,30)]
{
String _jspx_qStr = "";
JspRuntimeLibrary.include(request, response, "Top.jsp" + _jspx_qStr, out, false);
if ("true".equals(request.getAttribute("javax.servlet.forward.seen")))
return;
}
// end
// HTML // begin [file="/ordersearch.jsp";from=(34,30);to=(38,3)]
out.write("\r\n\t<table width=\"100%\" height=\"330\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td width=\"26%\" valign=\"top\">\r\n\t\t ");
// end
// begin [file="/ordersearch.jsp";from=(38,3);to=(38,33)]
{
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="/ordersearch.jsp";from=(38,33);to=(64,5)]
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=\"87\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr>\r\n <td width=\"86%\" height=\"87\" class=\"tableBorder_B\"><img src=\"Images/ico_order.gif\" width=\"176\" height=\"61\"></td>\r\n </tr>\r\n </table> </td>\r\n\t\t\t </tr>\r\n\t\t\t <tr>\r\n\t\t\t <td valign=\"top\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr align=\"center\">\r\n <td width=\"8%\" height=\"30\" class=\"tableBorder_B1\">订单号</td>\r\n <td width=\"8%\" class=\"tableBorder_B1\">品种数</td>\r\n <td width=\"13%\" class=\"tableBorder_B1\">真实姓名</td>\r\n <td width=\"18%\" class=\"tableBorder_B1\">付款方式</td>\r\n <td width=\"18%\" class=\"tableBorder_B1\">运送方式</td>\r\n <td width=\"9%\" class=\"tableBorder_B1\">折扣</td>\r\n <td width=\"26%\" class=\"tableBorder_B1\">订书日期</td>\r\n </tr>\r\n\t\t\t\t\t");
// end
// begin [file="/ordersearch.jsp";from=(64,7);to=(73,5)]
rs.first();
do{
orderID=rs.getInt("orderID");
bnumber=rs.getInt("bnumber");
truename=rs.getString("truename");
pay=rs.getString("pay");
carry=rs.getString("carry");
rebate=rs.getFloat("rebate");
orderDate=rs.getString("orderDate");
// end
// HTML // begin [file="/ordersearch.jsp";from=(73,7);to=(75,73)]
out.write("\r\n <tr align=\"center\">\r\n <td height=\"24\"><a href=\"ordersearch_detail.jsp?ID=");
// end
// begin [file="/ordersearch.jsp";from=(75,76);to=(75,83)]
out.print(orderID);
// end
// HTML // begin [file="/ordersearch.jsp";from=(75,85);to=(75,87)]
out.write("\">");
// end
// begin [file="/ordersearch.jsp";from=(75,90);to=(75,97)]
out.print(orderID);
// end
// HTML // begin [file="/ordersearch.jsp";from=(75,99);to=(76,26)]
out.write("</a></td>\r\n <td>");
// end
// begin [file="/ordersearch.jsp";from=(76,29);to=(76,36)]
out.print(bnumber);
// end
// HTML // begin [file="/ordersearch.jsp";from=(76,38);to=(77,26)]
out.write("</td>\r\n <td>");
// end
// begin [file="/ordersearch.jsp";from=(77,29);to=(77,37)]
out.print(truename);
// end
// HTML // begin [file="/ordersearch.jsp";from=(77,39);to=(78,26)]
out.write("</td>\r\n <td>");
// end
// begin [file="/ordersearch.jsp";from=(78,29);to=(78,32)]
out.print(pay);
// end
// HTML // begin [file="/ordersearch.jsp";from=(78,34);to=(79,26)]
out.write("</td>\r\n <td>");
// end
// begin [file="/ordersearch.jsp";from=(79,29);to=(79,34)]
out.print(carry);
// end
// HTML // begin [file="/ordersearch.jsp";from=(79,36);to=(80,26)]
out.write("</td>\r\n <td>");
// end
// begin [file="/ordersearch.jsp";from=(80,29);to=(80,39)]
out.print(rebate*100);
// end
// HTML // begin [file="/ordersearch.jsp";from=(80,41);to=(81,26)]
out.write("%</td>\r\n <td>");
// end
// begin [file="/ordersearch.jsp";from=(81,29);to=(81,38)]
out.print(orderDate);
// end
// HTML // begin [file="/ordersearch.jsp";from=(81,40);to=(83,5)]
out.write("</td>\r\n </tr>\r\n\t\t\t\t\t");
// end
// begin [file="/ordersearch.jsp";from=(83,7);to=(83,25)]
}while(rs.next());
// end
// HTML // begin [file="/ordersearch.jsp";from=(83,27);to=(93,6)]
out.write("\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\"> </td>\r\n </tr>\r\n </table></td>\r\n </tr>\r\n </table>\r\n ");
// end
// begin [file="/ordersearch.jsp";from=(93,6);to=(93,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="/ordersearch.jsp";from=(93,41);to=(103,0)]
out.write("\r\n </td>\r\n </tr>\r\n</table>\r\n</td>\r\n </tr>\r\n</table>\r\n\r\n</body>\r\n</html>\r\n");
// 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 + -