<% Response.Buffer=True %>
<!--#include file="conn/conn_index.asp"-->
<!--#include file="inc/money.asp"-->
<!--#include file="inc/setup.asp"-->
<!--#include file="inc/char.asp"-->
<!--#include file="inc/sql.asp"-->
<%
	End If
	id=int(ReplaceBadChar(replace(Trim(Request.QueryString("id")),"'","")))
	dim lookadd
	lookadd=0
	
	if id="" then   
		response.write"<SCRIPT language=JavaScript>alert('对不起，非法操作！');"
		response.write"javascript:window.close();</SCRIPT>"
		response.end 
	end if
	
	set rs_zp=server.createobject("adodb.recordset")
	company_sql="select zp.*,company.cname comcname,company.email,company.phone,company.pname,company.Usercheck,company.grade,company.dian,company.begintime,company.endtime,company.readnum,company.changepay from zp,company where zp.uid=company.id and zp.uid="&id&" and zp.zhuangtai=1"
	rs_zp.open company_sql,conn,1,1
	
	if rs_zp.eof or rs_zp.bof then
		response.write "<script language=JavaScript>" & "alert('对不起，该招聘信息不存在或已被删除！！');"&"window.location.href = 'index.asp'"&" </script>"
		response.end 
		rs_zp.close
		set rs_zp=nothing
	end if
	
	Usercheck=int(rs_zp("Usercheck"))
	grade=int(rs_zp("grade")) '企业用户级别 0为初级，1为中级，2为高级
	dian=int(rs_zp("dian"))	'企业用户的M币数量
	begintime=rs_zp("begintime")	'会员期开始时间
	endtime=rs_zp("endtime")	'会员期结束时间
	readnum=int(rs_zp("readnum"))	'会员期内读取个人会员资料的数量，本项目只适用于中级企业用户
	changepay=int(rs_zp("changepay"))	'读取用户的收费方式
	begint=int(datediff("d",now(),begintime))	'会员期开始时间与当前时间的差值
	endt=int(datediff("d",now(),endtime))	'会员期结束时间与当前时间的差值
	if grade=1 and begint<=0 and endt>=0 and readnum>=1 and changepay=1 then action="ture"
	if grade=2 and begint<=0 and endt>=0 and changepay=1 then action="ture"
	if dian>0 and changepay=0 then action="ture"
%>
<HTML>
<HEAD>
<link rel="Shortcut Icon" href="Images/favicon.ico">
<link rel="Bookmark" href="Images/favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<TITLE><%= homename %>--浏览企业(<%= rs_zp("comcname") %>)详细资料</TITLE>
<meta name="Keywords" content="<%= webmeta %>">
<meta name="Description" content="<%= webmeta1 %>">
<link href="css/stylecompanyjobs.css" rel="stylesheet" type="text/css" />
<link href="css/joball.css" rel="stylesheet" type="text/css" />
</HEAD>
<BODY topMargin=0 leftmargin="0" rightmargin="0">
<!--#include file="top.asp"-->
<table align="center" width="977" cellpadding="0" cellspacing="0" border="0">
  <tr>
    <td>
	<div style="width: 100%; height: 100%; border:1px solid #BABABA;">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  
  <tr>
    <td height="93" valign="top" background="images/job/back2.gif" class="htop">
	<div class="title_div"><a class="title" style="font-size:18px; font-weight: bold;color:#FFFFFF"><%= rs_zp("comcname") %></a><h2>企业编号:Com<%= rs_zp("uid") %></h2></div>
	<div class="gnbtn">
		<% If usercheck=1 Then %><div class="vipbtn"><img src="images/job/zzbtn.gif" border="0" /></div><% End If %><% If action="ture" Then %><div class="vipbtn"><img src="images/job/vipbtn.gif" border="0" /></div><% End If %>
	</div>	</td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="199" valign="top" style="background:#EAEAEA; border-right:1px solid #B3B3B3;"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><div style="width:180px; margin-top:8px; margin-bottom:10px;"><img src="images/job/job.gif" /></div></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="8" cellspacing="0" class="kuang">
<%
   set rs_zpp=server.createobject("adodb.recordset")
   zp_sql="select * from zp where uid="& id &" and zhuangtai=1 order by idate desc,id desc "
   rs_zpp.open zp_sql,conn,1,1
   do while not rs_zpp.eof
	if rs_zpp("jobtype")=0 then
		jobnameid=int(rs_zpp("jtzw"))
%>
<!--#include file="inc/jobname.asp"-->
<%
	else
		jobname=rs_zpp("jobname")
		if len(jobname)>10 then jobname=left(jobname,10)&"..." else jobname=jobname
	end if
%>
                  <tr class="underline">
                    <td><div class="icon"></div><a href="view_job.asp?id=<%= rs_zpp("id") %>"><%= jobname %></a></td>
                  </tr>
<% 
	rs_zpp.movenext
	loop 
	rs_zpp.close
	set rs_zpp = nothing
%>
            </table></td>
          </tr>
          <tr style="display:">
            <td><a href="preg.asp" target="_blank"><img src="images/job/enrol.gif" alt="免费注册个人会员" width="180" height="82" border="0" /></a></td>
          </tr>          
        </table></td>
        <td valign="top">
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td height="30" align="left" class="underline"><a href="view_company.asp?id=<%= rs_zp("uid") %>"><strong>公司简介</strong></a> | <a href="company_job.asp?id=<%= rs_zp("uid") %>"><strong>招聘职位</strong></a></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
		  <tr>
            <td valign="top">
<div id="mainId" name="mainId">
<%
	
	do while not rs_zp.eof
	lookadd=0
	writenote=""
	if Request.Cookies("admin_person_name")<>"" then
		pname=ReplaceBadChar(Request.Cookies("admin_person_name"))
		set rs_ptime=createobject("adodb.recordset")
		ptime_sql="select * from person where uname='" & pname & "'"
		rs_ptime.open ptime_sql,Conn
		if not rs_ptime.eof then
			begintime=rs_ptime("begintime")
			endtime=rs_ptime("endtime")
			dian=rs_ptime("dian")
			changepay=rs_ptime("changepay")
		end if
		begint=datediff("d",now(),begintime)
		endt=datediff("d",now(),endtime)
		rs_ptime.close
		set rs_ptime = nothing
		if changepay=1 and begint<=0 and endt>=0 then lookadd=1
		if changepay=0 and dian>=ppay then lookadd=1
		if begint>0 and changepay=1 then writenote="您的会员期还没有开始，请稍等"
		if endt<0 and changepay=1 then writenote="您的会员期已经结束，请重新充值"
		if changepay=0 and dian<ppay then writenote="您的M币不足，请重新充值"
		if lookadd=1 then
			set rs_addperson=server.createobject("adodb.recordset")
			sql_addperson="select * from [pread] where name ='" & pname & "' and readid=" & id & ""
			rs_addperson.open sql_addperson,conn,2,3
		
			if rs_addperson.eof or rs_addperson.bof then
				rs_addperson.addnew
				rs_addperson("name")=pname
				rs_addperson("readid")=id
				rs_addperson.update
				rs_addperson.close
				set rs_addperson=nothing
			end if
			conn.execute("update person set dian=dian-" & ppay & " , fen=fen+" & ppay1 & " where uname='" & pname & "'")
		end if
	else
		writenote="请登陆后再查看"
	end if
	if rs_zp("jobtype")=0 then
		jobnameid=int(rs_zp("jtzw"))
%>
<!--#include file="inc/jobname.asp"-->
<%
	else
		jobname=rs_zp("jobname")
	end if
	cityid=int(rs_zp("city"))
	shengid=int(rs_zp("gzdd"))
	areaid=int(rs_zp("cypic"))
%>
<!--#include file="inc/cityname.asp"-->
<!--#include file="inc/shengname.asp"-->
<!--#include file="inc/areaname.asp"-->
			<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
            		<td style=" padding-top:15px;"><img src="images/job/icon.gif" width="16" height="9" /> <span class="text5"><%= hobname %></span><span class="text6"> （职位编号：Job<%= id %>）</span></td>
          		</tr>
          		<tr>
            		<td><div style=" padding-top:8px; padding-bottom:8px;">
              			<table width="97%" border="0" align="center" cellpadding="6" cellspacing="0">
                			<tr class="underline">
                  				<td width="14%"><span class="text3">电子邮箱：</span></td>
                  				<td colspan="3"><% if lookadd=1 then Response.Write(rs_zp("email")) else Response.Write(writenote)%></td>
                  			</tr>
                			<tr class="underline1">
                  				<td><span class="text3">联系电话：</span></td>
                  				<td width="48%"><% if lookadd=1 then Response.Write(rs_zp("phone")) else Response.Write(writenote)%></td>
                  				<td width="14%"><span class="text3">联 系 人：</span></td>
                  				<td width="24%"><%= rs_zp("pname") %></td>
                			</tr>
                			<tr class="underline">
                  				<td><span class="text3">开始日期：</span></td>
                  				<td><%= rs_zp("addtime") %></td>
                  				<td><span class="text3">截止日期：</span></td>
                  				<td><%= year(rs_zp("youxiaos")) %>-<%= month(rs_zp("youxiaos")) %>-<%= day(rs_zp("youxiaos")) %></td>
                			</tr>
                			<tr class="underline1">
                  				<td><span class="text3">工作地点：</span></td>
                  				<td><%= shengname %>--<%= cityname %>--<%= areaname %></td>
                  				<td><span class="text3">招聘人数：</span></td>
                  				<td><%=rs_zp("zpnum")%></td>
                			</tr>
                			<tr class="underline">
                  				<td><span class="text3">工作经验：</span></td>
                  				<td><%=rs_zp("worktime")%>(年)</td>
                  				<td><span class="text3">学&nbsp;&nbsp;&nbsp;&nbsp;历：</span></td>
                  				<td><%=rs_zp("edus")%></td>
                			</tr>
                			<tr class="underline1">
                  				<td><span class="text3">年&nbsp;&nbsp;&nbsp;&nbsp;龄：</span></td>
                  				<td><%=rs_zp("nianlings")%>岁</td>
                  				<td><span class="text3">性&nbsp;&nbsp;&nbsp;&nbsp;别：</span></td>
                  				<td><%=rs_zp("sexs")%>(<%=rs_zp("marrys")%>)</td>
                			</tr>
							<tr class="underline">
                  				<td><span class="text3">薪酬范围：</span></td>
                  				<td><%=rs_zp("moneys")%></td>
                  				<td><span class="text3">提供食宿：</span></td>
                  				<td><%=rs_zp("shisus")%></td>
                			</tr>
							<tr class="underline1">
                  				<td><span class="text3">工作性质：</span></td>
                  				<td><%=rs_zp("jobtypes")%></td>
                  				<td><span class="text3">专业要求：</span></td>
                  				<td><%=rs_zp("zyes")%></td>
               				</tr>
							<tr class="underline" style="play:none">
                  				<td>其他要求：</td>
                  				<td colspan="3">外语：<%=rs_zp("languages")%>&nbsp;&nbsp;&nbsp;普通话：<%=rs_zp("pthuas")%>&nbsp;&nbsp;&nbsp;计算机：<%=rs_zp("computers")%></td>
               				</tr>							
              		</table>
            	</div>
			</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><span style=" padding-top:15px;"><img src="images/job/icon.gif" width="16" height="9" /> <span class="text5">职位描述</span></span></td>
          </tr>
          <tr class="underline">
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" border="0" align="center" cellpadding="10" cellspacing="0">

                <tr class="underline">
                  <td bgcolor="#f3f3f3" class="text2"><font color="#FF0000">职位类型：</font><%= rs_zp("jobtypes") %>&nbsp;&nbsp; <font color="#FF0000">职位名称：</font> <%= jobname %><br><br>
                  <%=rs_zp("zptext")%></td>
                  </tr>

            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><span style=" padding-top:15px;"><img src="images/job/icon.gif" width="16" height="9" /> <span class="text5">职位要求</span></span></td>
          </tr>
          <tr class="underline">
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" border="0" align="center" cellpadding="10" cellspacing="0">

                <tr class="underline">
                  <td bgcolor="#f3f3f3" class="text2"><%=rs_zp("yaoqiu")%></td>
                  </tr>

            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td align="center">
<div style=" width:120px; margin:0 auto;"><A HREF="person/yp_job.asp?id=<%=rs_zp("id")%>"><img src="images/job/but_acceptance.gif" alt="应聘该职位" width="120" height="27" style="cursor:pointer;" /></A></div>
			</td>
          </tr>
          <tr>
            <td height="30" colspan="2" align="center"><span class="link_green"><A HREF="person/favorite.asp?cname=<%=rs_zp("comcname")%>&fav=<%=rs_zp("id")%>">收藏职位</a>&nbsp;|&nbsp;<A HREF="#" onClick="window.open('send_mail_job.asp?jobname=<%= jobname %>&companyname=<%= rs_zp("cname") %>&id=<%=rs_zp("id")%>','把此职位Email推荐给朋友','height=340, width=480, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')">Email给朋友</a>&nbsp;|&nbsp;<A onClick="window.open('person/msback.asp?senduid=<%= rs_zp("uid") %>','网愿科技','height=310, width=422, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')" HREF="#">给企业留言</a>&nbsp;|&nbsp;<a href="javascript:window.print();" >打印</a></span></td>
          </tr>
          <tr style="display:">
            <td height="30" colspan="2" align="center" class="link_black">如果您还不是我们的个人会员,还不能应聘该职位
<span class="link_orange"><a href="preg.asp" target="_blank"><strong>马上免费注册个人会员</strong></a></span></td>
          </tr>		  
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
				</table>
<%
		rs_zp.movenext
		loop
	rs_zp.close
	set rs_zp=nothing
	conn.close
	set conn=nothing
%>
				</div>
			</td>
          </tr>

        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
	</div>
    </td>
  </tr>
</table>
<!--#include file="end.asp"-->