<!-- #include file="Conn.asp" -->
<!--#include file="Comm/Site_Class.asp" -->
<%
Dim strMenu,PageTitle
strMenu = ""

Set Qsite = New Site_Class

Qsite.SiteConfig()
Qsite.GotoErrPage()

Dim Rs,PerId,i,j
Dim RealName,Sex,Age,Nation,Political,Birthplace,Marriage,Qualification,Standing,Weight
Dim Salary,Nature,Position_b,Position_s,JobPost,Province,City,County
Dim NowAddr,HomeAddr,QQ,MSN,Tel,Mobile,Email
Dim EditDate,ViewQuantity,ViewJlQuantity
Dim TodayDate
Dim ShowContactFlag
Dim strViewMsg
Dim PerPic

Set Rs = server.CreateObject("ADODB.recordset")

PerId = Trim(Request.QueryString("PerId"))

If PerId = "" Or IsNull(PerId) Or Not IsNumeric(PerId) Then PerId = 0

Rs.Open "select * from PersonTbl where PerId = "& PerId &" and IsHidden = '0' and IsLock = '0'" , Conn , 3 , 2
If Rs.Eof Then
	Response.Write("信息不存在，或已被管理员删除！")
	Response.End()
Else
	Rs("ViewQuantity") = Rs("ViewQuantity") + 1
	Rs.Update
	
	RealName = Rs("RealName")
	Sex = Rs("Sex")
	Age = Rs("Age")
	Nation = Rs("Nation")
	Political = Rs("Political")
	Birthplace = Rs("Birthplace")
	Marriage = Rs("Marriage")
	Qualification = Rs("Qualification")
	Standing = Rs("Standing")
	Weight = Rs("Weight")
	Salary = Rs("Salary")
	Nature = Rs("Nature")
	Position_b = Rs("Position_b")
	Position_s = Rs("Position_s")
	JobPost = Rs("JobPost")
	Province = Rs("Province")
	City = Rs("City")
	County = Rs("County")
	NowAddr = Rs("NowAddr")
	HomeAddr = Rs("HomeAddr")
	QQ = Rs("QQ")
	MSN = Rs("MSN")
	Tel = Rs("Tel")
	Email = Rs("Email")
	EditDate = Rs("EditDate")
	ViewQuantity = Rs("ViewQuantity")
	PerPic = Rs("PerPic")
End If
Rs.Close

PageTitle = RealName & "的个人简历 - " & Qsite.SiteName

Qsite.SiteHead()

Qsite.arrMember = Qsite.Member_Info()
%>
<!--#include file="top.asp" -->
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td height="60"><img src="Yn_Logo/Logo.jpg" width="225" height="58" /></td>
	</tr>
			<tr>
				<td>&nbsp;</td>
				</tr>
		</table>
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0">
			<tr>
				<td height="35" align="center" class="td_line_col_FFFFFF"><span class="com_title"><%=RealName%> -- 个人简历</span></td>
	</tr>
			<tr>
				<td height="25" align="center" class="td_line_col_FFFFFF">最后更新于 <%=EditDate%> | 该简历信息已被浏览 <%=ViewQuantity%> 次</td>
	</tr>
			<tr>
				<td>&nbsp;</td>
	</tr>
</table>
			<table width="640" border="0" align="center" cellpadding="5" cellspacing="0" class="tblbk_D2D2D2">
				<tr>
					<td><img src="Images/arrow1.gif" width="13" height="9" align="absmiddle" /> <span style="color: #394F6B; font-weight: bold">基本信息</span></td>
				</tr>
				<tr>
					<td><table width="630" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FBFBFB" class="tblbk_F1F1F1">
						<tr>
							<td width="238" height="20" class="td_line_col_FFFFFF">性&nbsp;&nbsp;&nbsp;&nbsp;别：<%=Sex%></td>
							<td width="226" height="20" class="td_line_col_FFFFFF">年&nbsp;&nbsp;&nbsp;&nbsp;龄：<%=Age%> 岁</td>
							<td width="136" rowspan="5" align="center" class="td_line_col_FFFFFF"><table border="0" cellspacing="0" cellpadding="0" class="ntblbk">
								<tr>
									<td>
									<%
									If PerPic = "" Then PerPic = "Per_Pic/none.jpg"
									%>
									<img src="<%=PerPic%>" width="100" height="125" /></td>
								</tr>
							</table></td>
						</tr>
						<tr>
							<td height="20" class="td_line_col_FFFFFF">民&nbsp;&nbsp;&nbsp;&nbsp;族：<%=Nation%></td>
							<td height="20" class="td_line_col_FFFFFF">籍&nbsp;&nbsp;&nbsp;&nbsp;贯：<%=Birthplace%></td>
						</tr>
						<tr>
							<td height="20" class="td_line_col_FFFFFF">政治面貌：<%=Political%></td>
							<td height="20" class="td_line_col_FFFFFF">婚姻状况：<%=Marriage%></td>
						</tr>
						<tr>
							<td height="20" class="td_line_col_FFFFFF">身&nbsp;&nbsp;&nbsp;&nbsp;高：<%=Standing%> CM</td>
							<td height="20" class="td_line_col_FFFFFF">体&nbsp;&nbsp;&nbsp;&nbsp;重：<%=Weight%> KG</td>
						</tr>
						<tr>
							<td height="20" class="td_line_col_FFFFFF">学&nbsp;&nbsp;&nbsp;&nbsp;历：<%=Qualification%></td>
							<td height="20" class="td_line_col_FFFFFF">&nbsp;</td>
						</tr>
					</table></td>
				</tr>
</table>
			<table width="640" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
</table>
			<table width="640" border="0" align="center" cellpadding="5" cellspacing="0" class="tblbk_D2D2D2">
				<tr>
					<td><img src="Images/arrow1.gif" width="13" height="9" align="absmiddle" /> <span style="color: #394F6B; font-weight: bold">求职意向</span></td>
				</tr>
				<tr>
					<td>
					<table width="630" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FBFBFB" class="tblbk_F1F1F1">
							<tr>
								<td width="375" height="20" class="td_line_col_FFFFFF">求职类型：<%=Nature%></td>
								<td width="375" height="20" class="td_line_col_FFFFFF">要求月薪：<%
								If Cstr(Salary) = "0" Then
									Response.Write("面议")
								Else
									Response.Write(Salary & " 元/月")
								End If
								%></td>
							</tr>
							<tr>
								<td height="20" class="td_line_col_FFFFFF">希望职业：<%=Position_b%> - <%=Position_s%></td>
								<td height="20" class="td_line_col_FFFFFF">希望职位：<%=JobPost%></td>
							</tr>
							<tr>
								<td height="20" class="td_line_col_FFFFFF">希望地区：<%=Province%><%=City%><%=County%></td>
								<td height="20" class="td_line_col_FFFFFF">&nbsp;</td>
							</tr>
					</table>
						<table width="520" border="0" align="center" cellpadding="0" cellspacing="0">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
<%
TodayDate = Qsite.FormatDate(Date())

Rs.Open "select * from PersonPartTbl where ValidityDate > '"& TodayDate &"' and IsHidden = '0' and PerId = "& PerId &" order by EditDate desc" , Conn , 1 , 1
Do While Not Rs.Eof
%>
						<table width="630" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FBFBFB" class="tblbk_F1F1F1">
							<tr>
								<td width="375" height="20" class="td_line_col_FFFFFF">求职类型：兼职</td>
								<td width="375" height="20" class="td_line_col_FFFFFF">希望职位：<%=Rs("PartName")%></td>
							</tr>
							<tr>
								<td height="20" class="td_line_col_FFFFFF">工作地点：<%=Rs("City")%> - <%=Rs("County")%></td>
								<td height="20" class="td_line_col_FFFFFF">工作时间：<%=Rs("JobDate")%></td>
							</tr>
							<tr>
								<td height="20" colspan="2" class="td_line_col_FFFFFF" style="line-height:20px;">详细说明：<br /><%=Rs("PartNote")%></td>
							</tr>
					</table>
						<table width="520" border="0" align="center" cellpadding="0" cellspacing="0">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
<%
Rs.MoveNext
Loop
Rs.Close
%>
					</td>
				</tr>
</table>
			<table width="530" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
</table>
<%
Rs.Open "select * from EduTbl where PerId = "& PerId &" order by EduId asc" , Conn , 1 , 1
If Not Rs.Eof Then
%>
			<table width="640" border="0" align="center" cellpadding="5" cellspacing="0" class="tblbk_D2D2D2">
				<tr>
					<td><img src="Images/arrow1.gif" width="13" height="9" align="absmiddle" /> <span style="color: #394F6B; font-weight: bold">教育情况</span></td>
				</tr>
				<tr>
					<td>
<%
	Do While Not Rs.Eof
%>
					<table width="630" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FBFBFB" class="tblbk_F1F1F1">
							<tr>
								<td width="375" height="20" class="td_line_col_FFFFFF">时间：<%=Rs("EduBeginDate")%> - <%=Rs("EduEndDate")%></td>
								<td width="375" height="20" class="td_line_col_FFFFFF">学校：<%=Rs("EduSchool")%></td>
							</tr>
							<tr>
								<td height="20" class="td_line_col_FFFFFF">专业：<%=Rs("EduProfession")%></td>
								<td height="20" class="td_line_col_FFFFFF">学历：<%=Rs("EduQualification")%></td>
							</tr>
							<tr>
								<td height="20" colspan="2" class="td_line_col_FFFFFF" style="line-height:20px;">专业描述：<br /><%=Qsite.chgStr2(Rs("EduNote"))%></td>
							</tr>
					</table>
						<table width="520" border="0" align="center" cellpadding="0" cellspacing="0">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
<%
	Rs.MoveNext
	Loop
%>
					</td>
				</tr>
</table>
			<table width="530" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
</table>
<%
End If
Rs.Close


Rs.Open "select * from EducateTbl where PerId = "& PerId &" order by EducateId asc" , Conn , 1 , 1
If Not Rs.Eof Then
%>
			<table width="640" border="0" align="center" cellpadding="5" cellspacing="0" class="tblbk_D2D2D2">
				<tr>
					<td><img src="Images/arrow1.gif" width="13" height="9" align="absmiddle" /> <span style="color: #394F6B; font-weight: bold">培训情况</span></td>
				</tr>
				<tr>
					<td>
<%
	Do While Not Rs.Eof
%>
					<table width="630" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FBFBFB" class="tblbk_F1F1F1">
							<tr>
								<td width="375" height="20" class="td_line_col_FFFFFF">时间：<%=Rs("EducateBeginDate")%> - <%=Rs("EducateEndDate")%></td>
								<td width="375" height="20" class="td_line_col_FFFFFF">培训机构：<%=Rs("EducateAgencies")%></td>
							</tr>
							<tr>
								<td height="20" class="td_line_col_FFFFFF">培训地点：<%=Rs("EducateAddr")%></td>
								<td height="20" class="td_line_col_FFFFFF">培训课程：<%=Rs("EducateCourses")%></td>
							</tr>
							<tr>
								<td height="20" class="td_line_col_FFFFFF">获得证书：<%=Rs("EducateCertificates")%></td>
								<td height="20" class="td_line_col_FFFFFF">&nbsp;</td>
							</tr>
							<tr>
								<td height="20" colspan="2" class="td_line_col_FFFFFF" style="line-height:20px;">详细描述：<br /><%=Qsite.chgStr2(Rs("EducateNote"))%></td>
							</tr>
					</table>
						<table width="520" border="0" align="center" cellpadding="0" cellspacing="0">
							<tr>
								<td width="681">&nbsp;</td>
							</tr>
						</table>
<%
	Rs.MoveNext
	Loop
%>
					</td>
				</tr>
</table>
			<table width="520" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
</table>
<%
End If
Rs.Close


Rs.Open "select * from LanguageTbl where PerId = "& PerId &" order by LanguageId asc" , Conn , 1 , 1
If Not Rs.Eof Then
%>
			<table width="640" border="0" align="center" cellpadding="5" cellspacing="0" class="tblbk_D2D2D2">
				<tr>
					<td><img src="Images/arrow1.gif" width="13" height="9" align="absmiddle" /> <span style="color: #394F6B; font-weight: bold">语言能力</span></td>
				</tr>
				<tr>
					<td>
					<table width="630" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FBFBFB" class="tblbk_F1F1F1">
<%
	Do While Not Rs.Eof
%>
							<tr>
								<td width="375" height="20" class="td_line_col_FFFFFF">语种：<%=Rs("LanguageType")%></td>
								<td width="375" height="20" class="td_line_col_FFFFFF">掌握程度：<%=Rs("LanguageDegree")%></td>
							</tr>
<%
	Rs.MoveNext
	Loop
%>
					</table>
					</td>
				</tr>
</table>
			<table width="520" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
</table>
<%
End If
Rs.Close


Rs.Open "select * from WorkExpTbl where PerId = "& PerId &" order by WorkExpId asc" , Conn , 1 , 1
If Not Rs.Eof Then
%>
			<table width="640" border="0" align="center" cellpadding="5" cellspacing="0" class="tblbk_D2D2D2">
				<tr>
					<td><img src="Images/arrow1.gif" width="13" height="9" align="absmiddle" /> <span style="color: #394F6B; font-weight: bold">工作经历</span></td>
				</tr>
				<tr>
					<td>
<%
	Do While Not Rs.Eof
%>
					<table width="630" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FBFBFB" class="tblbk_F1F1F1">
							<tr>
								<td width="375" height="20" class="td_line_col_FFFFFF">时间：<%=Rs("WorkExpBeginDate")%> - <%=Rs("WorkExpEndDate")%></td>
								<td width="375" height="20" class="td_line_col_FFFFFF">公司名称：<%=Rs("WorkExpCompanyName")%></td>
							</tr>
							<tr>
								<td width="375" height="20" class="td_line_col_FFFFFF">公司性质：<%=Rs("WorkExpCompanyNature")%></td>
								<td width="375" height="20" class="td_line_col_FFFFFF">所属行业：<%=Rs("WorkExpCompanyIndustry")%></td>
							</tr>
							<tr>
								<td width="375" height="20" class="td_line_col_FFFFFF">所在部门：<%=Rs("WorkExpPost")%></td>
								<td width="375" height="20" class="td_line_col_FFFFFF">职位名称：<%=Rs("WorkExpJobs")%></td>
							</tr>
							<tr>
								<td width="375" height="20" class="td_line_col_FFFFFF">离职原因：<%=Rs("WorkExpLeave")%></td>
								<td width="375" height="20" class="td_line_col_FFFFFF">&nbsp;</td>
							</tr>
							<tr>
								<td height="20" colspan="2" class="td_line_col_FFFFFF" style="line-height:20px;">工作描述：<br /><%=Rs("WorkExpNote")%></td>
							</tr>
					</table>
						<table width="520" border="0" align="center" cellpadding="0" cellspacing="0">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
<%
	Rs.MoveNext
	Loop
%>
					</td>
				</tr>
</table>
			<table width="530" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td>&nbsp;</td>
				</tr>
