<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/Commoncode.asp"-->
<!--#include file="../inc/CommonFunction.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>7.0智聘系统</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>
<%Selfindex=trim(Request("Selfindex"))
Action=trim(Request("Action"))
Select Case Action
	Case "Refresh"
		Call Refresh()
	Case "Refreshs"
		Call Refreshs()
	Case "Exchange"
		Call Exchange()
	Case "OrderS"
		Call OrderS()
End Select
Sub Exchange()
if request("exchangenum")<>"" And IsNumeric(request("exchangenum")) then
	ExchangeValue=request("exchangenum")
else
	response.write "<script language=javascript>alert('兑换金额不能为空，必须是不大于余额的数字！\n返回重新输入！');location.href='javascript:history.back()';</script>"
	response.end()
end if
sql="Select * From JOB_member Where Member_login='"&Request.Cookies(FRHRCMS)("user_login")&"'"
Set rs=Server.CreateObject("ADODB.RecordSet")
rs.Open sql,Conn,1,3
If Not(rs.Eof) Then
	Member_balance=0
	Member_consumenums=0
	If IsNumeric(rs("Member_balance")) Then Member_balance=rs("Member_balance")
	If IsNumeric(rs("Member_consumenums")) Then Member_consumenums=rs("Member_consumenums")
	Member_balance=CLng(Member_balance)
	Member_consumenums=CLng(Member_consumenums)
	ExchangeValue=CLng(ExchangeValue)
	If ExchangeValue>Member_balance Then
		response.write "<script language=javascript>alert('兑换金额不能大于余额！\n返回重新输入！');location.href='javascript:history.back()';</script>"
		response.end()
	Else
		Member_balance=Member_balance-ExchangeValue
		rs("Member_balance")=Member_balance
		rs("Member_consumenums")=Member_consumenums+ExchangeValue*clng(Point)
		rs.Update
		response.write "<script language=javascript>alert('恭喜您操作成功！');location.href='"&InstallDir&"member/main.asp?Selfindex=index';</script>"
		response.end()
	End If
End If
rs.Close
Set rs=Nothing
End Sub
Sub Refresh()
	conn.execute("update job_p_resume set resume_announcedate="&FR_HR_Now&" where resume_pmember='"&Request.Cookies(FRHRCMS)("user_login")&"'")
	response.Redirect InstallDir&"member/main.asp?Selfindex=index"
	response.End()
End Sub
Sub OrderS()
if request("sid")<>"" And IsNumeric(request("sid")) then
	sid=request("sid")
else
	response.write "<script language=javascript>alert('出错！');location.href='javascript:history.back()';</script>"
	response.end()
end if
if request("tid")<>"" And IsNumeric(request("tid")) then
	tid=request("tid")
else
	response.write "<script language=javascript>alert('出错！');location.href='javascript:history.back()';</script>"
	response.end()
end if
sql="Select * From job_prices Where id="&sid&" and price_type="&tid&""
Set rs=Server.CreateObject("ADODB.RecordSet")
rs.Open sql,Conn,1,1
If Not(rs.Eof) Then
	price_name=rs("price_name")
	price_useday=rs("price_useday")
	price_value=rs("price_value")
else
	response.write "<script language=javascript>alert('出错！');location.href='javascript:history.back()';</script>"
	response.end()
End If
rs.Close
Set rs=Nothing

sql="Select Member_consumenums From JOB_member Where Member_login='"&Request.Cookies(FRHRCMS)("user_login")&"'"
Set rs=Server.CreateObject("ADODB.RecordSet")
rs.Open sql,Conn,1,1
If Not(rs.Eof) Then
	Member_consumenums=0
	If IsNumeric(rs("Member_consumenums")) Then Member_consumenums=rs("Member_consumenums")
	Member_consumenums=CLng(Member_consumenums)
