{include file="header.html"}

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

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

{action->getBakurl assign=backurl}
{if $backurl!=''}
<div id="backlink" class="clearfix"><a href="{$backurl|escape}">&lt;&lt; 前の画面に戻る</a></div>
{/if}
<br />
<a name="item-title"></a>

<div id="pankuzu">
  <ul>
    {action->getTopicPath}
  </ul>
</div>


<div id="item">
  <h3>{$action.data.itemnm}&nbsp;{$action.data.variationnm}</h3>
  <h4>{$action.data.comment}</h4>
{if $smarty.const.USE_FREE_EXHIBIT===FALSE && !empty($action.data.seller)}
  <p>{$action.data.seller.itemexp|nl2br}</p>
{/if}

  <div class="itemspec">

  <div class="itemphoto">
    <a href="{$action.img_l}" target="_blank" title="{$action.data.itemnm}">
        <img src="{$action.img_m}" alt="{$action.data.itemnm}" border="0" width="300"/>
    </a>
    <p class="zoom">
      <a href="{$action.img_l}" target="_blank" title="{$action.data.itemnm}">拡大写真をみる</a>
    </p>
  </div>
  <!--End of itemphoto-->

  <div class="itemdata">
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <th>商品名：</th>
        <td>{$action.data.itemnm}</td>
      </tr>
{if $smarty.const.NOT_DISPLAY_PRICE == 1}
{else}
      <tr>
        <th>価格：</th>
        <td>{if $action.data.stock.sellingprice>0}{$action.data.stock.sellingprice|number_format}円{else}--{/if}</td>
      </tr>
{*** 出品者データの場合 ***}
{if $smarty.const.USE_FREE_EXHIBIT===FALSE && !empty($action.data.seller)}
      <tr>
        <th>送料：</th>
        <td>{$action.data.seller.souryouprc|number_format|default:0}円</td>
      </tr>
{*** 管理者データの場合 ***}
{else}
      <tr>
        <th>送料：</th>
        <td>
{if $action.data.stock.souryouprc < 0}
送料の詳細は<a href="{$dirName}/?action=help&pageid=pey" target="_blank">こちら</a>から
{elseif  $action.data.stock.souryouprc == 0}
無料
{else}
{$action.data.stock.souryouprc}
{/if}
        </td>
      </tr>
{/if}
{/if}

      <!-- 基本オプション情報 -->
{action->getBasicOption assign=basic_option}
{foreach from=$basic_option item="option" key="key" name="opt"}

{assign var="div" value=$smarty.foreach.opt.iteration|string_format:"%02s"}
{assign var="nm" value="basic_option$div"}
{if is_array($option.attributes)}
{assign var="c" value=$action.data.$nm}

{if $option.attributes.$c!=""}
      <tr>
        <th>{$option.name}：</th>
        <td>{$option.attributes.$c}</td>
      </tr>
{/if}

{else}

{if $action.data.$nm!=""}
      <tr>
        <th>{$option.name}：</th>
        <td>{$action.data.$nm}</td>
      </tr>
{/if}

{/if}

{/foreach}
      <!-- 基本オプション情報 -->

      <tr><td colspan="2">&nbsp;</td></tr>
      <!-- 詳細 -->
{if $action.data.makeritemcd != ""}
      <tr>
        <th>品番：</th>
        <td>{$action.data.makeritemcd}</td>
      </tr>
{/if}
{if $action.data.jancd != ""}
      <tr>
        <th>JANコード：</th>
        <td>{$action.data.jancd}</td>
      </tr>
{/if}
      <tr>
        <th>発売日：</th>
        <td>{$action.data.salestartdate|date_format:"%Y/%m/%d"|default:"&nbsp;"}</td>
      </tr>
      <tr>
        <th>コメント：</th>
        <td>{$action.data.struct_comment|nl2br|default:"&nbsp;"}</td>
      </tr>
      <!-- オプション情報 -->
{action->getStructOption assign=struct_option}
{foreach from=$struct_option item="option" key="key" name="opt"}

{assign var="div" value=$smarty.foreach.opt.iteration|string_format:"%02s"}
{assign var="nm" value="struct_option$div"}

{if is_array($option.attributes)}
{assign var="c" value=$action.data.$nm}

