<!--#include file="conn.asp"-->
<!--#include file="check.asp"-->
<!--#include file="../inc/setup.asp"-->
<!--#include file="../inc/sql.asp"-->
<%
	end if
	action=Trim(Request.QueryString("action"))
	if action="sz" then
		id=Trim(Request.QueryString("id"))
		pid=Request.Cookies("admin_person_id")
		if id="" then
			response.write"<SCRIPT language=JavaScript>alert('您的操作有误，请与管理员联系');"
			response.write"this.location.href='Resume_all.asp';</script>"
			response.end()
		else
			Set rs = Server.CreateObject("ADODB.Recordset")
			sql="select * from Resume_cn where id="&id&" and pid="&pid&""
			rs.open sql,conn,1,1
			if rs.eof then
				response.write"<SCRIPT language=JavaScript>alert('您的不允许选择不属于您的简历，请与管理员联系');"
				response.write"this.location.href='Resume_all.asp';</script>"
				response.end()
			else
				conn.Execute("update person set Resume_id="&id&" where id="&Request.Cookies("admin_person_id")&"")
				response.write"<SCRIPT language=JavaScript>alert('您的默认简历已设置成功，现在为您返回');"
				response.write"this.location.href='Resume_all.asp';</script>"
				response.end()
			end if
			rs.close
			set rs=nothing
		end if
	end if
	
	
	if action="del" then
		id=Trim(Request.QueryString("id"))
		pid=Request.Cookies("admin_person_id")
		if id="" then
			response.write"<SCRIPT language=JavaScript>alert('您的操作有误，请与管理员联系');"
			response.write"this.location.href='Resume_all.asp';</script>"
			response.end()
		else
			Set rs = Server.CreateObject("ADODB.Recordset")
			sql="select * from Resume_cn where id="&id&" and pid="&pid&""
			rs.open sql,conn,1,1
			if rs.eof then
				response.write"<SCRIPT language=JavaScript>alert('您的不允许删除不属于您的简历，请与管理员联系');"
				response.write"this.location.href='Resume_all.asp';</script>"
				response.end()
			else
				conn.Execute("delete from Resume_cn where id="&id&"")
				response.write"<SCRIPT language=JavaScript>alert('您的简历删除成功，现在为您返回');"
				response.write"this.location.href='Resume_all.asp';</script>"
				response.end()
			end if
			rs.close
			set rs=nothing
		end if
	end if
	
	Set rs = Server.CreateObject("ADODB.Recordset")
	sql="select person.Resume_type,person.Resume_id,person.idate,Resume_cn.job,Resume_cn.jobs,Resume_cn.job1,Resume_cn.job1s,Resume_cn.job2,Resume_cn.job2s from person,Resume_cn where person.uname='"&Request.Cookies("admin_person_name")&"' and person.Resume_id=Resume_cn.id"
	rs.open sql,conn,1,1
	if rs.eof then
	
		Resume_type=0
		Resume_id=0
		idate=date()

		job=1
		jobs=1
		job1=1
		job1s=1
		job2=1
		job2s=1

	else
	
		Resume_type=rs("Resume_type")
		Resume_id=rs("Resume_id")
		idate=rs("idate")

		job=rs("job")
		jobs=rs("jobs")
		job1=rs("job1")
		job1s=rs("job1s")
		job2=rs("job2")
		job2s=rs("job2s")
		
	end if
	rs.close
	set rs=nothing

	Resume_cn_num=conn.Execute("select count(id) from Resume_cn where pid="&Request.Cookies("admin_person_id")&"")(0)
%>
<HTML>
<HEAD>
<TITLE><%=homename%>-个人会员</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link href="css/css.css" rel="stylesheet" type="text/css">
<LINK href="../company/images/css.css" type=text/css rel=stylesheet>
</HEAD>
<BODY>
<TABLE width="768" border="0" align="center" cellPadding="10" cellSpacing="0" borderColor="#111111" style="BORDER-COLLAPSE: collapse">
    <TR>
      <TD width="96%" valign="top">
        <TABLE cellSpacing=1 cellPadding=0 width=95% bgColor=0EBDF6 border=0>
            <TR>
              <TD bgColor=#ffffff>
			  <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 height=197 cellSpacing=3 cellPadding=7 width=700 align=center border=0>
                        <TR>
                          <TD height=191 align="left" valign="top" bgColor=#F9F9F9>
						<div class="con">
						<div class="h1blk1">
							<h1>我的简历</h1>
						</div>
						<div class="lab">
							<b class="on">简历列表</b>
							<div class="labbm"></div>
						</div>
						<div class="h1blk1">
							<div class="note1"><span id="lbEmail"><%= Request.Cookies("admin_person_name") %></span>：您好，您目前共有 <span class=text-orange01><%= Resume_cn_num %></span> 份简历，还可以保存 <span class=text-orange01><%= Resume_num-Resume_cn_num %></span> 份。<br>
						  <span id="lbRecentUpdate">您最近一次更新简历的时间是 <span class=text-orange01><%= idate %></span></span></div>
						</div>
						
						<span id="lbMsg"></span>
						
							<table id="list_Title" class="list_tb">
							<tr>
								<th width="103" align="center">简历名称</th>
								<th width="141" align="center">默认简历</th>
								<th width="116" align="center">被浏览次数</th>
								<th width="110" align="center">语言</th>
								<th width="104" align="center">简历等级 </th>
								<th width="153" align="center">操作</th>
							</tr>

