{include file="header.html"}


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

<!-- ↓メインコンテンツ -->
<div id="main">
{if $action.pageindeximg != ""}
<div id="mainbanner">
  <img src="{$action.pageindeximg}">
</div>
{/if}
<div id="pankuzu">
  <ul>
    {action->getTopicPath}
  </ul>
</div>

<!-- ↓検索結果一覧 -->

<form name="qry" action="{$scriptName}">
<input id="ac" type="hidden" name="action" value="general_itemview_itemlist" />


<div id="view">
<h3>{$action.pageindex}一覧</h3>


<div class="pages">
<h4>{$action.totalpages}ページ中{$action.nowpages}ページ目を表示{if $action.rc > 0}（合計{$action.rc}商品）{/if}</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="disp">
  <ul class="viewer">
    <input type="hidden" id="vl" name="list" value="" />
    <li class="title">表示方法&nbsp;：</li>
{if $action.list=="img"}
    <li class="first on">画像</li>
{else}
    <li class="first">
      <a href="javascript:void(0)" onClick="document.getElementById('vl').value='img'; 
                            document.getElementById('fr').value={$action.from};
                            document.getElementById('ac').value='general_itemview_itemlist'; 
                            document.qry.submit(); return false;">画像</a></li>
{/if}
{if $action.list=="list"}
    <li class="on">リスト</li>
{else}
    <li>
        <a href="javascript:void(0)" onClick="document.getElementById('vl').value='list';
                            document.getElementById('fr').value={$action.from};
                            document.getElementById('ac').value='general_itemview_itemlist'; 
                            document.qry.submit(); return false;">リスト</a></li>
{/if}
  </ul>

  <ul class="sort">
    <input type="hidden" name="sort" value="{$action.sort}" id="sort" />
    <li class="title">並べ替え&nbsp;：</li>

    {if $action.sort=="-udate"}<li class="first on down"><a class="asc" href="javascript:void(0)" onClick="document.getElementById('sort').value='udate'; document.qry.submit(); return false;">新着順</a></li>
    {elseif $action.sort=="udate"}<li class="first on up"><a class="desc" href="javascript:void(0)" onClick="document.getElementById('sort').value='-udate'; document.qry.submit(); return false;">新着順</a></li>
    {else}<li><a href="javascript:void(0)" onClick="document.getElementById('sort').value='-udate'; document.qry.submit(); return false;">新着順</a></li>{/if}

    {if $action.sort=="-title"}<li class="on down"><a class="asc" href="javascript:void(0)" onClick="document.getElementById('sort').value='title'; document.qry.submit(); return false;">商品名</a></li>
    {elseif $action.sort=="title"}<li class="on up"><a class="desc" href="javascript:void(0)" onClick="document.getElementById('sort').value='-title'; document.qry.submit(); return false;">商品名</a></li>
    {else}<li><a href="javascript:void(0)" onClick="document.getElementById('sort').value='title'; document.qry.submit(); return false;">商品名</a></li>{/if}

    {if $action.sort=="-saledate"}<li class="on down"><a class="asc" href="javascript:void(0)" onClick="document.getElementById('sort').value='saledate'; document.qry.submit(); return false;">発売日</a></li>
    {elseif $action.sort=="saledate"}<li class="on up"><a class="desc" href="javascript:void(0)" onClick="document.getElementById('sort').value='-saledate'; document.qry.submit(); return false;">発売日</a></li>
    {else}<li><a href="javascript:void(0)" onClick="document.getElementById('sort').value='-saledate'; document.qry.submit(); return false;">発売日</a></li>{/if}

    {if $action.sort=="-price"}<li class="on down"><a class="asc" href="javascript:void(0)" onClick="document.getElementById('sort').value='price'; document.qry.submit(); return false;">価格</a></li>
    {elseif $action.sort=="price"}<li class="on up"><a class="desc" href="javascript:void(0)" onClick="document.getElementById('sort').value='-price'; document.qry.submit(); return false;">価格</a></li>
    {else}<li><a href="javascript:void(0)" onClick="document.getElementById('sort').value='price'; document.qry.submit(); return false;">価格</a></li>{/if}
  </ul>
</div>
<!--End of disp-->


<!-- ↓商品紹介（画像一覧） -->
{if $action.list=="img"}
{include file="general/itemview/itemlist_img_common.html"}
{elseif $action.list=="list"}
{include file="general/itemview/itemlist_common.html"}
{/if}
<!-- ↑商品紹介（画像一覧） -->

<input type="hidden" name="q" value="{$action.q}" />
<input type="hidden" name="q_select" value="{$action.q_select}" />
<input type="hidden" name="tag" value="{$action.tag}" />
<input type="hidden" name="from" id="fr" value="" />

{foreach from=$action.gnr item=g}
<input type="hidden" name="gnr" value="{$g}" />
{/foreach}

<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>
<!--End of pages-->


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

</form>

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

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

{include file="footer.html"}
