?? sendre.jsp
字號(hào):
<%@ 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 MySQL Server! Please check the settings!\");window.location.href='list.jsp';</script>");
}
%>
<%@ include file="lib/everyinc.jsp" %>
<%
String action = request.getParameter("action");
if(action == null || action.equals(""))
{
out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"Wrong action!\");window.location.href='list.jsp';</script>");
}
else if(action.equals("send"))
{
String id = request.getParameter("id");
if(id == null || id.equals(""))
{
out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"缺少信息!\");window.location.href='list.jsp';</script>");
}
else
{
String[] info = job.sendGetInfo((String)session.getAttribute("user_id"),id);
if(info == null)
{
out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"沒(méi)有對(duì)應(yīng)的信息!\");window.location.href='list.jsp';</script>");
}
else
{
String cop_name = info[0];
String job_name = info[1];
String intro = info[2];
%>
<html>
<head>
<title>個(gè)人求職管理系統(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="100%" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" valign="top">
<!-- 新版表格結(jié)束 -->
<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"> </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"> </td>
</tr>
</table>
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" background="ima/top_bg.gif"><script language="JavaScript" src="css_js/bar.js"></script></td>
</tr>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="ima/shadow.gif"> </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="sendre.jsp?action=sending" id="form" name="form" method="post">
<tbody>
<tr class="text-login">
<td height="20" colspan="2"><strong>查看/更新簡(jiǎn)歷</strong></td>
</tr>
<tr class="text-login">
<td width="60" height="20" bgcolor="#EEEEEE">公司名稱</td>
<td width="290" height="20" bgcolor="#EEEEEE"> <%=cop_name%></td>
</tr>
<tr class="text-login">
<td width="60" height="20">職位名稱</td>
<td width="290" height="20"> <%=job_name%><input name="id" type="hidden" id="id" value="<%=id%>"></td>
</tr>
<tr class="text-login">
<td height="20" valign="top" bgcolor="#EEEEEE">簡(jiǎn)歷內(nèi)容</td>
<td height="20" bgcolor="#EEEEEE"><%=intro%></td>
</tr>
<tr class="text-login">
<td width="60" height="255" valign="top">更新簡(jiǎn)歷</td>
<td width="290" height="275" align="center" valign="middle"><textarea name="intro" class="sendretextarea" id="intro"><%=intro%></textarea></td>
</tr>
<tr valign="middle" bgcolor="#EEEEEE" class="text-login">
<td height="30" colspan="2" align="right"><input name="Submit" type="submit" class="logbutton" value="提交">
<input type="button" class="logbutton" value="返回" onClick="window.location.href='list.jsp'">
</td>
</tr>
</tbody>
</form>
</table>
</td>
</tr>
</table>
<!-- 新版表格 -->
</td>
</tr>
<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>
<!-- 新版表格結(jié)束 -->
</body>
</html>
<%
}
}
}
else if(action.equals("sending"))
{
String id = request.getParameter("id");
String intro = request.getParameter("intro");
if(intro != null)
intro = new String(intro.getBytes("ISO8859_1"));
String[] info = new String[3];
info[0] = id;
info[1] = intro;
info[2] = (String)session.getAttribute("user_id");
if(job.sending(info))
{
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(action.equals("re"))
{
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
{
String[] info = job.reGetInfo(id);
if(info == null)
{
out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"沒(méi)有對(duì)應(yīng)的信息!\");window.location.href='list.jsp';</script>");
}
else
{
String cop_name = info[0];
String job_name = info[1];
String re_cont = info[2];
%>
<html>
<head>
<title>個(gè)人求職管理系統(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="100%" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" valign="top">
<!-- 新版表格結(jié)束 -->
<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"> </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"> </td>
</tr>
</table>
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right" background="ima/top_bg.gif"><script language="JavaScript" src="css_js/bar.js"></script></td>
</tr>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="ima/shadow.gif"> </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="sendre.jsp?action=reing" id="form" name="form" method="post">
<tbody>
<tr class="text-login">
<td height="20" colspan="2"><strong>查看公司回復(fù)</strong></td>
</tr>
<tr class="text-login">
<td width="60" height="20" bgcolor="#EEEEEE">公司名稱</td>
<td width="290" height="20" bgcolor="#EEEEEE"> <%=cop_name%></td>
</tr>
<tr class="text-login">
<td width="60" height="20">職位名稱</td>
<td width="290" height="20"> <%=job_name%> <input name="id" type="hidden" id="id" value="<%=id%>"></td>
</tr>
<tr class="text-login">
<td height="20" valign="top" bgcolor="#EEEEEE">回復(fù)內(nèi)容</td>
<td height="20" bgcolor="#EEEEEE"><%=re_cont%></td>
</tr>
<tr class="text-login">
<td width="60" height="255" valign="top">更新回復(fù)</td>
<td width="290" height="275" align="center" valign="middle"><textarea name="re_cont" class="sendretextarea" id="re_cont" disabled><%=re_cont%></textarea></td>
</tr>
<tr align="right" valign="middle" class="text-login">
<td height="30" colspan="2" bgcolor="#EEEEEE">
<input type="button" class="logbutton" value="返回" onClick="window.location.href='list.jsp'">
</td>
</tr>
</tbody>
</form>
</table>
</td>
</tr>
</table>
<!-- 新版表格 -->
</td>
</tr>
<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>
<!-- 新版表格結(jié)束 -->
</body>
</html>
<%
}
}
}
else if(action.equals("reing"))
{
String id = request.getParameter("id");
String re_cont = request.getParameter("re_cont");
if(re_cont != null)
re_cont = new String(re_cont.getBytes("ISO8859_1"));
String[] info = new String[2];
info[0] = id;
info[1] = re_cont;
if(job.reing(info))
{
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
{
out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"Wrong action!\");window.location.href='list.jsp';</script>");
}
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -