{include file="header.html"}
{header->getSystemInfo assign=hd_info}
{header->getSystemImg assign=hd_img}

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

<!--↓メインコンテンツ-->
<div id="main">
<div class="mainvisual"><img src="{$hd_img.main}" alt="{$hd_info.shopnm}" width="675" /></div>

<div class="mainblock">
{if count($action.shoplist) > 0 && $smarty.const.USE_GENRE_IMAGE}
  <h3><span class="blockindex">ショップ一覧</span></h3>

  <table cellspacing="18" cellpadding="5">
    <tr>
{foreach from=$action.shoplist item=shop name=c}
{if $smarty.foreach.c.index % 6 == 0}
    </tr>
    <tr>
{/if}
      <td>
        <a href="{$dirName}/?action=general_itemview_itemlist&gnr={$shop.genrecd}">
          <img src="{$shop.genreimg}" alt="{$shop.genrenm}">
        </a>
      </td>
{/foreach}
    </tr>
  </table>
{/if}

{if count($action.attentionshops) > 0 && $smarty.const.USE_GENRE_IMAGE}
  <h3><span class="blockindex">注目！</span></h3>

  <table cellspacing="18" cellpadding="5">
    <tr>
{foreach from=$action.attentionshops item=shop name=c}
{if $smarty.foreach.c.index % 3 == 0}
    </tr>
    <tr>
{/if}
      <td>
        <a href="{$dirName}/?action=general_itemview_itemlist&gnr={$shop.genrecd}">
          <img src="{$shop.genreimg}" alt="{$shop.genrenm}">
        </a>
      </td> 
{/foreach}
    </tr>
  </table>
{/if}

  <h3><span class="blockindex">新着商品</span></h3>

<div class="newitem">
{foreach from=$action.newitemlist item=item name=newitem}
<dl>
  <dt><a href="{$dirName}/item_{$item.itemcd}.html">
        <img src="img.php?c={$item.itemcd}&s=S&d=1" alt="{$item.itemnm}" width="90" border="0" /></a></dt>
  <dd><a href="{$dirName}/item_{$item.itemcd}.html">{action->strTrimWidth str=$item.itemnm lmt=30}</a><br />
{if $smarty.const.NOT_DISPLAY_PRICE == 1}
{else}
  {if $item.lowprice==0}--{else}{$item.lowprice|number_format}円{/if}
{/if}
</dd>
</dl>
{if $smarty.foreach.newitem.index == 3}
</div><!--End of newitem-->
<div class="newitem">
{/if}
{/foreach}
</div><!--End of newitem-->
<div class="tolist"><a href="{$dirName}/?action=general_itemview_itemlist&t=new&s=all">新着商品一覧</a></div>
</div><!--End of mainblock-->

<div class="mainblock">
<h3><span class="blockindex">おすすめ商品</span></h3>
<div class="recommend">
{foreach from=$action.recommenddata item=item name=recommend}
<dl>
  <dt><a href="{$dirName}/item_{$item.itemcd}.html">
        <img src="img.php?c={$item.itemcd}&s=S&d=1" alt="{$item.itemnm}" width="90" border="0" /></a></dt>
  <dd><a href="{$dirName}/item_{$item.itemcd}.html">{action->strTrimWidth str=$item.itemnm lmt=30}</a><br />
{if $smarty.const.NOT_DISPLAY_PRICE == 1}
{else}
  {if $item.lowprice==0}--{else}{$item.lowprice|number_format}円{/if}<br />
{/if}
{action->strTrimWidth str=$item.comment lmt=150}
</dd>
</dl>
{if $smarty.foreach.recommend.index % 2 == 1 && !$smarty.foreach.recommend.last}
</div><!--End of recommend-->
<div class="recommend">
{/if}
{/foreach}
</div><!--End of recommend-->
<!-- <div class="tolist"><a>おすすめ商品一覧</a></div> -->
</div><!--End of mainblock-->


<div class="mainblock">
<h3><span class="blockindex">お知らせ</span></h3>
<div class="info">
<dl>
{action->getOneDepoInfo assign=depoinfo}
{foreach from=$depoinfo item=item name=infolist}
  <dt>{$item.date}</dt>
  <dd><a href="{$dirName}/?action=general_portal_newsdetail&cd={$item.newscd}">{$item.title}</a></dd>
{/foreach}
</dl>
</div><!--End of info-->
</div><!--End of mainblock-->

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

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

{include file="footer.html"}
