<%dbs="../"%>
<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/sub.asp"-->
<!--#include file="uccook.asp"-->
<!--#include file="uc.asp"-->
<%
HM=request("HM")
if HM="job" then
sql="select * from H_job where Uid="&UID&""
set rs=server.createobject("adodb.recordset")                     
rs.open sql,conn,1,1 
if not rs.eof then
CMS_H_name=rs("H_name")
CMS_H_Age=rs("H_Age")
CMS_H_Gender=rs("H_Gender")
if CMS_H_Gender=1 then
CMS_H_Gender="<font color=#CC6600>男</font>"
elseif CMS_H_Gender=2 then
CMS_H_Gender="<font color=#3399FF>女</font>"
else
CMS_H_Gender="不限"
end if
CMS_H_Education=rs("H_Education")
if CMS_H_Education=1 then
CMS_H_Education="<font color=#3399FF>高中以下</font>"
elseif CMS_H_Education=2 then 
CMS_H_Education="<font color=#3399FF>中专</font>"
elseif CMS_H_Education=3 then 
CMS_H_Education="<font color=#3399FF>大专</font>"
elseif CMS_H_Education=4 then 
CMS_H_Education="<font color=#3399FF>本科</font>"
elseif CMS_H_Education=5 then 
CMS_H_Education= "<font color=#3399FF>硕士</font>"
elseif CMS_H_Education=6 then 
CMS_H_Education="<font color=#3399FF>博士</font>"
elseif CMS_H_Education=7 then 
CMS_H_Education="<font color=#3399FF>博士后</font>"
else
CMS_H_Education= "<font color=#3399FF>MBA</font>"
end if
CMS_H_Tel=rs("H_Tel")
CMS_H_QQ=rs("H_QQ")
CMS_H_email=rs("H_email")
CMS_H_Costs=rs("H_Costs")
CMS_H_Mean=rs("H_Mean")
CMS_H_Experience=rs("H_Experience")
CMS_H_Process=rs("H_Process")
CMS_H_txt=rs("H_txt")
CMS_Rdate=rs("Rdate")
CMS_H_PIC=rs("H_PIC")
if CMS_H_PIC="" or isnull(CMS_H_PIC) then
CMS_H_PIC="nopic.gif"
end if
end if
HMsun="<br><br><br><br><table width=550 border=0 align=center cellpadding=0 cellspacing=1 bgcolor=#DDDDDD>"
HMsun=HMsun&"<tr>"
HMsun=HMsun&"<td height=30 colspan=5  bgcolor=#F5F5F5 align=center> 基本资料</td>"
HMsun=HMsun&"</tr><tr>"
HMsun=HMsun&"<td width=74 height=30 align=center bgcolor=#FFFFFF>姓名：</td>"
HMsun=HMsun&"<td width=169 bgcolor=#FFFFFF style=""padding-left:10px"">"&CMS_h_name&"</td>"
HMsun=HMsun&"<td width=80 align=center bgcolor=#FFFFFF>要求月薪：</td>"
HMsun=HMsun&"<td width=165 bgcolor=#FFFFFF style=""padding-left:10px"">"&cms_H_Costs&"</td>"
HMsun=HMsun&"<td width=146 rowspan=5 align=center bgcolor=#FFFFFF><img src=../UpLoadUC/"&CMS_H_PIC&" width=106 height=140 />"
HMsun=HMsun&"</td></tr><tr><td height=30 align=center bgcolor=#FFFFFF>性别：</td>"
HMsun=HMsun&"<td bgcolor=#FFFFFF style=""padding-left:10px"">"&cms_H_Gender&"</td>"
HMsun=HMsun&"<td align=center bgcolor=#FFFFFF>工作经验：</td>"
HMsun=HMsun&"<td bgcolor=#FFFFFF style=""padding-left:10px"">"&cms_H_Experience&"  年</td></tr>"
HMsun=HMsun&"<tr><td height=30 align=center bgcolor=#FFFFFF>年龄：</td>"
HMsun=HMsun&"<td bgcolor=#FFFFFF style=""padding-left:10px"">"&cms_H_Age&"</td><td align=center bgcolor=#FFFFFF>求职意向：</td>"
HMsun=HMsun&"<td bgcolor=#FFFFFF style=""padding-left:10px"">"&left(CMS_H_Mean,50)&"</td></tr>"
HMsun=HMsun&"<tr><td height=30 align=center bgcolor=#FFFFFF>学历：</td>"
HMsun=HMsun&"<td bgcolor=#FFFFFF style=""padding-left:10px"">"&CMS_H_Education&"</td>"
HMsun=HMsun&"<td align=center bgcolor=#FFFFFF>登记时间：</td>"
HMsun=HMsun&"<td bgcolor=#FFFFFF style=""padding-left:10px"">"&date()&"</td></tr>"
HMsun=HMsun&"<tr><td height=30 align=center bgcolor=#FFFFFF>工作经历：</td>"
HMsun=HMsun&"<td colspan=3 bgcolor=#FFFFFF style=""padding-left:10px"">"&cms_H_Process&"</td></tr></table>"
HMsun=HMsun&"<table width=550 height=10 border=0 align=center cellpadding=0 cellspacing=0><tr><td></td></tr></table>"
HMsun=HMsun&"<table width=550 border=0 align=center cellpadding=0 cellspacing=1 bgcolor=#DDDDDD><tr>"
HMsun=HMsun&"<td height=30 colspan=5  bgcolor=#F5F5F5 align=center><p>教育情况/语言水平/技术专长</p></td></tr>"
HMsun=HMsun&"<tr><td height=100 colspan=5 valign=top bgcolor=#FFFFFF style=""padding-left:10px"" style=padding-top:5px;>"&CMS_H_txt&"</td></tr></table><br>"
HMsun=HMsun&"<table width=550 border=0 align=center cellpadding=0 cellspacing=1 bgcolor=#DDDDDD>"
HMsun=HMsun&" <tr>"
HMsun=HMsun&"   <td height=30 align=center bgcolor=#F5F5F5>QQ</td>"
HMsun=HMsun&"<td height=30 align=center bgcolor=#F5F5F5>EMAL</td>"
HMsun=HMsun&"<td height=30 align=center bgcolor=#F5F5F5>电话</td>"
HMsun=HMsun&"  </tr>"
HMsun=HMsun&"  <tr>"
HMsun=HMsun&"    <td height=30 bgcolor=#FFFFFF align=center>"&CMS_H_QQ&"</td>"
HMsun=HMsun&"    <td bgcolor=#FFFFFF align=center >"&CMS_H_email&"</td>"
HMsun=HMsun&"    <td bgcolor=#FFFFFF align=center >"&CMS_H_Tel&"</td>"
HMsun=HMsun&"  </tr>"
HMsun=HMsun&"</table><br><br>"
end if
HMuser=request("HMuser")
HMtxt=request("HMtxt")
if HMtxt<>"" then
HMtxt="Re:"&request("HMtxt")
end if
act=request("act")
if act="sms" then
Mtitle=Replace(Replace(Left(request.Form("Mtitle"),100),"<","["),">","]")
Mchar=request.Form("Mchar")
Mchar=replace(Mchar,"table","&lt;table")
Mchar=replace(Mchar,"SCRIPT ","&lt;SCRIPT")
Mchar=replace(Mchar,"javascript ","&lt;javascript")
yourname=request.Form("yourname")
if yourname="" then
response.Write "<script >alert('提示：\n\n对不起，收件人不能为空...');history.back(-1);</script>"
response.end
end if

