<!--#include file="../conn/conn.asp" -->
<!--#include file="../inc/Commoncode.asp"-->
<!--#include file="checkpmember.asp" -->
<%
Call SQLin()
sUploadDir=UpFilesPath("Person")
rid=clng(trim(request("rid")))
set rs=server.createobject("ADODB.Recordset")
sql="select * from job_p_resume where resume_id="&rid&" and resume_pmember='"&pmember_login&"'"
rs.open sql,conn,1,1
if rs.eof then
response.write "<script language=javascript>alert('错误：简历不存在！');window.close();</script>"
response.end
else
resume_pmember=rs("resume_pmember")%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>预览简历-个人求职管理中心</title>
<link href="../member/css.css" rel="stylesheet" type="text/css">
<script src="../js/main.js" type="text/javascript"></script><Script type="text/javascript">
window.onload=function(){ 
fResizeImg(120,120, 'resume'); 
}
</script><style type="text/css">
<!--
.resumediv01 {margin:10px; padding:10px;width:770px; height:auto; border:1px #0000A0 solid; line-height:22px;}
.resumediv01 ul{margin:0; float:left; width:50%;}
.resumediv01 li{float:left; width:100%; text-align:left; height:auto;}
-->
</style>
</head>
<body>
<center>
<div class="resumediv01" id=resume>
<ul style="border-bottom:2px #0000A0 solid; height:50px">
<li><font color=#ff0000>简历编号:<%=rs("resume_id")%></font></li>
<li><font color=#3d362b>更新日期:<%=year(rs("resume_announcedate"))&"-"&month(rs("resume_announcedate"))&"-"&day(rs("resume_announcedate"))%></font></li>
</ul>
<ul style="border-bottom:2px #0000A0 solid; height:50px; font-size:18px; font-weight:bold"><%=rs("resume_name")%>的个人简历</ul>
<div style="padding:0;text-align:left; height:auto;"><span style=" width:80px; height:22px;padding:4px 10px 0 10px;font-size:14px; font-weight:bold; color:#0000A0">基本资料</span>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="0" style="BORDER:1px solid;">
  <tr>
    <td width="58%"><table cellspacing=1 cellpadding=2 width=600 align=center 
              border=0>
      <tbody>
        <tr>
          <td width=100 align="right">姓&nbsp;&nbsp;名：</td>
          <td width=200><%=rs("resume_name")%></td>
          <td width=100 align="right">性&nbsp;&nbsp;别：</td>
          <td width=200>
            <%select case rs("resume_sex")
				case 1 response.write "男" 
				case 2 response.write "女" 
				end select%>          </td>
        </tr>
        <tr>
          <td align="right">出生日期：</td>
          <td><%=rs("resume_birth")%></td>
          <td align="right">民&nbsp;&nbsp;族：</td>
          <td>
            <%set rs1=server.CreateObject("adodb.recordset")
				If rs("resume_nation")<>"" Then
				sql="select  nation_name from job_nation where nation_id="&rs("resume_nation")
				rs1.open sql,conn,1,1
				nation_name=rs1("nation_name")
				rs1.close%>
            <%=nation_name%>
            <%End If%>          </td>
        </tr>
        <tr>
          <td align="right">婚姻状况：</td>
          <td>
            <%If rs("resume_marriage")<>"" Then
				sql="select marriage_name from JOB_marriage where marriage_id="&rs("resume_marriage") 
				rs1.open sql,conn,1,1
				marriage_name=rs1("marriage_name")
				rs1.close%>
            <%=marriage_name%>
            <%End If%>          </td>
          <td align="right">身&nbsp;&nbsp;高：</td>
          <td>
            <%if rs("resume_height")<>"" and not isnull(rs("resume_height")) and rs("resume_height")<>0 then
			   response.write rs("resume_height")
			  end if%> 
            CM          </td>
        </tr>
        <tr>
          <td align="right">政治面貌：</td>
          <td>
            <%If rs("resume_polity")<>"" Then
				sql="select polity_name from JOB_polity where polity_id="&rs("resume_polity")
				rs1.open sql,conn,1,1
				polity_name=rs1("polity_name")
				rs1.close%>
            <%=polity_name%>
            <%End If%>          </td>
          <td align="right">体&nbsp;&nbsp;重：</td>
          <td>
            <%if rs("resume_weight")<>"" and not isnull(rs("resume_weight")) and rs("resume_weight")<>0 then
			   response.write rs("resume_weight")
			  end if%> 
            KG          </td>
        </tr>
        <tr>
          <td align="right">户口所在地：</td>
          <td>
            <%
					If rs("resume_hukouprovinceid")<>"" Then
					sql="select * from JOB_provinceandcity where id="&rs("resume_hukouprovinceid")
					rs1.open sql,conn,1,1
					resume_hukouprovince=rs1("province_city")
					rs1.close
					%>
            <%=resume_hukouprovince%>
            <%
					End If
					If rs("resume_hukoucapitalid")<>"" Then
					sql="select * from JOB_provinceandcity where id="&rs("resume_hukoucapitalid")
					rs1.open sql,conn,1,1
					resume_hukoucapital=rs1("province_city")
					rs1.close
					%>
            <%=resume_hukoucapital%>
            <%
					End If
					If rs("resume_hukoucityid")<>"" Then
					sql="select * from JOB_provinceandcity where id="&rs("resume_hukoucityid")
					rs1.open sql,conn,1,1
					resume_hukoucity=rs1("province_city")
					rs1.close
					%>
            <%=resume_hukoucity%>
            <%End If%>          </td>
          <td align="right">目前所在地：</td>
          <td><%
					If rs("resume_provinceid")<>"" Then
					sql="select * from JOB_provinceandcity where id="&rs("resume_provinceid")
					rs1.open sql,conn,1,1
					resume_province=rs1("province_city")
					rs1.close
					%>
            <%=resume_province%>
            <%
					End If
					If rs("resume_capitalid")<>"" Then
					sql="select * from JOB_provinceandcity where id="&rs("resume_capitalid")
					rs1.open sql,conn,1,1
					resume_capital=rs1("province_city")
					rs1.close
					%>
            <%=resume_capital%>
            <%
					End IF
					If rs("resume_cityid")<>"" Then
					sql="select * from JOB_provinceandcity where id="&rs("resume_cityid")
					rs1.open sql,conn,1,1
					resume_city=rs1("province_city")
					rs1.close
					%>
            <%=resume_city%>
            <%End If%></td>
        </tr>
        <tr>
          <td align="right">毕业学校：</td>
          <td><%=rs("resume_school")%></td>
          <td align="right">毕业时间：</td>
          <td><%=rs("resume_graduate")%></td>
        </tr>
        <tr>
          <td align="right">最高学历：</td>
          <td>
            <%
					If rs("resume_edu")<>"" Then
					sql="select * from JOB_edu where edu_id="&rs("resume_edu")
					rs1.open sql,conn,1,1
					edu_name=rs1("edu_name")
					rs1.close
					%>
            <%=edu_name%>
            <%End If%>          </td>
          <td align="right">职称：</td>
          <td><%=rs("resume_zhicheng")%></td>
        </tr>
        <tr>
          <td align="right">特长概括：</td>
          <td colspan="3"><font color=#8C511D><%=rs("resume_sumup")%></font></td>
          </tr>
      </tbody>
    </table></td>
    <td width="42%">
	<%Set rst= Server.CreateObject("ADODB.RecordSet")
	sql="select * from job_member where member_login='"&resume_pmember&"' and member_typeid=1"
	rst.open sql,conn,1,1
	if not rst.eof then
	if rst("member_logo")<>"nophoto.gif" then%> <img src="<%=InstallDir&FR_UPFILES_DIR%>/Person/<%=rst("member_logo")%>" border=0>
	<%else%><img src="<%=InstallDir&FR_UPFILES_DIR%>/Person/nophoto.gif"> 
	<%end if
	end if
	rst.close%> </td>
  </tr>
</table>
<span style=" width:80px; height:22px;padding:4px 10px 0 10px;font-size:14px; font-weight:bold; color:#0000A0">自我评价</span>
<table cellspacing=1 cellpadding=2 width=98% align=center border=0 style="BORDER:1px solid;">
    <tr>
      <td style="PADDING-LEFT: 13px; PADDING-BOTTOM: 6px; PADDING-TOP: 6px"><font color=#00007f><%=rs("resume_appraise")%> </font></td>
    </tr>
</table>
<%sql="select * from job_p_education where education_resumeid="&rid&""
rst.open sql,conn,1,1
if not rst.eof then%>
<span style=" width:80px; height:22px;padding:4px 10px 0 10px;font-size:14px; font-weight:bold; color:#0000A0">教　　育</span>
<table width=98% border=0 align="center" cellpadding=2 cellspacing=1 style="BORDER:  1px solid;">
    <tr>
      <td width="15%" bgcolor="#E9F4FA"><FONT color=#00007f><STRONG>学历</STRONG></FONT></td>
      <td width="33%" bgcolor="#E9F4FA"><FONT color=#00007f><STRONG>学校名称</STRONG></FONT></td>
      <td width="26%" bgcolor="#E9F4FA"><FONT color=#00007f><STRONG>专业</STRONG></FONT></td>
      <td width="26%" bgcolor="#E9F4FA"><FONT color=#00007f><STRONG>时间范围</STRONG></FONT></td>
    </tr>
    <%
	set rs1=server.CreateObject("adodb.recordset")
	for i=1 to rst.recordcount
	 response.write "<TR>"
	 sql="select * from JOB_edu where edu_id="&rst("education_edu")
	 rs1.open sql,conn,1,1
		edu_name=rs1("edu_name")
	 rs1.close
	 response.write "<TD>"&edu_name&"</TD>"
	 response.write "<TD>"&rst("education_school")&"</TD>"

	 sql="select profession_name from JOB_profession where profession_id="&rst("education_subprofession")
	 rs1.open sql,conn,1,1
	 profession_name=rs1("profession_name")
	 rs1.close
	 response.write "<TD>"&profession_name&"</TD>"
	 response.write "<TD>"&rst("education_startyear")&"年"&rst("education_startmonth")&"月 - "
	 if rst("education_endyear")=0 and rst("education_endmonth")=0 then
	  response.write "至今"
	 else
	  response.write ""&rst("education_endyear")&"年"&rst("education_endmonth")&"月"
	 end if
	 response.write "</TD>"
	 response.write "</TR>"
	 rst.movenext
	next
	%>
</table>
<%end if
rst.close%>
<%sql="select * from job_p_training where train_resumeid="&rid&""
rst.open sql,conn,1,1
if not rst.eof then%>
<span style=" width:80px; height:22px;padding:4px 10px 0 10px;font-size:14px; font-weight:bold; color:#0000A0">培　　训</span>
<table cellspacing=1 cellpadding=2 width=98% align=center border=0 style="BORDER:  1px solid;">
    <tr>
      <td width="190" bgcolor="#E9F4FA"><FONT color=#00007f><STRONG>培训机构</STRONG></FONT></td>
      <td width="205" bgcolor="#E9F4FA"><FONT color=#00007f><STRONG>培训课程</STRONG></FONT></td>
      <td width="207" bgcolor="#E9F4FA"><FONT color=#00007f><STRONG>时间范围</STRONG></FONT></td>
    </tr>
    <%
	for i=1 to rst.recordcount
	 response.write "<TR>"
	 response.write "<TD>"&rst("train_train")&"</TD>"
	 response.write "<TD>"&rst("train_course")&"</TD>"
	 response.write "<TD>"&rst("train_startyear")&"年"&rst("train_startmonth")&"月 - "
	 if rst("train_endyear")=0 and rst("train_endmonth")=0 then
	  response.write "至今"
	 else
	  response.write ""&rst("train_endyear")&"年"&rst("train_endmonth")&"月"
	 end if
	 response.write "</TD>"
	 response.write "</TR>"
	 rst.movenext
	next
	%>
</table>
<%end if
rst.close
%>
<%
sql="select * from job_p_lang where lang_resumeid="&rid&""
rst.open sql,conn,1,1
if not rst.eof then
%>
<span style=" width:80px; height:22px;padding:4px 10px 0 10px;font-size:14px; font-weight:bold; color:#0000A0">语言能力</span>
<table width=98% border=0 align="center" cellpadding=2 cellspacing=1 style="BORDER:  1px solid;">
    <tr>
      <td width="50%" bgcolor="#E9F4FA"><FONT color=#00007f><STRONG>外语语种</STRONG></FONT></td>
      <td width="50%" bgcolor="#E9F4FA"><FONT color=#00007f><STRONG>掌握程度</STRONG></FONT></td>
    </tr>
<%
	for i=1 to rst.recordcount
	 response.write "<TR>"
	 sql="select * from job_foreignlanguage where foreign_id="&rst("lang_name")
	 rs1.open sql,conn,1,1
	 foreign_name=rs1("foreign_name")
	 rs1.close
	 response.write "<TD>"&foreign_name&"</TD>"
	 sql="select * from job_foreigndegree where degree_id="&rst("lang_master")
	 rs1.open sql,conn,1,1
	 degree_name=rs1("degree_name")
	 rs1.close
	 response.write "<TD>"&degree_name&"</TD>"
	 response.write "</TR>"
	 rst.movenext
	next
	%>
</table>
<%end if
rst.close
sql="select * from job_p_work where work_resumeid="&rid&""
rst.open sql,conn,1,1
if not rst.eof then
%>
<span style=" width:80px; height:22px;padding:4px 10px 0 10px;font-size:14px; font-weight:bold; color:#0000A0">工作经验</span>
<%for i=1 to rst.recordcount%>
<TABLE cellSpacing=1 cellPadding=2 width=98% align=center border=0 style="BORDER:1px solid;">
<TR><TD style='PADDING-LEFT: 13px; PADDING-BOTTOM: 6px; PADDING-TOP: 6px' colSpan=4 bgcolor='#E9F4FA'><FONT color=#00007f><STRONG><%=rst("work_startyear")%>年<%=rst("work_startmonth")%>月 - <%if rst("work_endyear")=0 and rst("work_endmonth")=0 then%>至今<%else%><%=rst("work_endyear")%>年<%=rst("work_endmonth")%>月<%end if%>：<%=rst("work_comname")%> </STRONG></FONT></TD></TR>
<TR>
<TD width=12% align="right">公司性质：</TD>
<%sql="select * from job_ecoclass where ecoclass_id="&rst("work_ecoclass")
rs1.open sql,conn,1,1
ecoclass_name=rs1("ecoclass_name")
rs1.close%>
<TD width=38%><%=ecoclass_name%></TD>
<TD width=12% align="right">所属行业：</TD>
<%
sql="select * from job_trade where trade_id="&rst("work_trade")
rs1.open sql,conn,1,1
trade_name=rs1("trade_name")
rs1.close%><TD width=38%><%=trade_name%></TD>
</TR>
<TR>
<TD align="right">所在部门：</TD>
<TD><%=rst("work_dept")%></TD>
<TD align='right'>担任职务：</TD>
<TD><%=rst("work_place")%></TD>
</TR>
<TR> <TD align='right'>工作描述：</TD><TD colSpan=3 ><%=rst("work_introduce")%></TD></TR>
<TR> <TD align='right'>离职原因：</TD><TD colSpan=3><%=rst("work_leftreason")%></TD></TR></TABLE>
<%rst.movenext
next
%>
<%end if
rst.close%>
<span style=" width:80px; height:22px;padding:4px 10px 0 10px;font-size:14px; font-weight:bold; color:#0000A0">求职意向</span>
<table cellspacing=1 cellpadding=2 width=98% align=center border=0 style="BORDER:1px solid;">
    <tr>
      <td width="12%" align="right">职位性质：</td>
      <td width="38%">
        <%select case rs("resume_jobtype")
			   case 1
			    response.write "全职"
			   case 2
			    response.write "兼职"
			   case 3
			    response.write "全职、兼职均可"
			  end select
			  %></td>
      <td width="12%" align="right">行业类别：</td>
      <td width="38%"><%resume_trade=rs("resume_trade")
				'response.Write(rs("resume_trade"))
				if resume_trade<>"" and not isnull(resume_trade) then
				 if resume_trade="0000" then
				  response.write "<OPTION value='0000'>不限</option>"
				 else
				  tstring=split(resume_trade,",")
				  for i=0 to ubound(tstring)
				   trade_name=""
				   trade=trim(tstring(i))
				   if trade<>"" then
					sql="select trade_name from job_trade where trade_id="&trade&""
                    rst.open sql,conn,1,1
					if not rst.eof then
					 trade_name=rst("trade_name")
					end if
					rst.close
					if trade_name<>"" then
					 response.write trade_name&"&nbsp;&nbsp;"
					end if
				   end if
				  next
				 end if 
				end if
			  %></td>
    </tr>
    <tr>
      <td width="102" align="right">工作岗位：</td>
      <td><%resume_position=rs("resume_position")
			   if resume_position<>"" and not isnull(resume_position) then
				if resume_position="0000" then
				 response.write "不限"
				else
				 pstring=split(resume_position,",")
				 for i=0 to ubound(pstring)
				  mainposition_name=""
				  subposition_name=""
				  position=trim(pstring(i))
				  if position<>"" then
				   mystring=split(position,"*")
				   length=ubound(mystring)
				   select case length
					 case "0"
					  mainposition=trim(mystring(0))
					  sql="select position_name from job_position where position_id="&mainposition&""
                      rst.open sql,conn,1,1
					  if not rst.eof then
						mainposition_name=rst("position_name")
					  end if
					  rst.close
					  if mainposition_name<>"" then
					   response.write mainposition_name&"&nbsp;&nbsp;"
					  end if
					 case "1"
					  subposition=trim(mystring(1))
                      sql="select position_name from job_position where position_id="&subposition&""
                      rst.open sql,conn,1,1
					  if not rst.eof then
					   subposition_name=rst("position_name")
					  end if
					  rst.close
					  if subposition_name<>"" then
					   response.write subposition_name&"&nbsp;&nbsp;"
					  end if
					 end select
					end if
				   next
				  end if
				 end if
			    %></td>
      <td align="right">工作地区：</td>
      <td>
        <%resume_workadd=rs("resume_workadd")
			   if resume_workadd<>"" and not isnull(resume_workadd) then
				if resume_workadd="0000" then
				 response.write "<OPTION value='0000'>不限</option>"
				else
				 wstring=split(resume_workadd,",")
				 for i=0 to ubound(wstring)
				 province_name=""
				 capital_name=""
				 city_name=""
				 workadd=trim(wstring(i))
				 if workadd<>"" then
				  mystring=split(workadd,"*")
				  length=ubound(mystring)
				  select case length
				   case "0"
					province=trim(mystring(0))
					sql="select province_city from job_provinceandcity where id="&province&""
                    rst.open sql,conn,1,1
					if not rst.eof then
					 province_name=rst("province_city")
					end if
					rst.close
					if province_name<>"" then
					 response.write province_name&"&nbsp;&nbsp;"
					end if
				   case "1"
					province=trim(mystring(0))
					capital=trim(mystring(1))
					sql="select province_city from job_provinceandcity where id="&province&""
                    rst.open sql,conn,1,1
					if not rst.eof then
					 province_name=rst("province_city")
					end if
					rst.close
                    sql="select province_city from job_provinceandcity where id="&capital&""
                    rst.open sql,conn,1,1
					if not rst.eof then
					 capital_name=rst("province_city")
					end if
					rst.close
					if province_name<>"" and capital_name<>"" then
					 response.write province_name&"-"&capital_name&"&nbsp;&nbsp;"
					end if
				   case "2"
					province=trim(mystring(0))
					capital=trim(mystring(1))
					city=trim(mystring(2))
					sql="select province_city from job_provinceandcity where id="&province&""
                    rst.open sql,conn,1,1
					if not rst.eof then
					 province_name=rst("province_city")
					end if
					rst.close
                    sql="select province_city from job_provinceandcity where id="&capital&""
                    rst.open sql,conn,1,1
					if not rst.eof then
					 capital_name=rst("province_city")
					end if
					rst.close
					sql="select province_city from job_provinceandcity where id="&city&""
                    rst.open sql,conn,1,1
					if not rst.eof then
					 city_name=rst("province_city")
					end if
					rst.close
					if province_name<>"" and capital_name<>"" and city_name<>"" then
					 response.write province_name&capital_name&city_name&"&nbsp;&nbsp;"
					end if
				   end select
				  end if
				 next
			    end if
			   end if
			  %>
      </td>
    </tr>
    <tr>
      <td align="right">月薪要求<font color="#00007f">：</font></td>
      <td><%=Hirepay(rs("resume_pay"))%>
			  <%if rs("resume_stay")=1 then
			   response.write "&nbsp;&nbsp;&nbsp;要求提供住宿"
			  end if
			  %></td>
      <td align="right">到岗时间：</td>
      <td><%select case rs("resume_workdate")
			   case 0
			    response.write "随时"
			   case 7
			    response.write "1周以内"
			   case 14
			    response.write "2周以内"
			   case 30
			    response.write "1个月内"
			   case 60
			    response.write "1～3个月"
			   case 90
			    response.write "3个月以后"
			  end select%></td>
    </tr>
    <tr>
      <td align="right">其他要求<font color=#00007f>：</font></td>
      <td colspan=3><font color=#00007f><%=rs("resume_request")%></font></td>
    </tr>
</table>
<%
sql="select * from JOB_picture where picture_member='"&resume_pmember&"' and picture_type=21 and picture_status=1"
rst.open sql,conn,1,1
if not rst.eof then
%>
<span style=" width:80px; height:22px;padding:4px 10px 0 10px;font-size:14px; font-weight:bold; color:#0000A0">相关证书</span>
<table cellspacing=1 cellpadding=2 width=98% align=center border=0 style="BORDER: 1px solid;">
  <tbody>
    <tr>
      <td style="PADDING-LEFT: 13px; PADDING-BOTTOM: 6px; PADDING-TOP: 6px"><%
			  for i=1 to rst.recordcount
			  response.write "<img src='"&InstallDir&FR_UPFILES_DIR&"/Person/"&rst("picture_filename")&"'>证书"&i&"&nbsp;&nbsp;"
			  rst.movenext
			  next
			  rst.close
			  set rst=nothing
			  %></td>
    </tr>
  </tbody>
</table>
<%end if%>
<span style=" width:80px; height:22px;padding:4px 10px 0 10px;font-size:14px; font-weight:bold; color:#0000A0">联系方式</span>
<table cellspacing=1 cellpadding=2 width=98% align=center border=0 style="BORDER: 1px solid;">
  <tbody>
    <tr>
      <td width=12% align="right">联系电话：</td>
      <td width=38%><%=rs("resume_tel")%></td>
      <td width=12% align="right">聊天号码：</td>
      <td width=38%><%=rs("resume_chat")%></td>
    </tr>
    <tr>
      <td align="right">电子邮件：</td>
      <td ><a href="mailto:<%=rs("resume_email")%>" target="_blank"><%=rs("resume_email")%></a></td>
      <td align="right">个人主页：</td>
      <td><a href="<%=rs("resume_url")%>" target="_blank"><%=rs("resume_url")%></a></td>
    </tr>
    <tr>
      <td align="right">联系地址：</td>
      <td><%=rs("resume_address")%></td>
      <td align="right">邮&nbsp;&nbsp;&nbsp;&nbsp;编：</td>
      <td><%=rs("resume_post")%></td>
    </tr>
  </tbody>
</table>
<table cellspacing=0 cellpadding=0 width=98% align=center border=0>
 <tr>
      <td align="center" style="PADDING-LEFT: 13px; PADDING-BOTTOM: 16px; PADDING-TOP: 16px"><input name="Submit3" type="button" class="inputa2" value="打印简历" onClick="javascript:window.print();">
        
        <input name="Submit22" type="button" class="inputa2" value="关闭窗口" onClick="javascript:window.close();">
      </td>
    </tr>
</table>
<%
end if
rs.close:set rs=nothing
CloseConn
%>
</div>
</div>
</center>
</body>