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

📄 qzzpqz_jsp.java

📁 c++通信编程学习1
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import com.j2ee.func.login.*;
import java.util.*;
import com.j2ee.func.qyzp.*;
import com.j2ee.func.reg.resume.*;
import com.j2ee.func.qyzp.*;
import java.sql.*;

public final class qzzpqz_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(1);
    _jspx_dependants.add("/top.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,
      			"", 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\r\n\r\n\r\n\r\n\r\n");

 String counts=(String)request.getAttribute("count");
String pagesizes=(String)request.getAttribute("pagesize");
String pagenos=(String)request.getAttribute("pageno");
int count=Integer.parseInt(counts);
int pagesize=Integer.parseInt(pagesizes);
int pageno=Integer.parseInt(pagenos);

String islogin="";
      islogin=(String)session.getAttribute("islogin");
   String realname="";
   if(islogin!=null){//用户已登陆
    String username=(String)session.getAttribute("username");
     String type=(String)   session.getAttribute("usertype");
     Logininfo li=new Logininfo();
     li.setname(username);
     li.setusertype(type);
     Loginfunc lf=new Loginfunc(li);
     realname=lf.getUserInfo(); //得到用户真实姓名;
  }
Vector vctgr=(Vector)request.getAttribute("vctgr");


      out.write("\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>所有人才</title>\r\n<link href=\"css/indexcss.css\" rel=\"stylesheet\" type=\"text/css\">\r\n</head>\r\n\r\n<body>\r\n");
      out.write("\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>无标题文档</title>\r\n<link href=\"css/index1.css\" rel=\"stylesheet\" type=\"text/css\">\r\n</head>\r\n\r\n<body topmargin=\"0\">\r\n<table width=\"76%\" border=\"1\" align=\"center\">\r\n  <tr> \r\n    <td width=\"27%\" height=\"60\"><img src=\"image/log.jpg\" width=\"200\" height=\"60\"></td>\r\n    <td width=\"40%\"><img src=\"image/top.jpg\" width=\"450\" height=\"60\"></td>\r\n    <td width=\"33%\"><img src=\"image/jt1.gif\" width=\"11\" height=\"11\"><a onclick=\"this.style.behavior='url(#default#homepage)';this.sethomepage('http://indowns.com');return false;\" href=\"\" title=\"将本站设为你的首页\">设为首页</a><br> \r\n      <img src=\"image/jt2.gif\" width=\"11\" height=\"11\"><a href=\"javascript:window.external.AddFavorite(location.href,document.title)\" title=\"将本站加入到你的收藏夹\">加入收藏</a> \r\n      <br> <img src=\"image/jt3.gif\" width=\"11\" height=\"11\"><a href=\"list.list@eyou.com\">联系我们</a></td>\r\n  </tr>\r\n</table>\r\n</body>\r\n</html>\r\n");
      out.write("\r\n<TABLE\r\n  width=730\r\n  height=632\r\n  border=0\r\n  align=center\r\n  cellPadding=0\r\n  cellSpacing=0 bordercolor=\"#E8E8FF\"\r\n  borderColorDark=#e2dffd\r\n  bgColor=#ffffff\r\n  borderlightcolor=\"#EBF1F1\"\r\n  witdth=\"100%\">\r\n  <TBODY>\r\n    <TR>\r\n      <TD width=161 height=\"632\" vAlign=top bgColor=#E8E8FF><TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n          <TBODY>\r\n            <TR>\r\n              <TD align=\"center\" valign=\"middle\" background=image/line4.gif><DIV align=center> </DIV>\r\n                  <DIV align=center> <BR>\r\n                </DIV></TD>\r\n            </TR>\r\n          </TBODY>\r\n        </TABLE>\r\n          ");

        if(islogin==null){      
      out.write("\r\n          <form method=\"post\" action=\"logincservlet\">\r\n            <table width=\"160\" border=\"0\" cellspacing=\"0\">\r\n              <tr>\r\n                <td width=\"52\" height=\"25\" align=\"right\">用户名:</td>\r\n                <td width=\"99\"><input name=\"name\" type=\"text\" id=\"name\" size=\"15\">\r\n                </td>\r\n              </tr>\r\n              <tr>\r\n                <td height=\"20\" align=\"right\">密码:</td>\r\n                <td><input name=\"password\" type=\"password\" id=\"password\" size=\"15\">\r\n                </td>\r\n              </tr>\r\n              <tr>\r\n                <td height=\"28\" align=\"right\">类型:</td>\r\n                <td height=\"28\"><select name=\"usertype\" id=\"usertype\">\r\n                    <option value=\"0\">个人用户</option>\r\n                    <option value=\"1\">企业用户</option>\r\n                </select></td>\r\n              </tr>\r\n              <tr>\r\n                <td height=\"28\" colspan=\"2\" align=\"center\"><input type=\"submit\" name=\"Submit\" value=\"登陆\">\r\n                    <input type=\"button\" name=\"Submit2\" value=\"注册\" onClick=\"window.location='reg.htm'\">\r\n");
      out.write("                </td>\r\n              </tr>\r\n            </table>\r\n          </form>\r\n          ");
}else{
      out.write("\r\n          <table width=\"161\" border=\"0\" cellspacing=\"0\">\r\n            <tr>\r\n              <td width=\"159\" height=\"22\" align=\"center\">");
      out.print(realname);
      out.write("</td>\r\n            </tr>\r\n            <tr>\r\n              <td height=\"21\" align=\"center\">你好!</td>\r\n            </tr>\r\n            <tr>\r\n              <td height=\"20\" align=\"center\"><form name=\"form1\" method=\"post\" action=\"logoutservlet\">\r\n                  <input name=\"logout\" type=\"submit\" id=\"logout\" value=\"安全退出\">\r\n              </form></td>\r\n            </tr>\r\n          </table>\r\n          ");
}
      out.write("\r\n          <hr size=\"1\" noshade>\r\n          <table width=\"160\" border=\"0\" cellspacing=\"0\">\r\n            <tr>\r\n              <td>信息分类:</td>\r\n            </tr>\r\n            <tr>\r\n              <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"qzsearchrc.jsp\">个人求职</a></td>\r\n            </tr>\r\n            <tr>\r\n              <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"qygetsearchkey?type=get&pageno=1\">&nbsp;</a><a href=\"showallposition?type=get&pageno=1\">企业招聘</a></td>\r\n            </tr>\r\n            <tr>\r\n              <td>&nbsp;</td>\r\n            </tr>\r\n      </table></TD>\r\n      <TD width=\"1\" align=\"left\" vAlign=top bgcolor=\"#4D4DFF\"></TD>\r\n      <TD width=\"577\" vAlign=top><table width=\"553\" border=\"0\" cellspacing=\"0\">\r\n        <tr>\r\n          <td width=\"91\" bgcolor=\"#f7f7ff\">姓名</td>\r\n          <td width=\"130\" bgcolor=\"#f7f7ff\">应聘岗位</td>\r\n          <td width=\"107\" bgcolor=\"#f7f7ff\">期望工作地点</td>\r\n          <td width=\"63\" bgcolor=\"#f7f7ff\">性别</td>\r\n          <td width=\"75\" bgcolor=\"#f7f7ff\">学历</td>\r\n");
      out.write("          <td width=\"75\" bgcolor=\"#f7f7ff\">发布日期</td>\r\n        </tr>\r\n      </table>\r\n        <table width=\"553\" border=\"0\" cellspacing=\"0\">\r\n          ");
    int gri=0;
                   String backcolor1="";
                    while(gri<vctgr.size()){
                       if(gri%2==0) backcolor1="#ffffff";
                      else backcolor1="#E8E8FF";
                      ResumeEasy re=(ResumeEasy)vctgr.elementAt(gri);
      out.write("\r\n          <tr style=\"cursor:hand\" bgcolor=\"");
      out.print(backcolor1);
      out.write("\"  onMouseOver=\"if(this.cc!=true){this.style.backgroundColor='#7FFFD4';}\"\r\n\r\n                   onClick=\"(this.cc==true)?this.cc=false:this.cc=true;(this.cc==true)?this.style.backgroundColor='#90EE90':this.style.backgroundColor='");
      out.print(backcolor1);
      out.write("';\"\r\n                  onMouseOut=\"if(this.cc!=true){this.style.backgroundColor='");
      out.print(backcolor1);
      out.write("';}\">\r\n            <td width=\"91\"><a href=\"resumedetail?username=");
      out.print(re.getUsername());
      out.write('"');
      out.write('>');
      out.print(re.getRealname());
      out.write("</a></td>\r\n            <td width=\"130\">");
      out.print(re.getJobhexpectone().length()>10? re.getJobhexpectone().substring(0,10):re.getJobhexpectone() );
      out.write("</td>\r\n            <td width=\"107\">");
      out.print(re.getJobpexpectone());
      out.write("</td>\r\n            <td width=\"63\">");
      out.print(re.getSex());
      out.write("</td>\r\n            <td width=\"74\">\r\n              ");
String xueli="";
              if(re.getXueli().equals("0")){ xueli="小学";}
              else if(re.getXueli().equals("1")){xueli="中学";}
              else if(re.getXueli().equals("2")){xueli="高中";}
              else if(re.getXueli().equals("3")){xueli="职校";}
              else if(re.getXueli().equals("4")){xueli="中专";}
              else if(re.getXueli().equals("5")){xueli="大专";}
              else if(re.getXueli().equals("6")){xueli="本科";}
              else if(re.getXueli().equals("7")){xueli="硕士";}
              else if(re.getXueli().equals("8")){xueli="博士";}
              else if(re.getXueli().equals("9")){xueli="博士后";}
      out.write("\r\n              ");
      out.print(xueli);
      out.write("\r\n            </td>\r\n            <td width=\"76\">");
      out.print(re.getLastModify());
      out.write("</td>\r\n          </tr>\r\n          ");
 gri++;}
      out.write("\r\n      </table>\r\n        <form action=\"qygetsearchkey?type=get\" name=\"myform\" method=\"Post\">\r\n          <table width=\"554\" border=\"0\">\r\n            <tr>\r\n              <td width=\"702\" align=\"center\">");
if (pageno==1){
      out.write("\r\n                  <font color=\"#999999\">首页 上一页</font>\r\n                  ");
}else{
      out.write("\r\n                  <a href=\"qygetsearchkey?type=get&pageno=1\"> 首页</a> <a href=\"qygetsearchkey?type=get&pageno=");
      out.print(pageno-1);
      out.write("\"> 上一页</a>\r\n                  ");
}
        if(pageno==(count%pagesize==0?count/pagesize:count/pagesize+1)){
      out.write("\r\n                  <font color=\"#999999\">下一页 末页</font>\r\n                  ");
}else{ 
      out.write("\r\n                  <a href=\"qygetsearchkey?type=get&pageno=");
      out.print(pageno+1);
      out.write("\"> 下一页</a> <a href=\"qygetsearchkey?type=get&pageno=");
      out.print((count%pagesize==0?count/pagesize:count/pagesize+1));
      out.write("\"> 末页</a>\r\n                  ");
} 
      out.write("\r\n        当前页\r\n        <input name=\"pageno\" type=\"text\" size=\"4\" value=\"");
      out.print(pageno);
      out.write("\">\r\n        <input name=\"button\" type=\"button\" onclick=\"window.location='qygetsearchkey?type=get&pageno='+myform.pageno.value\" value=\"go\"/>\r\n        页数 ");
      out.print(pageno);
      out.write('/');
      out.print(count%pagesize==0?count/pagesize:count/pagesize+1);
      out.write(" 每页:");
      out.print(pagesize);
      out.write(" 总数:");
      out.print(count);
      out.write("</td>\r\n            </tr>\r\n          </table>\r\n      </form></TD>\r\n    </TR>\r\n  </TBODY>\r\n</TABLE>\r\n</body>\r\n</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 + -