<!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_forum1">
       <div class="group_class_forum_title bigfont"><a href="group.php?id=<?php echo $id;?>">[<?php echo $title;?>圈]</a>--所有帖子<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
				$mylist = $dlist->GetDataList();
				$titleleft = '';
				while($rs = $mylist->GetArray('dm'))
				{  
                	$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);
                    if(!empty($keywords)) $title = str_replace("$keywords","<font color='red'>$keywords</font>",$title);
                    $titleleft = "";
                    
                ?>
            	<li><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>
                <?php if($ismaster){?><div style="clear:both;background-color:#E9F5FE;"><a href="digest.php?id=<?php echo $id;?>&tid=<?php echo $rs['tid'];?>&do=<?php if($rs['digest']) echo "undigest";else echo "digest";?>" title="如果已是精华贴再加精则会去掉加精状态"><?php if($rs['digest']) echo "去精";else echo "加精";?></a>|<a href="digest.php?id=<?php echo $id;?>&tid=<?php echo $rs['tid'];?>&do=<?php if($rs['displayorder']) echo "untop";else echo "top";?>" title="如果已是置顶贴再置顶则会去掉置顶状态"><?php if($rs['displayorder']) echo "消顶";else echo "置顶";?></a></div><?php }?>
                <div class="clear" style="line-height:0px;"></div></li>
                <?php          
                }
                ?>
                </ul>
            </div>
      <div class="group_class_more"><?php echo $dlist->GetPageList(7);?></div>
    </div>
    <div class="clear">
    </div>
  </div>
  <div class="clear"></div>
  </div>
  <!--中部结束-->    
<?php
require_once(dirname(__FILE__)."/line.htm");
?>
</div>
</body>
</html>