sql="select * from H_user  where ucuser='"&yourname&"'"
set rs=server.createobject("adodb.recordset")                     
rs.open sql,conn,1,1 
if rs.eof then
response.Write"<script >alert('提示：\n\n对不起，填写的用户名可能是错误的...');history.back(-1);</script>"
response.End()
else
yourID=rs("ID")
end if 
rs.close
if Mtitle="" then
response.Write "<script >alert('提示：\n\n对不起，标题不能为空...');history.back(-1);</script>"
response.end
end if

set rs=Server.CreateObject("Adodb.Recordset")
	sql="select * from H_Message"
	rs.open sql,conn,1,3
	rs.addnew
	rs("UID")=UID'发送人ID
	rs("YID")=yourID'收件人ID
	rs("Mtitle")=Mtitle'标题
	rs("Mchar")=Mchar'内容
	rs("Mdu")=0'邮件未读状态
	rs("Rdate")=now()
	rs.update
	rs.close
	set rs=nothing	
	response.Write "<script >alert('提示：\n\n发送成功...');location.href='MReceived.asp';</script>"
	end if
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<title><%=W_title%>,会员中心</title>

<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="style.css" type=text/css rel=stylesheet>
<SCRIPT language=javascript src="images/jquery.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript src="images/function.js" 
type=text/javascript></SCRIPT>

