<[include file="common/group_list.tpl"]>
<div id="contents">
<[include file="common/group_menu.tpl"]>
  <br />
  <div id="site-info">
    <h3><img src="<[$TEMPLATE_DIR]>/img/icon_large/ninki.jpg" align="absmiddle" style="margin-right:8px;">検索ワードランキング</h3>
    <br />
    <fieldset style="width:500px;padding-left:30px;">
    <legend>ランキング期間を指定して下さい。</legend>
    <table width="100%" border="0">
      <tr>
        <td>
        <form method="post" action="./index.php?mode=54&group_code=<[$current_group.group_code]>">
          ランキング期間:
          <select name="period" onchange="submit();">
            <option value="30"<[if $period == "30"]> selected<[/if]>>30日間</option>
            <option value="60"<[if $period == "60"]> selected<[/if]>>60日間</option>
            <option value="90"<[if $period == "90"]> selected<[/if]>>90日間</option>
          </select>
        </form>
        </td>
      </tr>
    </table>
    </fieldset>
    <table id="view-table" cellpadding="2" cellspacing="0" width="100%">
      <tr>
        <th>順位</th>
        <th>検索ワード</th>
        <th>最多リクエストページ</th>
        <th>リクエスト数</th>
      </tr>
    <[foreach from=$search_array key=word item=search name=search]>
      <[assign var=url value=$view_page.$word|@key]>
      <tr class="<[cycle values="odd,even"]>">
        <td class="ac_date"><[if $smarty.foreach.search.iteration < 4]><img src="<[$TEMPLATE_DIR]>/img/icon/s_crown.gif">&nbsp;<[/if]><[$smarty.foreach.search.iteration]>位</td>
        <td class="ac_graph"><[$word|escape]></td>
        <td class="ac_graph"><a href="<[$view_page.$word|@key|escape]>" target="_blank"><[$page_title.$url|escape]></a></td>
        <td class="ac_count"><[$search|number_format]></td>
      </tr>
    <[foreachelse]>
      <tr class="odd">
        <td colspan="4">ログデータがありません。</td>
      </tr>
    <[/foreach]>
    </table>
  </div>
</div>