</table>
<%
End If
Rs.Close
%>
			<table width="640" border="0" align="center" cellpadding="5" cellspacing="0" class="tblbk_D2D2D2">
				<tr>
					<td><img src="Images/arrow1.gif" width="13" height="9" align="absmiddle" /> <span style="color: #394F6B; font-weight: bold">联系方式</span></td>
				</tr>
				<tr>
					<td>
<%
If (Session("ComId") = "" Or Session("UserType") <> "Company") And Session("UserType") <> "Master"  And Cstr(Session("PerId")) <> Cstr(PerId)Then
%>
					<table width="630" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FBFBFB" class="tblbk_F1F1F1">
							<tr>
								<td height="20" style="color:#FF0000;">对不起，只有企业会员才能查看个人联系信息！请先 <font color="#CC0000"><strong>登录</strong></font> 或 <font color="#CC0000"><strong>注册</strong></font></td>
							</tr>
					</table>
<%
Else
	ShowContactFlag = False
	
	If Session("UserType") = "Master" Then
		ShowContactFlag = True
	End If
	If Session("UserType") = "Person" And Cstr(Session("PerId")) = Cstr(PerId) Then
		ShowContactFlag = True
	End If
	If ShowContactFlag = False Then
		Rs.Open "select * from ViewJlTbl where ComId = "& Session("ComId") &" and PerId = "& PerId , Conn , 1 , 1
		If Rs.Eof Then
			ShowContactFlag = False
		Else
			ShowContactFlag = True
		End If
		Rs.Close
	End If
	
	Rs.Open "select * from CompanyTbl where ComId = "& Session("ComId") , Conn , 1 , 1
	If Rs.Eof Then
		ShowContactFlag = False
	Else
		If Rs("IsLock") = "1" Then
			ShowContactFlag = False
		End If
	End If
	Rs.Close
	
	If ShowContactFlag = False Then
%>

					<table width="630" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FBFBFB" class="tblbk_F1F1F1">
							<tr>
								<td height="20" style="color:#FF0000;">对不起，只有企业会员才能查看个人联系信息！请先 <font color="#CC0000"><strong>登录</strong></font> 或 <font color="#CC0000"><strong>注册</strong></font></td>
							</tr>
					</table>
<%
	Else
%>
						<a name="contact" id="contact"></a>
						<table width="630" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FBFBFB" class="tblbk_F1F1F1">
							<tr>
								<td width="84" height="27" align="center" class="td_line_col_FFFFFF">现在所在地：</td>
								<td width="686" height="27" class="td_line_col_FFFFFF"><%=NowAddr%></td>
							</tr>
							<tr>
								<td height="27" align="center" class="td_line_col_FFFFFF">家庭地址：</td>
								<td height="27" class="td_line_col_FFFFFF"><%=HomeAddr%></td>
							</tr>
							<tr>
								<td height="27" align="center" class="td_line_col_FFFFFF">QQ：</td>
								<td height="27" class="td_line_col_FFFFFF"><%
								If QQ <> "" Then
									Response.Write("<a target=blank href=tencent://message/?uin="& QQ &"&Site="& Qsite.SiteName &"&Menu=yes><img border=""0"" SRC=http://wpa.qq.com/pa?p=1:"& QQ &":5 alt="""& RealName &"""></a>")
								End If
								%>&nbsp;</td>
							</tr>
							<tr>
								<td height="27" align="center" class="td_line_col_FFFFFF">MSN：</td>
								<td height="27" class="td_line_col_FFFFFF"><%=MSN%>&nbsp;</td>
							</tr>
							<tr>
								<td height="27" align="center" class="td_line_col_FFFFFF">联系电话：</td>
								<td height="27" class="td_line_col_FFFFFF"><%=Tel%></td>
							</tr>
							<tr>
								<td height="27" align="center" class="td_line_col_FFFFFF">电子信箱：</td>
								<td height="27" class="td_line_col_FFFFFF"><%=Email%></td>
							</tr>
						</table>
<%
	End If
End If
%>					</td>
				</tr>
</table>
<script language="javascript">
	window.print();
</script>