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

📄 job_select.jsp

📁 这个是j2eejava web 编程精要十五讲的全部源码。对学习java web编程的人来说是很能得的资料
💻 JSP
字号:
<jsp:include page="../header/header.jsp" flush="true"/>
<%@ page contentType="text/html;charset=gb2312" %>

<SCRIPT language=javascript>
 var isSure=false;
function OpenWin(theURL,winName,features)
{
  window.open(theURL,winName,features);
}

function toOpen(str)
{

	if(str!='')
  {
    OpenWin('../job/job_display.jsp?jobID='+str,'newWin','scrollbars=yes,width=600,height=500');
  }
  else
  {
    alert("不能得到职位ID!");
    return false;
  }

}
</SCRIPT>


<jsp:include page="../header/header_bg.jsp" flush="true"/>

      <jsp:include page="../header/menu_common.jsp" flush="true"/>
	  <!--
          <form action="../job/job_insert.jsp"  method="post" name="loginForm" onsubmit="javascript:return checkLogin();">
	<input type="hidden" name="logicName"  value="Login">
	<input type="hidden" name="PageID"  value="Login">

    <b>登陆</b><br>
    &nbsp;请输入用户名&nbsp; <INPUT maxLength=8 name=userID size=14  style="COLOR: #000000; FONT-SIZE: 12px"><br>
    &nbsp;请输入密码
    <INPUT maxLength=8 name=password size=14 style="COLOR: #000000; FONT-SIZE: 12px" type=password>
    <INPUT name=submit type=hidden value=提交>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <INPUT border=0 height=18 name=submit src="../../login/go.gif" type=image value=提交 width=25>
    </form>

	-->

	<!--<jsp:include page="../user/login.jsp" flush="true"/>-->



    </TD>
    <TD width=672>
      <TABLE height=86 cellSpacing=0 cellPadding=0 width=538 border=0>
        <TBODY>
        <TR>
          <TD vAlign=bottom colSpan=2 height=43></TD></TR>
        <TR>
          <TD width=40 height=43 rowSpan=2><IMG height=43
            src="../../images/qy_1_0.gif" width=40></TD>
          <TD vAlign=top width=498 height=10><IMG height=1
            src="../../images/qy_1.gif" width=498></TD></TR>
        <TR>
          <TD vAlign=top width=498></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=672 border=0>
        <TBODY>


        <TR>
          <TD height=23>


<%@ page import="foton.util.*"%>
<%@ page import="foton.job.*,foton.system.*"%>
<%@ page import="java.util.*" %>
<h1 align="center">社会招聘 </h1>
<form  method="post" action="job_select.jsp">

  <table width="100%" border="0">
    <tr>
      <td>
        <div align="right">专业类型:</div>
      </td>
      <td>

        <select name="jobType" size="1">
		               <option value="all" selected>全选</option>


                   <% Condition condition1 = new Condition();
  int pageNum1 = 15;
  int currPage1;
  //String url = "../system/major_list.jsp";

   if (request.getParameter("pages")==null) {
     currPage1 =0;
   }
   else {
       currPage1 = new Integer(request.getParameter("pages")).intValue();
   }

    condition1.setPageNum(pageNum1);
    condition1.setCurrPage(currPage1);


  // ArrayList list = (ArrayList)session.getAttribute("result");

	 majorDAO mdao = new majorDAO();

     ArrayList list0 = mdao.getMajor(condition1);
     int n=1;

  Iterator it0 = list0.iterator();
  while (it0!=null && it0.hasNext()) {
    majorInfo info1 = (majorInfo)it0.next();
%>
	 <option value="<%=info1.getMajorName()%>"><%=info1.getMajorName()%></option>


<%  n++; } %>

                    </select>

      </td>

	  <td>
        <div align="right">工作地区:</div>
      </td>
      <td>

		<select name="jobArea">
				<option value="all" selected>全选</option>
                 <% Condition condition2 = new Condition();
  int pageNum2 = 15;
  int currPage2;
  //String url = "../system/major_list.jsp";

   if (request.getParameter("pages")==null) {
     currPage2 =0;
   }
   else {
       currPage2 = new Integer(request.getParameter("pages")).intValue();
   }

    condition2.setPageNum(pageNum2);
    condition2.setCurrPage(currPage2);


  // ArrayList list = (ArrayList)session.getAttribute("result");

	 areaDAO adao = new areaDAO();

     ArrayList list01 = adao.getArea(condition2);


  Iterator it01 = list01.iterator();
  while (it01!=null && it01.hasNext()) {
    majorInfo info2 = (majorInfo)it01.next();
%>

<option value="<%=info2.getAreaName()%>"><%=info2.getAreaName()%></option>

<% } %>

			</select>
      </td>

      <td>
        <div align="right">职位性质:</div>
      </td>
      <td>

		<select name="jobNature">
				<option value="all" selected>全选</option>

				<option value="全职">全职</option>

				<option value="兼职">兼职</option>
				<option value="临时">临时</option>
				<option value="实习">实习</option>
				<option value="不限">不限</option>
			</select>
      </td>
      <td>&nbsp;</td>
      <td>
        <input type="submit" name="Submit" value="查询">
      </td>
    </tr>
  </table>
