📄 hire_commend.asp
字号:
<!--#include file="../../conn/conn.asp" -->
<!--#include file="../../Inc/Commoncode.asp" -->
<!--#include file="../checkvalid.asp" -->
<%
If Not FRAdminLevel(303) Then
Call ErrorMsg()
End If
search=CheckStr(trim(request("search")))
segment=CheckStr(trim(request("segment")))
operate=trim(request("operate"))
page=trim(request("page"))
if trim(request("step"))="2" then
hire_commendstartdate=trim(request("startdate"))
hire_commendenddate=trim(request("enddate"))
member=trim(request("member"))
id=cint(request("id"))
if member<>"" then
if request("free")=0 then
conn.execute("update job_c_hire set hire_command=1,hire_commandstartdate='"&hire_commendstartdate&"',hire_commandenddate='"&hire_commendenddate&"' where hire_id="&id&"")
else
prices2=request("consumenums")
if Pay_ItemPoint (member,2,prices2) then
sql="update JOB_C_hire set hire_command=1,hire_commandstartdate='"&hire_commendstartdate&"',hire_commandenddate='"&hire_commendenddate&"' where hire_id="&id&""
conn.execute(sql)
Call PayLog(member,2,"职位推荐",prices2,1)
else
Response.Write ("<script language=JavaScript>{alert('点数不够,职位推荐失败!');location.href = 'hire_searchlist.asp?hire_searchlist.asp?segment="&segment&"&search="&search&"&operate="&operate&"&page="&page&"';}</script>")
response.End()
end if
end if
end if
Response.Write ("<script language=JavaScript>{alert('职位推荐成功!');location.href = 'hire_searchlist.asp?segment="&segment&"&search="&search&"&operate="&operate&"&page="&page&"';}</script>")
response.End()
end if
%>
<%
sql="select * from job_c_hire where hire_id="&cint(request("member"))&""
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<html>
<head>
<title>招聘职位推荐</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href=../css/style.css rel=stylesheet type="text/css">
<script type="text/javascript" src="../inc/Admin.js"></script><script language="JavaScript">
<!--
function IsDate(DateString , Dilimeter)
{
if (DateString==null) return false;
if (Dilimeter=='' || Dilimeter==null)
Dilimeter = '-';
var tempy='';
var tempm='';
var tempd='';
var tempArray;
if (DateString.length<8 && DateString.length>10)
return false;
tempArray = DateString.split(Dilimeter);
if (tempArray.length!=3)
return false;
if (tempArray[0].length==4)
{
tempy = tempArray[0];
tempd = tempArray[2];
}
else
{
tempy = tempArray[2];
tempd = tempArray[1];
}
tempm = tempArray[1];
var tDateString = tempy + '/'+tempm + '/'+tempd+' 8:0:0';//加八小时是因为我们处于东八区
var tempDate = new Date(tDateString);
if (isNaN(tempDate))
return false;
if (((tempDate.getUTCFullYear()).toString()==tempy) && (tempDate.getMonth()==parseInt(tempm)-1) && (tempDate.getDate()==parseInt(tempd)))
{
return true;
}
else
{
return false;
}
}
function Juge(theForm)
{
if (!IsDate(theForm.startdate.value == ""))
{
alert("请正确填写开始时间!");
theForm.startdate.focus();
return (false);
}
if (!IsDate(theForm.enddate.value == ""))
{
alert("请正确填写结束时间!");
theForm.enddate.focus();
return (false);
}
}
function show1()
{
consume.style.display="";
}
function show2()
{
consume.style.display="none";
}
//-->
</script></head>
<body>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableBorder">
<form name="form1" method="post" action="?step=2&segment=<%=segment%>&search=<%=search%>&operate=<%=operate%>&page=<%=page%>" onSubmit="return Juge(this)">
<input name="member" type="hidden" value="<%=rs("hire_cmember")%>">
<input name="id" type="hidden" value="<%=rs("hire_id")%>">
<tr>
<th height=25 colspan="2" class="tableHeaderText">企业职位推荐</th>
</tr>
<TR>
<TD height=28 colSpan=3 align=left ><FONT color=#333333>(注:带</FONT><FONT color=#ff6600>*</FONT><FONT color=#b00000><FONT color=#333333>号为必填项)</FONT></FONT> </TD>
</TR>
<tr >
<td width="29%" height="30" align="right" class="amrow"><%
if rs("hire_commandenddate")>date() and rs("hire_command")=1 then
response.Write "(已推荐)"
elseif rs("hire_commandenddate")<date() and rs("hire_command")=1 then
response.Write "(<font color=red>已过期</font>)"
end if
%>职位名称:</td>
<td class="amrow"><%=rs("hire_place")%></td>
</tr>
<tr >
<td height="30" align="right">所属公司:</td>
<td><span class="amrow"><%=rs("hire_comname")%></span></td>
</tr>
<tr >
<td height="30" align="right">推荐时限:</td>
<td><input name="startdate" type="text" size="10" id=startdate value="<%
if rs("hire_commandstartdate")<>"" then
response.Write(rs("hire_commandstartdate"))
else
response.Write(date()) end if%>"><img src="../images/calendar_bnt.gif" style="cursor:pointer;" align="absmiddle" onClick="fPopUpCalendarDlg(startdate);return false" WIDTH="34" HEIGHT="21">
至
<%key_enddate=dateadd("d",30,date())%>
<input name="enddate" type="text" size="10" id=enddate value="<%
if rs("hire_commandenddate")<>"" then
response.Write(rs("hire_commandenddate"))
else
response.Write(key_enddate)
end if
%>"><img src="../images/calendar_bnt.gif" style="cursor:pointer;" align="absmiddle" onClick="fPopUpCalendarDlg(enddate);return false" WIDTH="34" HEIGHT="21">
<font color=#ff6600>*</font></td>
</tr>
<tr >
<td height="30" align="right" class="amrow">是否收费:</td>
<td width="71%" class="amrow"><input name="free" type="radio" class="checkbox" onClick="show1()" value="1" >
是
<input name="free" type="radio" class="checkbox" onClick="show2()" value="0" checked>
否</td>
</tr>
<tr id="consume" style="display:none">
<td height="30" align="right" class="amrow">扣除点数:</td>
<td class="amrow"><input name="consumenums" type="text" size="8" value="<%=PayItem(4,0)%>"></td>
</tr>
<tr >
<td height="30" colspan="2" align="center">
<input type="submit" name="Submit" value="提 交">
<input type="reset" name="Submit" value="重 置">
<input type="button" name="Submit" value="返 回" onClick="window.location='hire_searchlist.asp?segment=<%=segment%>&search=<%=search%>&operate=<%=operate%>&page=<%=page%>';"> </td>
</tr>
</form>
</table>
</div>
</body>
</html>
<%rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -