<!--#include file="conn/conn_index.asp"-->
<!--#include file="inc/setup.asp"-->
<!--#include file="inc/char.asp"-->
<!--#include file="inc/sql.asp"-->
<%
	end if
	ttype=ReplaceBadChar(Trim(Request.QueryString("ttype")))
	if ttype="save" then
		if session("upfile")="" then
			response.write"<SCRIPT language=JavaScript>alert('您还没有上传简历，请重来');"
			response.write"javascript:history.go(-1)</SCRIPT>"
			response.end
		end if
		name1=ReplaceBadChar(Trim(Request.Form("name")))
		email=ReplaceBadChar(Trim(Request.Form("email")))
		tel=ReplaceBadChar(Trim(Request.Form("tel")))
		text=ReplaceBadChar(Trim(Request.Form("text")))
		uptext=session("upfile")
		vipjobzpid=int(ReplaceBadChar(Trim(Request.Form("vipjobzpid"))))
		Set rs_zp = Server.CreateObject("ADODB.Recordset")
		sql="select * from vipjobyp"
		rs_zp.open sql,conn,2,3
		rs_zp.addnew
		rs_zp("name")=name1
		rs_zp("tel")=tel
		rs_zp("email")=email
		rs_zp("text")=text
		rs_zp("uptext")=uptext
		rs_zp("vipjobzpid")=vipjobzpid
		rs_zp("ctype")=int(ReplaceBadChar(Trim(Request.Form("ctype"))))
		rs_zp.update
		rs_zp.close
		set rs_zp = nothing
		response.write"<SCRIPT language=JavaScript>alert('恭喜！您已成功推荐，现在为您返回，请耐心等候我们的消息');"
		response.write"this.location.href='view_lietou.asp?id="&vipjobzpid&"';</SCRIPT>"
		conn.close
		set rs_zp = nothing
	end if
	id=int(ReplaceBadChar(Trim(Request.QueryString("id"))))
	action=ReplaceBadChar(Trim(Request.QueryString("action")))
	if id="" then   
		response.write"<SCRIPT language=JavaScript>alert('对不起，非法操作！');"
		response.write"javascript:window.close();</SCRIPT>"
		response.end 
	end if
	Set rs_vipzp = Server.CreateObject("ADODB.Recordset")
	sql = "select * from vipjobzp where id="&id
	rs_vipzp.open sql,Conn,1,1
	if rs_vipzp.bof and rs_vipzp.eof then 
		response.write"<SCRIPT language=JavaScript>alert('对不起，非法操作！');"
		response.write"javascript:window.close();</SCRIPT>"
		response.end 
	end if   
%>
<!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>
<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_vipzp("jobname") %>）</TITLE>
<link href="css/view_lietou.css" rel="stylesheet" type="text/css">
<meta name="Keywords" content="<%= webmeta %>">
<meta name="Description" content="<%= webmeta1 %>">
<script language="javascript">
	function openScript(url, width, height){
		var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
	}
  function test1()
  {
      if (document.form1.name.value==""){
	      alert("请输入姓名！")
		  document.form1.name.focus();
		  return false
		    }
	  if (document.form1.email.value==""){
	      alert("请输入Email地址！");
		  document.form1.email.focus();
		  return false
		  } 
		  if (document.form1.tel.value==""){
	      alert("请输入您的手机号码！");
		  document.form1.tel.focus();
		  return false
		  } 
		   if (document.form1.text.value==""){
	      alert("请输入您的推荐理由！");
		  document.form1.text.focus();
		  return false
		  }
		  return true
  }
  function reset_form()
  {
   document.form1.name.value="";
   document.form1.pwd.value="";
   document.form1.user.value="";
   document.form1.name.focus;
  }
</script>
</HEAD>
<BODY topMargin=0 leftmargin="0" rightmargin="0">
<!--#include file="top.asp"-->
<% If action="" Then %>
<div id="wrap">
<div class="rim2_top_box space_top">
	<div class="rim2_TopLeft"></div>
	<div class="rim2_TopRight"></div>
	<div class="rim2_TopCon">
	  <h1 class="details_CName">悬赏职位：<%= rs_vipzp("jobname") %><img src="images/lietou/ico_nonce.gif" alt="" align="absmiddle" style="margin-left:5px;" /></h1>
		<ul class="nonce_top2">
			<li class="nonceState"><a href="view_lietou.asp?id=<%= Trim(Request.QueryString("id")) %>">-&nbsp;职位信息&nbsp;-</a></li>
			<li><a href="view_lietou.asp?id=<%= Trim(Request.QueryString("id")) %>&action=add">-&nbsp;我要推荐&nbsp;-</a></li>
		</ul>
	</div>
</div>
<div class="rim2_LeftRight">
  <div class="rim_mainCon">
  	<!-- 职位详细信息 开始 -->
  	<!-- 职位详细信息 结束 -->
  	<div class="rim_mainCon">
  	<!-- 职位详细信息 开始 -->
	<dl class="PostParticular">
	<dd>
		<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#E7E7E7">
  <tr>
    <td width="11%" height="20" align="left" bgcolor="#F7F7F7">&nbsp;&nbsp;&nbsp;招聘企业：</td>
    <td colspan="3" align="left" bgcolor="#FFFFFF"><%= rs_vipzp("companyname") %></td>
    <td align="left" bgcolor="#F7F7F7">&nbsp;&nbsp;&nbsp;悬赏金额：</td>
    <td align="left" bgcolor="#FFFFFF">￥<%= rs_vipzp("paymoney") %>元 </td>
    </tr>
    
  <tr>
    <td height="20" align="left" bgcolor="#F7F7F7">&nbsp;&nbsp;&nbsp;职位年薪：</td>
    <td colspan="3" align="left" bgcolor="#FFFFFF">￥<%= rs_vipzp("workmoney") %>(万)</td>
    <td align="left" bgcolor="#F7F7F7">&nbsp;&nbsp;&nbsp;工作地点：</td>
    <td align="left" bgcolor="#FFFFFF"><%= rs_vipzp("adds") %></td>
    </tr>
  <tr>
    <td height="20" align="left" bgcolor="#F7F7F7">&nbsp;&nbsp;&nbsp;职位编号：</td>
    <td width="11%" align="left" bgcolor="#FFFFFF">Lt<%= rs_vipzp("id") %></td>
    <td width="12%" align="left" bgcolor="#F7F7F7">&nbsp;&nbsp;&nbsp;工作年限：</td>
    <td width="18%" align="left" bgcolor="#FFFFFF"><%= rs_vipzp("worktime") %>(年)</td>
    <td width="12%" align="left" bgcolor="#F7F7F7">&nbsp;&nbsp;&nbsp;发布日期：</td>
    <td align="left" bgcolor="#FFFFFF"><%= rs_vipzp("time") %></td>
    </tr>
  <tr>
    <td height="20" align="left" bgcolor="#F7F7F7">&nbsp;&nbsp;&nbsp;联系方式：</td>
    <td colspan="5" align="left" bgcolor="#FFFFFF"><%= rs_vipzp("lxfs") %></td>
    </tr>
</table>
	</dd>
	</dl>
	<!-- 职位详细信息 结束 -->
	<div style="text-align:center;margin-top:20px;margin-bottom:20px;">
	  <img src="images/lietou/but_nominateBig.gif" style="cursor:hand" onclick="window.location='view_lietou.asp?id=<%= Trim(Request.QueryString("id")) %>&action=add'"/>
	  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
	<div class="details_CorpIntro">
	<div class="rim4_top_box">
			<div class="rim4_TopLeft"></div>
			<div class="rim4_TopRight"></div>
	</div>
	<div class="rim4_LeftRight">
			<div class="rim_mainCon">
				<dl >
				<dt>职位描述</dt>
				<dd><%= rs_vipzp("text") %></dd>
				</dl>
		</div>
	 </div>
	<div class="rim4_bottom_box">
			<div class="rim4_BottomLeft"></div>
			<div class="rim4_BottomRight"></div>
		</div>
        <br>
	<div class="rim4_top_box">
			<div class="rim4_TopLeft"></div>
			<div class="rim4_TopRight"></div>
	</div>
	<div class="rim4_LeftRight">
			<div class="rim_mainCon">
				<dl >
				<dt>公司简介</dt>
				<dd><%= rs_vipzp("about_company") %></dd>
				</dl>
		</div>
	 </div>
	<div class="rim4_bottom_box">
			<div class="rim4_BottomLeft"></div>
			<div class="rim4_BottomRight"></div>
		</div>
	</div>
  </div>
  </div>
</div>
<div class="rim2_bottom_box">
	<div class="rim2_BottomLeft"></div>
	<div class="rim2_BottomRight"></div>
</div>
</div>
<% Else %>
<div id="wrap">
<div class="rim2_top_box space_top">
	<div class="rim2_TopLeft"></div>
	<div class="rim2_TopRight"></div>
	<div class="rim2_TopCon">
	  <h1 class="details_CName">悬赏职位：<%= rs_vipzp("jobname") %><img src="images/lietou/ico_nonce.gif" alt="" align="absmiddle" style="margin-left:5px;" /></h1>
		<ul class="nonce_top2">	
			<!-- 样式"nonceState"为列表当前的导航状态 -->
			<li><a href="view_lietou.asp?id=<%= Trim(Request.QueryString("id")) %>">-&nbsp;职位信息&nbsp;-</a></li>
			<li class="nonceState"><a href="view_lietou.asp?id=<%= Trim(Request.QueryString("id")) %>&action=add">-&nbsp;我要推荐&nbsp;-</a></li>
		</ul>
	</div>
</div>
<div class="rim2_LeftRight">
  <div class="rim_mainCon">
  	<div style="padding:10px 0 10px 15px;">
  	<!-- 我要推荐 开始 -->
	<form action="?ttype=save" method="post" name="form1" onSubmit="return test1()">
	<input type="hidden" name="vipjobzpid" value="<%= Trim(Request.QueryString("id")) %>">
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" >
  <tr >
    <td align="left"> 姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：
      <input name="name" type="text" class="inputSet" style="width:100px" alt="姓名" />
      <input type="radio" name="ctype" id="radio" value="1"  checked="checked"/>推荐自己<input type="radio" name="ctype" id="radio" value="2" />推荐别人</td>
  </tr>
  <tr >
    <td align="left"> 邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱：
      <input name="email" type="text" class="inputSet" style="width:190px"  alt="邮箱"  />    </td>
  </tr>
  <tr >
    <td align="left"> 手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机：
      <input name="tel" type="text" class="inputSet" style="width:150px" alt="手机"  />    </td>
  </tr>
  <tr >
    <td align="left"><div style="float:left">推荐理由：</div> <div  style="float:left;padding-left:6px;"><textarea name="text" cols="25" rows="7" style=" width: 99%;" title="推荐理由" alt="推荐理由" ></textarea></div></td>
    </tr>
  
  
  <tr >
    <td align="left"><div style="float:left">上传被推荐人简历：</div><div style="float:left;">上传个人简历:<a href="JavaScript:openScript('../../upfile/uploadfile.asp',320,225)"><font color="#FF0000">上传</font></a></div>&nbsp;&nbsp;<input name="uptext" type="text"  style="width: 160px" value=" 请上传个人的简历" size="11" maxlength="0" disabled="disabled"></td>
  </tr>
  <tr >
    <td align="left"><span class="font_hilite">推荐技巧：</span>越详细，被列入候寻人名单的机会就越大！</td>
  </tr>

  <tr >
    <td align="center">&nbsp;</td>
  </tr>

  <tr >
    <td align="center"><input type="image" name="imageField" id="imageField" src="images/lietou/but_nominateSend.gif" />
  </tr>
</table>
</form>
	<!-- 我要推荐 结束 -->
	</div>
  </div>
</div>
<div class="rim2_bottom_box">
	<div class="rim2_BottomLeft"></div>
	<div class="rim2_BottomRight"></div>
</div>
</div>
<% End If %>
<!--#include file="end.asp"-->