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

📄 index_005fcommon_jsp.java

📁 JSP移动商品管理平台源代码.........
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.io.*;
import java.net.*;
import java.util.Date;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Hashtable;
import java.util.ArrayList;
import java.util.Iterator;

public final class index_005fcommon_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List 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;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=gb2312");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      imis_main.TreeBulletin Bull = null;
      synchronized (pageContext) {
        Bull = (imis_main.TreeBulletin) pageContext.getAttribute("Bull", PageContext.PAGE_SCOPE);
        if (Bull == null){
          try {
            Bull = (imis_main.TreeBulletin) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "imis_main.TreeBulletin");
          } catch (ClassNotFoundException exc) {
            throw new InstantiationException(exc.getMessage());
          } catch (Exception exc) {
            throw new ServletException("Cannot create bean of class " + "imis_main.TreeBulletin", exc);
          }
          pageContext.setAttribute("Bull", Bull, PageContext.PAGE_SCOPE);
        }
      }
      out.write("\r\n");
      imis_main.upload.Fileupload upload = null;
      synchronized (pageContext) {
        upload = (imis_main.upload.Fileupload) pageContext.getAttribute("upload", PageContext.PAGE_SCOPE);
        if (upload == null){
          try {
            upload = (imis_main.upload.Fileupload) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "imis_main.upload.Fileupload");
          } catch (ClassNotFoundException exc) {
            throw new InstantiationException(exc.getMessage());
          } catch (Exception exc) {
            throw new ServletException("Cannot create bean of class " + "imis_main.upload.Fileupload", exc);
          }
          pageContext.setAttribute("upload", upload, PageContext.PAGE_SCOPE);
        }
      }
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\" \"http://www.w3.org/TR/html4/frameset.dtd\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<title>安徽移动综合管理信息系统 v1.0");
      out.write("</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n.ziti {\r\n\tfont-family: \"宋体\";\r\n\tfont-size:  12px;\r\n\tcolor: #3399FF;\r\n}\r\na:link {\r\n\tcolor: #3399FF;\r\n\ttext-decoration: none;\r\n}\r\na:visited {\r\n\tcolor: #3399FF;\r\n\ttext-decoration: none;\r\n}\r\na:hover {\r\n\tcolor: #FF99CC;\r\n\ttext-decoration: none;\r\n}\r\na:active {\r\n\ttext-decoration: none;\r\n}\r\n.left {\r\n\tfont-family: \"黑体\";\r\n\tfont-size: 11px;\r\n\tcolor: #0066CC;\r\n\tfont-weight: lighter;\r\n\tline-height: normal;\r\n}\r\n.style4 {font-family: \"黑体\"; font-size: 12; color: #0066CC; font-weight: lighter; line-height: normal; }\r\n.style5 {font-size: 12px}\r\n.style7 {font-family: \"宋体\"}\r\n.style8 {font-family: \"宋体\"; font-size: 12px; color: #0066CC; font-weight: lighter; line-height: normal; }\r\n.style9 {font-family: \"宋体\"; font-size: 12px; }\r\nbody {\r\n\tmargin-top: 4px;\r\n}\r\n-->\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<table width=\"934\" height=\"65\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n  ");
      out.write("<!--DWLayoutTable-->\r\n  ");
      out.write("<tr>\r\n\t");
      out.write("<td height=\"65\" width=\"934\">\r\n\t");
      out.write("<img border=\"0\" src=\"images/logomain.gif\" width=\"934\" height=\"65\">");
      out.write("</td>\r\n  ");
      out.write("</tr>\r\n");
      out.write("</table> \r\n");
      out.write("<table  width=\"934\"  border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n  ");
      out.write("<tr>\r\n  ");