<SCRIPT language=javascript type=text/javascript>
<!--


/*
function AddnewType()
*/
-->
</SCRIPT>

<META content="MSHTML 6.00.3790.4426" name=GENERATOR>
</HEAD>
<BODY><!--用户中心头部-->
<!--#include file="top.asp"-->
<table width="960" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td width="150" valign="top"><!--#include file="left.asp"--></td>
      <td width="810" align="right" valign="top"><table width="800" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20" align="center"><img src="images/ico_4.gif" width="12" height="12"></td>
                <td height="30" align="left"><a href="index.asp" target="_self">用户中心</a> <span class="uc_huise">&gt; 发短信</span></td>
            </tr>
            <tr>
                <td height="1" colspan="2" bgcolor="#EEEEEE"></td>
        </tr>
        </table>
            <table width="600" height="5" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td></td>
                </tr>
            </table>
		
		
		
		
		
		    <table width="800" border="0" cellpadding="0" cellspacing="0">
			<form action="MU.asp?act=sms" method="post" target="_self">
              <tr>
                <td width="66" height="25">发 件 人：</td>
				<input name="ucuser" type="text"value="<%=UID%>" style="display:none" />
                <td width="718" align="left"><%=adminuser%></td>
              </tr>
              <tr>
                <td height="25">收 件 人：</td>
                <td align="left"><input name="yourname" type="text" id="yourname" value="<%=HMuser%>" size="88">
                请填写对方的用户名</td>
              </tr>
              <tr>
                <td height="25"><span style="padding-right:25px;">主</span>题：</td>
                <td align="left"><input name="Mtitle" type="text" id="Mtitle" value="<%=HMtxt%>" size="88"></td>
              </tr>
              <tr>
                <td height="1" colspan="2" bgcolor="#E9FFB5"></td>
              </tr>
              <tr>
                <td><span style="padding-right:25px;">内</span>容：</td>
                <td height="238" align="left"><textarea name="Mchar" style="display:none"><%=HMsun%></textarea> 
					  <IFRAME ID="eWebEditor1" SRC="../Redit/ewebeditor.htm?id=Mchar&style=mail" FRAMEBORDER="0" SCROLLING="no" WIDTH="600" HEIGHT="300"></IFRAME>
					  </td>
              </tr>
              
              <tr>
                <td colspan="2" bgcolor="#CAFF4D"></td>
              </tr>
              <tr>
                <td height="30" align="center">&nbsp;</td>
                <td height="30" align="left" style="padding-left:20px;"><input name="Submit" type="submit" class="UCform" value="立即发送"></td>
              </tr>
			  </form>
            </table>
			
			
			</td>
    </tr>
</table>
<!--#include file="end.asp"-->

</BODY></HTML>
