<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="ETongJin.Search.Ju.index" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=7"/>
<%if (Convert.ToInt32(HttpContext.Current.Request.Params["pn"]) != 0) Response.Write("<meta name=\"robots\" content=\"noindex,follow\"/>");%>
<title><%=ViewData["query"] %>_ 聚合搜索结果_<%=config.SiteName %></title>
<meta name="description" content="关键词：<%=ViewData["query"] %>，的相关搜索结果。" />
<meta name="keywords" content="<%=ViewData["query"] %>、<%=config.KeyWords %>" />
<link href="../Content/css/pic.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function bq(form){if(form.wd.value.length>99){alert("您输入的关键词太长，请精简一下")}else{form.wd.value='<%=ViewData["query"]%> '+form.wd.value;form.submit()}}if(top.location!=self.location){top.location=self.location}function ss(w){window.status=w;return true}function cs(){window.status=''}

function closeErrors() {
    return true;
}
window.onerror = closeErrors;
function sc(b) {
    var txtword = document.getElementById("kw");
    document.location = "/i/?wd=" + escape(txtword.value);
}
</script>
</head>
<body>
<div id="out">
  <div id="in">
    <div id="wrapper">
      <p id="u"><a href="/TuiGuang/Login.aspx" target="_blank">推广登录</a></p>
      <div id="head">
        <div class="nv"><a href="/" class="logo"><img id="logo" src="../content/logo2.png" alt="不谬网，真不错！" /></a>
          <div class="tab"><b>网&nbsp;页</b>　<a id="c_1" onClick="return sc(1);" href="#">图&nbsp;片</a></div>
        </div>
        <form id="f" name="f" action="/ju/"  class="fm">
          <input name="wd" id="kw" value="<%=ViewData["query"] %>" maxlength="100" class="i">
          <span class="btn_wr">
          <input type="submit" id="su" value="聚搜一下" class="btn" onMouseDown="this.className='btn btn_h'" onMouseOut="this.className='btn'">
          </span><span id="sx">手写输入</span><sup><font color="#FF0000">New!</font></sup><span class="seth"><a id="st" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.bumiu.cn');" href="#">把不谬网设为主页</a></span>
        </form>
      </div>
      <br>
      <table width="30%" border="0" cellpadding="0" cellspacing="0" align="right">
        <tr>
          <td align="left" style="padding-right:10px"><div class="adright">
              <%foreach (System.Data.DataRow item in ((System.Data.DataTable)ViewData["right"]).Rows)
               {%>
              <div class="ec_bdtg">
                <%if (item["adtype"].ToString() == "1") Response.Write(item["contents"].ToString());
                  else{%>
                <a onMouseOut="cs()" onMouseOver="return ss('链接至 <%=item["url"]%>')" target="_blank" href=" <%=item["gourl"]%>"><font size="3"> <%=item["title"]%></font> </a> <br />
                <a href=" <%=item["gourl"]%>" target="_blank"><font size="-1"><font color="#000000"> <%=item["contents"]%></font><br />
                <font color="#008000"> <%=item["url"]%></font></font></a></div>
              <%}
            }%>
              <div class="ec_bdtg">
                <div class="fsblock">
                  <div class="title"><a onMouseOut="cs()" onMouseOver="return ss('链接至 www.chasfz.com')" target="_blank" href="http://www.chasfz.com/sfz/"><font size="3">身份证照片核查</font></a></div>
                  <a  href="http://www.chasfz.com/sfz/" target="_blank"><font size="-1"><font color="#000000">根据身份证号码和姓名核查身份证照片，骗子立即现行！</font><br/>
                  <font color="#008000">www.chasfz.com</font></font></a> </div>
              </div>
              <div class="ec_bdtg">
                <script type="text/javascript"><!--
					google_ad_client = "pub-8592953480934675";
					/* 300x250, 创建于 10-5-19 */
					google_ad_slot = "6337213288";
					google_ad_width = 300;
					google_ad_height = 250;
