
<!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" />
<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">
<title></title>
<SCRIPT type='text/javascript' src="servtools/ajax_client/ajax.js"></SCRIPT>
<SCRIPT language=JavaScript src="skin/default/js/jooyea.js"></SCRIPT>
<script type='text/javascript'>
function unitinfocheck()
{
var mood_text=trim(document.getElementById("mood").value);
if(mood_text==''){
	parent.Dialog.alert("{echo:lp{mo_add_err};/}");
  return (false);
}
  return (true);
}

parent.guide("mood");
	 
function mood_com(mood_id,mod_id,type_id,start_num,end_num){
	var obj_mood=$('content_mood_'+mood_id);
	if(obj_mood.style.display=='none'){
		obj_mood.style.display="";
		parent.get_mod_com(mod_id,type_id,start_num,end_num);
	}else{
		obj_mood.style.display='none';
		$('face_list_menu').style.display='none';
	}
}

function show_more(mood_id,len){
	if(len>=160){
		$('contentall_mood_'+mood_id).style.display = '';
	}
} 

</script>
</head>

<body>
<form id="form1" name="form1" method="post" onsubmit="return unitinfocheck();" action="do.php?act=mood_add&user_id={echo:$userid;/}">
  <div class="main_right_title">
     <span class="main_title_dot7"></span>
     <span class="main_title_txt">{echo:$mood_title;/}</span>
  </div>
  <div class="top10"></div>
	<div class="mood_send {echo:$button;/}">
		<div class="my_photo"><img src="{echo:$userico;/}" onerror="parent.pic_error(this)" alt='' title='' height='43px' width='43px' /></div>
		<div class="send_area">
			<textarea name="mood" id="mood" rows='4' maxlength="160" onmouseover="this.className = 'tarea_hover'" onmouseout="this.className = ''" onkeyup="return isMaxLen(this)" onblur="show('face_list_menu',200)" onclick="showFace(this,'face_list_menu','mood');"></textarea>
			<input type="submit" name="Submit" value="" />
		</div>
	</div>
	<div class="mood_line"><div class="current_tab"></div></div>
    <div class="mood_box">
		<ul>
			{sta:foreach($mood_rs as $val)[loop]}
			<li onmouseover="this.className = 'li_hover'" onmouseout="this.className = ''">
				<div class="mood_date">{echo:$val['add_time'];/}</div>
				<div class="mood_content" onmouseover="show_more({echo:$val["mood_id"];/},{echo:strlen($val['mood']);/})" onmouseout="$('contentall_mood_{echo:$val["mood_id"];/}').style.display = 'none'">{echo:filt_word(get_face($val['mood']));/}</div>
				<div class="tright"><a class="{echo:$button;/}" href="do.php?act=mood_del&mood_id={echo:$val['mood_id'];/}&app=mood_more">{echo:lp{mo_del};/}</a><a id="restore_mood_{echo:$val['mood_id'];/}" href='javascript:void(0);' onclick="mood_com({echo:$val['mood_id'];/},{echo:$val['mood_id'];/},6,0,10)">{echo:lp{mo_com};/}</a><span id="total_num_{echo:$val['mood_id'];/}">{echo:$val['comments'];/}</span></div>
				<div class="mood_replybox" style="display:none" id='contentall_mood_{echo:$val["mood_id"];/}'>
					<div class="top"></div>
					<div class="contentall"><div class="mood_contentall">{echo:filt_word(get_face($val['mood']));/}</div></div>
					<div class="bottom"></div>
				</div>
				<div class="mood_replybox" style="display:none;" id="content_mood_{echo:$val['mood_id'];/}">
					<div class="top"></div>
					<div class="contentall">
							<div id='show_6_{echo:$val["mood_id"];/}'></div>
							{sta:if($ses_uid!='')[exc]}
							<div class="mood_reply">
								<img src='{echo:get_sess_userico();/}' />
								<textarea onkeyup="return isMaxLen(this)" id="reply_6_{echo:$val['mood_id'];/}_input"></textarea>
								<div class="mood_replybt">
									<a id="reply_a_{echo:$val['mood_id'];/}_input" class="right" href="javascript:void(0);" onclick="showFace(this,'face_list_menu','reply_6_{echo:$val['mood_id'];/}_input');">{echo:lp{mo_face};/}</a><input class="top_button" onclick=parent.restore_com({echo:$val['user_id'];/},6,{echo:$val['mood_id'];/});show('face_list_menu',200) type="button" name="button" id="button" value="{echo:lp{mo_b_con};/}" />
								</div>
							</div>
							{end:if/}
					</div>
					<div class="bottom"></div>
				</div>
			</li>
			{end:foreach/}
		</ul>
		<div class="clear"></div>
		{echo:page_show($isNull,$page_num,$page_total);/}
    </div>
</form>
<!-- face begin -->
<div id="face_list_menu" class="emBg" style="display:none;z-index:100;"></div>
<!-- face end -->
<div class="guide_info {echo:$data_none;/}">
	{echo:lp{mo_none_data};/}
</div>
{sta:if(isset($_GET['remind']))[exc]}
	<script type='text/javascript'>
		share_com({echo:$_GET['mod'];/},{echo:$_GET['mod'];/},6,0,10);
	</script>
{end:if/}
</body>
</html>