{if $option.attributes.$c!=""}
      <tr>
        <th>{$option.name}：</th>
        <td>{$option.attributes.$c}</td>
      </tr>
{/if}

{else}

{if $action.data.$nm!=""}
      <tr>
        <th>{$option.name}：</th>
        <td>{$action.data.$nm}</td>
      </tr>
{/if}

{/if}

{/foreach}
      <!-- オプション情報 -->
      <!-- 詳細 -->

      <tr>
        <th>アイテム：</th>
{foreach from=$action.genre item=g1 name=g}
        <td>
{foreach from=$g1 item=g2 name=k}
        <a href="{$scriptName}?action=general_itemview_itemlist&gnr={$g2.genrecd}">{$g2.genrenm}</a>
{if $smarty.foreach.k.last}
        <br />
{else}
        &gt;
{/if}
{/foreach}
        </td>
{if !$smarty.foreach.g.last}
      </tr>
      <tr>
        <th>&nbsp;</th>
{/if}
{/foreach}
      </tr>
      <tr>
        <th>タグ：</th>
{action->getTags assign=tag}
        <td>
{foreach from=$tag item=tags}
        <a href="{$scriptName}?action=general_itemview_itemlist&tag={$tags.tagnm|escape:'url'}">{$tags.tagnm|escape}</a>&nbsp;
{/foreach}
        </td>
      </tr>
      <tr>
        <th>商品タイプ：</th>
        <td>{if $action.dl}ダウンロード商品{else}一般商品{/if}</td>
      </tr>
{if $action.data.seller.sellernm}
      <tr>
        <th>商品の出品者：</th>
        <td><a href="{$dirName}?action=seller_infomation&cd={$action.data.seller.sellercd}">{$action.data.seller.sellernm}</a></td>
      </tr>
{/if}
    </table>

{if $smarty.const.NOT_DISPLAY_CARTIN == 1}
<p>&nbsp;</p>
{else}
{action->checkDate sdate=$action.data.salestartdate odate=$action.data.orderclosedate assign=check}
    <div class="cartin">
{if $check > 0 && $action.data.stock.reserveflg==1}
{* 予約 *}
{assign var="frm" value=true}
{assign var="btnsrc" value="img/cart_btn1.gif"}
{assign var="btnalt" value="カートへ入れる"}
      <h5>ただいま予約受付中！</h5>
      <p>価格：<span class="price">{if $action.data.stock.sellingprice>0}{$action.data.stock.sellingprice|number_format}円{else}--{/if}</span>（税込）</p>
{elseif $check == 0 && $action.data.stock.reserveflg==0}
{* 在庫あり *}
{assign var="frm" value=true}
{assign var="btnsrc" value="img/cart_btn1.gif"}
{assign var="btnalt" value="カートへ入れる"}
      {if $action.data.stock.sellingprice>0}<h5>すぐに買えます！</h5>{elseif $action.dl}<h5>無料です！</h5>
      {else}<h5>在庫なし</h5>{/if}
      <p>価格：<span class="price">{if $action.data.stock.sellingprice>0}{$action.data.stock.sellingprice|number_format}円{else}--{/if}</span>（税込）</p>
{else}
{* 予約終了 *}
{assign var="frm" value=false}
{assign var="btnsrc" value="img/cart_btn1.gif"}
{assign var="btnalt" value="カートへ入れる"}
    <h5>{$action.data.salestartdate|date_format:"%Y/%m/%d"} 発売！</h5>
      <p>価格：<span class="price">{if $action.data.stock.sellingprice>0}{$action.data.stock.sellingprice|number_format}円{else}--{/if}</span>（税込）</p>
      予約は終了しました<br />発売日までお待ちください<br />
{/if}

