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

📄 其它处监控分中心电话号码_jsp.java

📁 这是一个jsp联合javabean的电话查询系统。
💻 JAVA
字号:
package org.apache.jsp.TelSearch;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.jzgs.telnumber.ec.Util.TelNumValueMap;

public final class 其它处监控分中心电话号码_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(3);
    _jspx_dependants.add("/TelSearch/../include/header.jsp");
    _jspx_dependants.add("/TelSearch/../include/date.jsp");
    _jspx_dependants.add("/TelSearch/../include/footer.jsp");
  }

  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;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=GB2312");
      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('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("<HTML>\r\n");
      out.write("<HEAD>\r\n");
      out.write("<TITLE></TITLE>\r\n");
      out.write("<META content=\"text/html; charset=gb2312\" http-equiv=Content-Type>\r\n");
      out.write("<script language=\"javascript\" src=\"../js/all.js\">\r\n");
      out.write("</script>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write(".style10 {font-size: 14px}\r\n");
      out.write("body {\r\n");
      out.write("\tbackground-image: url();\r\n");
      out.write("}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("<BODY bgColor=#ffffff leftMargin=0 topMargin=5 marginheight=\"5\"\r\n");
      out.write("\tmarginwidth=\"5\">\r\n");
      out.write("<table align=\"center\" border=\"0\" width=\"75%\" height=\"104\"\r\n");
      out.write("\tbgcolor=\"#33FFFF\" cellspacing=\"0\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t  <td width=\"200\" height=\"42\" align=\"right\"><img src=\"/JZGSMIS/jpg/123.jpg\" width=\"200\" height=\"89\"></td>\r\n");
      out.write("      <td width=\"300\" align=\"center\"><img src=\"/JZGSMIS/jpg/news_01.jpg\" width=\"550\" height=\"89\" align=\"middle\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td colspan=\"2\" align=\"left\">\r\n");
      out.write("\t\t<p>        \r\n");
      out.write("\t\t<p><span class=\"style10\"><a class=\"x\" href=\"/JZGSMIS/index.jsp\">首页</a>|<a class=\"x\" href=\"ChaXun1Servlet\">局电话号码</a>|<a class=\"x\"\r\n");
      out.write("\t\t\thref=\"ChaXun2Servlet\"><span class=\"style10\">其它处监控分中心电话号码</span></a>|<a class=\"x\"\r\n");
      out.write("\t\t\thref=\"ChaXun3Servlet\"><span class=\"style10\">其它处领导电话</span></a>|</span><a class=\"x\"\r\n");
      out.write("\t\t\thref=\"ChaXun4Servlet\"><span class=\"style10\">处各科室电话号码</span></a>|<a class=\"x\"\r\n");
      out.write("\t\t\thref=\"ChaXun5Servlet\"><span class=\"style10\">处工作人员电话</span></A></a><span class=\"style10\">\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t  <td colspan=\"2\" align=\"center\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("</body>");
      out.write("\r\n");
      out.write("\r\n");
 String departList = (String)request.getAttribute("DEPAERMENT_SELECT");
   String personList = (String)request.getAttribute("PERSON_LIST");
   if(departList==null)
   departList="";
   if(personList==null)
   personList="";

      out.write("\r\n");
      out.write("  <HTML>\r\n");
      out.write("    <HEAD>\r\n");
      out.write("        <TITLE></TITLE>\r\n");
      out.write("    </HEAD>\r\n");
      out.write("  <script Language=\"JavaScript\">  \r\n");
      out.write("\r\n");
      out.write("\tfunction changeDepartment(){\r\n");
      out.write("\t\t\tform = document.all.search_form;\r\n");
      out.write("\t \t   \tform.operateFlg.value='DEPARTCHANGE';\t \r\n");
      out.write("\t\t   \tform.action='ChaXun2Servlet';\r\n");
      out.write("\t\t   \tform.submit(); \r\n");
      out.write("\t} \r\n");
      out.write("\t\r\n");
      out.write("\t function search_sub(){\r\n");
      out.write("\t      form = document.all.search_form;\r\n");
      out.write("\t \t  form.operateFlg.value='SELECT';\t \r\n");
      out.write("\t\t  form.action='ChaXun2Servlet';\r\n");
      out.write("\t\t  form.submit(); \r\n");
      out.write("                              \r\n");
      out.write("     }\r\n");
      out.write("\r\n");
      out.write("  </script>\r\n");
      out.write("<TABLE border=0 cellPadding=0 cellSpacing=0 width=760 align=\"center\">\r\n");
      out.write("\t<TBODY>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td align=\"left\" height=25>当前位置:<a href=\"../index.jsp\">首页</a> -&gt;\r\n");
      out.write("\t\t\t查询商品</td>\r\n");
      out.write("\t\t\t");
      out.write("\r\n");
      out.write("\r\n");
      org.jzgs.telnumber.ec.Util.Calendarable clock = null;
      synchronized (_jspx_page_context) {
        clock = (org.jzgs.telnumber.ec.Util.Calendarable) _jspx_page_context.getAttribute("clock", PageContext.PAGE_SCOPE);
        if (clock == null){
          clock = new org.jzgs.telnumber.ec.Util.Calendarable();
          _jspx_page_context.setAttribute("clock", clock, PageContext.PAGE_SCOPE);
        }
      }
      out.write("\r\n");
      out.write("<td align=\"right\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"-1\"\r\n");
      out.write("\tcolor=\"Red\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n");
      out.write("\t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
      out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((org.jzgs.telnumber.ec.Util.Calendarable)_jspx_page_context.findAttribute("clock")).getYear())));
      out.write('-');
      out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((org.jzgs.telnumber.ec.Util.Calendarable)_jspx_page_context.findAttribute("clock")).getMonth())));
      out.write('-');
      out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((org.jzgs.telnumber.ec.Util.Calendarable)_jspx_page_context.findAttribute("clock")).getDayOfMonth())));
      out.write("</font>&nbsp; <font size=\"-1\" color=\"Blue\">&nbsp;&nbsp; 当前时间为 ");
      out.write(org.apache.jasper.runtime.JspRuntimeLibrary.toString((((org.jzgs.telnumber.ec.Util.Calendarable)_jspx_page_context.findAttribute("clock")).getTime())));
      out.write("</font></td>\r\n");
      out.write("\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t</TBODY>\r\n");
      out.write("</TABLE>\r\n");
      out.write("\r\n");
      out.write("<table align=\"center\" border=\"0\" width=\"760\" cellspacing=\"0\"\r\n");
      out.write("\tcellpadding=\"0\" height=\"662\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td width=\"589\" height=\"165\" valign=\"top\" background=\"images/bg1.gif\">\r\n");
      out.write("\t\t<table border=\"0\" width=\"750%\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td width=\"\" height=\"20\" colspan=\"3\" bordercolor=\"#000000\" bgcolor=\"#33FFFF\"><font color=\"#000000\">&nbsp;站内搜索 -> 关键字:</font></td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td colspan=\"121\" width=\"\" height=\"0\" bgcolor=\"#FFFFCC\">\r\n");
      out.write("\t\t\t\t<form name=\"search_form\" action=\"\" method=\"post\">\r\n");
      out.write("\t\t\t\t  <p align=\"left\"><strong>其他处监控中心电话</strong></p>\r\n");
      out.write("\t\t\t\t  <p align=\"left\"><br>\r\n");
      out.write("\t\t\t\t  <p align=\"left\"><strong>选择地方</strong>:");
      out.print(departList );
      out.write(" </p>\r\n");
      out.write("\t\t\t\t  <p align=\"left\"><strong>选择人名</strong>:");
      out.print(personList );
      out.write("<br>\r\n");
      out.write("\t\t\t      </p>\r\n");
      out.write("\t\t\t\t   <p>\r\n");
      out.write("\t\t\t        <input type=\"button\" value=\"查询!\" onClick=\"search_sub()\">\r\n");
      out.write("\t\t          </p>\r\n");
      out.write("\t\t\t      <input type=\"hidden\" name=\"operateFlg\" value=\"SELECT\">\r\n");
      out.write("\t\t\t\t</form>\t\t\t  </td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t  <td colspan=\"121\" height=\"136\" bgcolor=\"#FFFFFF\"><table width=\"761\" height=\"122\" border=\"0\">\r\n");
      out.write("                <tr>\r\n");
      out.write("                 <td width=\"40%\" height=\"20\" bgcolor=\"#33FFFF\">&nbsp;<font color=\"#000000\">线路</font></td>\r\n");
      out.write("\t\t\t\t <td width=\"15%\" height=\"20\" bgcolor=\"#00FFFF\">管理处<fontcolor=\"#000000\">&nbsp;</font></td>\r\n");
      out.write("\t\t\t\t <td width=\"15%\" height=\"20\" bgcolor=\"#00FFFF\">内线<font color=\"#000000\">&nbsp;</font></td>\r\n");
      out.write("\t\t\t\t <td width=\"15%\" height=\"20\" bgcolor=\"#00FFFF\">短号码<font color=\"#000000\">&nbsp;</font></td>\r\n");
      out.write("\t\t\t\t <td width=\"15%\" height=\"20\" bgcolor=\"#00FFFF\">外线<font color=\"#000000\">&nbsp;</font></td>\r\n");
      out.write("                </tr>\r\n");
      out.write("               ");
