?? action.jsp
字號:
<%=job_grad%> </select></td>
</tr>
<tr class="text-login">
<td width="8%" bgcolor="#FFFFFF">網(wǎng)址</td>
<td width="42%" bgcolor="#FFFFFF"><input name="cop_www" type="text" class="addinput" id="cop_www" value="<%=cop_www%>"></td>
<td width="8%" bgcolor="#FFFFFF">語言要求</td>
<td width="42%" bgcolor="#FFFFFF"><select name="job_lang" class="addlist" id="job_lang">
<%=job_lang%> </select></td>
</tr>
<tr class="text-login">
<td width="8%" rowspan="3" valign="top" bgcolor="#FFFFFF">公司簡介</td>
<td width="42%" rowspan="3" valign="top" bgcolor="#EEEEEE"><textarea name="cop_desc" class="addtextarea" id="cop_desc"><%=cop_desc%></textarea></td>
<td bgcolor="#EEEEEE">工作經(jīng)驗</td>
<td bgcolor="#EEEEEE"><select name="job_expe" class="addlist" id="job_expe"><%=job_expe%>
</select></td>
</tr>
<tr bgcolor="#FFFFFF" class="text-login">
<td width="8%">其它待遇</td>
<td width="42%"><input name="job_oget" type="text" class="addinput" id="job_oget" value="<%=job_oget%>"></td>
</tr>
<tr bgcolor="#FFFFFF" class="text-login">
<td width="8%" valign="top" bgcolor="#EEEEEE">其它要求</td>
<td width="42%" valign="top" bgcolor="#EEEEEE"><textarea name="job_odem" class="addtextarea" id="job_odem"><%=job_odem%></textarea></td>
</tr>
</table></td>
</tr>
</table>
<table width="99%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td height="40" align="right"><input name="Submit" type="submit" class="logbutton" value="Submit">
<input type="button" class="logbutton" onClick="window.location.href='list.jsp'" value="Cancel">
</td>
</tr>
</table></form>
</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("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,cop_name,cop_mann,cop_cont,cop_tel,cop_mail,cop_fax,cop_addr,cop_zip,cop_www,cop_desc,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
{
out.println("<script language=\"JavaScript\" type=\"text/javascript\">alert(\"Wrong action!\");window.location.href=\"list.jsp\";</script>");
}
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -