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

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

{if $smarty.foreach.list.index != 0 && $smarty.foreach.list.index % 4 == 0}
  </div>
  <!--End of photo-->

  <div class="photo">
{/if}
    <dl>
      <dt><a href="{$dirName}/item_{$item.itemcd}.html#item-title" title="{$item.itemnm}">
          <img src="img.php?c={$item.itemcd}&amp;s=S&amp;d=1" alt="{$item.itemnm}" border="0" width="125" /></a></dt>
      <dd><a href="{$dirName}/item_{$item.itemcd}.html#item-title" title="{$item.itemnm}">
          {action->strTrimWidth str=$item.itemnm lmt=30}</a><br />
{if $smarty.const.NOT_DISPLAY_PRICE == 1}
{else}
          {if $lp==0}--{else}{$lp|number_format}円{/if}<br />
{/if}
{if $smarty.const.NOT_DISPLAY_CARTIN == 1}
{else}
          {if $d.structcd=="" && $d.stockcd==""}<input type="image" src="img/cart_btn3.gif" alt="在庫なし" disabled>
          {else}<a href="{$scriptName}?action=customer_itembuy_cart&mode=insert&itemcd={$item.itemcd}&structcd={$d.structcd}&stockcd={$d.stockcd}"><img src="img/cart_btn2.gif" alt="カートへ" border="0" /></a>
          {/if}
{/if}
      </dd>
    </dl>
{/foreach}
  </div>
  <!--End of photo-->

</div>

<div>{$link.linktags}</div>
<div class="autopagerize_insert_before"></div>
