<?php
/**
 * @version        Somao_Search X1.0 9:23 2012-1-1 Somao $
 * @package        Somao_Search.Site
 * @copyright      Copyright (c) 2009 - 2012, Somao, Inc.
 * @license        http://www.somao123.com/
 * @link           http://www.somao.cc/
**/
require "global.php";
$insLockfile = dirname(__FILE__).'/install/install_lock.txt';
if(!file_exists($insLockfile)){
    header("location:/install/index.php");
}
$rst=$db->get_one("select * from ve123_skin");
?>
<!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=EmulateIE9" >
<title><?php echo $config["name"];?>搜索引擎</title>
<meta name="Keywords" content="<?php echo $config["Keywords"];?>">
<meta name="description" content="<?php echo $config["description"];?>">
<link href="/css/index.css" rel="stylesheet" type="text/css" /> 
<link href="/templates/<?php echo $rst["names"];?>/css.css" rel="stylesheet" type="text/css" /> 
<script type="text/javascript" src="/js/jike-autoComplete.js"></script>
<script type="text/javascript" src="/js/jike-log.js"></script>
<script language="javascript" src="/js/mug.php"></script>
<script language="javascript" src="/skinjs.php"></script>
<script type="text/javascript">
 var makeSearchUrl = function(){
	var keys = document.getElementById("keyword").value;
	if(keys == "" || keys == "请输入关键字"){
		alert("请输入关键字");
		document.getElementById("keyword").focus();
		return false;
	}
}
</script>
</head>
<body onLoad="onLoadHandler()|init()" >
<div id="top"><div id="member"><script language="javascript" src="/user/login_ajax.php"></script></div></div>
  <div id="index">
    <div id="yd"><a href="/"></a></div>
    <div id="headtitle">
        <strong>网页</strong>
        <A href="/news/">新闻</A>
        <A href="/tieba/">贴吧</A>
        <A href="/zhidao/">知道</A>
        <A href="/MP3/">MP3</A>
        <A href="/image/">图片</A>
        <A href="/video/">视频</A>
        <A href="/map/">地图</A>
    </div>
    
<div class="searchHome">
  <div class="searchDivHome">
    <div class="searchCon">
      <form method="get" action="s" name=f id="frm" onsubmit="return makeSearchUrl();">
        <input type="text" name="wd" class="searchInputBot" id="keyword" autocomplete="off" disableautocomplete maxlength="25" onkeydown="if(event.keyCode==32) return false"/>
        <input type="hidden" name=s value="0">
        <input type="submit" value="搜 索" class="searchBUtton"/>
      </form>
    </div>
  </div>
</div>
    <div id="hotkey">
     <span style="color:red;margin-right:5px;">热门搜索</span>：
<?php
  $hotst = array_unique(explode(',',$config['hot_words']));
  foreach($hotst as $value){
    $hot.="<a target=\"_blank\" href=\"/s/?wd=".urlencode($value)."\"><font color=\"#0B0BD5\">".str_cut($value,300)."</font></a>&nbsp;|&nbsp;";
  }
  echo  $hot;
?> 
   </div>
</div>
<div style="text-align:center">
    <?php index_foothtml();?>
</div>
<?php
require PATH."user/login_ajaxcss.php";
 ?>
</body>
</html>