<%
	set rs=server.createobject("adodb.recordset")
	sql="select * from Resume_cn where pid="&Request.Cookies("admin_person_id")&" order by id desc"    
	rs.open sql,conn,1,1
	if rs.eof then
%>
									<tr>
									  <td align="center" colspan="6" height="30">暂时还没有您的简历信息</td>
									</tr>
<%
	else
		do while not rs.eof

		rctype=rs("rctype")
		edu=rs("edu")
		address=rs("address")
		gzjl=rs("gzjl")
		mubiao=rs("mubiao")
		
		if rctype&"a"<>"a" then rctype=1
		if edu&"a"<>"a" then edu=1
		if address&"a"<>"a" then address=1
		if gzjl&"a"<>"a" then gzjl=1
		if mubiao&"a"<>"a" then mubiao=1
		
		snum=rctype+edu+address+gzjl+mubiao
		if snum=0 then
			svote="零"
		elseif snum=1 then
			svote="一"
		elseif snum=2 then
			svote="二"
		elseif snum=3 then
			svote="三"
		elseif snum=4 then
			svote="四"
		else
			svote="五"
		end if
%>
									<tr>
									  <td align="center"><%= rs("Resume_name") %></td>
										<td align="center"><% If Resume_id=rs("id") Then Response.Write("<img src='images/duihao.gif' />") else Response.Write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;")%><a href="?action=sz&id=<%= rs("id") %>">设置默认简历</a></td>
										<td align="center"><%= rs("click") %></td>
										<td align="center">中文</td>
										<td align="center" ><span class="star1"></span><div class="sta<%= snum %>" title="简历完整度：<%= svote %>星"></div></td>
										<td align="center"><a href="Edit_Resume_new_cn.asp?id=<%= rs("id") %>">修改</a> | <a target="_blank" href="view_Resume.asp?id=<%= rs("id") %>">预览</a> | <a AlternateText="刷新" href="updatejl.asp?action=up" style="CURSOR:hand">刷新</a> | <a onclick='{if(confirm("删除后将无法恢复，您真的要删除么？")){return true;}return false;}' AlternateText="删除简历" href="?action=del&id=<%= rs("id") %>">删除</a></td>
									</tr>
									
<%
		rs.movenext
		loop
	end if
	rs.close
	set rs=nothing
%>
						  </table>
<div class="main">				
<div class="col2">
<div id="divAddNew" class="col21">
	<div class="addblk">
		<input type="button" value="创建一份中文简历" class="add_ch" onClick="javascript:window.location.href='Resume_new_cn.asp'"/>
	</div>
</div>
</div>
<div>
</div>
        <div class="h1blk1">
            <h2 class="jian">职位推荐<img src="images/new.gif" title="NEW!" /></h2>
            <span class="note3">根据您的个人信息，<%=homename%>向您推荐以下职位，立即申请适合您的职位！<a href="/more_job.asp">去看看更多热门职位</a></span>
        </div>
        <table class="list">
            <tr>
                <th width="300px">职位名称</th>
                <th width="300px">公司名称</th>
                <th width="90px">发布日期</th>
                <th width="65px">操作</th>
            </tr>
                    <tr>
                        <td colspan="4">
                            <table class="list_tb2">
<%
	set rs=server.createobject("adodb.recordset")
	sql="select top 10 jtzw,id,cname,uid,addtime from zp where tj=1 and zhuangtai=1 and (jtzw="&job&" or jtzw="&jobs&" or jtzw="&job1&" or jtzw="&job1s&" or jtzw="&job2&" or jtzw="&job2s&") order by id desc"    
	rs.open sql,conn,1,1
	if eof then
%>
                                <tr>
                                    <td class="tit1" name="td1" colspan="4">暂时还没有符合您要求的职位信息</td>
                                </tr>
<%
	else
		do while not rs.eof
		if rs("jobtype")=0 then
			jobnameid=int(rs("jtzw"))
%>
<!--#include file="../inc/jobname.asp"-->
<%
		else
			jobname=rs("jobname")
		end if
%>
                                <tr>
                                    <td width="300px" class="tit1" name="td1"><a href="../view_job.asp?id=<%= rs("id") %>" target="_blank"><%= jobname %></a></td>
                                    <td width="300px" class="tit1" id="td2"><a href="../view_company.asp?id=<%= rs("uid") %>" target="_blank"><%= rs("cname") %></a></td>
                                    <td width="90px"><%= rs("addtime") %></td>
                                    <td width="65px" id="td4"><a href="yp_job.asp?id=<%= rs("id") %>">立即申请</a></td>
                                </tr>
<%
		rs.movenext
		loop
	end if
	rs.close
	set rs=nothing
%>
                            </table>
                        </td>
                    </tr>

        </table>
			<div class="col2">
			<div class="col21"><div class="note3">如何获得更精确的职位推荐<a href="javascript:void(0);" title="简历中“职业概况/求职意向”、“工作经验”填写得越详细，向您推荐的职位越准确。在“职业概况/求职意向”中精心填写您的期望从事行业、期望从事职业、期望从事地区，获得更适合自己的职位。"><img src="images/wenhao.gif" align="texttop"></a></div>
			
			</div>
			<div class="col22"><a href="/more_job.asp" target="_blank">去看看更多推荐职位</a>
			</div>
			</div>
			</div>
				</div>
					</TD>
                     </TR>
                </TABLE>
              </TD>
            </TR>
        </TABLE>
      </TD>
    </TR>
</TABLE>
<%
	conn.close
	set conn=nothing
%>
</BODY>
</html>