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

📄 manageinstitution_jsp.java

📁 This is a project used to find a corresondin location from place
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.gecb.mcompanion.web.model.*;
import com.gecb.mcompanion.web.db.*;
import java.util.*;

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

 int i=0 ;
  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.Vector _jspx_dependants;

  private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    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 {
      response.setContentType("text/html");
      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;
      _jspx_resourceInjector = (org.apache.jasper.runtime.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");

      out.write("\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
      out.write("    <head>\n");
      out.write("\t<!-- TemplateBeginEditable name=\"doctitle\" -->\n");
      out.write("\t<title>Free Website Templates</title>\n");
      out.write("\t<!-- TemplateEndEditable --><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n");
      out.write("\t<link href=\"file:///C|/Documents%20and%20Settings/User/My%20Documents/project/template133/style.css\" rel=\"stylesheet\" type=\"text/css\" />\n");
      out.write("<style type=\"text/css\">\n");
      out.write("<!--\n");
      out.write("body {\n");
      out.write("\tbackground-color: #44648A;\n");
      out.write("}\n");
      out.write(".style8 {\n");
      out.write("\tfont-family: Georgia, \"Times New Roman\", Times, serif;\n");
      out.write("\tfont-style: italic;\n");
      out.write("\tfont-size: 14px;\n");
      out.write("\tcolor: #33FF00;\n");
      out.write("}\n");
      out.write(".style5 {color: #990000}\n");
      out.write(".style11 {color: #333333}\n");
      out.write(".style13 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; }\n");
      out.write(".style34 {font-size: 9px}\n");
      out.write(".style35 {color: #666666; font-weight: bold; }\n");
      out.write(".style36 {font-size: 9px; font-weight: bold; }\n");
      out.write(".style37 {\n");
      out.write("\tcolor: #000000;\n");
      out.write("\tfont-weight: bold;\n");
      out.write("}\n");
      out.write("-->\n");
      out.write("</style>\n");
      out.write("<!-- TemplateBeginEditable name=\"head\" --><!-- TemplateEndEditable -->\n");
      out.write("</head>\n");
      out.write("<script language=\"javascript\">\n");
      out.write("function searchInstitution() {\n");
      out.write("    alert(\"..\");\n");
      out.write("    document.institutionForm.submit();\n");
      out.write("}\n");
      out.write("\n");
      out.write("function deleteInstitution(value){\n");
      out.write("    var url= \"delete.jsp?destPage=manageinstitution.jsp\";\n");
      out.write("    url += \"&table=institution\";\n");
      out.write("    url += \"&property=institution_id\";\n");
      out.write("    url += \"&value=\"+value;\n");
      out.write("    \n");
      out.write("    \n");
      out.write("    \n");
      out.write("    if(confirm(\"Are You Sure You Want to Delete this?\")){\n");
      out.write("        window.location = url;\n");
      out.write("    }else{\n");
      out.write("        return;\n");
      out.write("    }\n");
      out.write("}\n");
      out.write("function manageInstitution(value,i){\n");
      out.write("    var url= \"manageinstdb.jsp?destPage=manageinstitution.jsp\";\n");
      out.write("    url += \"&table=institution\";\n");
      out.write("    url += \"&property=institution_id\";\n");
      out.write("    url += \"&value1=\"+value;\n");
      out.write("    url +=\"&value2=\"+i;\n");
      out.write("  \n");
      out.write("    if(confirm(\"Are You Sure You Want to Delete this?\")){\n");
      out.write("        window.location = url;\n");
      out.write("    }else{\n");
      out.write("        return;\n");
      out.write("    }\n");
      out.write("}\n");
      out.write("</script>\n");
      out.write("<body>\n");
          	ArrayList institutions=new ArrayList();                DBManager manager=new DBManager();                 String[] returnValues = new String[]{"institution_id", "address_id", "name", "code", "affliation","courses","facilities"};                institutions = manager.findListByLikeCondition("institution", returnValues, new String[]{"name"}, new Object[]{request.getParameter("place")});                
      out.write("\n");
      out.write("<form name=\"institutionForm\" method=\"post\" action=\"manageinstitution.jsp\">\n");
      out.write("  <div id=\"wrapper\">\n");
      out.write("      <div id=\"wrapper-i\">\n");
      out.write("<img src=\"file:///C|/Documents%20and%20Settings/User/My%20Documents/project/template133/images/headernew1.JPG\" alt=\"\" name=\"smitha\" width=\"100%\" height=\"193\" hspace=\"0\" vspace=\"0\" id=\"smitha\" />\n");
      out.write("<!-- end header -->\n");
      out.write("<!-- end spacer -->\n");
      out.write("<div id=\"body\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n");
      out.write("  <p><img src=\"images/toppic.gif\" width=\"371\" height=\"70\" />  </p>\n");
      out.write("  <table width=\"570\" border=\"0\">\n");
      out.write("    <tr>\n");
      out.write("      <td width=\"2\">&nbsp;</td>\n");
      out.write("      <td colspan=\"2\" class=\"producthdr\">&nbsp;</td>\n");
      out.write("      <td width=\"2\">&nbsp;</td>\n");
      out.write("    </tr>\n");
      out.write("    <tr>\n");
      out.write("      <td>&nbsp;</td>\n");
      out.write("      <td colspan=\"2\" class=\"producthdr\">Welcome to MCompanion Administration Tool </td>\n");
      out.write("      <td>&nbsp;</td>\n");
      out.write("    </tr>\n");
      out.write("    <tr>\n");
      out.write("      <td>&nbsp;</td>\n");
      out.write("      <td colspan=\"2\" class=\"sidelinks style6\">&nbsp;</td>\n");
      out.write("      <td>&nbsp;</td>\n");
      out.write("    </tr>\n");
      out.write("    <tr align=\"left\" valign=\"middle\">\n");
      out.write("      <td>&nbsp;</td>\n");
      out.write("      <td width=\"15\"><img src=\"../../Images/images/brick/letters/l.gif\" width=\"13\" height=\"13\" /></td>\n");
      out.write("      <td width=\"596\"><span class=\"style35\">Manage Institutions </span></td>\n");
      out.write("      <td>&nbsp;</td>\n");
      out.write("    </tr>\n");
      out.write("    <tr>\n");
      out.write("      <td>&nbsp;</td>\n");
      out.write("      <td colspan=\"2\"><hr width=\"100%\" size=\"1\" noshade=\"noshade\" class=\"style5\" /></td>\n");
      out.write("      <td>&nbsp;</td>\n");
      out.write("    </tr>\n");
      out.write("    <tr>\n");
      out.write("      <td>&nbsp;</td>\n");
      out.write("      <td colspan=\"2\"><span class=\"sidetable\"><a href=\"addInstitution.jsp\">Add New</a></span> <span class=\"style5\">|</span> <span class=\"sidetable style8\">Search</span> </td>\n");
      out.write("      <td>&nbsp;</td>\n");
      out.write("    </tr>\n");
      out.write("    <tr>\n");
      out.write("      <td>&nbsp;</td>\n");

⌨️ 快捷键说明

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