📄 per_outsendresume.asp
字号:
<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Public/Person_Cookies.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<%
Dim Rs,Cmd,Tmp,Action
Dim Perid,UserName,UserType,RealName,JobContent
Action = Request.QueryString("action")
If Action = "send" Then Call Send_Submit() '跳转到保存函数
'//获取个人用户的登陆标记
If IsArray(Session("Person")) Then
Perid = Session("Person")(2)
UserName = Session("Person")(0)
Else
Session.Abandon()
Response.write "<script>alert('-登录后才能进行该操作!-');location.href='../Public/MemberLogin.asp';</script>"
End if
'//调用存储过程
Set Cmd = Server.CreateObject("ADODB.Command")
Cmd.ActiveConnection = Conn
Cmd.CommandText = "Per_OutSentResume"
Cmd.CommandType = 4
Cmd.Parameters.Append Cmd.CreateParameter("@Perid",200,1,30)
Cmd.Parameters("@Perid") = Perid
Set Rs = Cmd.Execute
If Rs.Eof Then
CloseRs
Set Cmd = Nothing
CloseDB
Response.write "没有找到会员资料!"
Response.End()
End if
Tmp = Rs.GetRows() '//将数据填充到数组
'//0姓名,1会员类型,2求职信
'//如:Tmp(0,0)表示 用户的姓名
Rs.Close
Set Cmd = Nothing
'//功能代码
UserType = Cls_Usertype(Tmp(1,0))
RealName = Tmp(0,0)
JobContent = Tmp(2,0)
If JobContent <> "" Then JobContent = Replace(JobContent,"<br>",Chr(13))
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Style.css" type=text/css rel=stylesheet>
<title><%= Cls_WebName %> -- 个人会员管理中心 -- 外发简历</title>
</head>
<script language="JavaScript" src="../js/Person_OutSendResume.js"></script>
<body>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td>
<!--#include file="../Include/Header.asp" -->
</td>
</tr>
</table>
<table width="956" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="1" bgcolor="#eeeeee"></td>
</tr>
</table>
<table width="956" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="175">
<!--#include file="../Public/Person_Left.asp" -->
</td>
<td width="5"> </td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"><img src="../Images/icon.gif" width="11" height="11" align="absmiddle">
<%= RealName %>[<%= UserType %>] </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<Form action="?action=send" method="post" name="theForm" onSubmit="return theForm_check()">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
<tr>
<td bgcolor="#FFFFFF"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="2"></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
<tr>
<td height="25" bgcolor="f5f5f5"><b><font color="#000000"> 外发简历</font></b>
[请详细填写您外发的简历邮件的内容]</td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="2" cellspacing="1">
<tr bgcolor="f9f9f9">
<td width="22%" height="25" align="right"><STRONG><FONT
color=#ff6600>*</FONT></STRONG> 接收方邮件地址:</td>
<td height="25">
<input name="emailurl" type="text" id="emailurl" size="25" maxlength="100"></td>
</tr>
<tr>
<td width="22%" height="25" align="right"><STRONG><FONT
color=#ff6600>*</FONT></STRONG> 邮件标题:</td>
<td height="25"><input name="title" type="text" id="title" size="25" maxlength="100">
<input name="realname" type="hidden" id="realname" value="<%= RealName %>"></td>
</tr>
<tr>
<td width="22%" height="25" align="right" bgcolor="f9f9f9"><STRONG><FONT
color=#ff6600>*</FONT></STRONG> 邮件内容:</td>
<td height="25" bgcolor="f9f9f9">
<textarea name="memo" cols="45" rows="10" id="memo"><%= JobContent&Chr(13)&"我的简历访问地址是:个人简历" %></textarea></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="2"></td>
</tr>
</table> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="40" align="center">
<input type="submit" name="Submit" value=" 发 送 " style="height:30px;">
</td>
</tr>
</Form>
</table></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1" bgcolor="#eeeeee"></td>
</tr>
</table>
<!--#include file="../Include/Footer.asp" -->
</td>
</tr>
</table>
</body>
</html>
<%
Sub Send_Submit()
'//接收参数
Perid = Session("Person")(2)
EmailUrl = Replace_Text(Request.Form("EmailUrl"))
Title = Replace_Text(Request.Form("Title"))
Memo = Replace_Text(Request.Form("Memo"))
RealName = Replace_Text(Request.Form("RealName"))
If Memo <> "" Then Memo = Replace(Memo,Chr(13),"<Br>")
If Memo <> "" Then Memo = Replace(Memo,"个人简历","<a href="""&Cls_WebUrl&"/Person/Per_Resume.asp?Param="&Perid&""" target=_blank>"&RealName&"的个人简历</a>")
'//开始发送邮件
Set Jmail=server.createobject("Jmail.Message")
Jmail.Charset = "gb2312"
JMail.ContentType = "text/html"
Jmail.Silent = true
Jmail.Priority = 3
Jmail.MailServerUserName = Cls_Mailname '有效电子邮件帐号
Jmail.MailServerPassword = Cls_Mailpass '有效电子邮件密码
Jmail.From = Cls_Mailform
Jmail.FromName = Cls_WebName '来自
Jmail.Subject = Title '邮件标题
Jmail.AddRecipient ""&EmailUrl&"" '收件人的邮件地址
Jmail.Body = Memo '邮件内容
Jmail.Send(Cls_Mailsmtp) 'smtp服务器地址
Set Jmail=nothing
Response.write "<script>alert('邮件发送成功!');location.href='Per_OutSendResume.asp';</script>"
End Sub
'//关闭数据库连接
CloseDB
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -