<%@Page Language="C#" AutoEventWireup="true" Inherits="Web.inherits.ViewPage" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>搜索结果-<%=WebSiteConfig.SiteTitle%></title>
    <link href="<%path:%>Css/common.css" rel="stylesheet" />
    <link href="<%path:%>Css/web.css" rel="stylesheet" />
    <script src="/Js/jquery-1.8.2.min.js"></script>
    <script src="/Js/data.js"></script>
    <script src="/Js/bx.library.js"></script>
    <script src="<%path:%>js/web.js"></script>
</head>
<body>
    <!--head-->
    <%template:_head.html%>
    <!--body-->
    <div class="body main">
        <div class="split">&nbsp;</div>
        <div class="list">
            <div class="sitemap">所在位置:<a href="/">首页</a> > 搜索结果</div>

            <div class="left">
                <div class="title"><span>搜索结果</span></div>
                <div class="content">
                    <table cellpadding="0" cellspacing="0">
                        <tbody>
                            <%
                             var CurrentPage=Request["page"]!=null?Convert.ToInt32(Request["page"]):1;
                              var resultList=SearchReleaseList(keywords:Request["keywords"],page:CurrentPage);
                              var totalRows=SearchReleaseCount(keywords:Request["keywords"]);
                            %>
                            <%if(resultList.Count()>0){%>
                           <%foreach(var row in resultList){%>
                             <tr>
                                 <td>
                                     <span class="infotitle"><a href='/Item/<%=row["InfoID"]%>' target="_blank"><%=row["Title"]%></a></span>
                                       <!--  <span class="infointroduce"> </span>-->
                                     <span class="infoother"><%=Convert.ToDateTime(row["UpdateDate"]).ToString("yyyy-MM-dd")%> </span>
                                 </td>
                             </tr>
                            <%}%>
                        <%}else{%>
                                <tr>
                                    <td>无结果 
                                    </td>
                                </tr>
                            <%}%>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td class="pagination"> 
                                    <%=GetPaginationHtml(total:totalRows,link:String.Format("/search/?page=@page&keywords={0}",Request["keywords"]),maxmumRows:10,page:CurrentPage)%>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
            <div class="right">
                <div class="listblock">
                    <div class="title">相关推荐</div>
                    <div class="item">
                        <ul>
                            <li><span class="contenttitle"><a href="#">阁楼安装招标，等您投标报价</a></span></li>
                            <li><span class="contenttitle"><a href="#">MLM038T4LC9冷冻涡旋压缩机</a></span></li>
                            <li><span class="contenttitle"><a href="#">安防线缆环境缓解 行业标准渐明晰</a></span></li>
                            <li><span class="contenttitle"><a href="#">牛仔裤批量采购，报名者从速</a></span></li>
                            <li><span class="contenttitle"><a href="#">儿童服装采购，寻求供应商中</a></span></li>
                        </ul>
                    </div>
                </div>

            </div>
            <div class="split">&nbsp;</div>
        </div>
    </div>
    <!--foot-->
    <%template:_foot.html%>
</body>
</html>
