<!--#include file="../Include/Const.asp" -->
<!--#include file="../Include/ConnSiteData.asp" -->
<!--#include file="CheckAdmin.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="Images/Admin_style.css">
<script language="javascript" src="../Scripts/Admin.js"></script>
<%
if Instr(session("AdminPurview"),"|27,")=0 then
  response.write ("<br /><br /><div align=""center""><font style=""color:red; font-size:9pt; "")>您没有管理该模块的权限！</font></div>")
  response.end
end if
dim Result
Result=request.QueryString("Result")
dim ReplyContent,ReplyTime,ID,JobID,TalentsName
dim mLinkman,mBirthDate,mStature,mMarriage,mRegResidence,mEduResume,mJobResume,mAddress,mZipCode,mTelephone,mMobile,mEmail,AddTime
ID=request.QueryString("ID")
call TalentsEdit()
%>
<body style="background-color:#FFFFFF;">
<br>
<table class="tableborder" width="95%" border="0" align="center" cellpadding="3" cellspacing="1">
  <tr>
    <th>招聘信息：添加，修改招聘信相关的内容</th>
  </tr>
  <tr>
    <td height="24" align="center" nowrap="nowrap"  class="forumrow"><a href="JobsEdit.asp?Result=Add" onclick='changeAdminFlag(&quot;添加招聘信息&quot;)'>添加招聘信息</a><font color="#0000FF">&nbsp;|&nbsp;</font><a href="JobsList.asp" onclick='changeAdminFlag(&quot;招聘信息列表&quot;)'>查看招聘信息 </a>&nbsp;|&nbsp;<a href="TalentsList.asp" onclick='changeAdminFlag(&quot;人才信息列表&quot;)'>查看人才信息</a></td>
  </tr>
</table>
<br />
<table class="tableBorder" width="95%" border="0" align="center" cellpadding="5" cellspacing="1">
  <form name="editForm" method="post" action="TalentsEdit.asp?Action=SaveEdit&Result=<%=Result%>&ID=<%=ID%>">
    <tr>
      <th height="22" colspan="2" sytle="line-height:150%">【<%If Result = "Add" then%>添加<%ElseIf Result = "Modify" then%>修改<%End If%>人才】</th>
    </tr>
    <tr>
      <td width="20%" align="right" class="forumRow">应聘职位：</td>
      <td width="80%" class="forumRowHighlight"><input name="TalentsName" type="text" id="TalentsName" style="width: 280" value="<%=TalentsName%>" readonly> <a href="JobsEdit.asp?Result=Modify&ID=<%=JobID%>" target="main">查看招聘</a></td>
    </tr>
    <tr>
      <td align="right" class="forumRow">应聘人：</td>
      <td class="forumRowHighlight"><%=mLinkman%></td>
    </tr>
    <tr>
      <td align="right" class="forumRow">出生日期：</td>
      <td class="forumRowHighlight"><input name="BirthDate" type="text" id="BirthDate" style="width: 180" value="<%=mBirthDate%>" readonly></td>
    </tr>
	<tr>
      <td align="right" class="forumRow">身高：</td>
      <td class="forumRowHighlight"><input name="Stature" type="text" id="Stature" style="width: 180" value="<%=mStature%>" readonly></td>
    </tr>
	<tr>
      <td align="right" class="forumRow">婚姻状况：</td>
      <td class="forumRowHighlight"><input name="Marriage" type="text" id="Marriage" style="width: 180" value="<%=mMarriage%>" readonly></td>
    </tr>
	<tr>
      <td align="right" class="forumRow">户口所在地：</td>
      <td class="forumRowHighlight"><input name="RegResidence" type="text" id="RegResidence" style="width: 280" value="<%=mRegResidence%>" readonly></td>
    </tr>
	<tr>
      <td align="right" class="forumRow">教育经历：</td>
      <td class="forumRowHighlight"><textarea name="EduResume" rows="10" id="EduResume" style="width: 500" readonly><%=mEduResume%></textarea></td>
    </tr>
	<tr>
      <td align="right" class="forumRow">工作经历：</td>
      <td class="forumRowHighlight"><textarea name="JobResume" rows="10" id="JobResume" style="width: 500" readonly><%=mJobResume%></textarea></td>
    </tr>
	<tr>
      <td align="right" class="forumRow">通信地址：</td>
      <td class="forumRowHighlight"><input name="Address" type="text" id="Address" style="width: 280" value="<%=mAddress%>" readonly></td>
    </tr>
	<tr>
      <td align="right" class="forumRow">邮政编码：</td>
      <td class="forumRowHighlight"><input name="ZipCode" type="text" id="ZipCode" style="width: 80" value="<%=mZipCode%>" readonly></td>
    </tr>
	<tr>
      <td align="right" class="forumRow">联系电话：</td>
      <td class="forumRowHighlight"><input name="Telephone" type="text" id="Telephone" style="width: 180" value="<%=mTelephone%>" readonly></td>
    </tr>
	<tr>
      <td align="right" class="forumRow">手机号码：</td>
      <td class="forumRowHighlight"><input name="Mobile" type="text" id="Mobile" style="width: 180" value="<%=mMobile%>" readonly></td>
    </tr>
	<tr>
      <td align="right" class="forumRow">电子信箱：</td>
      <td class="forumRowHighlight"><input name="Email" type="text" id="Email" style="width: 180" value="<%=mEmail%>" readonly></td>
    </tr>
	<tr>
      <td align="right" class="forumRow">提交时间：</td>
      <td class="forumRowHighlight"><input name="AddTime" type="text" id="AddTime" style="width: 180" value="<%=AddTime%>" readonly></td>
    </tr>
	<tr>
      <td align="right" class="forumRow">回复时间：</td>
      <td class="forumRowHighlight"><input name="ReplyTime" type="text" id="ReplyTime" style="width: 180" value="<%=ReplyTime%>" readonly></td>
    </tr>
    <tr>
      <td align="right" class="forumRow">回复内容：</td>
      <td class="forumRowHighlight"><textarea name="ReplyContent" rows="6" id="ReplyContent" style="width: 500"><%=ReplyContent%></textarea></td>
    </tr>
    <tr>
      <td align="right" class="forumRow"></td>
      <td class="forumRowHighlight"><input name="submitSaveEdit" type="submit" id="submitSaveEdit" value="保存"> <input type="button" value="返回上一页" onclick="history.back(-1)"></td>
    </tr>
  </form>