{if $action.data.stock.structcd!="" && $action.data.stock.stockcd!="" && $frm}
      <form method="get" action="{$dirName}">
        <input type="hidden" name="action" value="customer_itembuy_cart">
        <input type="hidden" name="mode" value="insert">
        <input type="hidden" name="itemcd" value="{$action.data.stock.itemcd}">
        <input type="hidden" name="structcd" value="{$action.data.stock.structcd}">
        <input type="hidden" name="stockcd" value="{$action.data.stock.stockcd}">
{if $action.dl}
        <input type="hidden" name="quantity" value="1">
{else}
        <label>個数：<input name="quantity" type="text" id="textfield" value="1" size="4" /></label>
{/if}
        <input type="image" src="{$btnsrc}" alt="{$btnalt}" />
      </form>
{else}
      <input type="image" src="img/cart_btn3.gif" alt="在庫なし" disabled>
      <!-- <input type="image" src="{$btnsrc}" alt="{$btnalt}" disabled> -->
{/if}
    </div>
    <!--End of cartin-->


{if $action.dl===false || $smarty.const.MY_ITEM_ONLY_EXHIBIT}
{if $smarty.const.USE_FUNCTIONAL_EXHIBIT && $smarty.const.USE_EXHIBIT_BTN}
{action->checkExhibit salestartdate=$action.data.salestartdate assign=chkexhibit}
{if $action.status.scd && $chkexhibit}
{if !$smarty.const.MY_ITEM_ONLY_EXHIBIT || $smarty.const.MY_ITEM_ONLY_EXHIBIT && $action.status.scd == $action.data.sellercd}{* 自分の出品した商品のみ *}
    <div class="entry">
<!--      <p><a href="#">○点の新品/中古商品を見る ￥00,000より</a></p> -->
      <input type="image" src="img/sell_btn.gif" alt="この商品を出品する" width="108" height="20" onclick="location.href='{$dirName}?action=seller_itemexhibit_register_input&c={$action.data.itemcd}&sc={$action.data.structcd}'; return false;" />
      <br />
    </div>
    <!--End of entry-->
{/if}
{/if}
{/if}
{/if}

{/if} {*** NOT_DISPLAY_CARTIN ***}

{auth->checkAuth assign=check}
{if $check}
    <p class="bookmark"><a href="{$scriptName}?action=customer_itemattribute_watch_complete&kubun=1&itemcd={$action.data.itemcd}&from={$action.from}">お気に入りへ</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="{$scriptName}?action=help&pageid=favorite&from=seller" target="_blank">各機能のご説明はこちら</a>
    </p>
    <p class="bookmark"><a href="{$scriptName}?action=customer_itemattribute_tag_input&cd={$action.data.itemcd}&ac=item">タグを登録する</a></p>
    <p class="review"><a href="{$scriptName}?action=customer_itemattribute_review_input&itemcd={$action.data.itemcd}">レビューを書く</a></p>
{else}
	<p>下記の機能をご利用いただくには、会員登録が必要です。<br />登録無料。会費無料。ぜひご登録ください。<br /></p>
    <p class="bookmark"><a>お気に入りへ</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="{$scriptName}?action=help&pageid=favorite&from=seller" target="_blank">各機能のご説明はこちら</a></p>
    <p class="bookmark"><a>タグを書く</a></p>
    <p class="review"><a>レビューを書く</a></p>
{/if}
  </div>
  <!--End of itemdata-->

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


  <div class="freespace">
    <p>{action->getItemexp|nl2br}</p>
  </div>
  <!--End of freespace-->

{action->getItemMovie cd=$action.data.itemcd sc=$action.data.structcd assign=flv}
{if $flv!=""}
  <div class="itemetc">
    <h3><span>商品紹介</span></h3>
    <br />
    {$flv}
  </div>
  <!--End of Moviespace-->
  <br />
{/if}


{if $smarty.const.USE_FUNCTIONAL_EXHIBIT && $smarty.const.USE_FREE_EXHIBIT && count($action.selldata) > 0}
  <div class="itemetc">
    <h3><span>出品商品一覧</span></h3>
    <div class="selling">
      <table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th scope="col">商品価格</th>
          <th scope="col">コンディション</th>
          <th scope="col">出品者情報</th>
          <th scope="col">購入する</th>
        </tr>
{foreach from=$action.selldata item=selldata}
        <tr>
          <td class="price">{$selldata.sellingprice|number_format}円</td>
          <td class="condition">{$selldata.conditionnm}</td>
          <td class="sellinfo">
            <p><strong>出品者：</strong>{$selldata.sellernm}</p>
            <p><strong>送料：</strong>{$selldata.souryouprc|number_format|default:0}円</p>
            <p><strong>コメント：</strong>{$selldata.itemexp|nl2br}</p>
          </td>
          <td>
            <a href="{$dirName}/?action=customer_itembuy_cart&mode=insert&itemcd={$selldata.itemcd}&structcd={$selldata.structcd}&stockcd={$selldata.stockcd}"><img src="img/cart_btn1.gif" alt="カートに入れる" width="116" height="24" /></a>
          </td>
        </tr>
{/foreach}
      </table>
    </div>
    <!--End of selling-->
  </div>
  <!--End of itemetc-->
{/if}


