
<!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">
<link rel="stylesheet" type="text/css" href="skin/default/jooyea/css/user_ico_small.css">
<!--[if lt IE 7]>
<style type="text/css">
.uico_photo_small span { behavior: url(skin/default/jooyea/css/ie_png_fix.htc);}
</style>
<![endif]-->
<script type="text/javascript" src="skin/default/js/imgfix.js"></script>
<SCRIPT language=JavaScript src="servtools/ajax_client/ajax.js"></SCRIPT>
<script Language="JavaScript">
	
function trim(str){
	return str.replace(/(^\s*)|(\s*$)|(　*)/g , "");
}

function check_form(){
if(trim(document.getElementById("key_word").value)==""){
	parent.Dialog.alert("{echo:lp{g_not_null};/}");
	return false;
	}
}

function join_group(group_id){
	{echo:$join_js;/};
}

function join_group_var(group_id){
	var xmlhttp=InitAjax();
	xmlhttp.open("GET","do.php?act=group_join&group_id="+group_id,true);
	xmlhttp.onreadystatechange=function(){
	if(xmlhttp.readyState==4&&xmlhttp.status==200)
		{
		var return_str=xmlhttp.responseText;
		var	return_text=return_str.replace(/[\s\n\r]/g,"");
		parent.Dialog.alert(return_text);
		}
	}
	xmlhttp.send(null);
}

</script>
</head>
<body> 	
  <div class="main_right_title">
     <span class="main_title_dot8"></span>
     <span class="main_title_txt">{echo:lp{g_space};/}</span>
  </div>
	<div id="tabsB" class="{echo:$button_show;/}">
		<ul class="{echo:$button_mine;/}">
			<li><a href="?app=group" title="{echo:lp{g_mine};/}" class="nowbutl"><span class="nowbutr">{echo:lp{g_mine};/}</span></a></li>
			<li><a href="?app=group_hot" title="{echo:lp{g_hot};/}"><span>{echo:lp{g_hot};/}</span></a></li>
		</ul>
		
			<div class="div_but_2" onclick="location.href='{echo:$button_url;/}'">{echo:$button_title;/}</div>
			<div class="div_but" onclick="join_group({echo:$group_row['group_id'];/});">{echo:lp{g_click_join};/}</div>
	</div>

{sta:if($is_show==1)[exc]}

	{sta:if($ses_uid!=$group_row['add_userid']&&$ses_uid)[exc]}	
		<div class="rs_head"><span class="right" style="padding-top: 5px;">
			<a class="fenxiang" href="javascript:void(0);" onclick="parent.show_share(1,{echo:$group_row['group_id'];/},'{echo:$group_row['group_name'];/}','','');">{echo:lp{mn_share};/}</a>
			<a class="jubao" href="javascript:void(0);" onclick="parent.report(1,{echo:$group_row['add_userid'];/},{echo:$group_row['group_id'];/});">{echo:lp{mn_report};/}</a></span>{echo:filt_word($group_row['group_name']);/}
		</div>
  {end:if/}
  
<table class="main {echo:$show_data;/}">
	
	<tr>
		<th rowspan='2' style="width:120px;height:120px; "><img onerror="parent.pic_error(this)" src={echo:$group_row['group_logo'];/} width='120px' height='120px' class='user_ico' /></th>
		<th style="height:28px;">{echo:lp{g_intro};/}</th>
		<th>{echo:lp{g_gonggao};/}</th>
	</tr>
	
	<tr>
		<td style="height:72px;text-align:left;vertical-align:top;width:60%">{echo:filt_word($group_row['group_resume']);/}</td>
		<td style="text-align:left;vertical-align:top;width:40%">{echo:filt_word($group_row['affiche']);/}</td>
	</tr>
	
</table>

<div class="container {echo:$show_data;/}">
	<div class="rs_head">{echo:lp{g_members};/}</div>
</div>
<div style='text-align:left;'>
	{sta:foreach($group_members as $rs)[loop]}
			<span class='uico_photo_small' style='height:65px;padding-left:10px;text-align:left'>
				<a href="home.php?h={echo:$rs['user_id'];/}" target="_blank">
					<img src={echo:$rs['user_ico'];/} onerror="parent.pic_error(this)" width="43px" height="43px" title="{echo:$rs['user_name'];/}" alt="{echo:$rs['user_name'];/}" />
				</a>
				<div>{echo:sub_str($rs['user_name'],5,true);/}</div>
			</span>
			
	{end:foreach/}
</div>
<div class="container {echo:$show_data;/}">
	<div class="rs_head">
		<div class="subject_search">
			<form onsubmit='return check_form();' method="post" action='?app=search_subject&group_id={echo:$group_id;/}&user_id={echo:$userid;/}'>
				<input type='text' name='key_word' id='key_word' maxlength='10' size='20' style="height: 16px;border:1px #ccc solid" autocomplete='off' />
				<input type='submit' value='{echo:lp{g_search};/}' class="top_button" />
			</form>
			{sta:if(isset($role)&&$ses_uid!='')[exc]}
				<div class="div_but_4" style=''><a href='?app=group_subject&group_id={echo:$group_id;/}&user_id={echo:$userid;/}'>{echo:lp{g_send};/}</a></div>
			{end:if/}
		</div>
		{echo:lp{g_bbs};/}
		<span>{echo:str_replace("{t_num}",$group_row['subjects_num'],lp{g_topic_num});/}</span>
	</div>
</div>

		{sta:foreach($subject_rs as $rs)[loop]}
		<div class="poll_list_box">
			<div class="poll_user"><a class="photo" href="home.php?h={echo:$rs['user_id'];/}" target="_blank"><img src={echo:$rs['user_ico'];/} alt='{echo:$rs['user_name'];/}' title='{echo:$rs['user_name'];/}' height='43px' width='43px' /></a><a href="home.php?h={echo:$rs['user_id'];/}" target="_blank">{echo:sub_str($rs['user_name'],6,true);/}</a></div>
			<div class="subject_content">
				<dl>
					<dt><a href="?app=group_sub_show&subject_id={echo:$rs['subject_id'];/}&group_id={echo:$group_id;/}&user_id={echo:$userid;/}">{echo:filt_word($rs['title']);/}</a></dt>
					<dd><a href="home.php?h={echo:$rs['user_id'];/}" target="_blank">{echo:filt_word($rs['user_name']);/}</a> <span class='gray' style='padding-left:15px'>{echo:str_replace("{date}",$rs['add_time'],lp{g_send_time});/}</span></dd>
					<dd><span class='gray'>{echo:lp{g_read};/}({echo:$rs['hits'];/})</span> <span class='gray' style='padding-left:15px;'>{echo:lp{g_re};/}({echo:$rs['comments'];/})</span></dd>
				</dl>
			</div>
			<div class="subject_status"><a href="?app=group_sub_show&subject_id={echo:$rs['subject_id'];/}&group_id={echo:$group_id;/}&user_id={echo:$userid;/}">{echo:lp{g_examine};/}</a>
						<a href='do.php?act=group_del_sub&group_id={echo:$group_id;/}&subject_id={echo:$rs["subject_id"];/}&user_id={echo:$userid;/}&sendor_id={echo:$rs["user_id"];/}' class="{echo:$action_ctrl;/}" onclick='return confirm("{echo:lp{g_del_subject};/}");'>{echo:lp{g_del};/}</a></div>
		</div>
		{end:foreach/}
	{echo:page_show($isNull,$page_num,$page_total);/}
{end:if/}

<!--错误控制-->
	<div class="pageerr {echo:$show_error;/}">
		{echo:$error_str;/}
	</div>
	
</body>
</html>