String strshow=request.getParameter("show");
if(strshow==null){strshow="1";}
int show=Integer.parseInt(strshow);
if (show==1){
      out.write("\r\n   \r\n\t   ");
      out.write("<td width=\"85\"  valign=\"top\" align=\"center\" height=\"500\">");
      out.write("<!--left-->\r\n       ");
      out.write("<table width=\"85\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n          ");
      out.write("<tr>\r\n            ");
      out.write("<td height=\"8\" colspan=\"2\">");
      out.write("</td>\r\n          ");
      out.write("</tr>\r\n          ");
      out.write("<tr>\r\n            ");
      out.write("<td width=\"30\" height=\"44\" align=\"right\" valign=\"middle\" background=\"images/back.jpg\">");
      out.write("<a href=\"imis_comm.jsp?TMenu_ID=2\"> ");
      out.write("<img src=\"images/officedevice.jpg\" border=\"0\" >");
      out.write("</a>");
      out.write("</td>\r\n            ");
      out.write("<td align=\"left\" valign=\"middle\" background=\"images/back.jpg\" class=\"left style5 style7\">");
      out.write("<a href=\"imis_comm.jsp?TMenu_ID=2\">低值易耗");
      out.write("<br>");
      out.write("</a>");
      out.write("</td>\r\n          ");
      out.write("</tr>\r\n          ");
      out.write("<tr>\r\n            ");
      out.write("<td height=\"44\" align=\"right\" valign=\"middle\" background=\"images/back.jpg\">");
      out.write("<a href=\"imis_comm.jsp?TMenu_ID=3\">");
      out.write("<img src=\"images/freed.jpg\" width=\"25\" height=\"25\" border=\"0\"> ");
      out.write("</a>");
      out.write("</td>\r\n            ");
      out.write("<td height=\"44\" align=\"left\" valign=\"middle\" background=\"images/back.jpg\" class=\"style4 style5 style7\">");
      out.write("<a href=\"imis_comm.jsp?TMenu_ID=3\">生产用电");
      out.write("<br>");
      out.write("</a>\r\n            ");
      out.write("</td>\r\n          ");
      out.write("</tr>\r\n          ");
      out.write("<tr>\r\n            ");
      out.write("<td height=\"44\" align=\"right\" valign=\"middle\" background=\"images/back.jpg\">");
      out.write("<a href=\"imis_comm.jsp?TMenu_ID=4\"> ");
      out.write("<img src=\"images/Office.jpg\" width=\"25\" height=\"25\" border=\"0\">");
      out.write("</a>");
      out.write("</td>\r\n            ");
      out.write("<td height=\"44\" align=\"left\" valign=\"middle\" background=\"images/back.jpg\" class=\"style4 style5 style7\">");
      out.write("<a href=\"imis_comm.jsp?TMenu_ID=4\">土地房屋");
      out.write("<br>");
      out.write("</a>\r\n            ");
      out.write("</td>\r\n          ");
      out.write("</tr>\r\n          ");
      out.write("<tr>\r\n            ");
      out.write("<td height=\"44\" align=\"right\" valign=\"middle\" background=\"images/back.jpg\">");
      out.write("<a href=\"imis_comm.jsp?TMenu_ID=5\"> ");
      out.write("<img src=\"images/Document.jpg\" width=\"25\" height=\"25\" border=\"0\">");
      out.write("</a>\r\n           ");
      out.write("</td>\r\n            ");
      out.write("<td height=\"44\" align=\"left\" valign=\"middle\" background=\"images/back.jpg\" class=\"style8\">");
      out.write("<a href=\"imis_comm.jsp?TMenu_ID=5\">综合查询");
      out.write("<br>");
      out.write("</a>\r\n            ");
      out.write("</td>\r\n          ");
      out.write("</tr>\r\n          ");
      out.write("<tr>\r\n            ");
      out.write("<td height=\"44\" align=\"right\" valign=\"middle\" background=\"images/back.jpg\">");
      out.write("<span class=\"style1\"> ");
      out.write("<a href=\"imis_comm.jsp?TMenu_ID=12\">");
      out.write("<img src=\"images/systeminf.jpg\" width=\"25\" height=\"25\" border=\"0\">");
      out.write("</a>");
      out.write("</td>\r\n            ");
      out.write("<td height=\"44\" align=\"left\" valign=\"middle\" background=\"images/back.jpg\" class=\"style8\">");
      out.write("<a href=\"imis_comm.jsp?TMenu_ID=6\">系统管理");
      out.write("</a>");
      out.write("</td>\r\n          ");
      out.write("</tr>\r\n        ");
      out.write("</table>\r\n        ");
      out.write("<!--left-->");
      out.write("</td>\r\n\t\t");
      out.write("<!--left-->\r\n\t\t");
      out.write("<td width=\"10\">");
      out.write("<a href=\"index_common.jsp?show=0\">");
      out.write("<img src=\"images/left-nor.bmp\" border=\"0\">");
      out.write("</a>");
      out.write("</td>\r\n\t\t");
}else{
      out.write("\r\n\t\t");
      out.write("<td width=\"33\">&nbsp;");
      out.write("</td>\r\n\t\t");
      out.write("<td width=\"10\">");
      out.write("<a href=\"index_common.jsp?show=1\">");
      out.write("<img src=\"images/right-nor.bmp\" border=\"0\">");
      out.write("</a>");
      out.write("</td>\r\n\t\t");
}
      out.write("\r\n\t");
      out.write("<td valign=\"top\" align=\"left\" width=\"700\"  >\r\n        ");
      out.write("<table  >\r\n\t\t\r\n    ");
      out.write("<!--公告部分--> \r\n       \r\n        ");
 
               String subject=null;
       	       String person=null;
       	       String content=null;
       	       String adddate=null;
               String newsid=null;
               int i=1;
               String id=null;
               ArrayList list = Bull.getMenuTree() ;
       	  Iterator itr = list.iterator();
  
      out.write("\r\n\t");
      out.write("<tr>\r\n        ");
      out.write("<td valign=\"top\" >\r\n\t\t  ");
      out.write("<table width=\"640\" height=\"536\" border=\"1\" bordercolor=\"#99D8D8\">\r\n         ");
      out.write("<tr>\r\n            ");
      out.write("<td valign=\"top\" >\t\t\t");
      out.write("<table  width=\"640\" height=\"280\" border=\"0\" align=\"center\">\r\n              ");
      out.write("<tr valign=\"top\" >\r\n                ");
      out.write("<td height=\"30\"colspan=\"4\" valign=\"top\">");
      out.write("<img src=\"images/tongzhi.jpg\" width=\"567\" height=\"17\">");
      out.write("</td>\r\n              ");
      out.write("</tr>\r\n              ");
 if(itr.hasNext()){
	  	 
	  	  Hashtable ht = (Hashtable) itr.next(); 
	  	 newsid  =ht.get("newsid").toString();
	  	 id=newsid;
	  	 subject   =ht.get("subject").toString(); 
	  	 adddate   =ht.get("adddate").toString();    	        	
	  	 person    =ht.get("person").toString(); 
                 content   =ht.get("content").toString(); 
	
      out.write("\r\n              ");
      out.write("<tr class=\"ziti\" >\r\n                ");
      out.write("<th width=\"10\" align=\"center\">&nbsp;");
      out.write("</th>\r\n                ");
      out.write("<th width=\"290\" align=\"center\"  class=\"style9\" >公告主题");
      out.write("</th>\r\n                ");
      out.write("<th width=\"100\" align=\"center\"  class=\"style9\" >公布人");
      out.write("</th>\r\n                ");
      out.write("<th width=\"200\" align=\"center\"  class=\"style9\" >公布时间");
      out.write("</th>\r\n              ");
      out.write("</tr>\r\n              ");
      out.write("<tr class=\"ziti\" bgcolor=\"#f7f9fd\">\r\n                ");
      out.write("<td  width=\"10\" align=\"center\" >");
      out.write("<img src=\"images/new.gif\" width=\"28\" height=\"11\" align=\"middle\"> ");
      out.write("</td>\r\n                ");
      out.write("<td align=\"left\" width=\"290\">");
      out.write("<a href=\"imis_main/information.jsp?id=");
      out.print(id);
      out.write("\" target=\"_blank\"   class=\"style9\" > ");
      out.print(subject);
      out.write("</a>");
      out.write("</td>\r\n                ");
      out.write("<td width=\"100\"  height=\"20\" align=\"center\"  class=\"style9\" >");
      out.print(person);
      out.write("</td>\r\n                ");
      out.write("<td width=\"200\"  height=\"20\" align=\"center\"  class=\"style9\" >");
      out.print(adddate);
      out.write("</td>\r\n              ");
      out.write("</tr>\r\n              ");
}
			 while(itr.hasNext()&&i<17){i=i+1; 
			Hashtable ht = (Hashtable) itr.next(); 
			newsid  =ht.get("newsid").toString(); id=newsid;
			subject   =ht.get("subject").toString(); 
			adddate   =ht.get("adddate").toString();    	        	
			person    =ht.get("person").toString(); 
                        content   =ht.get("content").toString();
                        if (i%2!=0){
      out.write("\r\n              ");
      out.write("<tr class=\"ziti\" bgcolor=\"#f7f9fd\">\r\n                ");
}
             else {
      out.write("\r\n              ");
      out.write("<tr class=\"ziti\" bgcolor=\"#FFFFFF\">\r\n                ");
}
      out.write("\r\n                ");
if (i<4){
      out.write("\r\n                ");
      out.write("<td  width=\"30\" align=\"center\" >");
      out.write("<img src=\"images/new.gif\" width=\"28\" height=\"11\" align=\"middle\"> ");
      out.write("</td>\r\n                ");
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -