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

📄 _updatecollege.java

📁 教师办公管理系统
💻 JAVA
字号:
  /*@lineinfo:filename=/updateCollege.jsp*/
  /*@lineinfo:generated-code*/

import oracle.jsp.runtime.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import to.model.*;
import to.model.Login.*;


public class _updateCollege extends com.orionserver.http.OrionHttpJspPage {

  public final String _globalsClassName = null;

  // ** Begin Declarations


  // ** End Declarations

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

    response.setContentType( "text/html;charset=GBK");
    /* set up the intrinsic variables using the pageContext goober:
    ** session = HttpSession
    ** application = ServletContext
    ** out = JspWriter
    ** page = this
    ** config = ServletConfig
    ** all session/app beans declared in globals.jsa
    */
    PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
    // Note: this is not emitted if the session directive == false
    HttpSession session = pageContext.getSession();
    if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
      pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);
      JspFactory.getDefaultFactory().releasePageContext(pageContext);
      return;
}
    int __jsp_tag_starteval;
    ServletContext application = pageContext.getServletContext();
    JspWriter out = pageContext.getOut();
    _updateCollege page = this;
    ServletConfig config = pageContext.getServletConfig();

    try {
      // global beans
      // end global beans


      out.write(__oracle_jsp_text[0]);
      out.write(__oracle_jsp_text[1]);
      out.write(__oracle_jsp_text[2]);
      out.write(__oracle_jsp_text[3]);
      out.write(__oracle_jsp_text[4]);
      out.write(__oracle_jsp_text[5]);
      /*@lineinfo:user-code*//*@lineinfo:21^10*/                      loginItem li=(loginItem)session.getAttribute("user");                if(li==null)                {                  response.sendRedirect("OfficeLogin.jsp");                }                if(!(li.getRoleName().equals("系统管理员")))                {                  response.sendRedirect("Office.jsp");                }              
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[6]);
      /*@lineinfo:user-code*//*@lineinfo:43^9*/                      kjc_College kc=(kjc_College)request.getAttribute("kc");                System.out.println(kc.getPrincipal());              
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[7]);
      /*@lineinfo:user-code*//*@lineinfo:51^56*/      out.print(kc.getCollegeID());
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[8]);
      /*@lineinfo:user-code*//*@lineinfo:59^58*/      out.print(kc.getCollegeName());
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[9]);
      /*@lineinfo:user-code*//*@lineinfo:67^56*/      out.print(kc.getOfficeTel());
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[10]);
      /*@lineinfo:user-code*//*@lineinfo:76^15*/                            ResultSet rs=null;                      CollegeBean cb=new CollegeBean();                      rs=cb.getPeople("");                      while(rs.next())                      {                        int PeopleID=rs.getInt("PeopleID");                        String PeopleName=rs.getString("PeopleName");                        if(PeopleID==Integer.parseInt(kc.getPrincipal()))                        {                          
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[11]);
      /*@lineinfo:user-code*//*@lineinfo:87^38*/      out.print(PeopleID);
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[12]);
      /*@lineinfo:user-code*//*@lineinfo:87^73*/      out.print(PeopleName);
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[13]);
      /*@lineinfo:user-code*//*@lineinfo:88^21*/                              }                        else                        {                          
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[14]);
      /*@lineinfo:user-code*//*@lineinfo:93^38*/      out.print(PeopleID);
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[15]);
      /*@lineinfo:user-code*//*@lineinfo:93^53*/      out.print(PeopleName);
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[16]);
      /*@lineinfo:user-code*//*@lineinfo:94^21*/                              }                      }                    
      /*@lineinfo:generated-code*/
      out.write(__oracle_jsp_text[17]);


    }
    catch( Throwable e) {
      try {
        if (out != null) out.clear();
      }
      catch( Exception clearException) {
      }
      pageContext.handlePageException( e);
    }
    finally {
      OracleJspRuntime.extraHandlePCFinally(pageContext,false);
      JspFactory.getDefaultFactory().releasePageContext(pageContext);
    }

  }
  private static final char __oracle_jsp_text[][]=new char[18][];
  static {
    try {
    __oracle_jsp_text[0] = 
    "\n".toCharArray();
    __oracle_jsp_text[1] = 
    "\n".toCharArray();
    __oracle_jsp_text[2] = 
    "\n".toCharArray();
    __oracle_jsp_text[3] = 
    "\n".toCharArray();
    __oracle_jsp_text[4] = 
    "\n".toCharArray();
    __oracle_jsp_text[5] = 
    "\n<html>\n  <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=GBK\">\n    <title>学院修改</title>\n    <style type=\"text/css\">\n    table{font-size:13px}\n    </style>\n  </head>\n  <body>\n    <form action=\"EditSaveCollegeAction.do\" method=\"get\">\n      <table cellspacing=\"3\" cellpadding=\"2\" border=\"0\" width=\"800\" align=\"center\" >\n        <tr>\n          <td colspan=\"4\"></td>\n        </tr>\n         ".toCharArray();
    __oracle_jsp_text[6] = 
    "\n        <tr>\n          <td colspan=\"4\" height=\"1\">\n            <hr/>\n          </td>\n        </tr>\n        <tr bgcolor=\"#006699\">\n          <th colspan=\"4\" align=\"center\"><font color=\"White\">修改学院资料</font></th>\n        </tr>\n        <tr>\n          <th colspan=\"4\" align=\"center\" height=\"20\"></th>\n        </tr>\n        ".toCharArray();
    __oracle_jsp_text[7] = 
    "\n        <tr>\n          <td width=\"165\">&nbsp;</td>\n          <td align=\"center\" width=\"239\">学院编号:</td>\n          <td width=\"328\">\n            <input type=\"text\" name=\"CollegeID\" value=\"".toCharArray();
    __oracle_jsp_text[8] = 
    "\" readonly=\"readonly\"/>\n          </td>\n          <td width=\"53\">&nbsp;</td>\n        </tr>\n        <tr>\n          <td width=\"165\">&nbsp;</td>\n          <td align=\"center\" width=\"239\">学院名称:</td>\n          <td width=\"328\">\n            <input type=\"text\" name=\"CollegeName\" value=\"".toCharArray();
    __oracle_jsp_text[9] = 
    "\"/>\n          </td>\n          <td width=\"53\">&nbsp;</td>\n        </tr>\n        <tr>\n          <td width=\"165\">&nbsp;</td>\n          <td align=\"center\" width=\"239\">联系电话:</td>\n          <td width=\"328\">\n            <input type=\"text\" name=\"OfficeTel\" value=\"".toCharArray();
    __oracle_jsp_text[10] = 
    "\"/>\n          </td>\n          <td width=\"53\">&nbsp;</td>\n        </tr>\n        <tr>\n          <td width=\"165\">&nbsp;</td>\n          <td align=\"center\" width=\"239\">负 责 人:</td>\n          <td width=\"328\">\n            <select name=\"Principal\">\n              ".toCharArray();
    __oracle_jsp_text[11] = 
    "\n                      <option value=\"".toCharArray();
    __oracle_jsp_text[12] = 
    "\" selected=\"selected\">".toCharArray();
    __oracle_jsp_text[13] = 
    "</option>\n                    ".toCharArray();
    __oracle_jsp_text[14] = 
    "\n                      <option value=\"".toCharArray();
    __oracle_jsp_text[15] = 
    "\">".toCharArray();
    __oracle_jsp_text[16] = 
    "</option>\n                    ".toCharArray();
    __oracle_jsp_text[17] = 
    "\n            </select>\n          </td>\n          <td width=\"53\">&nbsp;</td>\n        </tr>\n        <tr>\n          <td width=\"165\">&nbsp;</td>\n          <td width=\"239\">&nbsp;</td>\n          <td width=\"328\">&nbsp;\n          </td>\n          <td width=\"53\">&nbsp;</td>\n        </tr>\n        <tr>\n          <td width=\"165\">&nbsp;</td>\n          <td width=\"239\" align=\"right\">\n            <input type=\"submit\" value=\"提交\"/>\n          </td>\n          <td width=\"328\">\n            <input type=\"reset\" value=\"重置\"/>\n          </td>\n          <td width=\"53\">&nbsp;</td>\n        </tr>\n        <tr>\n          <td width=\"165\" colspan=\"4\">&nbsp;</td>\n         \n        </tr>\n      </table>\n    </form>\n  </body>\n</html>\n\n".toCharArray();
    }
    catch (Throwable th) {
      System.err.println(th);
    }
}
}

⌨️ 快捷键说明

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