<?php
/*
 * 注意：此文件由tpl_engine编译型模板引擎编译生成。
 * 如果您的模板要进行修改，请修改 templates/default/modules/group/group_manager.html
 * 如果您的模型要进行修改，请修改 models/modules/group/group_manager.php
 *
 * 修改完成之后需要您进入后台重新编译，才会重新生成。
 * 如果您开启了debug模式运行，那么您可以省去上面这一步，但是debug模式每次都会判断程序是否更新，debug模式只适合开发调试。
 * 如果您正式运行此程序时，请切换到service模式运行！
 * 
 * 如有您有问题请到官方论坛（http://tech.jooyea.com/bbs/）提问，谢谢您的支持。
 */
?><?php
	//引入语言包
	$g_langpackage=new grouplp;
	
	//引入公共模块
	require("foundation/module_group.php");
	
	$role='';
	$user_id=get_sess_userid();
	$group_id=short_check(get_argg('group_id'));
	
	//数据表定义区
	$t_groups=$tablePreStr."groups";
	$t_users=$tablePreStr."users";
	$t_group_members=$tablePreStr."group_members";
	$t_group_type=$tablePreStr."group_type";
	$text_join_type='';
	
	//定义读操作
	dbtarget('r',$dbServs);
	$dbo=new dbex();
	
	//权限判断
	$role=pri_limit($dbo,$user_id,$group_id);
	if(!isset($role)||$role>=2){
		echo "<script type='text/javascript'>alert(\"$g_langpackage->g_no_privilege\");window.history.go(-1);</script>";exit();
	}
	
	$group_row=get_group_info($dbo,$t_groups,$group_id);
	
	//群组加入方式预订
  $text_join_type=join_type($group_row['group_join_type']);

?>

<!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/<?php echo $skinUrl;?>/css/row_menus.css">
<link rel="stylesheet" type="text/css" href="skin/<?php echo $skinUrl;?>/css/iframe.css">
</head>
<body>
  <div class="main_right_title">
     <span class="main_title_dot8"></span>
     <span class="main_title_txt"><?php echo $g_langpackage->g_manage;?></span>
  </div>
<div id="tabsB">
  <ul>
  	<li><a href="?app=group_manager&group_id=<?php echo $group_id;?>" title="<?php echo $g_langpackage->g_info;?>" class="nowbutl"><span class="nowbutr"><?php echo $g_langpackage->g_info;?></span></a></li>
    <li><a href="?app=group_info_manager&group_id=<?php echo $group_id;?>" title="<?php echo $g_langpackage->g_change;?>"><span><?php echo $g_langpackage->g_info_change;?></span></a></li>
    <li><a href="?app=group_member_manager&group_id=<?php echo $group_id;?>" title="<?php echo $g_langpackage->g_manage_member;?>"><span><?php echo $g_langpackage->g_manage_member;?></span></a></li>
    <li><a href="?app=group_space&group_id=<?php echo $group_id;?>" title="<?php echo $g_langpackage->g_en_space;?>"><span><?php echo $g_langpackage->g_en_space;?></span></a></li>
    <div class="div_but_2" onclick="location.href='?app=group'"><?php echo $g_langpackage->g_return;?></div>
  </ul>
</div>
	
<table class='main main_left <?php echo $content_list;?>'>		
		  <tr>
		  	<td></td>
		  	<td></td>
		  	<td rowspan="5" valign="top"><img onerror="parent.pic_error(this)" src=<?php echo $group_row['group_logo'];?> width='150px' height='150px' alt='' class='user_ico' /></td>
		  </tr>
		  
			<tr>
				<th width="16%"><?php echo $g_langpackage->g_name;?></th>
				<td width="*"><?php echo $group_row['group_name'];?></td>
			</tr>
			
			<tr>
				<th><?php echo $g_langpackage->g_type;?></th>
				<td><?php echo $group_row['group_type'];?></td>
			</tr>
			
			<tr>
				<th><?php echo $g_langpackage->g_m_num;?></th>
				<td><?php echo $group_row['member_count'];?></td>
			</tr>
			
			<tr>
				<th><?php echo $g_langpackage->g_creator;?></th>
				<td><?php echo $group_row['group_creat_name'];?></td>
			</tr>
			
			<tr>
				<th><?php echo $g_langpackage->g_time;?></th>
				<td><?php echo $group_row['group_time'];?></td>
			</tr>
			
			<tr>
				<th><?php echo $g_langpackage->g_manager;?></th>
				<td>
					
					<?php echo get_group_manager($group_row['group_manager_name']);?>
					
				</td>
			</tr>
			
			<tr>
				<th><?php echo $g_langpackage->g_join_type;?></th>
				<td><?php echo $text_join_type;?></td>
		 	</tr>
		 	
		  <tr>
		  	<th><?php echo $g_langpackage->g_tag;?></th>
		  	<td><?php echo $group_row['group_tag'];?></td>
		  </tr>
		  
		  <tr>
		  	<th><?php echo $g_langpackage->g_resume;?></th>
		  	<td><?php echo $group_row['group_resume'];?></td>
		  </tr>
		  
		  <tr>
		  	<th><?php echo $g_langpackage->g_gonggao;?></th>
		  	<td><?php echo $group_row['affiche'];?></td>
		  </tr>
</table>
</body>
</html>