<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="ETongJin.Search._default" %>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gb2312" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title><%=config.SiteTitle %>_<%=config.SiteName %></title>
<meta name="description" content="<%=config.Description %>" />
<meta name="keywords" content="<%=config.KeyWords %>" />
<style type="text/css">
body {
	font: 12px arial;
	text-align: center;
	background: #fff;
}
body, p, form, ul {
	margin: 0;
	padding: 0;
}
body, form, #fm {
	position:relative;
}
form sup {
	position:absolute;
	right: -10px;
}
img {
	border:0;
}
a {
	color: #00c;
}
a:active {
	color: #f60;
}
#u {
	padding: 7px 10px 3px 0;
	text-align: right;
}
#m {
	width: 680px;
	margin: 0 auto;
}
#nv {
	margin: 0 0 4px;
	text-align: left;
	text-indent: 117px;
}
#nv b,#nv a{margin-right:13px}
.btn, p {
	font: 14px arial;
}
#fm {
	padding-left: 90px;
	text-align: left;
}
#kw, .btn_wr {
	margin: 0 5px 0 0;
}
#kw, .btn_wr, .btn {
	background: url(Content/images/i2.png) no-repeat;
}
#kw {
	width: 404px;
	height: 22px;
	padding: 4px 7px;
	padding: 6px 7px 2px\9;
	font: 16px arial;
	border: 1px solid #cdcdcd;
	border-color: #9a9a9a #cdcdcd #cdcdcd #9a9a9a;
	vertical-align: top;
}
.btn_wr {
	width: 97px;
	height: 34px;
	display: inline-block;
	background-position: -202px bottom;
	_padding-top: 1px;
*position:relative
}
.btn {
	width: 95px;
	height: 32px;
	padding: 0;
	padding-top: 2px\9;
	border: 0;
	background-position: 0 -35px;
	cursor: pointer;
}
.btn_h {
	background-position:-100px -35px;
}
#sx {
	position:absolute;
	color:#00C;
	cursor:pointer;
	top:10px
}
#lk {
	margin:33px 0;
}
.lh {
	margin:15px 0 5px;
	word-spacing:3px;
	font-size: 12px;
}
.cp, .cp a {
	color:#77c;
	margin-top:5px;
}
.newKeys {
	margin: 10px 20px;
	line-height: 24px;
}
.newKeys a {
	margin-right: 10px;
	padding: 2px;
}
</style>
<script type="text/javascript">
function closeErrors() { return true; }
window.onerror = closeErrors;
function sc(b) {
	var txtword = document.getElementById("kw");
	document.location = "/s/?c=" + b + "&wd=" + txtword.value; ;
}
</script>
</head>
<body>
<div id="u"><a href="/TuiGuang/Login.aspx" target="_blank">推广登录</a></div>
<div id="m">
  <p id="lg"><a href="/"><img src="/content/logo.png" width="270" height="120" alt="<%=config.SiteName %>" /></a></p>
  <p id="nv">
    <%Response.Write("<b>" + config.SearchAllText + "</b>");
        foreach (int k in CategoryList.Keys)
        {%>
    <a id="c_<%=k %>" onClick="return sc(<%=k %>);" href="#"><%=CategoryList[k] %></a>
    <%}%>
  </p>
  <div id="fm">
    <form name="f" id="f" action="/s/" method="get">
      <input type="text" name="wd" id="kw" maxlength="100" baidusug="1" />
      <span class="btn_wr">
      <input type="submit" value="搜一下" id="su" class="btn" onMouseDown="this.className='btn btn_h'" onMouseOut="this.className='btn'" />
      </span><span id="sx">手写输入</span><sup><font color="#FF0000">New!</font></sup>
    </form>
  </div>
  <p id="lk"> <a href="http://jiashizheng.chasfz.com/" target="_blank">驾驶证查询</a> <a href="http://www.bumiu.com/" target="_blank">不谬返利网</a> <a href="http://sfz.chasfz.com/" target="_blank">身份证照片查询</a> <a href="http://www.chasfz.com/cha/" target="_blank">查询大全</a><span> | <a href="http://www.bumiu.cn/h/catalog/tool.htm"> 更多&gt;&gt;</a></span></p>
  <p> <a href="http://www.12ym.com/3/111/" target="_blank" style="color:#FF0000;font:bold 14px/40px Arial">1860元轻松建立本站一样强大的搜索引擎</a></p>
  <p class="newKeys">
    <%int newKeysCount = 40;//最近搜索关键词需要显示的最大个数
     string newKeysSql = "select top {0} keyword from etj_searchrecord order by id desc";
     //string newKeysSql = "select top {0} keyword from etj_searchrecord where id in (select max(id) from etj_searchrecord where addtime>#" + DateTime.Now.AddDays(-1).ToShortDateString() + "# group by keyword) order by id desc";
     System.Data.DataTable newKeys = ETongJin.Search.BLL.Other.GetDataTable(string.Format(newKeysSql, newKeysCount+120));
     newKeys = ETongJin.Search.PageHelper.CleanDataTable(newKeys);//过滤掉违法词语
     System.Collections.Generic.List<string> keys = new System.Collections.Generic.List<string>();  
     int i = 0;
    foreach (System.Data.DataRow dr in newKeys.Rows)
     {
         string str = dr[0].ToString();
         if (keys.Contains(str)) continue;
         keys.Add(str);
         if (++i >= newKeysCount) break;
     }
     foreach (string dr in keys )
     {%>
    <a href="s/?wd=<%=System.Web.HttpUtility.UrlEncode(dr,System.Text.Encoding.GetEncoding("gb2312")).ToUpper()%>" target="_blank"> <%=dr%></a>
    <%}%>
  </p>
  <p class="lh"> <a id="st" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.bumiu.cn')" href="#">设为主页</a>
    <!--[if IE 6]> | <![endif]-->
    <a href="/TuiGuang/Register.aspx" target="_blank">加入推广</a> | <a href="/home/add/" target="_blank">提交网站</a> | <a href="/TuiGuang/JingJia.aspx" target="_blank"> 竞价价格查询</a> | <a href="/s/hot/">搜索风云榜</a></p>
  <p class="lh cp"> <%=config.CopyRight+config.Ver %> <a href="/about/duty.htm">使用搜索前必读</a> <%=config.ICP%></p>