End If
rs.Close
Set rs=Nothing
price_value=CLng(price_value)
if request("do")<>"y" then
%>
<div class="mtdiv">
<div class="leftmenutit"><span>服务自主购买</span></div>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" class="mtable">
  <tr>
    <tr>
    <td>购买<font color="#FF0000"><b><%=price_name%></b></font>，有效期<%=price_useday%>天，扣费<%=price_value%>点。</td>
  </tr>
  <%if tid="5" then%>
  <tr>
    <td style="line-height:200%">请选择要推荐的职位：<br><table width="98%" align="center" border="0" cellpadding="4" cellspacing="0" style="border:solid 1px #CCC; background:#FFF">
  <tr>
    <td bgcolor="#FFFFFF"><script language="javascript">
    function SelectHire(checkid,num)
{
	var ids = document.getElementsByName(checkid);
	var a=0;
	if (ids != null) 
	{
		for (i=0; i<ids.length; i++) 
		{
			var obj = ids(i);
			if (obj.checked==true)
			{
				a+=1
				if(a>num)
				{
					obj.checked=false;
					alert("对不起，您选中的职位推荐所需点数已经超过账户余额，请先减少已选项再选择！");
					return false;
				}
			}
		}
	}
}
function OrderHire(checkid,href)
{
	var ids = document.getElementsByName(checkid);
	var check=false;
	var a=0;
	if (ids != null) 
	{
		for (i=0; i<ids.length; i++) 
		{
			var obj = ids(i);
			if (obj.checked==true)
			{
				check=true;
				a+=1
			}
		}
		if(check==false)
		{
			alert("请选择要推荐的职位！");
			return false;
		}
		else
		{
			document.hireform.action=href;
			document.hireform.submit();
		}
	}
}</script>
<form name="hireform" action="main.asp" method="post"><%sql="select * from job_c_hire where hire_cmember='"&Request.Cookies(FRHRCMS)("user_login")&"'"
	Set rs=Server.CreateObject("ADODB.RecordSet")
rs.Open sql,Conn,1,1
If Not(rs.Eof) Then
do while not rs.eof%>
<input type='checkbox' name='checks' value='<%=rs("hire_id")%>' onclick="SelectHire('checks',<%=fix(Member_consumenums/price_value)%>)" id='checks' <%if rs("hire_command")="1" then%>disabled="disabled"<%end if%> ><%=rs("hire_place")%>
<%rs.movenext
loop
else%>
暂无职位，请先<a href="../company/company_hirelist.asp?step=Addhire" target="main">发布职位</a>！
<%end if
rs.close
set rs=nothing%></form></td>
  </tr>
</table>
    </td>
  </tr>
    <tr>
    <td><input name="input" type="button" <%if price_value>Member_consumenums then%>value="余额不足" disabled="disabled"<%else%>onclick="OrderHire('checks','?Action=OrderS&do=y&sid=<%=sid%>&tid=<%=tid%>');" value="确认购买"<%end if%> class="inputs" /> <input name="input" type="button" onclick="javascript:history.back()" value="取消购买" class="inputs" /></td>
  </tr>
  <%else%>
    <tr>
    <td><input name="input" type="button" <%if price_value>Member_consumenums then%>value="余额不足" disabled="disabled"<%else%>onclick="location.href='?Action=OrderS&do=y&sid=<%=sid%>&tid=<%=tid%>'" value="确认购买"<%end if%> class="inputs" /> <input name="input" type="button" onclick="javascript:history.back()" value="取消购买" class="inputs" /></td>
  </tr>
  <%end if%>
  </tr>
    <td style="line-height:200%">点击“确认购买”系统将自动从您的账户上扣除相应点数；<br>点击"取消购买"本次操作将取消，系统自动返回。</td>
  </tr>
</table>
</div>
<%
response.end()
else
	If price_value>Member_consumenums Then
		response.write "<script language=javascript>alert('点数不足，请先充值！');location.href='javascript:history.back()';</script>"
		response.end()
	Else
	Select Case tid
		Case "1"
			conn.execute("update job_member set member_command=1,member_commandstartdate='"&date()&"',member_commandenddate='"&dateadd("d",price_useday,date())&"',Member_consumenums=Member_consumenums-"&price_value&" where member_login='"&Request.Cookies(FRHRCMS)("user_login")&"' and member_typeid=1")
			Call PayLog(Request.Cookies(FRHRCMS)("user_login"),1,"购买"&price_name&"扣点",price_value,0)
		Case "2"
			conn.execute("update job_member set Member_logocommand=1,Member_logostartdate='"&date()&"',Member_logoenddate='"&dateadd("d",price_useday,date())&"',Member_consumenums=Member_consumenums-"&price_value&" where member_login='"&Request.Cookies(FRHRCMS)("user_login")&"' and member_typeid=1")
			Call PayLog(Request.Cookies(FRHRCMS)("user_login"),1,"购买"&price_name&"扣点",price_value,0)

		Case "3"
			conn.execute("update job_member set Member_logocommand=1,Member_logostartdate='"&date()&"',Member_logoenddate='"&dateadd("d",price_useday,date())&"',Member_consumenums=Member_consumenums-"&price_value&" where member_login='"&Request.Cookies(FRHRCMS)("user_login")&"' and member_typeid=2")
			Call PayLog(Request.Cookies(FRHRCMS)("user_login"),2,"购买"&price_name&"扣点",price_value,0)

		Case "4"
			conn.execute("update job_member set member_command=1,member_commandstartdate='"&date()&"',member_commandenddate='"&dateadd("d",price_useday,date())&"',Member_consumenums=Member_consumenums-"&price_value&" where member_login='"&Request.Cookies(FRHRCMS)("user_login")&"' and member_typeid=2")
			Call PayLog(Request.Cookies(FRHRCMS)("user_login"),2,"购买"&price_name&"扣点",price_value,0)
		Case "5"
		if request("checks")<>"" then
 		pp=ubound(split(request("checks"),","))+1 
			for v=1 to pp
			checks=request("checks")(v) 
			conn.execute("update job_c_hire set hire_command=1,hire_commandstartdate='"&date()&"',hire_commandenddate='"&dateadd("d",price_useday,date())&"' where hire_cmember='"&Request.Cookies(FRHRCMS)("user_login")&"' and hire_id="&checks&"")
  			next
			conn.execute("update job_member set Member_consumenums=Member_consumenums-"&clng(price_value*pp)&" where member_login='"&Request.Cookies(FRHRCMS)("user_login")&"' and member_typeid=2")
		end if 
	End Select
		response.write "<script language=javascript>alert('恭喜您操作成功！');location.href='"&InstallDir&"member/main.asp?Selfindex=index';</script>"
		response.end()
	End If
end if
End Sub
Sub Self_href()
self_link=Request.Cookies(FRHRCMS)("self_link")
self_path=Request.Cookies(FRHRCMS)("self_path")
Response.Cookies(FRHRCMS)("self_link")=""
Response.Cookies(FRHRCMS)("self_path")=""
if self_link<>"" and not isnull(self_link) and self_path<>"" and not isnull(self_link) then
	response.Redirect InstallDir&self_path&"/"&self_link
	response.End()
end if
End Sub
'查帐户信息
sqlm="select Member_logocommand,Member_logostartdate,Member_logoenddate,Member_command,member_commandstartdate,member_commandenddate,Member_balance,Member_integral,Member_consumenums from JOB_Member where Member_login='"&Request.Cookies(FRHRCMS)("user_login")&"'"
set rsm=conn.execute(sqlm)
if not (rsm.bof and rsm.eof) then
	Member_balance=rsm("Member_balance")
	Member_integral=rsm("Member_integral")
	Member_consumenums=rsm("Member_consumenums")
	Member_command=rsm("Member_command")
	Member_commandstartdate=rsm("Member_commandstartdate")
	Member_commandenddate=rsm("Member_commandenddate")
	Member_logocommand=rsm("Member_logocommand")
	Member_logostartdate=rsm("Member_logostartdate")
	Member_logoenddate=rsm("Member_logoenddate")
end if
rsm.close
set rsm=nothing
%>
<body>
<script language="javascript" src="../js/tit.js"></script>
<%if Request.Cookies(FRHRCMS)("user_type")="cmember" then
if Request.Cookies(FRHRCMS)("user_name")="" then
	response.Redirect("../company/company_info.asp")
	response.End()
end if
if Selfindex<>"index" then Call Self_href()
%>
<!--#include file="../company/checkcmember.asp" -->
<!--#include file="../company/flagandexpend.asp"-->
<%
set rs=server.createobject("ADODB.Recordset")
	sql="select count(*) as hirecount,sum(hire_visitcount) as hirevisitcount  from job_c_hire where hire_cmember='"&Request.Cookies(FRHRCMS)("user_login")&"' and hire_status=1"
	rs.open sql,conn,1,1
	hirecount=rs("hirecount")
	hirevisitcount=rs("hirevisitcount")
	rs.close
	sql="select count(*) as myreceivecount from job_c_myreceive where myreceive_cmember='"&Request.Cookies(FRHRCMS)("user_login")&"'"
	rs.open sql,conn,1,1
	myreceivecount=rs("myreceivecount")
	rs.close
	sql="select count(*) as myexpertcount from job_c_myexpert where myexpert_cmember='"&Request.Cookies(FRHRCMS)("user_login")&"'"
	rs.open sql,conn,1,1
	myexpertcount=rs("myexpertcount")
	rs.close
	sql="select count(*) from job_c_interview where cominterview_cmember='"&Request.Cookies(FRHRCMS)("user_login")&"'"
	rs.open sql,conn,1,1
	num=rs(0)
	rs.close
set rs=nothing
%>
<div class="mpwarm">
<span>服务概况</span>
<!--<li class="mpli" style="margin-top:6px;">已发布职位 <font color="#FF0000"><%=hirecount%></font> 个 <a href="../company/company_hirelist.asp">查看</a></li>
<li class="mpli">面试人才记录 <font color="#FF0000"><%=num%></font> 条 <a href="../company/company_interview.asp">查看</a></li>
<li class="mpli">企业人才库简历 <font color="#FF0000"><%=myexpertcount%></font> 份 <a href="../company/company_myexpert.asp">查看</a></li>-->
<br />
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#E6E6E6">
  <tr>
    <td width="60" align="right" bgcolor="#FFFFFF">会员账号：</td>
    <td width="80" bgcolor="#FFFFFF"><%=cmember_login%></td>
    <td width="60" align="right" bgcolor="#FFFFFF">服务类型：</td>
    <td colspan="3" bgcolor="#FFFFFF"><%=Group_name%>(<%=Cmstartdate%>到<%=Cmenddate%>)</td>
    </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">职位库：</td>
    <td bgcolor="#FFFFFF"><%if Group_Climits(1)=0 then%><font color="#FF0000">不限</font><%else%><font color="#FF0000"><%=Cmhirenum%></font>个<%end if%></td>
    <td align="right" bgcolor="#FFFFFF">人才库：</td>
    <td width="80" bgcolor="#FFFFFF"><%if Group_Climits(3)=0 then%><font color="#FF0000">不限</font><%else%><font color="#FF0000"><%=Cmexpertnum%></font>个<%end if%></td>
    <td width="60" align="right" bgcolor="#FFFFFF">回收站：</td>
    <td bgcolor="#FFFFFF"><%if Group_Climits(7)=0 then%><font color="#FF0000">不限</font><%else%><font color="#FF0000"><%=Cmrecyclenum%></font>份<%end if%></td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">下载简历：</td>
    <td bgcolor="#FFFFFF"><%if Group_Climits(9)=0 then%><font color="#FF0000">不限</font><%else%><font color="#FF0000"><%=Cmcontactnum%></font>份<%end if%></td>
    <td align="right" bgcolor="#FFFFFF">面试邀请：</td>
    <td bgcolor="#FFFFFF"><%if Group_Climits(5)=0 then%><font color="#FF0000">不限</font><%else%><font color="#FF0000"><%=Cminterviewnum%></font>个<%end if%></td>
    <td align="right" bgcolor="#FFFFFF">求职意向：</td>
    <td bgcolor="#FFFFFF"><font color="#FF0000"><%=myreceivecount%></font>个</td>
  </tr>
  <tr>
    <td align="right" bgcolor="#FFFFFF">邀请短信：</td>
    <td bgcolor="#FFFFFF"><font color="#FF0000"><%=Cmsmsnum%></font>条</td>
    <td align="right" bgcolor="#FFFFFF" class="tdcolor">即时提醒：</td>
    <td colspan="3" bgcolor="#FFFFFF">暂无</td>
    </tr>
</table>
<li><b>刷新职位：</b>为了贵公司更快的找到合适的人才，请到 <a href="../company/company_hirelist.asp"> 职位管理页面</a> 刷新已发布的职位 <!--<input name="" type="button" onclick="window.location='main.asp?Action=Refreshs'" value="刷新" class="inputs" />--></li>
</div>
<div class="mpmoney">
<form name="pointform" action="?Action=Exchange" method="post">
<span>充值管理</span>
<li style="margin-top:6px;">充值享受更多我们优质的服务。</li>
<li>您的帐户余额：<font color="#FF0000"><%=Member_balance%></font> 元  <a href="../onlinepay/payindex.asp">在线充值</a> </li>
<li>您的剩余点数：<font color="#FF0000"><%=Member_consumenums%></font> 点 余额兑换率1:<%=Point%></li>
<li>输入兑换金额：<input type="text" name="exchangenum" size="3" style="height:12px; line-height:100%" value="" onkeyup="exchangepoint.value=this.value*<%=clng(Point)%>" onblur="exchangepoint.value=this.value*<%=clng(Point)%>;if(this.value><%=clng(Member_balance)%>){alert('最多可兑换<%=Member_balance%>元！');};" />元兑<input type="text" name="exchangepoint" size="4" style="height:12px; line-height:100%" disabled="disabled" />点<input type="submit" value="兑换" style="height:20px;" /></li>
<li>您的消费积分：<font color="#FF0000"><%=Member_integral%></font> 分 <a href="../help/index.asp" target="_blank">如何获得积分?</a> </li>
<li style=" float:right;"> <input name="" type="button" onclick="location.href='../onlinepay/payindex.asp'" value="在线帐户充值" class="inputs" /></li>
</form>
</div>
<div class="mtdiv">
<div class="leftmenutit"><span>服务自助购买</span></div>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" class="mtable">
  <tr>
    <td><b>服务项目</b></td>
    <td><b>服务周期</b></td>
    <td><b>扣除点数</b></td>
    <td><b>服务说明</b></td>
    <td><b>在线购买</b></td>
  </tr>
  <%
		sql="select * from job_prices where price_type<>1 and price_type<>2"
		set rs=server.CreateObject ("adodb.recordset")
		rs.open sql,conn,1,1
		if rs.eof then
		   response.write "<tr><td colspan=5 class=altbg2 align=center><font color=#ff0000>暂时没有服务项目!</a></td></tr>"
		else
		   i=1
		   do while not rs.eof
		     id=rs("id")
		     price_name=rs("price_name")
		     price_picture=rs("price_picture")
		     price_useday=rs("price_useday")
		     price_value=rs("price_value")
			 price_content=rs("price_content")
			 price_type=rs("price_type")
	%>
  <tr>
    <td><%=price_name%></td>
    <td><%=price_useday%>天</td>
    <td><%=price_value%>点</td>
    <td><%=price_content%></td>
    <td>
    <%if price_type="3" then%>
    <%if Member_logocommand="1" then%>已购买(<%=Member_logostartdate%>—<%=Member_logoenddate%>)<%else%><input name="input" type="button" <%if price_value>Member_consumenums then%>value="余额不足" disabled="disabled"<%else%>onclick="location.href='?Action=OrderS&sid=<%=id%>&tid=<%=price_type%>'" value="立即购买"<%end if%> class="inputs" /><%end if%><%end if%>
	<%if price_type="4" then%><%if Member_command="1" then%>已购买(<%=member_commandstartdate%>—<%=member_commandenddate%>)<%else%><input name="input" type="button" <%if price_value>Member_consumenums then%>value="余额不足" disabled="disabled"<%else%>onclick="location.href='?Action=OrderS&sid=<%=id%>&tid=<%=price_type%>'" value="立即购买"<%end if%> class="inputs" /><%end if%><%end if%>
    <%if price_type="5" then%><input name="input" type="button" <%if price_value>Member_consumenums then%>value="余额不足" disabled="disabled"<%else%>onclick="location.href='?Action=OrderS&sid=<%=id%>&tid=<%=price_type%>'" value="立即购买"<%end if%> class="inputs" /><%end if%></td>
  </tr>
  		<%
		   rs.movenext
		   i=i+1
		   loop
		end if
		rs.close
		set rs=nothing
		%>
</table>
</div>
<div class="mpjob">
<div class="leftmenutit"><span>最新相关人才</span></div>
<div class="mtables">
<%=GetResumeList(10,1,"0|0|1|1|0|1|1|0|0",1,1,0,0,0,1,"resume_announcedate desc","_blank",0,0,110,80,-1)%>
</div>
</div>
<div class="mpcom">
<div class="leftmenutit"><span>推荐优秀人才</span></div>
<div class="mtables">
<%=GetResumeList(10,1,"0|0|1|0|0|1|1|0|0",1,1,1,0,0,1,"resume_announcedate desc","_blank",0,0,110,80,-1)%>
</div>
</div>
<%elseif Request.Cookies(FRHRCMS)("user_type")="pmember" then%>
<!--#include file="../person/flagandexpend.asp"-->
<%'判断是否为第一份简历，并完善简历
if Request("rid")<>"" and IsNumeric(Request("rid")) then
	response.Redirect("../person/person_addresume.asp?rid="&Request("rid")&"")
	response.End()
end if
Set rs1=conn.Execute("select top 1 resume_id,resume_personinfo,resume_education,resume_train,resume_lang,resume_work,(resume_personinfo+resume_education+resume_train+resume_lang+resume_work) as ricount from JOB_P_resume where resume_pmember='"&Request.Cookies(FRHRCMS)("user_login")&"' order by resume_cnstatus desc,resume_personinfo+resume_education+resume_train+resume_lang+resume_work desc")
if not rs1.eof then
if rs1("resume_personinfo")<>1 or rs1("resume_education")<>1 or rs1("resume_train")<>1 or rs1("resume_lang")<>1 or rs1("resume_work")<>1 then
	Response.Write("<script language=javascript>if (confirm('系统检测到您发布的简历尚未填写完整，现在要继续填写吗？\n\n点击“确定”继续填写，“取消”不填写！')) location.href='../person/person_addresume.asp?rid="&rs1("resume_id")&"';</script>")
end if
end if
rs1.close
Set rs1=Nothing
if Request.Cookies(FRHRCMS)("user_name")="" then
	response.Redirect("../person/person_info.asp")
	response.End()
end if
if Selfindex<>"index" then Call Self_href()
'查询出相关统计数据
'查应聘记录
sqln="select sum(resume_visitnum) as resumevisitcount from JOB_P_resume where resume_pmember='"&Request.Cookies(FRHRCMS)("user_login")&"'"
set rsn=conn.execute(sqln)
num=rsn("resumevisitcount")
rsn.close
set rsn=nothing
%>
<div class="mpwarm">
<span>温馨提示</span>
<li class="mpli" style="margin-top:6px;">您共创建了 <font color="#FF0000" style="font-weight:bold"><%=MemberCount("JOB_P_resume","resume_pmember",pmember_login)%></font> 份简历，目前有 <font color="#FF0000" style="font-weight:bold"><%=MemberCounts("JOB_P_resume","resume_pmember",pmember_login,"resume_cnstatus",1)%></font> 份激活。“激活”状态的简历才能被招聘单位查询。</li>
<li class="mpli">您可以创建 <font color="#FF0000" style="font-weight:bold"><%if Group_Plimits(6)=0 then%>无限<%else%><%=Group_Plimits(6)%><%end if%></font> 份简历，用于申请不同的职位。简历被查看 <font color="#FF0000"><%=num%></font></li>
<li class="mpli">您共收到了 <font color="#FF0000" style="font-weight:bold"><%=MemberCount("JOB_P_myinterview","myinterview_pmember",pmember_login)%></font> 封面试邀请，<a href="../person/person_interview.asp" class="04d"><u>点此查看</u></a>。</li>
<li class="mpli">您共应聘了 <font color="#FF0000" style="font-weight:bold"><%=MemberCount("JOB_P_mysend","mysend_pmember",pmember_login)%></font> 个职位，<a href="../person/person_works.asp" class="04d"><U>点此查看</U></a>。</li>
<li class="mpli">您共收藏了 <font color="#FF0000" style="font-weight:bold"><%=MemberCount("JOB_P_myfavorite","myfavorite_pmember",pmember_login)%></font> 个职位，<a class="04d" href="../person/person_favorite.asp"><U>点此查看</U></a>。</li>
<li><b>刷新简历：</b>为了使您的简历更容易被用人企业找到，您可以立即刷新您的简历 <input name="" type="button" onclick="window.location='main.asp?Action=Refresh'" value="刷新" class="inputs" /></li>
</div>
<div class="mpmoney">
<form name="pointform" action="?Action=Exchange" method="post">
<span>充值管理</span>
<li style="margin-top:6px;">充值获取推荐机会，让企业主动联系你。</li>
<li>您的帐户余额：<font color="#FF0000"><%=Member_balance%></font> 元  <a href="../onlinepay/payindex.asp">在线充值</a> </li>
<li>您的剩余点数：<font color="#FF0000"><%=Member_consumenums%></font> 点 余额兑换率1:<%=Point%></li>
<li>输入兑换金额：<input type="text" name="exchangenum" size="3" style="height:12px; line-height:100%" value="" onkeyup="exchangepoint.value=this.value*<%=clng(Point)%>" onblur="exchangepoint.value=this.value*<%=clng(Point)%>;if(this.value><%=clng(Member_balance)%>){alert('最多可兑换<%=Member_balance%>元！');};" />元兑<input type="text" name="exchangepoint" size="4" style="height:12px; line-height:100%" disabled="disabled" />点<input type="submit" value="兑换" style="height:20px;" /></li>
<li>您的消费积分：<font color="#FF0000"><%=Member_integral%></font> 分 <a href="../help/index.asp" target="_blank">如何获得积分?</a> </li>
<li style="float:right;"> <input name="" type="button" onclick="location.href='../onlinepay/payindex.asp'" value="在线帐户充值" class="inputs" /></li>
</form>
</div>
<div class="mtdiv">
<div class="leftmenutit"><span>服务自助购买</span></div>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" class="mtable">
  <tr>
    <td><b>服务项目</b></td>
    <td><b>服务周期</b></td>
    <td><b>扣除点数</b></td>
    <td><b>服务说明</b></td>
    <td><b>在线购买</b></td>
  </tr>
  <%
		sql="select * from job_prices where price_type=1 or price_type=2"
		set rs=server.CreateObject ("adodb.recordset")
		rs.open sql,conn,1,1
		if rs.eof then
		   response.write "<tr><td colspan=5 class=altbg2 align=center><font color=#ff0000>暂时没有服务项目!</a></td></tr>"
		else
		   i=1
		   do while not rs.eof
		     id=rs("id")
		     price_name=rs("price_name")
		     price_picture=rs("price_picture")
		     price_useday=rs("price_useday")
		     price_value=rs("price_value")
			 price_content=rs("price_content")
			 price_type=rs("price_type")
	%>
  <tr>
    <td><%=price_name%></td>
    <td><%=price_useday%>天</td>
    <td><%=price_value%>点</td>
    <td><%=price_content%></td>
    <td><%if price_type="1" then%>
    <%if Member_command="1" then%>已购买(<%=member_commandstartdate%>—<%=member_commandenddate%>)<%else%><input name="input" type="button" <%if price_value>Member_consumenums then%>value="余额不足" disabled="disabled"<%else%>onclick="location.href='?Action=OrderS&sid=<%=id%>&tid=<%=price_type%>'" value="立即购买"<%end if%> class="inputs" /><%end if%><%end if%>
    <%if price_type="2" then%>
    <%if Member_logocommand="1" then%>已购买(<%=Member_logostartdate%>—<%=Member_logoenddate%>)<%else%><input name="input" type="button" <%if price_value>Member_consumenums then%>value="余额不足" disabled="disabled"<%else%>onclick="location.href='?Action=OrderS&sid=<%=id%>&tid=<%=price_type%>'" value="立即购买"<%end if%> class="inputs" /><%end if%><%end if%></td>
  </tr>
  		<%
		   rs.movenext
		   i=i+1
		   loop
		end if
		rs.close
		set rs=nothing
		%>
</table>
</div>
<div class="mpjob">
<div class="leftmenutit"><span>最新相关职位</span></div>
<div class="mtables">
<%=GetHireLists(10,1,"1|1|1|0|0|0|0|0|1|0|0|0|0",1,0,0,1,0,0,1,"hire_announcedate desc","_blank")%>
</div>
</div>
<div class="mpcom">
<div class="leftmenutit"><span>推荐企业</span></div>
<div class="mtables">
<%=GetComList(10,1,0,20,0,0,5,3,0,1,1,"Member_activedate desc","_blank",0,0,0,0,180,60,0,-1)%>
</div>
</div>
<%end if%>
</body>
</html>