if (request.getAttribute("resultMap") == null) {

			                    
      out.write("\r\n");
      out.write("                <tr>\r\n");
      out.write("                  <td 75%\"\" colspan=5 bgcolor=\"#FFFFAA\" align=center>没有任何信息。</td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                ");
} else {
				TelNumValueMap mapbean = (TelNumValueMap) request.getAttribute("resultMap");
				if (mapbean == null) {
				
      out.write("\r\n");
      out.write("                <tr>\r\n");
      out.write("                  <td colspan=5 bgcolor=\"#FFFFAA\" align=center>还没有任何信息。</td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                ");
} else {
				
      out.write("\r\n");
      out.write("                <tr>\r\n");
      out.write("                <td width=\"40%\" bgcolor=\"#FFFFAA\">");
      out.print(mapbean.getValue("DEPNAME"));
      out.write("</td>\r\n");
      out.write("\t\t\t\t<td width=\"15%\" bgcolor=\"#FFFFAA\">");
      out.print(mapbean.getValue("DEPARTMENT"));
      out.write("</td>\r\n");
      out.write("\t\t\t\t<td width=\"15%\" bgcolor=\"#FFFFAA\">");
      out.print(mapbean.getValue("INTEL"));
      out.write("</td>\r\n");
      out.write("\t\t\t\t<td width=\"15%\" bgcolor=\"#FFFFAA\">");
      out.print(mapbean.getValue("SHORTTEL"));
      out.write("</td>\r\n");
      out.write("\t\t\t\t<td width=\"15%\" bgcolor=\"#FFFFAA\">");
      out.print(mapbean.getValue("OUTTEL"));
      out.write("</td>\r\n");
      out.write("                </tr>\r\n");
      out.write("                ");
}}
				
      out.write("\r\n");
      out.write("              </table></td>\r\n");
      out.write("              ");
      out.write("\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write(".style1 {\r\n");
      out.write("\tcolor: #0033FF;\r\n");
      out.write("\tfont-size: 24px;\r\n");
      out.write("}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("\r\n");
      out.write("<hr align=\"center\" color=\"#C1C1C1\" width=\"760\">\r\n");
      out.write("<table align=\"center\" border=\"0\" width=\"760\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td width=\"100%\" height=\"18\" align=\"center\" bgcolor=\"#FFCC99\">\r\n");
      out.write("\t\t<P class=\"foot style1\">&copy;欢迎光临 监  控  指  挥  分  中  心 .</P>\t  </td>\r\n");
      out.write("\t</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  </tr>\r\n");
      out.write("\t\t</table>\t\t\r\n");
      out.write("      </td>\r\n");
      out.write("\t</tr>\t\r\n");
      out.write("</table>\r\n");
      out.write("  </Html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

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