<?php
require_once(dirname(__FILE__)."/header.htm");
?>
    <div id="group_main">
    	<div id="group_main_middle">
        	<div class="group_main_title"><?php echo $lang['group_search'];?><?php echo $lang['group_topic_topic'];?>
            </div>
        	<div class="group_list_text">
                    <div class="group_list_title"><?php echo $lang['group_search'];?><?php echo $lang['group_search_keywords'];?><?php echo $keyword;?></div>
                <div class="clear">
                </div>
        	</div>
            <div class="clear"></div>
			<div class="group_class_forum_text" style="width:758px;margin-left:0px;padding:0px;">
            <div style="height:26px;line-height:26px;">
            <span style="margin-left:21px;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();
				while($rs = $mylist->GetArray('dm'))
				{  
                	$title = $rs['subject'];                     
                	if($rs['digest']) $titleleft .= " [<font color=\"red\">".$lang['group_main_digest']."</font>]";
                	if($rs['replies']>10) $titleleft .= "<img src=\"images/icon_hotp.gif\" />";
                    $title = $titleleft.cn_substr($title,40);
                    if(!empty($keyword)) $title = str_replace("$keyword","<font color='red'>$keyword</font>",$title);
                    $titleleft = "";
                    
                ?>
            	<li style="margin-left:8px;width:750px;height:26px;line-height:26px;"><span style="margin-left:0px;float:left;width:280px;"><a href="viewthread.php?id=<?php echo $rs['gid'];?>&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>
                </li>
                <div class="clear"></div>
                <?php          
                }
                ?>
                </ul>
            </div>
            <div class="group_more"><?php echo $dlist->GetPageList(7);?>
            </div>                 
        </div>   
    </div>       
    <div class="clear">
    </div>
<?php
require_once(dirname(__FILE__)."/footer.htm");
?>