TalentsEdit.asp
上传用户:dbstep
上传日期:2022-08-06
资源大小:2803k
文件大小:8k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
ASP/ASPX
- <HTML>
- <HEAD>
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
- <TITLE>查看、修改、回复人才信息</TITLE>
- <link rel="stylesheet" href="Images/CssAdmin.css">
- <script language="javascript" src="../skweb/JS/Admin.js"></script>
- </HEAD>
- <!--#include file="../skweb/Const.asp" -->
- <!--#include file="../skweb/ConnSiteData.asp" -->
- <!--#include file="CheckAdmin.asp"-->
- <%
- if Instr(session("AdminPurview"),"|97,")=0 then
- response.write ("<font color='red')>你不具有该管理模块的操作权限,请返回!</font>")
- response.end
- end if
- '========判断是否具有管理权限
- %>
- <BODY>
- <%
- dim Result
- Result=request.QueryString("Result")
- dim ReplyContent,ReplyTime,ID,JobID,TalentsName
- dim Linkman,BirthDate,Stature,Marriage,RegResidence,EduResume,JobResume,Address,ZipCode,Telephone,Mobile,Email,AddTime
- ID=request.QueryString("ID")
- call TalentsEdit()
- %>
- <table width="100%" border="0" cellpadding="3" >
- <form name="editForm" method="post" action="TalentsEdit.asp?Action=SaveEdit&Result=<%=Result%>&ID=<%=ID%>">
- <tr>
- <td height="24" nowrap bgcolor="#EBF2F9"><table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC" id=editProduct idth="100%">
- <tr>
- <td height="29" colspan="2" background="Images/menutitle.gif" bgcolor="#FFFFFF"><table width="470" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="121"><strong><font color="#000000" size="2">招聘管理</font></strong></td>
- <td width="87"><a href="JobsEdit.asp?Result=Add"><img src="Images/x1.gif" width="52" height="17" border="0"></a></td>
- <td width="87"><a href="JobsList.asp"><img src="Images/xlm.gif" width="52" height="17" border="0"></a></td>
- <td width="87"><a href="TalentsList.asp"><img src="Images/xxjl.gif" width="52" height="17" border="0"></a></td>
- <td width="88"> </td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">应聘职位:</td>
- <td bgcolor="#FFFFFF"><input name="TalentsName" type="text" class="textfield" id="TalentsName" style="WIDTH: 240;" value="<%=TalentsName%>" readonly> <a href=JobsEdit.asp?Result=Modify&ID=<%=JobID%> target="mainFrame" onClick='changeAdminFlag("查看招聘信息")'>查看招聘</a></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">应 聘 者:</td>
- <td bgcolor="#FFFFFF"><%=Linkman%></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">出生日期:</td>
- <td bgcolor="#FFFFFF"><input name="BirthDate" type="text" class="textfield" id="BirthDate" style="WIDTH: 240;" value="<%=BirthDate%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">身 高:</td>
- <td bgcolor="#FFFFFF"><input name="Stature" type="text" class="textfield" id="Stature" style="WIDTH: 240;" value="<%=Stature%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">婚姻状况:</td>
- <td bgcolor="#FFFFFF"><input name="Marriage" type="text" class="textfield" id="Marriage" style="WIDTH: 240;" value="<%=Marriage%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">户口地址:</td>
- <td bgcolor="#FFFFFF"><input name="RegResidence" type="text" class="textfield" id="RegResidence" style="WIDTH: 240;" value="<%=RegResidence%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" valign="top" bgcolor="#FFFFFF">教育经历:</td>
- <td bgcolor="#FFFFFF"><textarea name="EduResume" rows="10" class="textfield" id="EduResume" style="WIDTH: 620;" readonly><%=EduResume%></textarea></td>
- </tr>
- <tr>
- <td height="20" align="right" valign="top" bgcolor="#FFFFFF">工作经历:</td>
- <td bgcolor="#FFFFFF"><textarea name="JobResume" rows="10" class="textfield" id="JobResume" style="WIDTH: 620;" readonly><%=JobResume%></textarea></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">通信地址:</td>
- <td bgcolor="#FFFFFF"><input name="Address" type="text" class="textfield" id="Address" style="WIDTH: 240;" value="<%=Address%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">邮 编:</td>
- <td bgcolor="#FFFFFF"><input name="ZipCode" type="text" class="textfield" id="ZipCode" style="WIDTH: 120" value="<%=ZipCode%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">电 话:</td>
- <td bgcolor="#FFFFFF"><input name="Telephone" type="text" class="textfield" id="Telephone" style="WIDTH: 240;" value="<%=Telephone%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">移动电话:</td>
- <td bgcolor="#FFFFFF"><input name="Mobile" type="text" class="textfield" id="Mobile" style="WIDTH: 120" value="<%=Mobile%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">电子邮箱:</td>
- <td bgcolor="#FFFFFF"><input name="Email" type="text" class="textfield" id="Email" style="WIDTH: 240" value="<%=Email%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">提交时间:</td>
- <td bgcolor="#FFFFFF"><input name="AddTime" type="text" class="textfield" id="AddTime" style="WIDTH: 240" value="<%=AddTime%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">回复时间:</td>
- <td bgcolor="#FFFFFF"><input name="ReplyTime" type="text" class="textfield" id="ReplyTime" style="WIDTH: 240" value="<%=ReplyTime%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" valign="top" bgcolor="#FFFFFF">回复内容:</td>
- <td bgcolor="#FFFFFF"><textarea name="ReplyContent" rows="6" class="textfield" id="ReplyContent" style="WIDTH: 620;"><%=ReplyContent%></textarea></td>
- </tr>
- <tr>
- <td height="30" align="right" bgcolor="#FFFFFF"> </td>
- <td valign="bottom" bgcolor="#FFFFFF"><input name="submitSaveEdit" type="submit" class="button" id="submitSaveEdit" value="保存" style="WIDTH: 80;" ></td>
- </tr>
- </table></td>
- </tr>
- </form>
- </table>
- </BODY>
- </HTML>
- <%
- 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 sk_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.Redirect("Tips/tal.asp")
- else '提取信息
- if Result="Modify" then
- set rs = server.createobject("adodb.recordset")
- sql="select * from sk_Talents where ID="& ID
- rs.open sql,conn,1,1
- JobID=rs("JobID")
- TalentsName=rs("TalentsName")
- Linkman=GuestInfo(rs("MemID"),rs("Linkman"),rs("Sex"))
- BirthDate=rs("BirthDate")
- Stature=rs("Stature")
- Marriage=rs("Marriage")
- RegResidence=rs("RegResidence")
- EduResume=ReStrReplace(rs("EduResume"))
- JobResume=ReStrReplace(rs("JobResume"))
- Address=rs("Address")
- ZipCode=rs("ZipCode")
- Telephone=rs("Telephone")
- Mobile=rs("Mobile")
- Email=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 sk_Members where ID="&ID
- rs.open sql,conn,1,1
- if rs.bof and rs.eof then
- GuestInfo=Guest & " " & Sex
- else
- GuestInfo="<font color='green'>会员 </font><a href='MemEdit.asp?Result=Modify&ID="&ID&"' onClick='changeAdminFlag(""前台会员资料"")'>"&Guest&"</a>"&Sex
- end if
- rs.close
- set rs=nothing
- end function
- %>