📄 product3_0002ejsp_jsp.java
字号:
import java.util.*;
import zhaobiao.db.*;
import zhaobiao.data.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class product3_0002ejsp_jsp extends HttpJspBase {
static {
}
public product3_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=GBK");
pageContext = _jspxFactory.getPageContext(this, request, response,
"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
// HTML // begin [file="/product3.jsp";from=(0,48);to=(1,0)]
out.write("\r\n");
// end
// HTML // begin [file="/product3.jsp";from=(1,31);to=(2,0)]
out.write("\r\n");
// end
// HTML // begin [file="/product3.jsp";from=(2,49);to=(3,0)]
out.write("\r\n");
// end
// begin [file="/product3.jsp";from=(3,2);to=(30,0)]
long page1=1;
if(request.getParameter("page1")!=null)
page1 = Long.parseLong(request.getParameter("page1").trim());
long pdid=1;
if(request.getParameter("pdid")!=null)
pdid=Long.parseLong(request.getParameter("pdid").trim());
long pagemax=1;
long count;
ProductManager productm=new ProductManager();
Basic basic=new Basic();
Product pd1=new Product();
Type type=new Type();
count=productm.getProjectListCount(pdid);
pd1=basic.getProduct(pdid);
type=basic.getType(pd1.getType_id());
Set set1=new TreeSet();
set1=productm.getProjectList(page1,pagemax,pdid);
productm.freeCon();
basic.freeCon();
// end
// HTML // begin [file="/product3.jsp";from=(30,2);to=(82,29)]
out.write("\r\n\r\n<html>\r\n<head>\r\n<title>xxx</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\r\n<script language=\"JavaScript\">\r\n<!--\r\nfunction MM_popupMsg(msg) { //v1.0\r\n alert(msg);\r\n}\r\nfunction checknull()\r\n {\r\n\r\n var a=document.form1.keys.value;\r\n if(a==\"\")\r\n {\r\n alert(\"关键字不能为空!\");\r\n return false;\r\n }\r\n else\r\n return true;\r\n }\r\nfunction MM_openBrWindow(theURL,winName,features) { //v2.0\r\n window.open(theURL,winName,features);\r\n}\r\n//-->\r\n</script>\r\n</head>\r\n<body bgcolor=\"#FFFFFF\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\r\n<center>\r\n<table width=\"776\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"103\">\r\n\r\n <tr>\r\n <td height=\"65\"> <a href=\"index.jsp\"><img src=\"images/zhaobiao_01.jpg\" width=\"777\" height=\"89\" align=\"absbottom\" border=\"0\"></a></td>\r\n </tr>\r\n </table>\r\n <a href=\"product1.jsp\">产品信息</a> <a href=\"project1.jsp\">项目信息</a> <a href=\"maker1.jsp\">厂商信息</a><br>\r\n<table width=\"774\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr>\r\n <td colspan=\"2\" align=\"center\">\r\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" align=\"center\">\r\n <tr bgcolor=\"0092B8\">\r\n <td>\r\n <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"#FFFFFF\">\r\n <tr align=\"center\">\r\n <td>\r\n <table width=\"764\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\r\n <tr align=\"center\" bgcolor=\"E1D1B7\">\r\n <td height=\"25\" align=\"center\" colspan=\"13\" width=\"758\"><b>\r\n <a href=\"product1.jsp\">产品信息</a>---\r\n<a href=\"product2.jsp?typeid=");
// end
// begin [file="/product3.jsp";from=(82,32);to=(82,49)]
out.print(type.getType_id());
// end
// HTML // begin [file="/product3.jsp";from=(82,51);to=(82,53)]
out.write("\">");
// end
// begin [file="/product3.jsp";from=(82,56);to=(82,75)]
out.print(type.getType_name());
// end
// HTML // begin [file="/product3.jsp";from=(82,77);to=(83,1)]
out.write("</a>---\r\n ");
// end
// begin [file="/product3.jsp";from=(83,4);to=(83,25)]
out.print(pd1.getProduct_name());
// end
// HTML // begin [file="/product3.jsp";from=(83,27);to=(93,4)]
out.write("相关项目列表</b></td>\r\n </tr>\r\n <tr bgcolor=\"F6F2E6\">\r\n <td height=\"20\" align=\"center\" width=\"107\"><font color=\"#CC0033\">\r\n 项目名称</font></td>\r\n <td align=\"center\" width=\"92\"><font color=\"#CC0033\">项目时间</font></td>\r\n <td align=\"center\" width=\"163\"><font color=\"#CC0033\">项目负责单位</font></td>\r\n <td align=\"center\" width=\"90\"><font color=\"#CC0033\">项目总造价</font></td>\r\n <td align=\"center\" width=\"290\"><font color=\"#CC0033\">项目介绍</font></td>\r\n </tr>\r\n ");
// end
// begin [file="/product3.jsp";from=(93,6);to=(102,0)]
if(set1!=null)
{
Object[] array;
array=set1.toArray();
for(int i=0;i<array.length;i++)
{
Project pj=new Project();
pj=(Project)array[i];
// end
// HTML // begin [file="/product3.jsp";from=(102,2);to=(105,56)]
out.write("\r\n <tr bgcolor=\"F6F2E6\" align=\"center\">\r\n <td height=\"25\" width=\"107\">\r\n <p><a href=\"project4.jsp?pjid=");
// end
// begin [file="/product3.jsp";from=(105,59);to=(105,77)]
out.print(pj.getProject_id());
// end
// HTML // begin [file="/product3.jsp";from=(105,79);to=(105,85)]
out.write("&pdid=");
// end
// begin [file="/product3.jsp";from=(105,88);to=(105,92)]
out.print(pdid);
// end
// HTML // begin [file="/product3.jsp";from=(105,94);to=(106,28)]
out.write("\">\r\n ");
// end
// begin [file="/product3.jsp";from=(106,31);to=(106,51)]
out.print(pj.getProject_name());
// end
// HTML // begin [file="/product3.jsp";from=(106,53);to=(108,39)]
out.write("</a></p>\r\n </td>\r\n <td width=\"92\">");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -