<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Data_VisitSearch" %>

<!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>
    <title>搜索行为数据</title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script type="text/javascript" src="Script/Data_VisitSearch.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
    <script src="Plugin/Calendar/Calendar.js" type="text/javascript"></script>
</head>
<body>
<div class="wrapper-div">

<!-- 弹出框 -->
<div id="ouBox" class="ouBox">
    <a class="close" title="关闭" href="#"></a>
    <div class="content"></div>
</div>
<!-- end 弹出框 -->

	<!-- 产品订单列表管理 -->
        <!-- 标 -->
            <div class="title-tab">
            <div class="title"><span class="title-ico titico5 F B">搜索行为统计</span></div>           
            </div>
        <!-- end 标 -->
        
         <div class="clear-8"></div>

        
        <!-- 通用table -->
        <table class="table-2">
            <tbody>
            	<tr>
                    <td width="100" class="item text_center">整站总搜索次数:</td>
                    <td class="text_left"><%=allSearchCount%> 次</td>
                    <td width="100" class="item text_center">今日搜索次数:</td>
                    <td class="text_left"><%=todaySearchCount%> 次</td>
                    <td width="100" class="item text_center">昨日搜索次数:</td>
                    <td class="text_left"><%=yesterdaySearchCount%> 次</td>
                </tr>
            	<tr>
                    <td width="100" class="item text_center">整站搜索排行Top10:</td>
                    <td class="text_left">
                        <ul class="item-list">
                            <%foreach (System.Data.DataRow dat in allSearchTop.Rows) %>
                            <%{ %>
                                <li><span class="S B"><%=dat["keyword"]%></span> <span class="R">(<%=dat["number"]%>)</span></li>
                            <%} %>
                        </ul>
                    </td>
                    <td width="100" class="item text_center">今日搜索排行Top10:</td>
                    <td class="text_left">
                        <ul class="item-list">
                            <%foreach (System.Data.DataRow dat in todaySearchTop.Rows) %>
                            <%{ %>
                                <li><span class="R B"><%=dat["keyword"]%></span> <span class="X">(<%=dat["number"]%>)</span></li>
                            <%} %>
                        </ul>
                    </td>
                    <td width="100" class="item text_center">昨日搜索排行Top10:</td>
                    <td class="text_left">
                        <ul class="item-list">
                            <%foreach (System.Data.DataRow dat in yesterdaySearchTop.Rows) %>
                            <%{ %>
                                <li><span class="Q B"><%=dat["keyword"]%></span> <span class="X">(<%=dat["number"]%>)</span></li>
                            <%} %>
                        </ul>
                    </td>
                </tr>
            	<tr>
                    <td width="100" class="item text_center">搜索有结果总数:</td>
                    <td class="text_left"><%=yesSearchCount %> 个关键字</td>
                    <td width="100" class="item text_center">搜索零结果数:</td>
                    <td class="text_left" colspan="3">
                            <%foreach (System.Data.DataRow dat in noSearchCount.Rows) %>
                            <%{ %>
                                <span class="D B"><%=dat["keyword"]%></span> <span class="J">(<%=dat["result"]%>)</span> 
                            <%} %>
                    </td>
                </tr>
            </tbody>
        </table>
        <!-- end 通用table -->

        <!-- 标 -->
            <div class="title-tab">
            <div class="title"><span class="title-ico titico10 F B">整站访问查询 <span class="NoB R">(<%=_pageCount%>)</span></span></div>           
            </div>
        <!-- end 标 -->
        <div class="clear-8"></div>

            <span class="tbox_form"><label class="topname">时间段：</label><input type="text" id="start_time" value="<%=starttime %>" class="input162 f_left m_right6 date" /></span>
            <span class="tbox_form"><label class="topname m_right6">至</label><input type="text" value="<%=endtime %>" id="end_time" name="end_time" class="isNull isTime date input162 f_left m_right6" /></span>
            <span class="tbox_form"><label class="topname">关键字：</label><input type="text" value="<%=keyWord %>" id="keyword_text" name="keyword_text" class="input162 f_left m_right6" /></span>
            <span class="tbox_form"><label class="topname">零结果：</label><input type="checkbox" <%=isNone!=""?"checked=checked":"" %> style="position:relative;top:4px;" value="1" id="isNone_chk" name="isNone_chk" class="f_left m_right6" /></span>
            <a href="#" id="search_Btn" rel="<%=getFormUrl %>" class="bule-btn W f_left text_centent">条件查询</a>


        <div class="clear-8"></div>
        <!-- 通用table -->
        <table class="table-1">
        	<thead>
            	<tr>
                	<th width="52%" class="text_left">搜索关键字</th>
                    <th width="10%" class="text_left">结果数</th>
                    <th width="10%" class="text_left">搜索次数</th>
                    <th width="20%" class="text_center">最后活动时间</th>
                    <th width="8%">操作</th>
                </tr>
            </thead>
            <tbody id="Jquery_Tbody">
            	<%if (_visitListDat.Rows.Count > 0) %>
            <%{ %>
                <%for (int i = 0; i < _visitListDat.Rows.Count; i++) %>
                <%{ %>
            	<tr>
                    <td class="text_left">
                        <span class="V"><%=_visitListDat.Rows[i]["keyword"].ToString()%></span>
					</td>
                    <td class="text_left">
                        <span class="R B"><%=_visitListDat.Rows[i]["result"].ToString()%></span>
                    </td>
                    <td class="text_left">
                        <span class="V"><%=_visitListDat.Rows[i]["number"].ToString()%></span>
                    </td>
                    <td>
                    	<span class="G">(<%=getTime1(_visitListDat.Rows[i]["updatetime"].ToString())%>)</span><br />
                            <span class="V Size9"><%=getTime2(_visitListDat.Rows[i]["updatetime"].ToString())%></span>
                    </td>
                    <td>
                        <a href="<%=_visitListDat.Rows[i]["id"].ToString() %>" rel="del"  class="R underline">[删除]</a>
                    </td>
                </tr>
                <%} %>
            <%}else{ %>
            <tr>
            <td  colspan="5" class="text_left"><span class="V">暂无搜索数据</span></td>
            </tr>
            <%} %>
            </tbody>
            <tfoot>
            	<tr>
                    <th width="100%" colspan="5" class="text_right">
                    <div class="clear-8"></div>
                    <p class="PageBox">
                    	<%=getPagesInfo %>
                    </p>
                    <div class="clear-16"></div>
                    </th>
                </tr>
            </tfoot>
        </table>
        <!-- end 通用table -->

    <!-- end 文章列表管理 -->
</div>

</body>
</html>