</form>

<table width=95% border=0 cellpadding=3 cellspacing=1 bgcolor=#0000ff>
<tr>

   <tr bgcolor=#8899cc>

	 <td> 职位编号</td>
    <td> 职位名称 </td>
   <td> 工作地区/地点</td>
   <td> 职位性质</td>
     <td> 发布时间</td>
	 <td> 备注</td>
    <td> 操作</td>
   </tr>



<% Condition condition = new Condition();
  int pageNum = 10;
  int currPage;
  String url = "job_select.jsp";

   if (request.getParameter("pages")==null) {
     currPage =0;
   }
   else {
        currPage = new Integer(request.getParameter("pages")).intValue();
   }

  System.out.println("Here is currPage!");

    condition.setPageNum(pageNum);
    condition.setCurrPage(currPage);

	 String jobNature = request.getParameter("jobNature");
    String jobType = request.getParameter("jobType");
	  String jobArea = request.getParameter("jobArea");

	  condition.setJobNature(jobNature);
	  condition.setJobType(jobType);
	  condition.setJobArea(jobArea);

  // ArrayList list = (ArrayList)session.getAttribute("queryResult");
     jobDAO dao = new jobDAO();

     ArrayList list = dao.getJob(condition);

   System.out.println("Here is arraylist!");

  Iterator it = list.iterator();
 System.out.println("Here is iterator!");
  while (it!=null && it.hasNext()) {
    jobInfo info = (jobInfo)it.next();
System.out.println("Here is next()!");
%>

<tr bgcolor=#ffffff>

	<td> <a href ="javascript:toOpen(<%=info.getJobID()%>);" ><%=info.getJobID()%> </a></td>
<td> <%=info.getJobName()%> </td>
<td> <%=info.getJobArea()%> </td>
	<td> <%=info.getJobNature()%> </td>
<td> <%=info.getJobIssueDate()%> </td>
	<td> <%=info.getIsUrgent()%> </td>

<td >
    <a href ="javascript:toOpen(<%=info.getJobID()%>);">查看 </a>
   &nbsp;
    <a href ="../resume/resume_insert.jsp?jobID=<%=info.getJobID() %>&jobName=<%=info.getJobName()%> " target="_blank">应聘 </a>
	</td>
</tr>
<%  } %>



</table>

<%=Pagination.getPaginationScript(condition.getCurrPage(),condition.getPageNum(),condition.getRecordNum(),url)%>




<br><br>

</TD></TR></TABLE></TBODY></TABLE><!-- #BeginLibraryItem "/Library/zhu_copyright.lbi" -->

<TABLE cellSpacing=0 cellPadding=0 width=767 background=foton.files/d_1_bj.gif
border=0>
  <TBODY>
  <TR>
    <TD width=124><IMG height=19 src="../../images/d_1.gif" width=124></TD>
    <TD width=643><FONT color=#cccccc>北汽福田汽车股份有限公司 版权所有 &copy;
  2004</FONT></TD></TR></TBODY></TABLE><!-- #EndLibraryItem -->

⌨️ 快捷键说明

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