<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="admin.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/function.asp"-->
<%if session("utype")>0 then response.Write("<script>alert('非法操作！你己被记录！');history.bakc();</script>")%>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>我的简历 - <%=cf_name%></title>
<link href="images/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="images/us.js"></script>
</head>

<body>
<!--#include file="top.asp"-->
<div class="con bian">
   <div class="bd_l"><!--#include file="left.asp"--></div>
   <div class="bd_r">
      <div class="title">我的简历</div>
	  <%
'//发布
if request("act")=1 then
set rs=server.CreateObject("adodb.recordset")
sql="select * from cw_hr where userid="&session("userid")
rs.open sql,conn,1,3
if rs.eof and rs.bof then
rs.addnew
rs("userid")=session("userid")
rs("xingming")=trim(request("xingming"))
rs("xingbie")=trim(request("xingbie"))
rs("mingzu")=trim(request("mingzu"))
rs("chusheng")=trim(request("chusheng"))
rs("hunyin")=trim(request("hunyin"))
rs("jiguan")=trim(request("jiguan"))
rs("jingyan")=trim(request("jingyan"))
rs("xueli")=trim(request("xueli"))
rs("zhuanye")=trim(request("zhuanye"))
rs("xuexiao")=trim(request("xuexiao"))
rs("zhichen")=trim(request("zhichen"))
rs("dianhua")=trim(request("dianhua"))
rs("shouji")=trim(request("shouji"))
rs("email")=trim(request("email"))
rs("qq")=trim(request("qq"))
rs("pic")=trim(request("pic"))
rs("dizhi")=trim(request("dizhi"))
rs("zhuye")=trim(request("zhuye"))
rs("diannao")=trim(request("diannao"))
rs("waiyu")=trim(request("waiyu"))
rs("zhongwen")=trim(request("zhongwen"))
rs("zhiwei")=trim(request("zhiwei"))
rs("yuexin")=trim(request("yuexin"))
rs("address")=trim(request("address"))
rs("jiaoyu")=replace(trim(request("jiaoyu")),chr(13),"<br />")
rs("gongzuo")=replace(trim(request("gongzuo")),chr(13),"<br />")
rs("pingjia")=replace(trim(request("pingjia")),chr(13),"<br />")
rs("ispass")=hr_pass
rs.update
id=rs("id")
if hr_pass=1 then
  call c_oshow("cw_hr",1,id)'生成信息
end if
call cw_jf("+",2)
response.Write("<div class='msg'><h1 class='msg_t'>恭喜您，简历发布成功！</h1></div>")  
response.Write("<script>var url='cw_hr.asp'; setTimeout('location.href=(url)',2000)</script>")
response.End()
end if
rs.close
set rs=nothing
end if

'//修改
if request("act")=2 then
set rs=server.CreateObject("adodb.recordset")
sql="select * from cw_hr where id="&request("id")
rs.open sql,conn,1,3
pic=rs("pic")
rs("xingming")=trim(request("xingming"))
rs("xingbie")=trim(request("xingbie"))
rs("mingzu")=trim(request("mingzu"))
rs("chusheng")=trim(request("chusheng"))
rs("hunyin")=trim(request("hunyin"))
rs("jiguan")=trim(request("jiguan"))
rs("jingyan")=trim(request("jingyan"))
rs("xueli")=trim(request("xueli"))
rs("zhuanye")=trim(request("zhuanye"))
rs("xuexiao")=trim(request("xuexiao"))
rs("zhichen")=trim(request("zhichen"))
rs("dianhua")=trim(request("dianhua"))
rs("shouji")=trim(request("shouji"))
rs("email")=trim(request("email"))
rs("qq")=trim(request("qq"))
rs("pic")=trim(request("pic"))
rs("dizhi")=trim(request("dizhi"))
rs("zhuye")=trim(request("zhuye"))
rs("diannao")=trim(request("diannao"))
rs("waiyu")=trim(request("waiyu"))
rs("zhongwen")=trim(request("zhongwen"))
rs("zhiwei")=trim(request("zhiwei"))
rs("yuexin")=trim(request("yuexin"))
rs("address")=trim(request("address"))
rs("jiaoyu")=replace(trim(request("jiaoyu")),chr(13),"<br />")
rs("gongzuo")=replace(trim(request("gongzuo")),chr(13),"<br />")
rs("pingjia")=replace(trim(request("pingjia")),chr(13),"<br />")
rs("ispass")=hr_pass
rs("adddate")=now()
rs.update
rs.close
set rs=nothing
if trim(request("pic"))<>pic then '删除修改过的头像
  call cw_del(cf_root&pic)
