TalentsEdit.asp
上传用户:dbstep
上传日期:2022-08-06
资源大小:2803k
文件大小:8k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

ASP/ASPX

  1. <HTML>
  2. <HEAD>
  3. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
  4. <TITLE>查看、修改、回复人才信息</TITLE>
  5. <link rel="stylesheet" href="Images/CssAdmin.css">
  6. <script language="javascript" src="../skweb/JS/Admin.js"></script>
  7. </HEAD>
  8. <!--#include file="../skweb/Const.asp" -->
  9. <!--#include file="../skweb/ConnSiteData.asp" -->
  10. <!--#include file="CheckAdmin.asp"-->
  11. <%
  12. if Instr(session("AdminPurview"),"|97,")=0 then 
  13.   response.write ("<font color='red')>你不具有该管理模块的操作权限,请返回!</font>")
  14.   response.end
  15. end if
  16. '========判断是否具有管理权限
  17. %>
  18. <BODY>
  19. <% 
  20. dim Result
  21. Result=request.QueryString("Result")
  22. dim ReplyContent,ReplyTime,ID,JobID,TalentsName
  23. dim Linkman,BirthDate,Stature,Marriage,RegResidence,EduResume,JobResume,Address,ZipCode,Telephone,Mobile,Email,AddTime
  24. ID=request.QueryString("ID")
  25. call TalentsEdit() 
  26. %>
  27. <table width="100%" border="0" cellpadding="3"  >
  28.   <form name="editForm" method="post" action="TalentsEdit.asp?Action=SaveEdit&Result=<%=Result%>&ID=<%=ID%>">
  29.   <tr>
  30.     <td height="24" nowrap bgcolor="#EBF2F9"><table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC" id=editProduct idth="100%">
  31.    <tr>
  32.         <td height="29" colspan="2" background="Images/menutitle.gif" bgcolor="#FFFFFF"><table width="470" border="0" cellspacing="0" cellpadding="0">
  33.           <tr>
  34.             <td width="121"><strong><font color="#000000" size="2">招聘管理</font></strong></td>
  35.             <td width="87"><a href="JobsEdit.asp?Result=Add"><img src="Images/x1.gif" width="52" height="17" border="0"></a></td>
  36.             <td width="87"><a href="JobsList.asp"><img src="Images/xlm.gif" width="52" height="17" border="0"></a></td>
  37.             <td width="87"><a href="TalentsList.asp"><img src="Images/xxjl.gif" width="52" height="17" border="0"></a></td>
  38.             <td width="88">&nbsp;</td>
  39.           </tr>
  40.         </table></td>
  41.       </tr>
  42.       <tr>
  43.         <td height="20" align="right" bgcolor="#FFFFFF">应聘职位:</td>
  44.         <td bgcolor="#FFFFFF"><input name="TalentsName" type="text" class="textfield" id="TalentsName" style="WIDTH: 240;" value="<%=TalentsName%>" readonly>&nbsp;<a href=JobsEdit.asp?Result=Modify&ID=<%=JobID%> target="mainFrame" onClick='changeAdminFlag("查看招聘信息")'>查看招聘</a></td>
  45.       </tr>
  46.       <tr>
  47.         <td height="20" align="right" bgcolor="#FFFFFF">应&nbsp;聘&nbsp;者:</td>
  48.         <td bgcolor="#FFFFFF"><%=Linkman%></td>
  49.       </tr>
  50.       <tr>
  51.         <td height="20" align="right" bgcolor="#FFFFFF">出生日期:</td>
  52.         <td bgcolor="#FFFFFF"><input name="BirthDate" type="text" class="textfield" id="BirthDate" style="WIDTH: 240;" value="<%=BirthDate%>" readonly></td>
  53.       </tr>
  54.       <tr>
  55.         <td height="20" align="right" bgcolor="#FFFFFF">身  高:</td>
  56.         <td bgcolor="#FFFFFF"><input name="Stature" type="text" class="textfield" id="Stature" style="WIDTH: 240;" value="<%=Stature%>" readonly></td>
  57.       </tr>
  58.       <tr>
  59.         <td height="20" align="right" bgcolor="#FFFFFF">婚姻状况:</td>
  60.         <td bgcolor="#FFFFFF"><input name="Marriage" type="text" class="textfield" id="Marriage" style="WIDTH: 240;" value="<%=Marriage%>" readonly></td>
  61.       </tr>
  62.       <tr>
  63.         <td height="20" align="right" bgcolor="#FFFFFF">户口地址:</td>
  64.         <td bgcolor="#FFFFFF"><input name="RegResidence" type="text" class="textfield" id="RegResidence" style="WIDTH: 240;" value="<%=RegResidence%>" readonly></td>
  65.       </tr>
  66.       <tr>
  67.         <td height="20" align="right" valign="top" bgcolor="#FFFFFF">教育经历:</td>
  68.         <td bgcolor="#FFFFFF"><textarea name="EduResume" rows="10" class="textfield" id="EduResume" style="WIDTH: 620;" readonly><%=EduResume%></textarea></td>
  69.       </tr>
  70.       <tr>
  71.         <td height="20" align="right" valign="top" bgcolor="#FFFFFF">工作经历:</td>
  72.         <td bgcolor="#FFFFFF"><textarea name="JobResume" rows="10" class="textfield" id="JobResume" style="WIDTH: 620;" readonly><%=JobResume%></textarea></td>
  73.       </tr>
  74.       <tr>
  75.         <td height="20" align="right" bgcolor="#FFFFFF">通信地址:</td>
  76.         <td bgcolor="#FFFFFF"><input name="Address" type="text" class="textfield" id="Address" style="WIDTH: 240;" value="<%=Address%>" readonly></td>
  77.       </tr>
  78.       <tr>
  79.         <td height="20" align="right" bgcolor="#FFFFFF">邮  编:</td>
  80.         <td bgcolor="#FFFFFF"><input name="ZipCode" type="text" class="textfield" id="ZipCode" style="WIDTH: 120" value="<%=ZipCode%>" readonly></td>
  81.       </tr>
  82.       <tr>
  83.         <td height="20" align="right" bgcolor="#FFFFFF">电  话:</td>
  84.         <td bgcolor="#FFFFFF"><input name="Telephone" type="text" class="textfield" id="Telephone" style="WIDTH: 240;" value="<%=Telephone%>" readonly></td>
  85.       </tr>
  86.       <tr>
  87.         <td height="20" align="right" bgcolor="#FFFFFF">移动电话:</td>
  88.         <td bgcolor="#FFFFFF"><input name="Mobile" type="text" class="textfield" id="Mobile" style="WIDTH: 120" value="<%=Mobile%>" readonly></td>
  89.       </tr>
  90.       <tr>
  91.         <td height="20" align="right" bgcolor="#FFFFFF">电子邮箱:</td>
  92.         <td bgcolor="#FFFFFF"><input name="Email" type="text" class="textfield" id="Email" style="WIDTH: 240" value="<%=Email%>" readonly></td>
  93.       </tr>
  94.       <tr>
  95.         <td height="20" align="right" bgcolor="#FFFFFF">提交时间:</td>
  96.         <td bgcolor="#FFFFFF"><input name="AddTime" type="text" class="textfield" id="AddTime" style="WIDTH: 240" value="<%=AddTime%>" readonly></td>
  97.       </tr>
  98.       <tr>
  99.         <td height="20" align="right" bgcolor="#FFFFFF">回复时间:</td>
  100.         <td bgcolor="#FFFFFF"><input name="ReplyTime" type="text" class="textfield" id="ReplyTime" style="WIDTH: 240" value="<%=ReplyTime%>" readonly></td>
  101.       </tr>
  102.       <tr>
  103.         <td height="20" align="right" valign="top" bgcolor="#FFFFFF">回复内容:</td>
  104.         <td bgcolor="#FFFFFF"><textarea name="ReplyContent" rows="6" class="textfield" id="ReplyContent" style="WIDTH: 620;"><%=ReplyContent%></textarea></td>
  105.       </tr>
  106.       <tr>
  107.         <td height="30" align="right" bgcolor="#FFFFFF">&nbsp;</td>
  108.         <td valign="bottom" bgcolor="#FFFFFF"><input name="submitSaveEdit" type="submit" class="button"  id="submitSaveEdit" value="保存" style="WIDTH: 80;" ></td>
  109.       </tr>
  110.     </table></td>
  111.   </tr>
  112.   </form>
  113. </table>
  114. </BODY>
  115. </HTML>
  116. <%
  117. sub TalentsEdit()
  118.   dim Action,rsCheckAdd,rs,sql
  119.   Action=request.QueryString("Action")
  120.   if Action="SaveEdit" then '保存编辑人才信息
  121.     set rs = server.createobject("adodb.recordset")
  122. if Result="Modify" then '修改人才信息
  123.       sql="select * from sk_Talents where ID="&ID
  124.       rs.open sql,conn,1,3
  125.   rs("ReplyContent")=StrReplace(Request.Form("ReplyContent"))
  126.   if not (trim(request.Form("ReplyContent"))="" or trim(request.Form("ReplyTime"))<>"") then
  127.     rs("ReplyTime")=now()
  128.       end if
  129. end if
  130. rs.update
  131. rs.close
  132.     set rs=nothing 
  133.          Response.Redirect("Tips/tal.asp")
  134.   else '提取信息
  135. if Result="Modify" then
  136.       set rs = server.createobject("adodb.recordset")
  137.       sql="select * from sk_Talents where ID="& ID
  138.       rs.open sql,conn,1,1
  139.   JobID=rs("JobID")
  140.   TalentsName=rs("TalentsName")
  141.   Linkman=GuestInfo(rs("MemID"),rs("Linkman"),rs("Sex"))
  142.   BirthDate=rs("BirthDate")
  143.   Stature=rs("Stature")
  144.   Marriage=rs("Marriage")
  145.   RegResidence=rs("RegResidence")
  146.   EduResume=ReStrReplace(rs("EduResume"))
  147.   JobResume=ReStrReplace(rs("JobResume"))
  148.   Address=rs("Address")
  149.   ZipCode=rs("ZipCode")
  150.   Telephone=rs("Telephone")
  151.   Mobile=rs("Mobile")
  152.   Email=rs("Email")
  153.   AddTime=rs("AddTime")
  154.   ReplyContent=ReStrReplace(rs("ReplyContent"))
  155.   ReplyTime=rs("ReplyTime")
  156.   rs.close
  157.       set rs=nothing 
  158. end if
  159.   end if
  160. end sub
  161. function GuestInfo(ID,Guest,Sex)
  162.   Dim rs,sql
  163.   Set rs=server.CreateObject("adodb.recordset")
  164.   sql="Select * From sk_Members where ID="&ID
  165.   rs.open sql,conn,1,1
  166.   if rs.bof and rs.eof then
  167.     GuestInfo=Guest & "&nbsp;" & Sex
  168.   else
  169.     GuestInfo="<font color='green'>会员&nbsp;</font><a href='MemEdit.asp?Result=Modify&ID="&ID&"' onClick='changeAdminFlag(""前台会员资料"")'>"&Guest&"</a>"&Sex
  170.   end if
  171.   rs.close
  172.   set rs=nothing
  173. end function 
  174. %>