<!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(){
	$("#xiexin").click(function() {	
		$(window.parent.document).find("#jd_iframe").attr({"src":"<!--{$ucfile}-->?c=message&a=write&touid=<!--{$touid}-->&halttype=jdbox","height":"350px"});
		$(window.parent.document).find("#jd_dialog_m").attr({"height":"350px"});
		$(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=hi&halttype=jdbox" method="post"  />
<input type="hidden" name="a" id="a" value="savehi" />
<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"><b><a href="<!--{$touser.homeurl}-->" target="_blank"><!--{$touser.username}--></a></b></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">
	  <ul>
	    <!--{foreach $greet as $volist}-->
	    <li><label><input type="radio" id="greetid" value="<!--{$volist.greetid}-->" name="greetid"  /><span><!--{$volist.greeting}--> </span></label></li>
		<!--{/foreach}-->
	  </ul>
	</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='<!--{$ucfile}-->?c=hi&a=hi&touid=<!--{$touid}-->&halttype=jdbox' class="btn_b3 btn"><span>换一组问候语</span></a>&nbsp;&nbsp;
		<a href="###" class="btn_b2 btn" id='xiexin'><span>写信件</span></a>&nbsp;&nbsp;
	  </li>
	</ul>
  </div>
</div>
</form>
</body>
</html>
<script type="text/javascript">
function checkform() {
	var item = $("input[name='greetid']:checked");
	var len  = item.length;
	if(len==0) {
	    alert("请选择问候语");
		return false;
	}
	$('#form_msg').submit();
	return true;
}
</script>