end if
if hr_pass=1 then
   call c_oshow("cw_hr",1,request("id"))
end if
response.Write("<div class='msg'><h1 class='msg_t'>恭喜您，简历修改成功！</h1></div>")  
response.Write("<script>var url='cw_hr.asp'; setTimeout('location.href=(url)',2000)</script>")
response.End()
end if
%>
<%
set rr=server.CreateObject("adodb.recordset")
rsq="select * from cw_hr where userid="&session("userid")
rr.open rsq,conn,1,1
if rr.recordcount>0 then
%>
<table width="99%" border="0">
<form method="post" action="cw_hr.asp" onsubmit="return check_hr(this)">
   <tr>
     <td colspan="4" align="right">【<a href="<%=cf_root&cf_hr&rr("id")%>.html" target="_blank">查看我的简历</a>】</td>
     </tr>
   <tr>
    <td width="11%" align="right">姓 名：</td>
    <td width="33%"><input name="xingming" type="text" id="xingming" maxlength="10" value="<%=rr("xingming")%>" /></td>
    <td width="13%" align="right">性 别：</td>
    <td width="43%"><input name="xingbie" type="radio" value="男" checked="checked" <%if rr("xingbie")="男" then%>checked="checked"<%end if%> />
      男
        <input type="radio" name="xingbie" value="女" <%if rr("xingbie")="女" then%>checked="checked"<%end if%> />
        女</td>
  </tr>
  <tr>
    <td align="right">民 族：</td>
    <td><input name="mingzu" type="text" id="mingzu" value="<%=rr("mingzu")%>" /></td>
    <td align="right">出生日期：</td>
    <td><input name="chusheng" type="text" id="chusheng" value="<%=rr("chusheng")%>" maxlength="20" />
      *例：1990-5-6</td>
  </tr>
  <tr>
    <td align="right">婚姻状况：</td>
    <td><select name="hunyin" id="hunyin">
      <option value="未婚" <%if rr("hunyin")="未婚" then%>selected="selected"<%end if%>>未婚</option>
      <option value="己婚" <%if rr("hunyin")="己婚" then%>selected="selected"<%end if%>>己婚</option>
    </select>    </td>
    <td align="right">籍 贯：</td>
    <td><input name="jiguan" type="text" id="jiguan" value="<%=rr("jiguan")%>" maxlength="20" /></td>
  </tr>
  <tr>
    <td align="right">工作经验：</td>
    <td><select name="jingyan" id="jingyan">
	  <option value="无" <%if rr("jingyan")="无" then%>selected="selected"<%end if%>>无</option>
      <option value="1年" <%if rr("jingyan")="1年" then%>selected="selected"<%end if%>>1年</option>
      <option value="2年" <%if rr("jingyan")="2年" then%>selected="selected"<%end if%>>2年</option>
      <option value="3年" <%if rr("jingyan")="3年" then%>selected="selected"<%end if%>>3年</option>
      <option value="4年" <%if rr("jingyan")="4年" then%>selected="selected"<%end if%>>4年</option>
      <option value="5年" <%if rr("jingyan")="5年" then%>selected="selected"<%end if%>>5年</option>
      <option value="5年以上" <%if rr("jingyan")="5年以上" then%>selected="selected"<%end if%>>5年以上</option>
    </select></td>
    <td align="right">学 历：</td>
    <td><select name="xueli" id="xueli">
      <option value="小学" <%if rr("xueli")="小学" then%>selected="selected"<%end if%>>小学</option>
      <option value="初中" <%if rr("xueli")="初中" then%>selected="selected"<%end if%>>初中</option>
      <option value="高中" <%if rr("xueli")="高中" then%>selected="selected"<%end if%>>高中</option>
      <option value="中专" <%if rr("xueli")="中专" then%>selected="selected"<%end if%>>中专</option>
      <option value="大专" <%if rr("xueli")="大专" then%>selected="selected"<%end if%>>大专</option>
      <option value="本科" <%if rr("xueli")="本科" then%>selected="selected"<%end if%>>本科</option>
      <option value="研究生" <%if rr("xueli")="研究生" then%>selected="selected"<%end if%>>研究生</option>
      <option value="博士" <%if rr("xueli")="博士" then%>selected="selected"<%end if%>>博士</option>
      <option value="硕士" <%if rr("xueli")="硕士" then%>selected="selected"<%end if%>>硕士</option>
    </select>    </td>
  </tr>
  <tr>
    <td align="right">专 业：</td>
    <td><input name="zhuanye" type="text" id="zhuanye" value="<%=rr("zhuanye")%>" maxlength="50" /></td>
    <td align="right">毕业学校：</td>
    <td><input name="xuexiao" type="text" id="xuexiao" value="<%=rr("xuexiao")%>" maxlength="50" /></td>
  </tr>
  <tr>
    <td align="right">职 称：</td>
    <td><input name="zhichen" type="text" id="zhichen" value="<%=rr("zhichen")%>" maxlength="20" /></td>
    <td align="right">固定电话：</td>
    <td><input name="dianhua" type="text" id="dianhua" value="<%=rr("dianhua")%>" maxlength="18" /></td>
  </tr>
  <tr>
    <td align="right">手 机：</td>
    <td><input name="shouji" type="text" id="shouji" value="<%=rr("shouji")%>" maxlength="15" /></td>
    <td align="right">邮 箱：</td>
    <td><input name="email" type="text" id="email" value="<%=rr("email")%>" /></td>
  </tr>
  <tr>
    <td align="right">Q Q：</td>
    <td><input name="qq" type="text" id="qq" value="<%=rr("qq")%>" maxlength="15" /></td>
    <td align="right">个人主页：</td>
    <td><input name="zhuye" type="text" id="zhuye" value="<%=rr("zhuye")%>" maxlength="50" />
    *http://www.abc.com</td>
  </tr>
  <tr>
    <td align="right">现所在地：</td>
    <td><input name="dizhi" type="text" id="dizhi" value="<%=rr("dizhi")%>" maxlength="100" /></td>
    <td align="right">普通话：</td>
    <td><input type="radio" name="zhongwen" value="精通" <%if rr("zhongwen")="精通" then%>checked="checked"<%end if%> /> 
    精通
      <input type="radio" name="zhongwen" value="熟练" <%if rr("zhongwen")="熟练" then%>checked="checked"<%end if%> /> 
      熟练
      <input type="radio" name="zhongwen" value="良好" <%if rr("zhongwen")="良好" then%>checked="checked"<%end if%> /> 
      良好
      <input type="radio" name="zhongwen" value="一般" <%if rr("zhongwen")="一般" then%>checked="checked"<%end if%> /> 
      一般</td>
  </tr>
  <tr>
    <td align="right">计算机：</td>
    <td><input type="radio" name="diannao" value="精通" <%if rr("diannao")="精通" then%>checked="checked"<%end if%> />
      精通
      <input type="radio" name="diannao" value="熟练" <%if rr("diannao")="熟练" then%>checked="checked"<%end if%> />
      熟练
      <input type="radio" name="diannao" value="良好" <%if rr("diannao")="良好" then%>checked="checked"<%end if%> />
      良好
      <input type="radio" name="diannao" value="一般" <%if rr("diannao")="一般" then%>checked="checked"<%end if%> />
      一般</td>
    <td align="right">外 语：</td>
    <td><input type="radio" name="waiyu" value="精通" <%if rr("waiyu")="精通" then%>checked="checked"<%end if%> />
      精通
      <input type="radio" name="waiyu" value="熟练" <%if rr("waiyu")="熟练" then%>checked="checked"<%end if%> />
      熟练
      <input type="radio" name="waiyu" value="良好" <%if rr("waiyu")="良好" then%>checked="checked"<%end if%> />
      良好
      <input type="radio" name="waiyu" value="一般" <%if rr("waiyu")="一般" then%>checked="checked"<%end if%> />
      一般</td>
  </tr>
  <tr>
    <td align="right">期望职位：</td>
    <td><input name="zhiwei" type="text" id="zhiwei" value="<%=rr("zhiwei")%>" maxlength="30" /></td>
    <td align="right">期望月薪：</td>
    <td><input name="yuexin" type="text" id="yuexin" value="<%=rr("yuexin")%>" maxlength="10" />
      元/月</td>
  </tr>
  <tr>
    <td align="right">简历照片：</td>
    <td colspan="3"><input type="text" name="pic" id="pic" value="<%=rr("pic")%>" readonly="" size="40"  /><iframe src="../inc/upload.asp?lei=5&pid=pic&fid=fm&rid=info" frameborder="0" width="400" height="25" scrolling="No" id="fm" style="display:none"></iframe> <a  onclick="document.getElementById('pic').style.display='none';document.getElementById('fm').style.display='inline';document.getElementById('s1').style.display='none'" id="s1" style="cursor:pointer">上传</a> *建议大小240*320像素</a></td>
    </tr>
  <tr>
    <td align="right">家庭住址：</td>
    <td colspan="3"><input name="address" type="text" id="address" value="<%=rr("address")%>" size="60" maxlength="150" /></td>
    </tr>
  <tr>
    <td colspan="4">教育经历：(例：2010.5-2012.9 学校名称 所学专业 学历) </td>
    </tr>
  <tr>
    <td colspan="4" align="center"><textarea name="jiaoyu" cols="100" rows="8" id="jiaoyu"><%=replace(rr("jiaoyu"),"<br />",chr(13))%></textarea></td>
    </tr>
  <tr>
    <td colspan="4">工作经历：(例：2010.5-2011.5 公司名称 公司职位)</td>
    </tr>
  <tr>
    <td colspan="4" align="center"><textarea name="gongzuo" cols="100" rows="8" id="gongzuo"><%=replace(rr("gongzuo"),"<br />",chr(13))%></textarea></td>
    </tr>
  <tr>
    <td colspan="4">自我评价：</td>
    </tr>
  <tr>
    <td colspan="4" align="center"><textarea name="pingjia" cols="100" rows="8" id="pingjia"><%=replace(rr("pingjia"),"<br />",chr(13))%></textarea></td>
    </tr>
  <tr>
    <td colspan="4" align="center"><input name="Submit" type="submit" class="btn" value="修改我的简历" />
      <input name="act" type="hidden" id="act" value="2" />
      <input name="id" type="hidden" id="id" value="<%=rr("id")%>" /></td>
    </tr>
  </form>
