
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="skin/default/jooyea/css/row_menus.css">
<link rel="stylesheet" type="text/css" href="skin/default/jooyea/css/iframe.css">
<script type='text/javascript' src="skin/default/js/jooyea.js"></script>
<script type='text/javascript'>	
	function leave_message(user_name,user_id)
	{
		document.getElementById("CONTENT").value="{echo:lp{mb_res};/}"+user_name+":";
		document.getElementById("user_id").value=user_id;
	}

	parent.guide("msgboard");

  function unitinfocheck(){
  var mood_text=trim(document.getElementById("CONTENT").value);
	if(mood_text==''){
		parent.Dialog.alert("{echo:lp{mb_no};/}");
		return (false);
	}
		return (true);
  }
</script>
<link rel="stylesheet" type="text/css" href="skin/default/jooyea/css/user_ico_small.css">
</head>

<body>
<form method="post" onsubmit="return unitinfocheck();" action="do.php?act=msgboard_send&user_id={echo:$userid;/}"  name="myform" >
<input type="hidden" name="user_id" id="user_id" value="" />
  <div class="main_right_title">
     <span class="main_title_dot6"></span>
     <span class="main_title_txt">{echo:$msg_title;/}</span>
  </div>
<div class="photo_view_box">
	<div class="photo_view_content">	
		<div class="magboard_box">
			<textarea name="CONTENT" id="CONTENT" style='width:97%;' rows='4' maxlength="160" onkeyup="return isMaxLen(this)"></textarea>
			<input class="anniu" type="submit" name="Submit" value="{echo:lp{mb_con};/}" />
			<a id="reply_a_input" class="right" href="javascript:void(0);" onclick="showFace(this,'face_list_menu','CONTENT');">{echo:lp{mb_face};/}</a> 
	   </div>
{sta:foreach($mes_rs as $val)[loop]}
	{sta:$isNull=0;/}
<dl class="msgboard" onmouseover="this.style.background = '#ecfbff'" onmouseout="this.style.background = '#ffffff'">
	<dt>
		<a target="_blank" href='home.php?h={echo:$val['from_user_id'];/}'>
	  <img src="{echo:$val['from_user_ico'];/}" width="43px" height="43px" onerror="parent.pic_error(this)" /></a>
	</dt>
	<dd><span class="content"><a target="_blank" href='home.php?h={echo:$val['from_user_id'];/}'>{echo:filt_word($val['from_user_name']);/}</a></span><br /><span class="content">{echo:filt_word(get_face($val['message']));/}</span></dd>
	<dd style="text-align:right;"><span class="time">[{echo:$val['add_time'];/}]</span>
		<span>
			{sta:if($is_self=='Y')[exc]}
				<a class="album_edit" href="javascript:void(0)" onclick=leave_message("{echo:$val['from_user_name'];/}","{echo:$val['from_user_id'];/}");>{echo:lp{mb_res};/}</a>
				<a class="album_del" href="do.php?act=msgboard_del&user_id={echo:$userid;/}&mess_id={echo:$val['mess_id'];/}&app=msgboard_more">{echo:lp{mb_del};/}</a>
			{end:if/}
		</span>
	</dd>
	
</dl>
{end:foreach/}
{sta:page_show($isNull,$page_num,$page_total);/}
</div></div>
	<!-- face begin -->
	<div id="face_list_menu" class="emBg" style="display:none;z-index:100;">
	</div>
	<!-- face end -->
</form>
</body>
</html>
