<!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'].$lang['group_threads_all'];?></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_forum1">
       <div class="group_class_forum_title bigfont"><a href="group.php?id=<?php echo $id;?>">[<?php echo $title.$lang['group_main_quan'];?>]</a>--<?php echo $lang['group_topic_all'];?><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
				$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 echo $lang['group_notice_6'];?>"><?php if($rs['digest']) echo $lang['group_topic_undigest'];else echo $lang['group_topic_setdigest'];?></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 echo $lang['group_notice_6_0'];?>"><?php if($rs['displayorder']) echo $lang['group_topic_untop'];else echo $lang['group_topic_settop'];?></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>