</table>
  <%  
  rr.close
  set rr=nothing
  else
  %>

<table width="99%" border="0">
<form method="post" action="cw_hr.asp" onsubmit="return check_hr(this)">
   <tr>
    <td width="11%" align="right">姓名：</td>
    <td width="34%"><input name="xingming" type="text" id="xingming" maxlength="10" /></td>
    <td width="12%" align="right">性别：</td>
    <td width="43%"><input name="xingbie" type="radio" value="男" />
      男
        <input type="radio" name="xingbie" value="女" />
        女</td>
  </tr>
  <tr>
    <td align="right">民族：</td>
    <td><input name="mingzu" type="text" id="mingzu" maxlength="20" /></td>
    <td align="right">出生日期：</td>
    <td><input name="chusheng" type="text" id="chusheng" maxlength="15" />
    *例：1990-5-6</td>
  </tr>
  <tr>
    <td align="right">婚姻状况：</td>
    <td><select name="hunyin" id="hunyin">
      <option value="未婚">未婚</option>
      <option value="己婚">己婚</option>
      <option value="离异">离异</option>
    </select>    </td>
    <td align="right">籍贯：</td>
    <td><input name="jiguan" type="text" id="jiguan" maxlength="20" /></td>
  </tr>
  <tr>
    <td align="right">工作经验：</td>
    <td><select name="jingyan" id="jingyan">
	  <option value="无">无</option>
      <option value="1年">1年</option>
      <option value="2年">2年</option>
      <option value="3年">3年</option>
      <option value="4年">4年</option>
      <option value="5年">5年</option>
      <option value="5年以上">5年以上</option>
    </select></td>
    <td align="right">学历：</td>
    <td><select name="xueli" id="xueli">
      <option value="小学">小学</option>
      <option value="初中">初中</option>
      <option value="高中">高中</option>
      <option value="中专">中专</option>
      <option value="大专">大专</option>
      <option value="本科">本科</option>
      <option value="研究生">研究生</option>
      <option value="博士">博士</option>
      <option value="硕士">硕士</option>
    </select>    </td>
  </tr>
  <tr>
    <td align="right">专业：</td>
    <td><input name="zhuanye" type="text" id="zhuanye" maxlength="50" /></td>
    <td align="right">毕业学校：</td>
    <td><input name="xuexiao" type="text" id="xuexiao" maxlength="50" /></td>
  </tr>
  <tr>
    <td align="right">职称：</td>
    <td><input name="zhichen" type="text" id="zhichen" maxlength="20" /></td>
    <td align="right">固定电话：</td>
    <td><input name="dianhua" type="text" id="dianhua" maxlength="18" /></td>
  </tr>
  <tr>
    <td align="right">手机：</td>
    <td><input name="shouji" type="text" id="shouji" maxlength="20" /></td>
    <td align="right">邮箱：</td>
    <td><input name="email" type="text" id="email" maxlength="50" /></td>
  </tr>
  <tr>
    <td align="right">QQ：</td>
    <td><input name="qq" type="text" id="qq" maxlength="15" /></td>
    <td align="right">个人主页：</td>
    <td><input name="zhuye" type="text" id="zhuye" maxlength="50" /> 
    *http://www.abc.com </td>
  </tr>
  <tr>
    <td align="right">现所在地：</td>
    <td><input name="dizhi" type="text" id="dizhi" maxlength="100" /></td>
    <td align="right">普通话：</td>
    <td><input type="radio" name="zhongwen" value="精通" />
      精通
      <input type="radio" name="zhongwen" value="熟练" />
      熟练
      <input type="radio" name="zhongwen" value="良好" />
      良好
      <input type="radio" name="zhongwen" value="一般" />
      一般</td>
  </tr>
  <tr>
    <td align="right">计算机：</td>
    <td><input type="radio" name="diannao" value="精通" />
      精通
      <input type="radio" name="diannao" value="熟练" />
      熟练
      <input type="radio" name="diannao" value="良好" />
      良好
      <input type="radio" name="diannao" value="一般" />
      一般</td>
    <td align="right">外语：</td>
    <td><input type="radio" name="waiyu" value="精通" />
      精通
      <input type="radio" name="waiyu" value="熟练" />
      熟练
      <input type="radio" name="waiyu" value="良好" />
      良好
      <input type="radio" name="waiyu" value="一般" />
      一般</td>
  </tr>
  <tr>
    <td align="right">期望职位：</td>
    <td><input name="zhiwei" type="text" id="zhiwei" value="" maxlength="30" /></td>
    <td align="right">期望月薪：</td>
    <td><input name="yuexin" type="text" id="yuexin" maxlength="10" />
    元/月</td>
  </tr>
  <tr>
    <td align="right">简历照片：</td>
    <td colspan="3"><input type="text" name="pic" id="pic" value="" readonly="" size="40" style="display:none"  /><iframe src="../inc/upload.asp?lei=5&pid=pic&fid=fm&rid=info" frameborder="0" width="400" height="25" scrolling="No" id="fm"></iframe>  
    *建议大小240*320像素 </td>
    </tr>
  <tr>
    <td align="right">家庭住址：</td>
    <td colspan="3"><input name="address" type="text" id="address" size="60" maxlength="150" /></td>
  </tr>
  <tr>
    <td colspan="4">教育经历：(例：2010.5-2012.9 学校名称 所学专业 学历)</td>
    </tr>
  <tr>
    <td colspan="4" align="center"><textarea name="jiaoyu" cols="100" rows="8" id="jiaoyu"></textarea></td>
    </tr>
  <tr>
    <td colspan="4">工作经历：(例：2010.5-2011.5 公司名称 公司职位)</td>
    </tr>
  <tr>
    <td colspan="4" align="center"><textarea name="gongzuo" cols="100" rows="8" id="gongzuo"></textarea></td>
    </tr>
  <tr>
    <td colspan="4">自我评价：</td>
    </tr>
  <tr>
    <td colspan="4" align="center"><textarea name="pingjia" cols="100" rows="8" id="pingjia"></textarea></td>
    </tr>
  <tr>
    <td colspan="4" align="center"><input name="Submit" type="submit" class="btn" value="发布我的简历" />
      <input name="act" type="hidden" id="act" value="1" /></td>
    </tr>
  </form>
</table>
<%end if%>

   </div>
   <div class="clear"></div>
</div>
<div class="line"></div>
<!--#include file="foot.asp"-->
<%
call closes()
%>
</body>
</html>
