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

📄 updateuser_jsp.java

📁 java 实现了oa办公系统。java 实现了oa办公系统
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.List;
import java.util.Iterator;
import tool.*;
import entity.Users;

public final class updateuser_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;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=GBK");
      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\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>人力资源管理系统</title>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=GBK\">\r\n");
      out.write("<link href=\"css/css.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("</head>\r\n");
      out.write("<script src=\"Js/js.js\" type=\"\"></script>\r\n");
      out.write("<body>\r\n");
      out.write("<table width=\"100%\"  border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"1\" bordercolorlight=\"#CCCCCC\" bordercolor=\"#FFFFFF\" bordercolordark=\"#FFFFFF\" >\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"22\" colspan=\"2\" align=\"left\" ><strong class=\"text13\">修改人员信息</strong></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <form name=\"userForm\" method=\"post\" action=\"modifyuser.do?action=updateuser\" onSubmit=\"return userValidate();\">\r\n");
      out.write("  ");
 Users u=(Users)request.getAttribute("user");
  	if(u!=null){
  
      out.write("\r\n");
      out.write("  <input type=\"hidden\" name=\"id\" value=\"");
      out.print(u.getId());
      out.write("\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"33%\" height=\"22\" align=\"center\" >人员姓名:</td>\r\n");
      out.write("    <td height=\"22\" align=\"left\" ><input name=\"username\" type=\"text\" class=\"input\" value=\"");
      out.print(u.getUsername());
      out.write("\"></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"33%\" height=\"22\" align=\"center\" >登陆密码:</td>\r\n");
      out.write("    <td height=\"22\" align=\"left\" ><input name=\"password\" type=\"text\" class=\"input\" value=\"");
      out.print(u.getPassword());
      out.write("\"></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"33%\" height=\"22\" align=\"center\" >性&nbsp;&nbsp;&nbsp;&nbsp;别:</td>\r\n");
      out.write("    <td height=\"22\" align=\"left\" ><input name=\"sex\" type=\"radio\" value=\"1\" ");
      out.print(new Byte("1").equals(u.getSex())?"checked":"");
      out.write(">\r\n");
      out.write("      男\r\n");
      out.write("        <input name=\"sex\" type=\"radio\" value=\"0\" ");
      out.print(new Byte("1").equals(u.getSex())?"":"checked");
      out.write(">\r\n");
      out.write("      女</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"33%\" height=\"22\" align=\"center\" >出生日期:</td>\r\n");
      out.write("    <td height=\"22\" align=\"left\" ><input name=\"birthday\" type=\"text\" class=\"input\" value=\"");
      out.print(StringUtil.notNull(DateUtil.parseToString(u.getBirthday(),DateUtil.yyyyMMdd)));
      out.write("\"></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"33%\" height=\"22\" align=\"center\" >是否管理员:</td>\r\n");
      out.write("    <td width=\"67%\" height=\"22\" align=\"left\" ><input name=\"isadminhelp\" type=\"checkbox\" ");
      out.print(new Byte("1").equals(u.getIsadmin())?"checked":"");
      out.write(" onClick=\"javascript:adminChecked();\" value=\"");
      out.print(u.getIsadmin());
      out.write("\"></td>\r\n");
      out.write("\t<input type=\"hidden\"  name=\"isadmin\" value=\"");
      out.print(u.getIsadmin());
      out.write("\">>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"22\" align=\"center\" >人员简介:</td>\r\n");
      out.write("    <td height=\"22\" align=\"left\" ><textarea name=\"content\" cols=\"50\" rows=\"6\" class=\"input\">");
      out.print(u.getContent());
      out.write("</textarea></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  ");

  }else{
  
      out.write("\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"22\" colspan=\"2\" align=\"center\" >没有查到该人员信息!!!</td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  ");
}
      out.write("\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"22\" colspan=\"2\" align=\"center\" ><input name=\"Submit\" type=\"submit\" class=\"button\" value=\"提交\">\r\n");
      out.write("      &nbsp;&nbsp;\r\n");
      out.write("      <input name=\"Submit2\" type=\"reset\" class=\"button\" value=\"重置\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  </form>\r\n");
      out.write("</table>\r\n");
      out.write("</body>\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 + -