<!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=gb2312" />
<title><?php echo $title;?>圈</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 (){
	
		//DIGG资讯无刷新切换
		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">圈子公告
          </div>
          <div class="group_class_notice_text">
          <?php echo $notice;?> <a href="noticeform.php?id=<?php echo $id;?>" target="_blank"><?php if($ismaster) echo "[编辑]";?></a>
          </div>
        </div>        
        <div class="group_class_info">
        	<div class="group_class_notice_title bigfont">圈子信息
          	</div>
          	<div class="group_class_info_img"><img src="<?php echo $icon;?>"  />
          	</div>
            <div class="group_class_info_text">
            	<ul>
                <li>吧主: <?php echo $creater;?></li>
                <li>帖子: <?php echo $threads;?>个</li>
                <li>访问: <?php echo $hits;?>次</li>
                <li>成员: <?php echo $members;?>人</li>
                <li>管理员: <?php echo $master;?></li>
                </ul>
          	</div>
        </div>  
        <div class="group_class_forum">
        	<div class="group_class_forum_title bigfont">最近更新<span><a href="postform.php?id=<?php echo $id;?>">我要发帖</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;">标题</span><span style="margin-left:6px;float:left;width:80px;">最后回复</span><span style="margin-left:6px;float:left;width:120px;">更新时间</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;?>">更多帖子...</a>
            </div>
        </div>     
        <div class="clear">
        </div>        
    </div>
    <div class="clear">
    </div>
  </div>
  <!--中部结束-->    
<?php
require_once(dirname(__FILE__)."/line.htm");
?>
</div>
</body>
</html>