{include file="admin/header.html"}
{include file="admin/gnavi.html"}

<div id="container">

{include file="admin/menu/submenu_item.html"}

<!-- ↓段組み　メイン側 -->
<div id="main">

<form action="admin.php">
  <input type="hidden" id="ac" name="action" value="">
  <input type="hidden" name="preitemcd" value="{$action.result.preitemcd}">
  <input type="hidden" id="t" name="itemtitle" value="{$action.itemtitle}">
  <input type="hidden" name="from" value="{$action.from}">
  
  <table border="0" cellspacing="0" cellpadding="0" class="search-box">
    <tr>
      <td align="right">
          
          <input type="submit" name="dispatch_admin_itemmanage_preitem_accept" value="承認">
          {if $action.result.download == 1}<input type="submit" name="dispatch_admin_itemmanage_preitem_download" value="ダウンロード">{/if}
          <input type="submit" onClick="document.getElementById('ac').value='admin_itemmanage_preitem_list';" value="一覧画面へ">
       </td>
    </tr>
  </table>
        
  
  <!-- ↓画像、項目などの内容 --> 

  <!-- ↓画像 --> 
<table border="0" cellspacing="0" cellpadding="0" style="width:680px;">
      <tr>
        <td style="text-align:center;">
          <img src="img.php?c={$action.result.preitemcd}&amp;s=S&amp;d=9" alt="画像小" title="画像小"></td>
      </tr>
      <tr>
        <td style="text-align:center;">
          <a target="_blank" href="img.php?c={$action.result.preitemcd}&amp;s=L&amp;d=9" title="画像大">画像大</a>
          / 
          <a target="_blank" href="img.php?c={$action.result.preitemcd}&amp;s=M&amp;d=9" title="画像中">画像中</a>
          </td>
      </tr>
    </table>

  <!-- ↑画像 --> 
  <!-- ↓項目（上） --> 

<table border="0" cellspacing="0" cellpadding="0" class="hyou">
 	  <tr><td colspan="3"><h4>基本情報</h4></td></tr>

      <tr>
        <th align="left">販売方法</th>
        <td align="left">{if $action.result.download == 0}一般販売{else}ダウンロード{/if}</td>
      </tr>
      <tr>
        <th align="left">仮品目コード</th>
        <td align="left">{$action.result.preitemcd}</td>
      </tr>
      <tr>
        <th align="left">タイトル</th>
        <td align="left" colspan="2">{$action.result.itemnm|escape}</td>
      </tr>
      <tr>
        <th align="left">タイトルかな</th>
        <td align="left" colspan="2">{$action.result.itemnmkana|escape}</td>
      </tr>
       <tr>
        <th align="left">ジャンル</th>
        <td align="left" class="reference4" colspan="5">
{foreach from=$action.genre item=val key=key name=g}
  
    {$val.genrenm}
    {if $smarty.foreach.g.last}
      <br />
    {else}
      &nbsp;&gt;&nbsp;
    {/if}
{/foreach}
        </td>
      </tr>
      <tr>
        <th align="left">商品説明</th>
        <td align="left" colspan="2">{$action.result.itemexp|escape}</td>
      </tr>

      <tr>
        <th align="left">お店のコメント</th>
        <td align="left" colspan="2">{$action.result.web_comment|nl2br}</td>
      </tr>
      
      <tr>
        <th align="left">公開日</th>
        <td align="left" colspan="2">{$action.result.releasedate|replace:"-":"/"}
        {if (strtotime($action.result.releasedate) > $smarty.now) 
	  OR ($action.result.releasedate == "") 
	  OR ((!strtotime($action.result.releasedate))
	  AND (strpos($action.result.releasedate, '1') !== 0))}
	  <span class="red">(非公開)</span>
	{/if}
        </td>
      </tr>
      
<!-- オプション情報 -->
{foreach from=$action.basic_option item="option" key="key" name="opt"}
      <tr>
        <th align="left">{$option.name}</th>
{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.result.$nm}
        <td align="left"  colspan="2">{$option.attributes.$c}</td>
{else}
        <td align="left"  colspan="2">{$action.result.$nm|escape}</td>
{/if}
      </tr>
{/foreach}

    </table>
  <!-- ↑項目（上） --> 


  <!-- ↑画像、項目などの内容 -->  

  
  <table border="0" cellspacing="0" cellpadding="0" class="search-box">
    <tr>
      <td align="right">
          <input type="submit" name="dispatch_admin_itemmanage_preitem_accept" value="承認">
          {if $action.result.download == 1}<input type="submit" name="dispatch_admin_itemmanage_preitem_download" value="ダウンロード">{/if}
          <input type="submit" onClick="document.getElementById('ac').value='admin_itemmanage_preitem_list';" value="一覧画面へ">
       </td>
    </tr>
  </table>  
  
  
</form>

<div class="pagetop" title="ページトップへ"><a href="#top">ページトップへ</a></div>

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

<div class="cr"></div>
</div>
<!--End of container-->

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