</div>
</body>
<script>var w = window, d = document, n = navigator, k = d.f.wd; if (n.userAgent.indexOf("MSIE") == -1 || window.opera) { d.getElementById("st").style.display = "none" }; if (n.cookieEnabled && !/sug?=0/.test(d.cookie)) { d.write('<script src=<%=config.AutoBaidu?"http://www.baidu.com/js":"/scripts" %>/bdsug.js?v=1.0.3.0><\/script>') }; if (w.attachEvent) { w.attachEvent("onload", function() { k.focus(); }) } else { w.addEventListener('load', function() { k.focus() }, true) }; w.onunload = function() { }; var hw = {}; hw.i = d.getElementById("sx"); var il = false; if (/msie (\d+\.\d)/i.test(n.userAgent)) { hw.i.setAttribute("unselectable", "on") } else { var sL = k.value.length; k.selectionStart = sL; k.selectionEnd = sL } hw.i.onclick = function(B) { var B = B || w.event; B.stopPropagation ? B.stopPropagation() : (B.cancelBubble = true); if (d.selection && d.activeElement.id && d.activeElement.id == "kw") { hw.hasF = 1 } else { if (!d.selection) { hw.hasF = 1 } } if (!il) { var A = d.createElement("script"); A.setAttribute("src", "http://www.baidu.com/hw/hwInput.js"); d.getElementsByTagName("head")[0].appendChild(A); il = true; setTimeout(function() { if (bdsug) { bdsug.sug.initial() } }, 1000) } };</script>
</html>
<%=config.Statistics %>