</table>
<%
sub TalentsEdit()
  dim Action,rsCheckAdd,rs,sql
  Action=request.QueryString("Action")
  if Action="SaveEdit" then
    set rs = server.createobject("adodb.recordset")
	if Result="Modify" then
      sql="select * from liangjing_Talents where ID="&ID
      rs.open sql,conn,1,3
	  rs("ReplyContent")=StrReplace(Request.Form("ReplyContent"))
	  if not (trim(request.Form("ReplyContent"))="" or trim(request.Form("ReplyTime"))<>"") then
	    rs("ReplyTime")=now()
      end if
	end if
	rs.update
	rs.close
    set rs=nothing
    response.write "<script language='javascript'>alert('编辑、回复人才信息成功！');location.replace('TalentsList.asp');</script>"
  else
	if Result="Modify" then
      set rs = server.createobject("adodb.recordset")
      sql="select * from liangjing_Talents where ID="& ID
      rs.open sql,conn,1,1
	  JobID=rs("JobID")
	  TalentsName=rs("TalentsName")
	  mLinkman=GuestInfo(rs("MemID"),rs("Linkman"),rs("Sex"))
	  mBirthDate=rs("BirthDate")
	  mStature=rs("Stature")
	  mMarriage=rs("Marriage")
	  mRegResidence=rs("RegResidence")
	  mEduResume=ReStrReplace(rs("EduResume"))
	  mJobResume=ReStrReplace(rs("JobResume"))
	  mAddress=rs("Address")
	  mZipCode=rs("ZipCode")
	  mTelephone=rs("Telephone")
	  mMobile=rs("Mobile")
	  mEmail=rs("Email")
	  AddTime=rs("AddTime")
	  ReplyContent=ReStrReplace(rs("ReplyContent"))
	  ReplyTime=rs("ReplyTime")
	  rs.close
      set rs=nothing
	end if
  end if
end sub

function GuestInfo(ID,Guest,Sex)
  Dim rs,sql
  Set rs=server.CreateObject("adodb.recordset")
  sql="Select * From liangjing_Members where ID="&ID
  rs.open sql,conn,1,1
  if rs.eof then
    GuestInfo=Guest & "&nbsp;" & Sex
  else
    GuestInfo="<font color='green'>会员：</font><a href='MemEdit.asp?Result=Modify&ID="&ID&"'>"&Guest&"</a>"&Sex
  end if
  rs.close
  set rs=nothing
end function
%>
</body>