📄 order_jsp.java
字号:
package org.apache.jsp.COIN;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import com.buy.bean.coin.OrderSelectBean;
import java.sql.*;
import java.util.*;
public final class order_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(1);
_jspx_dependants.add("/COIN/left.jsp");
}
public Object getDependants() {
return _jspx_dependants;
}
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;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("<!—由于本系统没有登录,所以在此添加设置session的语句-->\r\n");
session.setAttribute("USERID", "1");
out.write("\r\n");
out.write("\r\n");
out.write("<!—导入JavaBean-->\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<!—为引入的JavaBean声明一个实例,以便以后调用-->\r\n");
com.buy.bean.coin.OrderSelectBean selectOrderBean = null;
synchronized (request) {
selectOrderBean = (com.buy.bean.coin.OrderSelectBean) _jspx_page_context.getAttribute("selectOrderBean", PageContext.REQUEST_SCOPE);
if (selectOrderBean == null){
selectOrderBean = new com.buy.bean.coin.OrderSelectBean();
_jspx_page_context.setAttribute("selectOrderBean", selectOrderBean, PageContext.REQUEST_SCOPE);
out.write('\r');
out.write('\n');
}
}
out.write("\r\n");
out.write("<!—设置JavaBean的属性值-->\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(_jspx_page_context.findAttribute("selectOrderBean"), "s_year", request.getParameter("s_year"), request, "s_year", false);
out.write('\r');
out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(_jspx_page_context.findAttribute("selectOrderBean"), "s_month", request.getParameter("s_month"), request, "s_month", false);
out.write('\r');
out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(_jspx_page_context.findAttribute("selectOrderBean"), "s_day", request.getParameter("s_day"), request, "s_day", false);
out.write('\r');
out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(_jspx_page_context.findAttribute("selectOrderBean"), "e_year", request.getParameter("e_year"), request, "e_year", false);
out.write('\r');
out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(_jspx_page_context.findAttribute("selectOrderBean"), "e_month", request.getParameter("e_month"), request, "e_month", false);
out.write('\r');
out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(_jspx_page_context.findAttribute("selectOrderBean"), "e_day", request.getParameter("e_day"), request, "e_day", false);
out.write('\r');
out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(_jspx_page_context.findAttribute("selectOrderBean"), "status", request.getParameter("status"), request, "status", false);
out.write('\r');
out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(_jspx_page_context.findAttribute("selectOrderBean"), "num", request.getParameter("num"), request, "num", false);
out.write('\r');
out.write('\n');
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
out.write("\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("\t<!--\r\n");
out.write("\t@import url(\"../Buy/style/cal/rightcal_style01.css\");\r\n");
out.write("\t-->\r\n");
out.write("\t</style>\r\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
out.write("<html>\r\n");
out.write("\t<head>\r\n");
out.write("\t\t<base href=\"");
out.print(basePath);
out.write("\">\r\n");
out.write("\t\t<title>导航</title>\r\n");
out.write("\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("\t\t<!--\r\n");
out.write(" <link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">\r\n");
out.write(" -->\r\n");
out.write("\t</head>\r\n");
out.write("\t<body topmargin=\"0\">\r\n");
out.write("\t\t<div align=\"center\">\r\n");
out.write("\t\t\t");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("\t<!--\r\n");
out.write("\t@import url(\"../Buy/style/cal/rightcal_style01.css\");\r\n");
out.write("\t-->\r\n");
out.write("</style>\r\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
out.write("<html>\r\n");
out.write(" <head> \r\n");
out.write(" </head>\r\n");
out.write(" \r\n");
out.write(" <body>\r\n");
out.write(" <table width=\"1002\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"155\" rowspan=\"7\" align=\"center\" valign=\"top\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"30\" class=\"cal_head01\"> 电子货币</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td class=\"cal_td04\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"15\" height=\"25\" class=\"cal_head03\"> </td>\r\n");
out.write(" <td width=\"130\" height=\"25\" class=\"left_content\"><a href=\"COIN/usercoin.jsp\" class=\"left_content\">我的电子货币首页</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"15\" height=\"25\" class=\"left_content\"> </td>\r\n");
out.write(" <td height=\"25\" class=\"left_content\">帐户管理</td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"15\" height=\"25\" class=\"left_content\"> </td>\r\n");
out.write(" <td height=\"25\" class=\"left_content\"><a href=\"COIN/order.jsp\"> 订单列表</a></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"15\" height=\"25\" class=\"cal_head03\"> </td>\r\n");
out.write(" <td height=\"25\" class=\"cal_head03\"><span class=\"left_content\"><a href=\"COIN/addcoinrecord.jsp\"> 充值记录</a></span></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"15\" height=\"25\" class=\"left_content\"> </td>\r\n");
out.write(" <td height=\"25\" class=\"left_content\"><a href=\"COIN/consumerecord.jsp\"> 消费记录</a></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(" </body>\r\n");
out.write("</html>\r\n");
out.write("\r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t<td width=\"10\" rowspan=\"2\" align=\"center\">\r\n");
out.write("\t\t\t\t\t\t \r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t<td height=\"10\" colspan=\"2\" align=\"center\">\r\n");
out.write("\t\t\t\t\t\t \r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t<td height=\"280\" valign=\"top\" bgcolor=\"#FFFFFF\" class=\"cal_content02\">\r\n");
out.write("\t\t\t\t\t\t<FORM name=\"form1\" action=\"\" Method=\"post\">\r\n");
out.write("\t\t\t\t\t\t\t<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\">\r\n");
out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<td height=\"25\" class=\"scal_content04\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<span class=\"scal_content04\"></span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<td><!—在JSP中使用JavaBean,先获得session中userid的值。再根据值作为参数调用JavaBean-->\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t");
String ID = (String) session.getAttribute("USERID");
StringBuffer result = selectOrderBean.selectOrder(ID);
out.write("\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t");
out.print(result);
out.write("\r\n");
out.write("\t\t\t\t\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<td height=\"25\" align=\"left\" bgcolor=\"#FFFFFF\" class=\"scal_content04\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<span> 定单号:</span><span><span> <input name=\"num\" class=scal_content04 size=20> </span></span>\r\n");
out.write("\t\t\t\t\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t\t\t\t</tr>\r\n");
out.write("\r\n");
out.write("\t\t\t\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t<td height=\"48\" valign=\"top\" bgcolor=\"#FFFFFF\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<td height=\"25\" class=\"scal_content04\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<strong class=\"scal_content04\">选择类型:\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<select name=\"status\" class=\"gen-frame\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option selected value = \"0\">请选择</option>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value = \"1\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t正在处理\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t</option>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value = \"2\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t支付成功\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t</option>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value = \"3\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t支付失败\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t</option>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t</select></strong>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<td height=\"25\" class=\"scal_content04\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<strong class=\"scal_content04\">冲值时间:</strong>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t<td height=\"25\" bgcolor=\"#FFFFFF\" class=\"left_content\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t起始时间:\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t<select name=\"s_year\" class=\"gen-frame\">\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option selected value = \"1700\">请选择</option>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option>\r\n");
out.write("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t2004\r\n");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -