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

📄 job_query.jsp

📁 这个是j2eejava web 编程精要十五讲的全部源码。对学习java web编程的人来说是很能得的资料
💻 JSP
字号:

<jsp:include page="../user/checklogin.jsp" flush="true"/>
<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_bg2.jsp" flush="true"/>

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



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

      <TABLE cellSpacing=1 cellPadding=3 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_query.jsp">

  <table width="100%" border="0" cellspacing=1 cellpadding=3 bgcolor=#ffffff>
    <tr>
      <td>
        <div align="right">专业类型:</div>
      </td>
      <td>

		<select name="jobType" size="1">
		               <option value=" " 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="jobIsValid">
		      <option value=" " selected>全选</option>
				<option value="有效" >有效</option>

			  <option value="暂停">暂停</option>

			</select>
      </td>

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

		<select name="jobNature">
		       <option value=" " 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>

<form action="job_serv.jsp" name="form2" method="post">
<table width=100% border=0 cellspacing=1 cellpadding=3 bgcolor=#0000ff>
   <tr bgcolor=#8899cc>
     <td>  </td>
	 <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_query.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 jobIsValid = request.getParameter("jobIsValid");

	  condition.setJobNature(jobNature);
	  condition.setJobType(jobType);
	  condition.setJobIsValid(jobIsValid);

           transCode trans = new transCode();


  // 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> <input type="checkbox" name="check" value="<%=info.getJobID()%>"> </td>
	<td><a href ="javascript:toOpen('<%=info.getJobID()%>');" > <%=info.getJobID()%></a>
   </td>
<td> <%=trans.transCode(info.getJobName())%> </td>
<td> <%=trans.transCode(info.getDeptName())%> </td>
	<td> <%=trans.transCode(info.getJobNature())%> </td>
	<td > <%=trans.transCode(info.getJobIsValid())%> </td>
<td> <%=info.getJobIssueDate()%> </td>

<td>

    <a href ="job_update.jsp?jobID=<%=info.getJobID() %>" target="_self">修改 </a>

	</td>
</tr>
<%  } %>

<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>

</table>

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

<p align=left><input type="submit" name="choice" value="新增职位">&nbsp;&nbsp;
<input type="submit" name="choice" value="删除"></p>

</form>

          </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 + -