//-->
				</script>
                <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
              </div>
              <p class="xg"> <b> <%=ViewData["query"] %></b>的相关推广信息</p>
              <p><a href="http://www.bumiu.com" target="_blank">不谬返利网</a><br /><a href="http://sfz.chasfz.com" target="_blank">身份证号码核查大全</a><br />
                <a href="http://jiashizheng.chasfz.com" target="_blank">驾驶证查询</a><br />
                <a href="http://xingshizheng.chasfz.com" target="_blank">驾驶证违章查询</a><br />
                <a href="http://www.bumiu.cn/home" target="_blank">身份证信息查询</a></p>
            </div>
            <br>
          </td>
        </tr>
      </table>
      <% if (baibao&&code!=""){%>
      <!--显示百宝箱-->
      <table cellpadding="0" cellspacing="0" class="result">
        <tr>
          <td class=f><%Response.Write(code);%></td>
        </tr>
      </table>
      <br>
      <!--end-->
      <%}%>
      <%System.Data.DataTable dt = (System.Data.DataTable)ViewData["top"];
      if (dt != null)
      {
          foreach (System.Data.DataRow item in dt.Rows)
          {%>
      <table cellpadding="0" cellspacing="0" class="result">
        <tr>
          <td class=f><% if (item["adtype"].ToString() == "1") Response.Write(item["contents"].ToString());
           else
           { %>
            <h3 class="t"><a href="<%=item["gourl"]%>" onMouseOut="cs()" onMouseOver="return ss('<%=item["url"]%>')" target="_blank"><%=item["title"]%></a></h3>
            <font size=-1><%=item["contents"]%><br />
            <span class="g"><%=ETongJin.Common.StringOperate.CutString(item["url"].ToString(), 40, "...")%> <%=item["addtime"]%></span> - <a href="/TuiGuang" target="_blank" class="m">推广</a></font>
            <%} %></td>
        </tr>
      </table>
      <br>
      <%}
    }
    if (string.IsNullOrEmpty(Request.QueryString["pn"]))
    {%>
      <%} ETongJin.Search.Ju.SearchResult xnl = (ETongJin.Search.Ju.SearchResult)ViewData["results"];
        if (xnl == null || xnl.Result.Count == 0)
        {
            Response.Write("<p style=\"padding-left:15px;\">");
            Response.Write("抱歉,没有找到相关结果! (小技巧,如果您搜索多个关键词,请试着将关键词用空格符分开再试试)<br/>");
            Response.Write("</p>");
        }
        else
        {
            int i = 0;
            int rnd = new Random().Next(10);
            foreach (string keyurl in xnl.Result.Keys)
            {
                ETongJin.Search.Ju.SearchItem item = xnl.Result[keyurl];
                string shorturl;
                if (keyurl.StartsWith("$"))
                    shorturl = "";
                else
                    shorturl = ETongJin.Common.StringOperate.CutString(keyurl, 40, "...");
    %>
      <table cellpadding="0" cellspacing="0" class="result">
        <tr>
          <td class=f><h3 class="t"><a href="<%=keyurl%>" target="_blank"><%=item.Title%></a></h3>
            <font size=-1> <%=item.Desc%><br />
            <span class="g"><%=shorturl%>
            <%if (!string.IsNullOrEmpty(item.Cache))
                  { %>
            <%=item.Date %></span> - <a class="m" href="<%=item.Cache %>" target="_blank">网页快照</a>
            <%}%>
            </font></td>
        </tr>
      </table>
      <br>
      <%if (i++ == rnd)
      {%>
      <%}
  }
  }%>
      <p id="page"><%=ViewData["pageing"]%><span class="nums" style="margin-left:120px">
        <%if (ViewData["junotes"].ToString() != "0")
        {%>去除<%=ViewData["junotes"]%>%重复结果，<%}%>
        找到相关结果约<%=ViewData["count"] %>个</span></p>
      <%if (xnl != null && xnl.Like.Count > 0 && xnl.Like[0] != null && xnl.Like[0] != "")
      {%>
      <div id="rs"><strong class="oDt">相关搜索:</strong>
        <table cellpadding="0">
          <tr>
            <%for (int i = 0; i < xnl.Like.Count; i++)
		  {
			  string key = xnl.Like[i];
			  if (key != null)
			  {
				  string enKey = HttpUtility.UrlEncode(key, Encoding.Default);
                        %>
            <th><a href="?wd=<%=enKey %>"><%=key %></a></th>
            <td></td>
            <%}
              if (i == 4)
              {%>
          </tr>
          <%}
          }%>
        </table>
      </div>
      <%} %>
      <div id="search">
        <form name="f2" action="/ju/" >
          <input name="wd" value="<%=ViewData["query"] %>" maxlength="100" class="i">
          <span class="btn_wr">
          <input type="submit" value="聚搜一下" class="btn" onMouseOut="this.className='btn'" onMouseDown="this.className='btn btn_h'">
          </span>&nbsp;&nbsp;&nbsp;<a href="#" onClick="bq(document.forms['f2'])">结果中找</a>&nbsp;&nbsp;&nbsp;<a href="http://www.bumiu.com" target="_blank">不谬返利网</a>&nbsp;&nbsp;&nbsp;<a href="http://www.bumiu.com/p/miumiu/" target="_blank">miumiu包</a>&nbsp;&nbsp;&nbsp;<a href="http://www.bumiu.com/p/tejiabaobao/" target="_blank">特价包包</a>
        </form>
      </div>
      <div id="foot"> <%=config.CopyRight %><%=config.Ver %> <span>此内容系E桶金根据您的指令自动搜索的结果，不代表E桶金赞成被搜索网站的内容或立场</span></div>
    </div>
  </div>
</div>
<script type="text/javascript">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=http://www.baidu.com/js/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>
</body>
</html>
<%=config.Statistics %>