{if $action.linkdata}
  <div class="itemetc">
    <h3><span>バリエーション</span></h3>
    <div class="variation">
{foreach from=$action.linkdata item=item name=link}
{if $smarty.foreach.link.index != 0 && $smarty.foreach.link.index % 4 == 0}
    </div>
    <!--End of variation-->
    <div class="variation">
{/if}
      <dl>
        <dt>
          <a href="{$dirName}/item_{$item.itemcd}-{$item.structcd}.html">
            <img src="{action->checkVariationImg cd=$item.itemcd scd=$item.structcd}" alt="{$item.itemnm}" width="120" />
          </a>
        </dt>
        <dd><a href="{$dirName}/item_{$item.itemcd}-{$item.structcd}.html">{$item.variationnm}</a><br />
        {$item.struct_comment}<br />
        {$item.stock.sellingprice}

		{if $item.stock.structcd!="" && $item.stock.stockcd!=""}円{/if}<br />

{if $item.stock.structcd!="" && $item.stock.stockcd!=""}
        <form method="get" action="{$dirName}">
          <input type="hidden" name="action" value="customer_itembuy_cart">
          <input type="hidden" name="mode" value="insert">
          <input type="hidden" name="itemcd" value="{$item.stock.itemcd}">
          <input type="hidden" name="structcd" value="{$item.stock.structcd}">
          <input type="hidden" name="stockcd" value="{$item.stock.stockcd}">
          <input type="image" src="img/cart_btn2.gif" alt="カートへ入れる" />
        </form>
{else}
        <input type="image" src="img/cart_btn3.gif" alt="在庫なし" disabled>
        <!--  <input type="image" src="img/cart_btn2.gif" alt="カートへ入れる" disabled> -->
{/if}
        </dd>
      </dl>
{/foreach}
    </div>
    <!--End of variation-->
        <!-- <div class="tolist"><a href="#">関連商品を見る</a></div> -->
  </div>
  <!--End of itemetc-->
{/if}


  <div class="itemetc">
    <h3><span>レビュー</span></h3>
    <div class="review">
{if $action.review_cnt == 0}
      この商品のレビューはまだありません
{else}
{foreach from=$action.review_list item=review}
      <dl>
        <dt><span style="color:#f00;">{section name=userrank loop=5}{if $smarty.section.userrank.iteration <= $review.rankingrate}★{else}☆{/if}{/section}</span></dt>
        <dd><p>by <a>{if $review.nicknm != ""}{$review.nicknm}{else}{$review.lastnm}{$review.firstnm}{/if}</a>　{$review.createdate|date_format:"%Y.%m.%d"}</p>
        <p>{$review.comment|nl2br}</p></dd>
{/foreach}
      </dl>
{/if}
    </div>
    <!--End of review-->
{if $check}
    <div class="tolist"><a href="{$scriptName}?action=customer_itemattribute_review_input&itemcd={$action.data.itemcd}">レビューを書く</a></div>
{else}
    <div class="tolist"><a>レビューを書く</a></div>
{/if}
  </div>
  <!--End of itemetc-->

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

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

{include file="sidenavi.html" genrecd=$action.gnr}

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

{literal}
<!-- Google Code for purchase Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 1057312265;
var google_conversion_language = "ja";
var google_conversion_format = "1";
var google_conversion_color = "FFFFFF";
if (1.0) {
  var google_conversion_value = 1.0;
}
var google_conversion_label = "purchase";
//-->
</script>
<script language="JavaScript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height=1 width=1 border=0 src="http://www.googleadservices.com/pagead/conversion/1057312265/imp.gif?value=1.0&label=purchase&script=0">
</noscript>
{/literal}

{include file="footer.html"}
