{include file="mobile/header.html"}

{if empty($action.q)}

{sidemenu->getSideMenuData assign=sidemenu genrecd=$action.gnr}
<hr color="#559fe8">
{foreach from=$sidemenu.genre item=item}
<h4>{$item.genrenm|escape}<br />アイテム一覧</h4><br />
{if $item.child != ""}
<ul type="square">
{include file="mobile/itemview/genre_tree.html" child=$item.child}
</ul>
{/if}
{/foreach}

{/if}


<hr color="#559fe8">

<form name="qry" action="{$dirName}/">
{$hiddenSID}
<input id="ac" type="hidden" name="action" value="mobile_itemview_itemlist" />


<h4>{$action.pageindex}一覧</h4>
<br />

<div>
{$action.totalpages}ページ中{$action.nowpages}ページ目を表示{if $action.rc > 0}（合計{$action.rc}商品）{/if}<br />
{action->getLink assign=link}
{if $link.pages!=""}
  {$link.back} {$link.next}
{/if}
<br />
</div>


{auth->checkAuth assign=check}
<div>
{foreach name=list item=item from=$action.results}

{assign var='lp' value=$item.lowprice}
{action->getCd itemcd=$item.itemcd sellingprice=$lp assign=d}

  <a href="{$dirName}/item_{$item.itemcd}.html?{$querySID}" title="{$item.itemnm}">{action->strTrimWidth str=$item.itemnm lmt=30}</a><br />
  <font size="2">
  {if $lp==0}--{else}{$lp|number_format}円{/if}
  {if $d=="notbuy"}購入不可
  {elseif $d.structcd=="" && $d.stockcd==""}在庫無し
  {else}<a href="{$dirName}/?action=customer_itembuy_cart&mode=insert&itemcd={$item.itemcd}&structcd={$d.structcd}&stockcd={$d.stockcd}&{$querySID}">カートに入れる</a>
  {/if}
  </font>
  <br /><br />

{/foreach}
</div>

<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}" />

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

<br />
<div>
{action->getLink assign=link}
{if $link.pages!=""}
  {$link.back} {$link.next}
{/if}
</div>


</form>


{include file="mobile/footer.html"}
