?? detail.jsp
字號:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<jsp:useBean id="job" class="qiuzhi.personaljob"/>
<jsp:useBean id="data" class="qiuzhi.personaljobdata"/>
<%@ include file="lib/config.jsp" %>
<%
if(!job.init(OracleDriver,OracleUrl,OracleUser,OraclePsw))
{
out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"Fail to Connect Oracle Server! Please check the settings!\");window.close();</script>");
}
HttpSession mysession = request.getSession();
String username = (String)mysession.getAttribute("user");
String password = (String)mysession.getAttribute("pass");
job.setUsername(username);
job.setPasswrod(password);
//驗證未通過
if(job.logcheck() == -1)
{
out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"Wrong username or password!\");window.close();location.href=\"index.jsp\";</script>");
}
String action = request.getParameter("action");
if(action == null || action.equals(""))
{
out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"Wrong action!\");window.close();location.href=\"index.jsp\";</script>");
}
else if(action.equals("showcop"))
{
//get ID
//int id = Integer.parseInt((String)request.getParameter("id"));
String id = request.getParameter("id");
if(id == null || id.equals(""))
{
out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"Miss job ID!\");window.close();</script>");
}
else
{
ResultSet res = null;
res = job.getCopInfo(id);
if(res == null)
{
out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"沒有對應(yīng)的公司信息!\");window.close();</script>");
}
else
{
res.next();
String cop_name = res.getString("cop_name");
String cop_mann = data.cop_mann[res.getInt("cop_mann")];
String cop_cont = res.getString("name");
String cop_tel = res.getString("cop_tel");
String cop_mail = res.getString("cop_mail");
if(cop_mail != null && !cop_mail.equals(""))
{
cop_mail = "<a href=\"mailto:"+cop_mail+"\" target=\"_blank\">"+cop_mail+"</a>";
}
String cop_fax = res.getString("cop_tex");
String cop_addr = res.getString("cop_addr");
String cop_zip = res.getString("cop_zip");
String cop_www = res.getString("cop_www");
if(cop_www != null && !cop_www.equals(""))
{
cop_www = "<a href=\""+cop_www+"\" target=\"_blank\">"+cop_www+"</a>";
}
String cop_desc = res.getString("cop_desc");
String info = "<a href=\"detail.jsp?action=showjob&id="+id+"\" title=\"查看該公司的職位信息\"><font color=\"#FF0000\">查看職位信息</font></a>";
%>
<html>
<head>
<title>網(wǎng)上求職平臺</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="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"><strong>公司信息</strong></font> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="1" cellspacing="1">
<tr>
<td align="center" valign="top"><table width="350" border="0" cellspacing="1" cellpadding="1">
<tr class="text-login">
<td width="60" height="20">公司名稱</td>
<td width="290" height="20"> <%=cop_name%> <%=info%></td>
</tr>
<tr bgcolor="#EEEEEE" class="text-login">
<td width="60" height="20">公司性質(zhì)</td>
<td width="290" height="20"> <%=cop_mann%></td>
</tr>
<tr class="text-login">
<td width="60" height="20">聯(lián)系人</td>
<td width="290" height="20"> <%=cop_cont%></td>
</tr>
<tr bgcolor="#EEEEEE" class="text-login">
<td width="60" height="20">聯(lián)系電話</td>
<td width="290" height="20"> <%=cop_tel%></td>
</tr>
<tr class="text-login">
<td width="60" height="20">E-mail</td>
<td width="290" height="20"> <%=cop_mail%></td>
</tr>
<tr bgcolor="#EEEEEE" class="text-login">
<td width="60" height="20">傳真</td>
<td width="290" height="20"> <%=cop_fax%></td>
</tr>
<tr class="text-login">
<td width="60" height="20">地址</td>
<td width="290" height="20"> <%=cop_addr%></td>
</tr>
<tr bgcolor="#EEEEEE" class="text-login">
<td width="60" height="20">郵編</td>
<td width="290" height="20"> <%=cop_zip%></td>
</tr>
<tr class="text-login">
<td width="60" height="20">網(wǎng)址</td>
<td width="290" height="20"> <%=cop_www%></td>
</tr>
<tr bgcolor="#EEEEEE" class="text-login">
<td width="60" height="135" valign="top">公司簡介</td>
<td width="290" height="135" valign="top"><%=cop_desc%></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" height="35" border="0" cellpadding="0" cellspacing="0" bgcolor="#446655">
<tr>
<td width="200" background="ima/pop_bg.gif"> </td>
<td align="right" valign="middle"><input name="Button" type="button" class="logbutton" value="關(guān)閉" onClick="window.close();"> </td>
</tr>
</table>
</body>
</html>
<%
}
}
}
else if(action.equals("showjob"))
{
//get ID
//int id = Integer.parseInt((String)request.getParameter("id"));
String id = request.getParameter("id");
if(id == null || id.equals(""))
{
out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"Miss job ID!\");window.close();</script>");
}
else
{
ResultSet res = null;
res = job.getJobInfo(id);
if(res == null)
{
out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"沒有對應(yīng)的職位信息!\");window.close();</script>");
}
else
{
res.next();
String cop_id = String.valueOf(res.getInt("cop_id"));
String job_name = res.getString("job_name");
String job_mann = data.job_mann[res.getInt("jop_mann")];
String job_addr = res.getString("job_addr");
int job_num = res.getInt("job_num");
String job_get = res.getString("job_get");
String time = "從"+res.getInt("job_sta")+"至"+res.getInt("job_end");
String job_grad = data.job_grad[res.getInt("job_grad")];
String age = res.getInt("job_age1")+"~"+res.getInt("job_age2");
String job_expe = data.job_expe[res.getInt("job_expe")];
String job_lang = data.job_lang[res.getInt("job_lang")];
String job_odem = res.getString("job_odem");
String job_oget = res.getString("job_oget");
String info = "<a href=\"detail.jsp?action=showcop&id="+cop_id+"\" title=\"查看該職位的公司信息\"><font color=\"#FF0000\">查看公司信息</font></a>";
%>
<html>
<head>
<title>個人求職管理系統(tǒng)</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="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"><strong>職位信息</strong></font> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="1" cellspacing="1">
<tr>
<td align="center" valign="top"><table width="350" border="0" cellspacing="1" cellpadding="1">
<tr class="text-login">
<td width="60" height="20">職位名稱</td>
<td width="290" height="20"> <%=job_name%> <%=info%></td>
</tr>
<tr bgcolor="#EEEEEE" class="text-login">
<td width="60" height="20">職位性質(zhì)</td>
<td width="290" height="20"> <%=job_mann%></td>
</tr>
<tr class="text-login">
<td width="60" height="20">工作地點</td>
<td width="290" height="20"> <%=job_addr%></td>
</tr>
<tr bgcolor="#EEEEEE" class="text-login">
<td width="60" height="20">招聘人數(shù)</td>
<td width="290" height="20"> <%=job_num%></td>
</tr>
<tr class="text-login">
<td width="60" height="20">工資待遇</td>
<td width="290" height="20"> <%=job_get%></td>
</tr>
<tr bgcolor="#EEEEEE" class="text-login">
<td width="60" height="20">有效期限</td>
<td width="290" height="20"> <%=time%></td>
</tr>
<tr class="text-login">
<td width="60" height="20">學(xué)歷要求</td>
<td width="290" height="20"> <%=job_grad%></td>
</tr>
<tr bgcolor="#EEEEEE" class="text-login">
<td width="60" height="20">年齡要求</td>
<td width="290" height="20"> <%=age%></td>
</tr>
<tr class="text-login">
<td width="60" height="20">工作經(jīng)驗</td>
<td width="290" height="20"> <%=job_expe%></td>
</tr>
<tr bgcolor="#EEEEEE" class="text-login">
<td height="20">語言要求</td>
<td height="20"> <%=job_lang%></td>
</tr>
<tr class="text-login">
<td height="20">其它待遇</td>
<td height="20"> <%=job_oget%></td>
</tr>
<tr bgcolor="#EEEEEE" class="text-login">
<td width="60" height="135" valign="top">其他要求</td>
<td width="290" height="135" valign="top"><%=job_odem%></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" height="35" border="0" cellpadding="0" cellspacing="0" bgcolor="#446655">
<tr>
<td width="200" background="ima/pop_bg.gif"> </td>
<td align="right" valign="middle"><input name="Button" type="button" class="logbutton" value="關(guān)閉" onClick="window.close();"> </td>
</tr>
</table>
</body>
</html>
<%
}
}
}
else
{
out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"Wrong action!\");window.close();location.href=\"index.jsp\";</script>");
}
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -