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

📄 qzzpzp_jsp.java

📁 c++通信编程学习1
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
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 java.sql.*;

public final class qzzpzp_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");
  String counts=(String)request.getAttribute("count");
String pagesizes=(String)request.getAttribute("pagesize");
String pagenos=(String)request.getAttribute("pageno");
String pausecounts=(String)request.getAttribute("pausecount");
String showtype=(String)request.getAttribute("showtype");
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(); //得到用户真实姓名;
  }
  String paratype="";
  String searchkey="";
  String workplace="";
 if(showtype.equals("0")){//搜索出来的
   searchkey=(String)request.getAttribute("searchkey");
   workplace=(String)request.getAttribute("workplace");
   }else{//非搜索出来;

   }

Vector vctqy=(Vector)request.getAttribute("vct"); 
      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=728\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=162 height=\"632\" vAlign=top bgColor=#E8E8FF>\r\n        <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>\r\n                </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> <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=\"showallposition?type=get&pageno=1\">&nbsp;企业招聘</a></td>\r\n          </tr>\r\n          <tr>\r\n            <td>&nbsp;</td>\r\n          </tr>\r\n        </table>\r\n      </TD>\r\n      <TD width=\"1\" align=\"left\" vAlign=top bgcolor=\"#4D4DFF\"></TD>\r\n      <TD width=\"560\" align=\"left\" vAlign=top>\r\n\t  <form action=\"showallposition?type=search&pageno=1\" method=\"post\">\r\n       <table width=\"565\" border=\"0\">\r\n          <tr>\r\n            <td>职位搜索:\r\n                <input name=\"searchkey\" type=\"text\" id=\"searchkey\" value=\"");
      out.print(searchkey);
      out.write("\" size=\"50\">\r\n              <SELECT\r\n                        name=workplace id=\"workplace\"\r\n                        onchange=\"javascript:if(this.options[this.selectedIndex].value=='其他地区'){if (searchForm.Search_Key.value=='请输入职位名称!例如:工程师'){&#13;&#10;Search_Key_Words='';}else{Search_Key_Words='?Search_Key='+searchForm.Search_Key.value;}{window.location.href='../cn/person_mysearch.asp'+Search_Key_Words;}}\">\r\n                <OPTION value=\"\">请选择工作地点</OPTION>\r\n                <OPTION value=北京>北京</OPTION>\r\n                <OPTION\r\n                          value=上海>上海</OPTION>\r\n                <OPTION value=天津\r\n                          selected>天津</OPTION>\r\n                <OPTION value=广州>广州</OPTION>\r\n                <OPTION value=深圳>深圳</OPTION>\r\n                <OPTION\r\n                          value=杭州>杭州</OPTION>\r\n                <OPTION value=西安>西安</OPTION>\r\n                <OPTION value=武汉>武汉</OPTION>\r\n                <OPTION\r\n                          value=重庆>重庆</OPTION>\r\n                <OPTION value=成都>成都</OPTION>\r\n");
      out.write("                <OPTION value=南京>南京</OPTION>\r\n                <OPTION\r\n                          value=沈阳>沈阳</OPTION>\r\n                <OPTION value=济南>济南</OPTION>\r\n                <OPTION value=青岛>青岛</OPTION>\r\n                <OPTION\r\n                          value=大连>大连</OPTION>\r\n                <OPTION value=长沙>长沙</OPTION>\r\n                <OPTION value=其他地区>其他地区</OPTION>\r\n              </SELECT>\r\n              <input type=\"submit\" name=\"Submit3\" value=\"搜索\"> </td>\r\n  </tr>\r\n</table></form>\r\n");
if(paratype.equals("0")){
      out.write("\r\n <table width=\"565\" border=\"1\">\r\n          <tr>\r\n            <td width=\"546\" height=\"20\"> <font size=\"4\"><strong>最新职位列表</strong></font></td>\r\n          </tr>\r\n        </table>\r\n        <table width=\"565\" border=\"1\" cellspacing=\"0\">\r\n          <tr>\r\n            <td width=\"75\" height=\"22\" bgcolor=\"#f7f7ff\">招聘职位</td>\r\n            <td width=\"85\" bgcolor=\"#f7f7ff\">公司名称</td>\r\n            <td width=\"89\" bgcolor=\"#f7f7ff\">工作地址</td>\r\n            <td width=\"97\" bgcolor=\"#f7f7ff\">人数</td>\r\n            <td width=\"95\" bgcolor=\"#f7f7ff\">要求学历</td>\r\n            <td width=\"84\" bgcolor=\"#f7f7ff\">发布日期</td>\r\n          </tr>\r\n        </table>\r\n        <table width=\"566\" border=\"0\" cellspacing=\"0\">\r\n          ");
 int qyi=0;
                   String backcolor="";
                   while(qyi<vctqy.size()){
                     if(qyi%2==0) backcolor="#ffffff";
                     else backcolor="#f7f7ff";
                     PositionInfo pi=(PositionInfo)vctqy.elementAt(qyi); 
      out.write("\r\n          <tr style=\"cursor:hand\" bgcolor=\"");
      out.print(backcolor);
      out.write("\"  onMouseOver=\"if(this.cc!=true){this.style.backgroundColor='#f7f7ff';}\"\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(backcolor);
      out.write("';\"\r\n  onMouseOut=\"if(this.cc!=true){this.style.backgroundColor='");
      out.print(backcolor);
      out.write("';}\" >\r\n            <td width=\"79\"><a href=\"qypositiondetail?id=");
      out.print(pi.getId());
      out.write("&username=");
      out.print(pi.getUsername());

⌨️ 快捷键说明

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