<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> 
<head>
<meta http-equiv="content-type" content="text/html; charset=<!--{$page_charset}-->" />
<title><!--{$page_title}--></title>
<!--header jvascript and css -->
<meta name="author" content="<!--{$copyright_author}-->" />
<link href="<!--{$skinpath}-->cp/style/layer.css" rel="stylesheet" type="text/css" />
<link href="<!--{$skinpath}-->themes/css/button.css" rel="stylesheet" type="text/css" />
<!--{include file="<!--{$tplpath}-->cp/<!--{$tplpre}-->block_headjs.tpl"}-->
<script type="text/javascript">
$(function(){
	$("#dazhaohu").click(function() {	
		$(window.parent.document).find("#jd_iframe").attr({"src":"<!--{$ucfile}-->?c=hi&a=hi&touid=<!--{$touid}-->&halttype=jdbox","height":"420px"});
		$(window.parent.document).find("#jd_dialog_m").attr({"height":"420px"});
		$(window.parent.document).find("#jd_dialog_m_h_l").html('打招呼/问候');

		return false;
	}); 
})
</script>
</head>
<body style="background:transparent;">
<form id="form_msg" name="form_msg" action="<!--{$ucfile}-->?c=message&halttype=jdbox" method="post"  />
<input type="hidden" name="a" id="a" value="savewrite" />
<input type="hidden" name="touid" id="touid" value="<!--{$touid}-->" />
<div class="greet_layer">
  <!-- 标题 -->
  <h3 style="text-align:center;">给&nbsp;<span><!--{$touser.username}--></span>&nbsp;写信件</h3>
  <div class="greet_content">
    
	<!-- 会员信息 -->
    <div class="greet_left">
	  <!--{avatar width='100' height='120' value=$touser.avatarurl}--> 
	  <p class="blue"><a href="<!--{$touser.homeurl}-->" target="_blank"><b><!--{$touser.username}--></b></a></p>
	  <p>
	  <!--{if $touser.gender==1}-->男<!--{else}-->女<!--{/if}--> 
	  <!--{hook mod='var' item='marrystatus' type='text' value=$touser.marrystatus}--> 
	  <!--{$touser.age}--> 岁	  
	  </p>
	  <p><!--{area type='text' value=$touser.provinceid}--> <!--{area type='text' value=$touser.cityid}--></p>
	  <p><!--{hook mod='var' item='education' type='text' value=$touser.education}--> <!--{$touser.height}-->CM</p>
	</div>

	<!-- 信件内容 -->
	<div class="greet_right" style="padding-bottom:10px;">
	  <textarea name="content" id="content" style="font-size:13px;color:#333333;line-height:23px;padding:5px;width:95%;height:220px;overflow:auto;"></textarea>
	</div>
	<div style="clear:both"></div>
  </div>
  
  <!-- 发送按钮 -->
  <div class="greet_btn e_clear">
    <ul> 
	  <li>
		<a href="###" class="btn_b1 btn" onclick="return checkform();"><span>确定发送</span></a>&nbsp;&nbsp;
		<a href="###" class="btn_b2 btn" id='dazhaohu'><span>打招呼</span></a>&nbsp;&nbsp;
	  </li>
	</ul>
  </div>
</div>
</form>
</body>
</html>
<script type="text/javascript">
function checkform() {
	var t = "";
	var v = "";

	//内容
	t = "content";
	v = $("#"+t).val();
	if(v=="") {
	    alert("信件内容不能为空");
		return false;
	}

	$('#form_msg').submit();
	return true;
}
</script>