workedit.asp
来自「全球商务网站系统介绍 GLOBALEC.COM.CN[生成HTML版] 」· ASP 代码 · 共 202 行
ASP
202 行
<%@ codepage ="936" %>
<%
if Request.Cookies("globalec")("globalecmaster")="" or Request.Cookies("globalec")("masterflag")="" then
response.write "<script language='javascript'>"
response.write"this.location.href='../login.asp';</SCRIPT>"
response.end
end if
if instr(Request.Cookies("globalec")("masterflag"),"23")=0 then
response.redirect "../err.asp"
response.end
end if
%>
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
<LINK href="../css/style.css" rel=stylesheet type=text/css>
<SCRIPT language=javascript1.2 src="../css/iXs_Main.js"></SCRIPT>
<script LANGUAGE="JavaScript">
function check()
{
if (trim(document.Form1.showname.value)=="")
{
alert("招聘主题不能为空")
document.Form1.showname.focus()
document.Form1.showname.select()
return
}
if (trim(document.Form1.zrs.value)=="")
{
alert("招聘人数不能为空")
document.Form1.zrs.focus()
document.Form1.zrs.select()
return
}
if (isNaN(Form1.zrs.value)){
alert("招聘人数只能填数字!");
Form1.zrs.focus();
return (false);
}
if (trim(document.Form1.xs.value)=="")
{
alert("工作地点不能为空")
document.Form1.xs.focus()
document.Form1.xs.select()
return
}
if (trim(document.Form1.content.value)=="")
{
alert("招聘内容不能为空")
document.Form1.content.focus()
document.Form1.content.select()
return
}
document.Form1.submit()
}
//-->
function trim(inputString) {
if (typeof inputString != "string") { return inputString; }
var retValue = inputString;
var ch = retValue.substring(0, 1);
while (ch == " ") {
//检查字符串开始部分的空格
retValue = retValue.substring(1, retValue.length);
ch = retValue.substring(0, 1);
}
ch = retValue.substring(retValue.length-1, retValue.length);
while (ch == " ") {
//检查字符串结束部分的空格
retValue = retValue.substring(0, retValue.length-1);
ch = retValue.substring(retValue.length-1, retValue.length);
}
while (retValue.indexOf(" ") != -1) {
//将文字中间多个相连的空格变为一个空格
retValue = retValue.substring(0, retValue.indexOf(" ")) + retValue.substring(retValue.indexOf(" ")+1, retValue.length);
}
return retValue;
}
//-->
</SCRIPT>
<%
if Chkrequest(request("info_id")) then
info_id=request("info_id")
else
Response.Redirect ("../../login/chklogin.asp?login=4")
end if
sql="select * from work where info_id="&info_id&" order by info_ID desc"
Set rs= Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
%>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center class="tableBorder">
<tr>
<th height=25 colspan="2" class="tableHeaderText">企业招聘信息管理 </th>
</tr>
<tr>
<td colspan="2" class="forumRowHighlight"><p><B>注意</B>:<BR>
①任何的删除操作都是不可逆的,执行删除时请慎重。<BR> </td>
</tr>
<tr>
<td width="10%" height=25 class="forumRowHighlight"> <B>操作选项</B></td>
<FORM name=searchForm action="work.asp" method=post onsubmit="javascript:if(doSearch()==false) return false;"><td class="forumRowHighlight">
关键字:<input name="keywords" type="text" value="<%=keywords%>">
<input type="submit" value="立刻查找" id=submit name=submit>
</td></form>
</tr>
</table>
<SCRIPT LANGUAGE='JavaScript' SRC='/js/search.js' TYPE='text/javascript'></script>
<form method="POST" action="save_edit.asp?info_id=<%=rs("info_id")%>" name="Form1">
<table wInfo_IDth="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="tableBorder">
<tr>
<th width="100%" height=25 colspan="5" class="tableHeaderText">企业招聘信息列表</th>
<tr>
<td colspan="5">
<table width="100%" height="508" border="0" cellpadding="0" cellspacing="1" bordercolor="#111111" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" id="AutoNumber2" style="border-collapse: collapse">
<tr>
<TD colspan="4" height="20" bgcolor="#EEF7FF" width="750">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<TD height="17" bgcolor="#EEF7FF" width="770">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<td width="62%"><span style="font-size: 10.5pt"><b> 修改招聘信息</b></span></td>
<td width="38%"> <font color=#CC3300>【</font><font color="#CC3300">*</font><font color=#CC3300>为必填写】</font></td>
</tr>
</table>
</TD>
</tr>
</table>
</TD>
</tr>
<tr>
<TD align=right width=193 height="27" class="forumRow">招聘主题:</td>
<TD width="554" height="27" class="forumRow" colspan="3">
<input name="showname" type="text" value="<%=rs("showname")%>" size="35" maxlength="50">
<font color="#CC3300">*</font></td>
</tr>
<tr>
<TD align="right" width="193" height="23" class="forumRowHighlight">有 效 期:</TD>
<TD width=554 height="23" class="forumRowHighlight" colspan="3">
<select size="1" name="period" class="f11">
<option value="<%=rs("period")%>" selected><%=rs("period")%></option>
<option value="一周">一周</option>
<option value="半月">半月</option>
<option value="一个月">一个月</option>
<option value="三个月">三个月</option>
<option value="六个月">六个月</option>
<option value="一年">一年</option>
<option value="长期">长期</option></select> <font color="#CC3300">*</font></td>
</tr>
<tr>
<TD align="right" width="193" height="27" class="forumRow">招聘人数:</TD>
<TD width=554 height="27" class="forumRow" colspan="3">
<input name="zrs" type="text" value="<%=rs("zrs")%>" size="11" maxlength="50">
<span class="a9px"><font color="blue">
</font>人<font color="blue">(<span style="letter-spacing: 1">为</span></font><span style="font-size: 13px; letter-spacing: 1"><font color="#FF0000">0</font></span><font color="blue"><span style="letter-spacing: 1">表示不限</span>)</font></span><font color="#CC3300">*</font></td>
</tr>
<tr>
<TD align="right" width="193" height="28" class="forumRowHighlight">
<p>工作地点:</TD>
<TD width=554 height="28" class="forumRowHighlight" colspan="3">
<input name="xs" type="text" value="<%=rs("xs")%>" size="11" maxlength="50"> <font color="#CC3300">*</font></td>
</tr>
<tr>
<TD align="right" width=193 height="25" class="forumRow">招聘对象:</td>
<TD width=554 height="25" class="forumRow" colspan="3">
<select size="1" style="font-size: 9pt" name="type">
<option value="<%=rs("type")%>" selected><%=rs("type")%></option>
<OPTION value="全职">全职</OPTION>
<OPTION value="兼职">兼职</OPTION>
<OPTION value="应届生">应届生</OPTION>
</SELECT><font color="#CC3300"> *</font></td>
</tr>
<tr>
<TD align="right" width="193" height="57" class="forumRowHighlight"> 招聘内容:<br>
(最多500字)</TD>
<TD colspan="3" align="left" width="554" height="57" class="forumRowHighlight">
<textarea rows="8" cols="54" name="content" class="f11" style="font-family: 宋体"><%=rs("content")%></textarea><FONT color="#CC3300"> *</FONT></TD>
</tr>
<tr bgcolor="#EFF7FF">
<TD colspan="4" align="center" width="750" height="21">
<INPUT class="f11" type="button" value="确 定 修 改" onclick="check()">
<INPUT name="重置" type="reset" class="f11" value="重 新 填 写"></TD>
</tr>
</table>
</td>
</tr>
</table>
</form>
<%rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<!--#include file="../copy.asp" -->
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?