<!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" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?php echo $head['title'];?></title>
<base href="<?php echo $DIRCMS['site_url'];?>" />
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/search.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="images/js/jquery.min.js" type="text/javascript"></script>
</head>

<body>
	<div style="width:97%; clear:both; margin:5px auto; text-align:right">
		<div id="login_div">
		<a href="member/index.php?action=login">登录</a> | <a href="member/index.php?action=register">注册</a>
		</div>
		<div id="usercenet" style="display:none">
		浏览器不支持Js!
		</div>
	</div>
	<script language="javascript" src="login.js.php"></script>
    <div id="head">
        <div class="logo"><a href="<?php echo $DIRCMS['site_url'];?>/search/index.php"><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/search_logo.gif"  /></a></div>
        <div class="soso">
        <form action="search/index.php" method="get">
            <input type="text" name="k" value="<?php echo $k;?>"  onfocus="if(this.value=='请输入查询的内容')this.value=''" onblur="if(this.value=='')this.value='请输入查询的内容'" class="search_k" /><input type="submit" value="搜 索" class="search_bt" />
        </form>
   		</div>
    <div id="position">查询结果 （搜索用时 <?php echo $runtime;?> 秒）</div>
    <div id="cont">
    	<div class="left">
		<?php if($data) { ?>
		<?php $no=1;if(is_array($data))foreach($data as $r){?>
        	<dl>
            	<dt><?php if($r['thumb']) { ?><font color="#FF0000" title="含有图片">[图]</font><?php }?> <a href="<?php echo $r['url'];?>" target="_blank"><?php echo str_replace($colorreg,$keywords_rep,$r['title']);?></a></dt>
                <dd><?php if($r['description']) { ?><?php echo $r['description'];?><?php }else{ ?><?php echo $r['title'];?><?php }?></dd>
                <span><a href="<?php echo $r['url'];?>" target="_blank"><?php echo $DIRCMS['site_url'];?><?php echo $r['url'];?>　<?php echo date('Y-m-d',$r['inputtime']);?></a> </span>
            </dl>
		<?php $no++;}?>
			<div style="width:500px; margin:10px auto; text-align:center; clear:both"><?php echo $sdir_page;?></div>
		<?php }else{ ?>
		<div style="clear:both; margin:10px auto; font-size:14px; line-height:2em">
		抱歉! 暂时没有找到您需要的相关信息!
		<br />
		您可以<a href="member/index.php" target="_blank">立即发表一篇</a>相关信息或者：
		<ul style="padding:10px 0px">
			<li style="height:22px">1:去掉"的”","得","之"等连接词重新搜索;</li>
			<li style="height:22px">2:使用多个关键字用空格隔开后重新搜索;</li>
		</ul>
		</div>
		<?php }?>
        </div>
        <div class="right">
        	<dl>
            	<dt><a href="http://www.dircms.net" target="_blank" title="Dircms内容管理系统">Dircms内容管理系统</a></dt>
                <dd>Dircms 是国内开发的一款操作简便，简单易用的网站内容管理系统，同时也是一个开源的PHP开发框架。采用模块化开发，支持自定义内容模型和会员模型，并且可以自定义字段。</dd>
                <span><a href="http://www.dircms.net/" target="_blank" title="Dircms内容管理系统">http://www.dircms.net</a></span>
            </dl>
            <div class="positon"><a href="http://www.dircms.net/" target="_blank" title="Dircms内容管理系统">想在这里出现吗？</a></div>
        </div>
    </div>
</div>
<?php include template('footer');?>
</body>
</html>