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

📄 action.jsp

📁 JSP+oracle开发实例精粹》随书光盘
💻 JSP
📖 第 1 页 / 共 3 页
字号:
  <tr> 
    <td height="35" background="../ima/bottom_bg.gif"><table width="110" height="35" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td><img src="../ima/bottom.gif" width="110" height="35"></td>
        </tr>
      </table></td>
  </tr>
</table>
<!-- 新版表格结束 -->
</body>
</html>
<%
						}
				}
		}
		else if(action.equals("editing"))
		{
				String id = request.getParameter("id");
				if(id == null || id.equals(""))
				{
				    out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"Miss Job ID!\");window.location.href=\"list.jsp\";</script>");
				}
				String cop_name = request.getParameter("cop_name"); 
				if(cop_name == null || cop_name.equals("")) 
					cop_name = "无";
				else
					cop_name = new String(cop_name.getBytes("ISO8859_1"));
				String cop_mann = request.getParameter("cop_mann");
				if(cop_mann == null || cop_mann.equals("") ||cop_mann.equals("no")) 
					cop_mann = "0";
				else
					cop_mann = new String(cop_mann.getBytes("ISO8859_1"));
				String cop_cont = request.getParameter("cop_cont");
				if(cop_cont == null || cop_cont.equals("")) 
					cop_cont = "无";
				else
					cop_cont = new String(cop_cont.getBytes("ISO8859_1"));
				String cop_tel  = request.getParameter("cop_tel");
				if(cop_tel == null || cop_tel.equals("")) 
					cop_tel = "无";
				else
					cop_tel = new String(cop_tel.getBytes("ISO8859_1"));
				String cop_mail = request.getParameter("cop_mail"); 
				if(cop_mail == null || cop_mail.equals(""))
					cop_mail = "无";
				else
					cop_mail = new String(cop_mail.getBytes("ISO8859_1"));
				String cop_fax  = request.getParameter("cop_fax");  
				if(cop_fax == null || cop_fax.equals("")) 
					cop_fax = "无";
				else
					cop_fax = new String(cop_fax.getBytes("ISO8859_1"));
				String cop_addr = request.getParameter("cop_addr"); 
				if(cop_addr == null || cop_addr.equals("")) 
					cop_addr = "无";
				else
					cop_addr = new String(cop_addr.getBytes("ISO8859_1"));
				String cop_zip  = request.getParameter("cop_zip");  
				if(cop_zip == null || cop_zip.equals("")) 
					cop_zip = "无";
				else
					cop_zip = new String(cop_zip.getBytes("ISO8859_1"));
				String cop_www  = request.getParameter("cop_www");  
				if(cop_www == null || cop_www.equals("")) 
					cop_www = "无";
				else
					cop_www = new String(cop_www.getBytes("ISO8859_1"));
				String cop_desc = job.HtmlSpecialChars(request.getParameter("cop_desc")); 
				if(cop_desc == null || cop_desc.equals(""))
					cop_desc = "无";
				else
					cop_desc = new String(cop_desc.getBytes("ISO8859_1"));
				
				String job_name = request.getParameter("job_name"); 
				if(job_name == null || job_name.equals(""))
					job_name = "无";
				else
					job_name = new String(job_name.getBytes("ISO8859_1"));
				String job_mann = request.getParameter("job_mann"); 
				if(job_mann == null || job_mann.equals("") ||job_mann.equals("no")) 
					job_mann = "0";
				else
					job_mann = new String(job_mann.getBytes("ISO8859_1"));
				String job_addr = request.getParameter("job_addr"); 
				if(job_addr == null || job_addr.equals("")) 
					job_addr = "无";
				else
					job_addr = new String(job_addr.getBytes("ISO8859_1"));
				String job_num  = request.getParameter("job_num");  
				if(job_num == null || job_num.equals("")) 
					job_num = "0";
				else
					job_num = new String(job_num.getBytes("ISO8859_1"));
				String job_get  = request.getParameter("job_get");  
				if(job_get == null || job_get.equals(""))
					job_get = "面议";
				else
					job_get = new String(job_get.getBytes("ISO8859_1"));
				String job_sta  = request.getParameter("job_sta");  
				if(job_sta == null || job_sta.equals("")) 
					job_sta = "0";
				else
					job_sta = new String(job_sta.getBytes("ISO8859_1"));
				String job_end  = request.getParameter("job_end");  
				if(job_end == null || job_end.equals("")) 
					job_end = "0";
				else
					job_end = new String(job_end.getBytes("ISO8859_1"));
				String job_age1 = request.getParameter("job_age1"); 
				if(job_age1 == null || job_age1.equals("")) 
					job_age1 = "0";
				String job_age2 = request.getParameter("job_age2"); 
				if(job_age2 == null || job_age2.equals("")) 
					job_age2 = "0";
				String job_grad = request.getParameter("job_grad"); 
				if(job_grad == null || job_grad.equals("") ||job_grad.equals("no")) 
					job_grad = "0";
				String job_lang = request.getParameter("job_lang"); 
				if(job_lang == null || job_lang.equals("") ||job_lang.equals("no")) 
					job_lang = "0";
				String job_expe = request.getParameter("job_expe"); 
				if(job_expe == null || job_expe.equals("") ||job_expe.equals("no")) 
					job_expe = "0";
				String job_oget = request.getParameter("job_oget"); 
				if(job_oget == null || job_oget.equals(""))
					job_oget = "无";
				else
					job_oget = new String(job_oget.getBytes("ISO8859_1"));
				String job_odem = job.HtmlSpecialChars(request.getParameter("job_odem")); 
				if(job_odem == null || job_odem.equals(""))
					job_odem = "无";
				else
					job_odem = new String(job_odem.getBytes("ISO8859_1"));
				
				if(job.editJob(id,job_name,job_mann,job_addr,job_num,job_get,job_sta,job_end,job_age1,job_age2,job_grad,job_lang,job_expe,job_oget,job_odem))
				{
				    //OK
						out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"成功更新!\");window.location.href=\"list.jsp\";</script>");
				}
				else
				{
				    out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert('更新失败!"+job.error+"');window.location.href=\"list.jsp\";</script>");
				}
		}
		else if(action.equals("delete"))
		{
				String id = request.getParameter("id");
				if(id == null || id.equals(""))
				{
				    out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"Miss job ID!\");window.location.href=\"list.jsp\";</script>");
				}
				else
				{
				    if(job.deleteJob(id))
						{
						    out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"成功删除!\");window.location.href=\"list.jsp\";</script>");
						}
						else
						{
						    out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"删除失败!\");window.location.href=\"list.jsp\";</script>");
						}
				}
		}
		else
		{
		    if("re".equals(action))
			{
				String job_id = request.getParameter("jobid");
				String id = request.getParameter("id");
				ResultSet rs = null;
				try
				{
					String sql = "select c.job_name,b.name,b.age,c.intro,c.cop_name,b.id from USERS b, RESUME c where  c.job_id = "+job_id+" and c.id = "+id+" and b.id = c.user_id";
					rs = db.executeQuery(sql);
					if(rs.next())
					{
						%>
<html>
<head>
<title>网上求职平台</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css_js/style.css" rel="stylesheet" type="text/css">

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- 新版表格 -->
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
  <tr> 
    <td colspan="3" valign="top"> 
<!-- 新版表格结束 -->
<table width="100%" height="50" border="0" cellpadding="0" cellspacing="0" bgcolor="#30483C">
  <tr> 
    <td width="290" valign="middle"><img src="../ima/title.gif" width="290" height="50" border="0"></td>
    <td align="right" valign="bottom"><font color="#FFFFFF">&nbsp;</font></td>
  </tr>
</table>
<table width="100%" height="35" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="80%" align="center" background="../ima/header_bg.gif"><img src="../ima/header_arrows.gif" width="206" height="35"></td>
    <td width="20%" align="center" background="../ima/header_bg.gif">&nbsp;</td>
  </tr>
</table>
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="right" background="../ima/top_bg.gif"></td>
  </tr>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td background="../ima/shadow.gif">&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
  <tr>
    <td align="center"><table width="700" border="0" cellspacing="1" cellpadding="1">
        <form action="action.jsp?action=reing" id="form" name="form" method="post">
          <tbody>
            <tr class="text-login"> 
              <td height="20" colspan="2"><strong>添加公司回复</strong></td>
            </tr>
            <tr class="text-login"> 
              <td width="60" height="20" bgcolor="#EEEEEE">公司名称</td>
              <td width="290" height="20" bgcolor="#EEEEEE">&nbsp;<%=rs.getString(5)%></td>
			  <input type="hidden" name="resume_id" value="<%=id%>">
			  <input type="hidden" name="job_id" value="<%=job_id%>">
			  <input type="hidden" name="user_id" value="<%=rs.getInt(6)%>">
            </tr>
            <tr class="text-login"> 
              <td width="60" height="20">职位名称</td>
              <td width="290" height="20">&nbsp;<%=rs.getString(1)%></td>
            </tr>
			<tr class="text-login"> 
              <td width="60" height="20">应聘者姓名</td>
              <td width="290" height="20">&nbsp;<%=rs.getString(2)%></td>
            </tr>
			<tr class="text-login"> 
              <td width="60" height="20">应聘者年龄</td>
              <td width="290" height="20">&nbsp;<%=rs.getString(3)%></td>
            </tr>
            <tr class="text-login"> 
              <td width="60" height="135" valign="top">简历内容</td>
              <td width="290" height="135" align="center" valign="top"><textarea name="re_cont" class="addtextarea" id="re_cont" disabled><%=rs.getString(4)%></textarea></td>
            </tr>
			<tr class="text-login"> 
              <td width="60" height="20" bgcolor="#EEEEEE">&nbsp;</td>
              <td width="290" height="20" bgcolor="#EEEEEE">&nbsp;</td>
            </tr>
			<tr class="text-login"> 
              <td width="60" height="135" valign="top">添加回复</td>
              <td width="290" height="135" align="center" valign="top"><textarea name="re_cont" class="addtextarea" id="re_cont"></textarea></td>
            </tr>
            <tr align="right" valign="middle" class="text-login"> 
              <td height="30" colspan="2" bgcolor="#EEEEEE"> 
				<input type="submit" class="logbutton" value="提交" >
                <input type="button" class="logbutton" value="返回" onClick="window.location.href='resumelist.jsp'"> 
                &nbsp;</td>

⌨️ 快捷键说明

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