{include file="header.html"}

<!--↓コンテンツ-->
<div id="contents">

<!--↓メインコンテンツ-->
<div id="main">

<div id="pankuzu">
  <ul>
    <li><a href="{$dirName}/index.php">トップ</a></li>
    <li>&nbsp;&gt;&nbsp;{$action.pagename}</li>
  </ul>
</div>

<div id="view">
  <h3>{$action.pagename}</h3>

  <div class="pages">
    <h4>{$action.start}位～{$action.end}位を表示</h4>

{action->getLink assign=link}
{if $link.pages!=""}
    <ul class="page1">
      {$link.pages}
    </ul>
    <ul class="page2">
      {if $link.back!=''}<li class="first">{$link.back}</li> <li>{$link.next}</li>{else}<li class="first">{$link.next}</li>{/if}
    </ul>
{/if}
  </div>
  <!--End of pages-->


  <div class="photo ranking">
{foreach from=$action.pagedata key="key" item="itemrank" name="itemrank"}

{* 4件ずつ改行 *}
{if !$smarty.foreach.itemrank.first && $smarty.foreach.itemrank.iteration % 4 == 1}
  </div>
  <!--End of photo-->
  <div class="photo ranking">
{/if}
    <dl>
      <dt>No.{$smarty.foreach.itemrank.index+$action.start}</dt>
      <dd>
        <a href="{$dirName}/item_{$itemrank.itemcd}.html#item-title" title="{$itemrank.itemnm}">
        <img src="img.php?c={$itemrank.itemcd}&s=S&d=1" width="90" alt="{$itemrank.itemnm}" border="0" /></a><br />
        <a href="{$dirName}/item_{$itemrank.itemcd}.html" title="{$itemrank.itemnm}">{$itemrank.itemnm|escape}</a>
      </dd>
    </dl>
{/foreach}
  </div>
  <!--End of photo-->

  <div class="pages">
{action->getLink assign=link}
{if $link.pages!=""}
    <ul class="page1">
      {$link.pages}
    </ul>
    <ul class="page2">
      {if $link.back!=''}<li class="first">{$link.back}</li> <li>{$link.next}</li>{else}<li class="first">{$link.next}</li>{/if}
    </ul>
{/if}
  </div>

</div>
<!-- End of view -->

</div>
<!-- ↑メインコンテンツ -->

{include file="sidenavi.html" genrecd=$action.gnr}
</div>
<!-- ↑コンテンツ -->

{include file="footer.html"}
