<!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><?php echo $title;?><?php echo $lang['group_main_quan'];?></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="js/pigzmo.js"></script>
<script language="javascript" type="text/javascript">
	window.onload=function (){
		pigzmo("subtitle","replaytitle",2,0);
	}
</script>
</head>

<body>
<div id="container">
<?php
require_once(dirname(__FILE__)."/top.htm");
?>
  <div id="group_class_main">
    <?php
    require_once(dirname(__FILE__)."/left.htm");
    ?>
    <div id="group_class_right">
   	  <div class="group_class_notice">
       	  <div class="group_class_notice_title bigfont"><?php echo $lang['group_main_notice'];?>
          </div>
          <div class="group_class_notice_text">
          <?php echo $notice;?> <a href="noticeform.php?id=<?php echo $id;?>" target="_blank"><?php if($ismaster) echo "[".$lang['group_main_edit']."]";?></a>
          </div>
        </div>        
        <div class="group_class_info">
        	<div class="group_class_notice_title bigfont"><?php echo $lang['group_topic_info'];?>
          	</div>
          	<div class="group_class_info_img"><img src="<?php echo $icon;?>"  />
          	</div>
            <div class="group_class_info_text">
            	<ul>
                <li><?php echo $lang['group_topic_creaters'];?> <?php echo $creater;?></li>
                <li><?php echo $lang['group_topic_topics'];?><?php echo $threads;?><?php echo $lang['group_store_one'];?></li>
                <li><?php echo $lang['group_topic_hits'];?><?php echo $hits.$lang['group_topic_hitnums'];?></li>
                <li><?php echo $lang['group_topic_members'];?> <?php echo $members.$lang['group_topic_people'];?></li>
                <li><?php echo $lang['group_topic_masters'];?> <?php echo $master;?></li>
                </ul>
          	</div>
        </div>  
        <div class="group_class_forum">
        	<div class="group_class_forum_title bigfont"><?php echo $lang['group_topic_newupdate'];?><span><a href="postform.php?id=<?php echo $id;?>"><?php echo $lang['group_topic_post'];?></a></span>
          	</div>
            <div class="group_class_forum_text">
            <div style="height:26px;line-height:26px;background-color:#E9F5FE;">
            <span style="margin-left:16px;float:left;width:280px;"><?php echo $lang['group_topic_titles'];?></span><span style="margin-left:6px;float:left;width:80px;"><?php echo $lang['group_topic_lastpost'];?></span><span style="margin-left:6px;float:left;width:120px;"><?php echo $lang['group_topic_updatetime'];?></span>
            </div>
            	<ul>                
                <?php
                $db->SetQuery("SELECT tid,subject,digest,displayorder,replies,lastpost,lastposter FROM #@__group_threads WHERE gid='{$id}' AND closed=0 ORDER BY displayorder DESC, lastpost DESC LIMIT 0,15");
                $db->Execute();
                $titleleft = '';
                while($rs = $db->GetArray()){     
                	$title = $rs['subject'];
                  if($rs['displayorder']) $titleleft .= "<img src=\"images/gif53_062.gif\" border=\"0\" align=\"absmiddle\" /> ";         	
                	if($rs['digest']) $titleleft .= " <img src=\"images/gif53_019.gif\" border=\"0\" align=\"absmiddle\" /> ";                    
                	if($rs['replies']>10) $titleleft .= "<img src=\"images/icon_hotp.gif\" border=\"0\" align=\"absmiddle\" /> ";
                  $title = $titleleft.cn_substr($title,40);
                  $titleleft = "";
                ?>
            	<li style="height:20px;line-height:20px;"><span style="margin-left:0px;float:left;width:280px;"><a href="viewthread.php?id=<?php echo $id;?>&tid=<?php echo $rs['tid'];?>" style="color:#000;"><?php echo $title;?></a></span><span style="margin-left:6px;float:left;width:80px;color:#000;"><?php echo $rs['lastposter'];?></span><span style="margin-left:6px;float:left;width:120px;color:#000;"><?php echo date('y-m-d H:i:s',$rs['lastpost']);?></span>
                <div class="clear" style="line-height:0px;"></div></li>
                <?php          
                }
                ?>
                </ul>
            </div>
            <div class="group_class_more"><a href="groupdisplay.php?id=<?php echo $id;?>"><?php echo $lang['group_topic_more'];?></a>
            </div>
        </div>     
        <div class="clear">
        </div>        
    </div>
    <div class="clear">
    </div>
  </div>
<?php
require_once(dirname(__FILE__)."/line.htm");
?>
</div>
</body>
</html>