<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="SearchEasy.SiteSearch._default" %>
<!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=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><%= SearchModel.PageTitle %></title>
<meta name="Description" content="<%= SearchModel.PageDescription %>" />
<link rel="stylesheet" type="text/css" href="static/search_index_v1.css" />
<script type="text/javascript" src="static/jquery.min.js"></script>
<script type="text/javascript" src="static/jquery-ui.min.js"></script>

</head>
<body>
<div class="doc" id="home">
	<div class="hd-content">
		<div class="logo"><div class="img"><img src='/static/logo.png' alt='站内搜索' /></div></div>
		<div class="input" id="q-input">
			<form method="get" action="<%= SearchModel.SearchPageUrl %>" onsubmit="return ValidateForm();">
			<span class="kw">
			<input type="text" id="kwq" class="text" name="q" x-webkit-speech="" x-webkit-grammar="builtin:translate" />
			</span>
			<input type="submit" class="btn-search" value="搜  索" />
			</form>
			<span style="FONT-SIZE: 12px;COLOR: #333333;"> </span>
			<span style="FONT-SIZE: 12px;COLOR: #333333;"> </span>
		</div>
		<div style="text-align:center">
		 
		</div>
		<div class="footer">
			<p class="links"></p>
			<p class="copyright_en"><%= SearchModel.CopyRight %></p>
			<p class="copyright_zh"></p>
		</div>
	</div>
</div>
<script language="javascript" type="text/javascript">
    function ValidateForm() {
        var q = $("#kwq").val();
        if (q == "") {
            alert("请输入搜索关键词！");
            return false;
        }
        <% if (SearchModel.UrlRewrite)
    {%>
        window.location.href = "/so/" + q + "/1.html";
        return false;
        <%}
    else {%>
        return true;
        <% }%>
    }
</script>
</body>
</html>
