<!--#include file="../Include/Conn.asp" -->
<!--#include file="../Include/const.asp" -->
<!--#include file="../Include/function.asp" -->
<!--#include file="../Include/html.inc"-->
<% uname=session("puid")
   reid=request("reid")
    job=request("job")
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from person where uname='"&uname&"' and  job<>'""' "
rs.open sql,conn,1,1 
if rs.bof or rs.eof then
response.write"<SCRIPT language=JavaScript>alert('请先登录个人求职简历！');"
response.write"javascript:window.close();</SCRIPT>"
end if
sendname=rs("iname") 
rs.close                                                                    
set rs=nothing
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from company where uname='"&reid&"'"
rs.open sql,conn,1,1 
if rs.bof or rs.eof then
response.write"<SCRIPT language=JavaScript>alert('用户["&reid&"]不存在！');"
response.write"javascript:window.close();</SCRIPT>"
end if
rename=rs("cname") 
rs.close
set rs=nothing %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE><%=site_info(0)%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="../Include/Style1.css" type=text/css rel=stylesheet>
<META content="Microsoft FrontPage 5.0" name=GENERATOR>
<style type="text/css">
<!--
.style2 {color: #FFFFFF}
-->
</style>
</HEAD>
<!--#include file="../Include/top.asp" -->
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="770" id="AutoNumber6" bgcolor="#000000" height="1">
    <tr>
      <td width="100%"></td>
    </tr>
  </table>
  </center>
</div>



<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="770" id="AutoNumber62" bgcolor="#FFFFFF">
    <tr>
      <td width="100%" valign="top">
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber64">
        <tr>
          <td width="100%">　</td>
        </tr>
      </table>
      <p>　</p><form method=post action="sendmail.asp?reid=<%=reid%>">
      <div align="center">
        <center>
        <table border="1" cellpadding="8" cellspacing="0" style="border-collapse: collapse" bordercolor="#003366" width="70%" id="AutoNumber65" bgcolor="#2C8ED3">
          <tr bgcolor="#FFFFFF">
            <td colspan="3">
            <p align="center" class="nav">======&gt;&gt;&gt;&nbsp; 发 送 站 内 信 件 
            &lt;&lt;&lt;======</td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="17%" align="right">收信企业：</td>
            <td width="83%" colspan="2"><%=reid%>　</td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td width="17%" align="right">应聘职位：</td>
            <td width="83%" colspan="2">      
	  <input name="title" type="text" style="border: 1px solid #FFFFFF; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-color: #2C8ED3" value="<%=job%>" size="28" maxlength="20"></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td colspan="3"> 信件内容：</td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td colspan="3">     
              <div align="right">
                <textarea rows="20" name="mailtext" cols="71" style="border: 1px solid #FFFFFF; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-color: #2C8ED3"></textarea>
              </div></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td colspan="3">
            <p align="center">
            <input type="submit" value="确　定" style="border:1px solid #FFFFFF; position: relative; height: 19; padding-left:4; padding-right:4; padding-top:1; padding-bottom:1; background-color:#2C8ED3"></td>
          </tr>
        </table>
        </center>
      </div></form>
      <p>　</p>
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber63">
        <tr>
          <td width="100%">　</td>
        </tr>
      </table>
      </td>
    </tr>
  </table>
  </center>
</div>
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="770" id="AutoNumber19" bgcolor="#111111" height="1">
    <tr>
      <td width="100%"></td>
    </tr>
  </table>
  </center>
</div>
<!--#include file="../Include/Bottom.asp" -->
</BODY></HTML>
<% mailtext=htmlencode2(request("mailtext"))
   title=request("title")
   job=request("job")
   if mailtext="" then 
   Response.End
   end if
   if job<>"" then
   title=title&"---"&job
   end if
   Set rs = Server.CreateObject("ADODB.Recordset")
   sql="select * from cmailbox"
   rs.open sql,conn,3,3
   rs.addnew
   rs("reid")=reid
   rs("senduid")=uname
   rs("sendname")=sendname
   rs("title")=title
   rs("mailtext")=mailtext
   rs("sdate")=now()
   rs.update
 response.write"<SCRIPT language=JavaScript>alert('信件发送成功！');"
 response.write"javascript:window.close();</script>" %>