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

📄 project1_0002ejsp_jsp.java

📁 经典的“招标信息管理系统”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 project1_0002ejsp_jsp extends HttpJspBase {


    static {
    }
    public project1_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="/project1.jsp";from=(0,48);to=(1,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/project1.jsp";from=(1,31);to=(2,0)]
                out.write("\r\n");

            // end
            // HTML // begin [file="/project1.jsp";from=(2,49);to=(3,0)]
                out.write("\r\n");

            // end
            // begin [file="/project1.jsp";from=(3,2);to=(18,0)]
                
                  long page1=1;
                  if(request.getParameter("page1")!=null)
                    page1 = Long.parseLong(request.getParameter("page1").trim())  ;
                
                  long count=0;
                  long pagemax=2;
                  ProjectManager projectm=new ProjectManager();
                  Vector list=new Vector();
                 list=projectm.getProjectList(page1,pagemax);
                 projectm.freeCon();
                 count=projectm.getProjectListCount() ;
                 Basic basic=new Basic();
                 //out.println("count="+count);
                
            // end
            // HTML // begin [file="/project1.jsp";from=(18,2);to=(77,16)]
                out.write("\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>项目列表</b></td>\r\n                      </tr>\r\n                      <tr bgcolor=\"F6F2E6\">\r\n                        <td height=\"20\" align=\"center\" width=\"89\"><font color=\"#CC0033\">\r\n                          项目名称</font></td>\r\n                        <td align=\"center\" width=\"96\"><font color=\"#CC0033\">项目时间</font></td>\r\n                        <td align=\"center\" width=\"130\"><font color=\"#CC0033\">项目负责单位</font></td>\r\n                        <td align=\"center\" width=\"102\"><font color=\"#CC0033\">项目总造价</font></td>\r\n                        <td align=\"center\" width=\"325\"><font color=\"#CC0033\">项目介绍</font></td>\r\n                      </tr>\r\n                ");

            // end
            // begin [file="/project1.jsp";from=(77,18);to=(84,18)]
                
                                        if(list!=null)
                                        {
                                          for(int i=0;i<list.size();i++)
                                          {
                                            Project pj=new Project();
                                            pj=(Project)list.elementAt(i);
                                  
            // end
            // HTML // begin [file="/project1.jsp";from=(84,20);to=(87,56)]
                out.write("\r\n                      <tr bgcolor=\"F6F2E6\" align=\"center\">\r\n                        <td height=\"25\" width=\"89\">\r\n                          <p><a href=\"project2.jsp?pjid=");

            // end
            // begin [file="/project1.jsp";from=(87,59);to=(87,77)]
                out.print(pj.getProject_id());
            // end
            // HTML // begin [file="/project1.jsp";from=(87,79);to=(87,81)]
                out.write("\">");

            // end
            // begin [file="/project1.jsp";from=(87,84);to=(87,104)]
                out.print(pj.getProject_name());
            // end
            // HTML // begin [file="/project1.jsp";from=(87,106);to=(89,39)]
                out.write("</a></p>\r\n                        </td>\r\n                        <td width=\"96\">");

            // end
            // begin [file="/project1.jsp";from=(89,41);to=(89,105)]
                if(pj.getProject_time()!=null)out.println(pj.getProject_time());
            // end
            // HTML // begin [file="/project1.jsp";from=(89,107);to=(91,40)]
                out.write("\r\n</td>\r\n                        <td width=\"130\">");

            // end
            // begin [file="/project1.jsp";from=(91,42);to=(91,112)]
                if(pj.getProject_company()!=null)out.println(pj.getProject_company());
            // end
            // HTML // begin [file="/project1.jsp";from=(91,114);to=(92,39)]
                out.write("</td>\r\n                       <td width=\"102\">");

            // end
            // begin [file="/project1.jsp";from=(92,41);to=(92,105)]
                if(pj.getProject_cost()!=null)out.println(pj.getProject_cost());
            // end
            // HTML // begin [file="/project1.jsp";from=(92,107);to=(95,42)]
                out.write("</td>\r\n</center>\r\n                        <td width=\"325\">\r\n                          <p align=\"left\">");

            // end
            // begin [file="/project1.jsp";from=(95,44);to=(95,128)]
                if(pj.getProject_content()!=null)out.println(basic.cnvtBr(pj.getProject_content()));
            // end
            // HTML // begin [file="/project1.jsp";from=(95,130);to=(98,12)]
                out.write("</td>\r\n                      </tr>\r\n<center>\r\n            ");

            // end
            // begin [file="/project1.jsp";from=(98,14);to=(100,0)]
                 }}
                basic.freeCon();
            // end
            // HTML // begin [file="/project1.jsp";from=(100,2);to=(132,0)]
                out.write("\r\n\r\n                    </table>\r\n                </td>\r\n              </tr>\r\n            </table>\r\n          </td>\r\n        </tr>\r\n      </table>\r\n    </td>\r\n  </tr>\r\n  <tr align=\"right\">\r\n    <td colspan=\"2\"><a href=\"#\" onClick=\"MM_openBrWindow('send_pop.shtml','','width=300,height=250')\"></a><br>\r\n      <br>\r\n       </td>\r\n  </tr>\r\n</table>\r\n <form  name=\"form1\" method=\"POST\" action=\"search1.jsp\" onsubmit=\"return checknull()\">\r\n  关键字:\r\n  <input type=\"text\" name=\"keys\">\r\n  <select name=\"searchid\">\r\n  <option selected value=0>所有</option>\r\n    <option value=1>项目</option>\r\n    <option value=2>厂商</option>\r\n    <option value=3>产品</option>\r\n  </select>\r\n  <input type=\"submit\" name=\"submit\" value=\"搜索\">\r\n</form>\r\n<table width=\"774\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n                  <form  method=\"post\" action=\"project1.jsp\">\r\n  <tr align=\"center\" valign=\"top\">\r\n    <td height=\"20\"><a href=\"project1.jsp?page1=1\">首 页</a>\r\n");

            // end
            // begin [file="/project1.jsp";from=(132,2);to=(132,15)]
                if(page1>=2){
            // end
            // HTML // begin [file="/project1.jsp";from=(132,17);to=(133,28)]
                out.write("\r\n<a href=\"project1.jsp?page1=");

            // end
            // begin [file="/project1.jsp";from=(133,31);to=(133,38)]
                out.print(page1-1);
            // end
            // HTML // begin [file="/project1.jsp";from=(133,40);to=(134,5)]
                out.write("\">上一页<img src=\"images/aleft.gif\" width=\"18\" height=\"16\" border=\"0\" align=\"absbottom\"></a>\r\n     ");

            // end
            // begin [file="/project1.jsp";from=(134,7);to=(134,13)]
                }else{
            // end
            // HTML // begin [file="/project1.jsp";from=(134,15);to=(135,5)]
                out.write("上一页<img src=\"images/aleft.gif\" width=\"18\" height=\"16\" border=\"0\" align=\"absbottom\">\r\n     ");

            // end
            // begin [file="/project1.jsp";from=(135,7);to=(135,8)]
                }
            // end
            // HTML // begin [file="/project1.jsp";from=(135,10);to=(136,54)]
                out.write("\r\n     第<input type=\"text\" name=\"page1\" size=\"2\" value=\"");

            // end
            // begin [file="/project1.jsp";from=(136,57);to=(136,62)]
                out.print(page1);
            // end
            // HTML // begin [file="/project1.jsp";from=(136,64);to=(137,0)]
                out.write("\" onkeydown=\"if(event.keyCode==13)this.form.submit()\">页\r\n");

            // end
            // begin [file="/project1.jsp";from=(137,2);to=(137,30)]
                if(page1<(count/pagemax+1)){
            // end
            // HTML // begin [file="/project1.jsp";from=(137,32);to=(137,60)]
                out.write("<a href=\"project1.jsp?page1=");

            // end
            // begin [file="/project1.jsp";from=(137,63);to=(137,72)]
                out.print((page1+1));
            // end
            // HTML // begin [file="/project1.jsp";from=(137,74);to=(140,0)]
                out.write("\">\r\n<img src=\"images/aright.gif\" width=\"18\" height=\"16\" border=\"0\" align=\"absbottom\">\r\n下一页</a>\r\n");

            // end
            // begin [file="/project1.jsp";from=(140,2);to=(140,8)]
                }else{
            // end
            // HTML // begin [file="/project1.jsp";from=(140,10);to=(141,0)]
                out.write("<img src=\"images/aright.gif\" width=\"18\" height=\"16\" border=\"0\" align=\"absbottom\">下一页\r\n");

            // end
            // begin [file="/project1.jsp";from=(141,2);to=(141,3)]
                }
            // end
            // HTML // begin [file="/project1.jsp";from=(141,5);to=(142,28)]
                out.write("\r\n<a href=\"project1.jsp?page1=");

            // end
            // begin [file="/project1.jsp";from=(142,31);to=(142,46)]
                out.print(count/pagemax+1);
            // end
            // HTML // begin [file="/project1.jsp";from=(142,48);to=(150,0)]
                out.write("\">最后一页</a></td>\r\n  </tr>\r\n  </form>\r\n</table>\r\n<p>&nbsp; </p>\r\n</center>\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 + -