
<!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>
<SCRIPT language=JavaScript src="servtools/ajax_client/ajax.js"></SCRIPT>
<script language="JavaScript">

function join_group(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>
<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">
</head>
<body>
  <div class="main_right_title">
     <span class="main_title_dot8"></span>
     <span class="main_title_txt">{echo:lp{g_group};/}</span>
  </div>
<div id="tabsB">
  <ul>
    <li><a href="?app=group" title="{echo:lp{g_mine};/}"><span>{echo:lp{g_mine};/}</span></a></li>
    <li><a href="?app=group_hot" title="{echo:lp{g_hot};/}" class="nowbutl"><span class="nowbutr">{echo:lp{g_hot};/}</span></a></li>
  </ul>
    <div class="div_but" onclick="location.href='?app=group_creat'">{echo:lp{g_creat};/}</div>
    <div class="div_but_2" onclick="location.href='?app=group_select'">{echo:lp{g_search};/}</div>
</div>


	{sta:foreach($group_hot_rs as $rs)[loop]}
		<div class="group_box" onmouseover="this.className = 'group_box_active';" onmouseout="this.className='group_box';">
			<div class="group_box_content">
				<div class="group_photo"><a href='?app=group_space&group_id={echo:$rs["group_id"];/}&user_id={echo:$url_uid;/}'><img src={echo:$rs['group_logo'];/} width='100px' height='100px' alt="{echo:$rs['group_name'];/}" onerror="parent.pic_error(this)" /></a></div>
				<dl class="group_list">
					<dt><a href='?app=group_space&group_id={echo:$rs["group_id"];/}&user_id={echo:$url_uid;/}'>{echo:filt_word($rs['group_name']);/}</a></dt>
					<dd>{echo:lp{g_type};/}：{echo:$rs['group_type'];/}</dd>
					<dd><a href='home.php?h={echo:$rs["add_userid"];/}' target="_blank">{echo:filt_word($rs['group_creat_name']);/}</a></dd>
					<dd>{echo:str_replace('{num}','<span>'.$rs['member_count'].'</span>',$g_join_num);/}</dd>
					<dd><span>{echo:join_type($rs['group_join_type']);/}</span></dd>
				</dl>
			</div>
			<div class="group_control">				{echo:group_state($rs['group_id'],$rs['group_join_type'],$user_creat_group,$user_join_group,$rs['group_req_id']);/}

				<a href='?app=group_space&group_id={echo:$rs["group_id"];/}&user_id={echo:$url_uid;/}'>{echo:lp{g_en_space};/}</a>
			</div>	
		</div>	

	{end:foreach/}
	
		<div class="guide_info {echo:$list_none;/}">
			{echo:lp{g_no_group};/}
		</div>
		
</body>
</html>