<?php
require_once(dirname(__FILE__)."/header.htm");
?>
    <!--中间开始-->
    <div id="group_main">
    	<div id="group_main_middle">
        	<div class="group_main_title">搜索贴子
            </div>
        	<div class="group_list_text">
                    <div class="group_list_title">搜索关键字：<?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;">标题</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();
				while($rs = $mylist->GetArray('dm'))
				{  
                	$title = $rs['subject'];                     
                	if($rs['digest']) $titleleft .= " [<font color=\"red\">精华</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");
?>