<!--{*
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
*}-->
<script type="text/javascript">
// URLの表示非表示切り替え
function lfDispSwitch(id){
  var obj = document.getElementById(id);
  if (obj.style.display == 'none') {
    obj.style.display = '';
  } else {
    obj.style.display = 'none';
  }
}

// セレクトボックスのリストを移動
// (移動元セレクトボックスID, 移動先セレクトボックスID)
function fnMoveSelect(select, target) {
  $('#' + select).children().each(function() {
    if (this.selected) {
      $('#' + target).append(this);
      $(this).attr({selected: false});
    }
  });
  // IE7再描画不具合対策
  if ($.browser.msie && $.browser.version >= 7) {
    $('#' + select).hide();
    $('#' + select).show();
    $('#' + target).hide();
    $('#' + target).show();
  }
}

// target の子要素を選択状態にする
function selectAll(target) {
  $('#' + target).children().attr({selected: true});
}

</script>

<form name="form1" id="form1" method="post" action="?" enctype="multipart/form-data">
<!--{foreach key=key item=item from=$arrSearchHidden}-->
<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" />
<!--{/foreach}-->
<input type="hidden" name="mode" value="edit" />
<input type="hidden" name="image_key" value="" />
<input type="hidden" name="down_key" value="">
<input type="hidden" name="product_id" value="<!--{$arrForm.product_id}-->" />
<input type="hidden" name="product_class_id" value="<!--{$arrForm.product_class_id}-->" />
<input type="hidden" name="copy_product_id" value="<!--{$arrForm.copy_product_id}-->" />
<input type="hidden" name="anchor_key" value="" />
<!--{foreach key=key item=item from=$arrHidden}-->
<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" />
<!--{/foreach}-->
<div id="products" class="contents-main">
  <h2><!--コンテンツタイトル-->商品登録</h2>

  <table class="form">
    <tr>
      <th>商品ID</th>
      <td><!--{$arrForm.product_id}--></td>
    </tr>
    <tr>
      <th>商品名<span class="attention"> *</span></th>
      <td>
        <span class="attention"><!--{$arrErr.name}--></span>
        <input type="text" name="name" value="<!--{$arrForm.name|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr.name != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" size="60" class="box60" />
        <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
      </td>
    </tr>
    <tr>
      <th>商品カテゴリ<span class="attention"> *</span></th>
      <td>
        <span class="attention"><!--{$arrErr.category_id}--></span>
        <table class="layout">
          <tr>
            <td>
              <select name="category_id[]" id="category_id" style="<!--{if $arrErr.category_id != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}--> height: 120px; min-width: 200px;" onchange="" size="10" multiple>
              </select>
            </td>
            <td style="padding: 15px;">
              <input type="button" name="on_select" value="&nbsp;&nbsp;&lt;-&nbsp;登録&nbsp;&nbsp;" onClick="fnMoveSelect('category_id_unselect','category_id')" /><br /><br />
              <input type="button" name="un_select" value="&nbsp;&nbsp;削除&nbsp;-&gt;&nbsp;&nbsp;" onClick="fnMoveSelect('category_id','category_id_unselect')" />
            </td>
            <td>
              <select name="category_id_unselect[]" id="category_id_unselect" onchange="" size="10" style="height: 120px; min-width: 200px;" multiple>
                <!--{html_options values=$arrCatVal output=$arrCatOut selected=$arrForm.category_id}-->
              </select>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <th>公開・非公開<span class="attention"> *</span></th>
      <td>
        <input type="radio" name="status" value="1" <!--{if $arrForm.status == "1"}-->checked<!--{/if}--> />公開　
        <input type="radio" name="status" value="2" <!--{if $arrForm.status == "2"}-->checked<!--{/if}--> />非公開
      </td>
    </tr>
    <tr>
      <th>商品ステータス</th>
      <td>
        <!--{html_checkboxes name="product_status" options=$arrSTATUS selected=$arrForm.product_status}-->
      </td>
    </tr>
    <!--{if $tpl_nonclass == true}-->
    <tr>
      <th>商品種別<span class="attention"> *</span></th>
      <td>
        <input type="radio" name="product_type_id" value="<!--{$smarty.const.PRODUCT_TYPE_NORMAL}-->" <!--{if $arrForm.product_type_id == $smarty.const.PRODUCT_TYPE_NORMAL}-->checked<!--{/if}-->/>通常商品　
        <input type="radio" name="product_type_id" value="<!--{$smarty.const.PRODUCT_TYPE_DOWNLOAD}-->" <!--{if $arrForm.product_type_id == $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->checked<!--{/if}--> />ダウンロード商品
      </td>
    </tr>
    <tr>
      <th>ダウンロードファイル名<span class="attention"> *</span></th>
      <td>
        <span class="attention"><!--{$arrErr.down_filename}--></span>
        <input type="text" name="down_filename" value="<!--{$arrForm.down_filename|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr.down_filename != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->" size="60" class="box60" />
        <span class="red"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
      </td>
    </tr>
    <tr>
      <!--{assign var=key value="down_file"}-->
      <th>ダウンロード商品用ファイルアップロード<span class="attention"> *</span></th>
      <td>
        <span class="attention"><!--{$arrErr[$key]}--><!--{$arrErr.down_realfilename}--></span>
          <!--{if $arrForm.down_realfilename != ""}-->
            <!--{$arrForm.down_realfilename|escape}--><input type="hidden" name="down_realfilename" value="<!--{$arrForm.down_realfilename|escape}-->">
            <a href="" onclick="selectAll('category_id'); fnModeSubmit('delete_down', 'down_key', '<!--{$key}-->'); return false;">[ファイルの取り消し]</a><br>
          <!--{/if}-->
          <input type="file" name="down_file" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
          <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_down', 'down_key', '<!--{$key}-->')" value="アップロード"><BR>登録可能拡張子：<!--{$smarty.const.DOWNLOAD_EXTENSION}-->　(パラメータ DOWNLOAD_EXTENSION)
      </td>
    </tr>
    <tr>
      <th>商品コード<span class="attention"> *</span></th>
      <td>
        <span class="attention"><!--{$arrErr.product_code}--></span>
        <input type="text" name="product_code" value="<!--{$arrForm.product_code|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr.product_code != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" size="60" class="box60" />
        <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
      </td>
    </tr>
    <tr>
      <th><!--{$smarty.const.NORMAL_PRICE_TITLE}--></th>
      <td>
        <span class="attention"><!--{$arrErr.price01}--></span>
        <input type="text" name="price01" value="<!--{$arrForm.price01|escape}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PRICE_LEN}-->" style="<!--{if $arrErr.price01 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>円
        <span class="attention"> (半角数字で入力)</span>
      </td>
    </tr>
    <tr>
      <th><!--{$smarty.const.SALE_PRICE_TITLE}--><span class="attention"> *</span></th>
      <td>
        <span class="attention"><!--{$arrErr.price02}--></span>
        <input type="text" name="price02" value="<!--{$arrForm.price02|escape}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PRICE_LEN}-->" style="<!--{if $arrErr.price02 != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>円
        <span class="attention"> (半角数字で入力)</span>
      </td>
    </tr>
    <tr>
      <th>在庫数<span class="attention"> *</span></th>
      <td>
        <span class="attention"><!--{$arrErr.stock}--></span>
        <input type="text" name="stock" value="<!--{$arrForm.stock|escape}-->" size="6" class="box6" maxlength="<!--{$smarty.const.AMOUNT_LEN}-->" style="<!--{if $arrErr.stock != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>
        <input type="checkbox" name="stock_unlimited" value="1" <!--{if $arrForm.stock_unlimited == "1"}-->checked<!--{/if}--> onclick="fnCheckStockLimit('<!--{$smarty.const.DISABLED_RGB}-->');"/>無制限
      </td>
    </tr>
    <!--{/if}-->

    <tr>
      <th>商品送料</th>
      <td>
        <span class="attention"><!--{$arrErr.deliv_fee}--></span>
        <input type="text" name="deliv_fee" value="<!--{$arrForm.deliv_fee|escape}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PRICE_LEN}-->" style="<!--{if $arrErr.deliv_fee != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>円
        <span class="attention"> (半角数字で入力)</span>
        <!--{if $smarty.const.OPTION_PRODUCT_DELIV_FEE != 1}--><br /><span class="attention">※現在無効です</span> (パラメータ OPTION_PRODUCT_DELIV_FEE)<!--{/if}-->
      </td>
    </tr>
    <tr>
      <th>ポイント付与率<span class="attention"> *</span></th>
      <td>
        <span class="attention"><!--{$arrErr.point_rate}--></span>
        <input type="text" name="point_rate" value="<!--{$arrForm.point_rate|escape|default:$arrInfo.point_rate}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PERCENTAGE_LEN}-->" style="<!--{if $arrErr.point_rate != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>％
        <span class="attention"> (半角数字で入力)</span>
      </td>
    </tr>
    <tr>
      <th>発送日目安</th>
      <td>
        <span class="attention"><!--{$arrErr.deliv_date_id}--></span>
        <select name="deliv_date_id" style="<!--{$arrErr.deliv_date_id|sfGetErrorColor}-->">
          <option value="">選択してください</option>
          <!--{html_options options=$arrDELIVERYDATE selected=$arrForm.deliv_date_id}-->
        </select>
      </td>
    </tr>
    <tr>
      <th>購入制限</th>
      <td>
        <span class="attention"><!--{$arrErr.sale_limit}--></span>
        <input type="text" name="sale_limit" value="<!--{$arrForm.sale_limit|escape}-->" size="6" class="box6" maxlength="<!--{$smarty.const.AMOUNT_LEN}-->" style="<!--{if $arrErr.sale_limit != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"/>
        <span class="attention"> (半角数字で入力)</span>
      </td>
    </tr>
    <tr>
      <th>メーカー</th>
      <td>
        <span class="attention"><!--{$arrErr.maker_id}--></span>
        <select name="maker_id" style="<!--{$arrErr.maker_id|sfGetErrorColor}-->">
          <option value="">選択してください</option>
          <!--{html_options options=$arrMaker selected=$arrForm.maker_id}-->
        </select>
      </td>
    </tr>
    <tr>
      <th>メーカーURL</th>
      <td>
        <span class="attention"><!--{$arrErr.comment1}--></span>
        <input type="text" name="comment1" value="<!--{$arrForm.comment1|escape}-->" maxlength="<!--{$smarty.const.URL_LEN}-->" size="60" class="box60" style="<!--{$arrErr.comment1|sfGetErrorColor}-->" />
        <span class="attention"> (上限<!--{$smarty.const.URL_LEN}-->文字)</span>
      </td>
    </tr>
    <!--{*
    <tr>
      <th>成分</th>
      <td>
        <textarea name="comment2" cols="60" rows="8" class="area60" maxlength="<!--{$smarty.const.STEXT_LEN}-->"><!--{$arrForm.comment2|escape}--></textarea>
        <span class="attention"> (上限<!--{$smarty.const.LTEXT_LEN}-->文字)</span>
      </td>
    </tr>
    *}-->
    <tr>
      <th>検索ワード<br />※複数の場合は、カンマ( , )区切りで入力して下さい</th>
      <td>
        <span class="attention"><!--{$arrErr.comment3}--></span>
        <textarea name="comment3" cols="60" rows="8" class="area60" maxlength="<!--{$smarty.const.LLTEXT_LEN}-->" style="<!--{$arrErr.comment3|sfGetErrorColor}-->"><!--{$arrForm.comment3|escape}--></textarea><br />
        <span class="attention"> (上限<!--{$smarty.const.LLTEXT_LEN}-->文字)</span>
      </td>
    </tr>
    <tr>
      <th>備考欄(SHOP専用)</th>
      <td>
        <span class="attention"><!--{$arrErr.note}--></span>
        <textarea name="note" cols="60" rows="8" class="area60" maxlength="<!--{$smarty.const.LLTEXT_LEN}-->" style="<!--{$arrErr.note|sfGetErrorColor}-->"><!--{$arrForm.note|escape}--></textarea><br />
        <span class="attention"> (上限<!--{$smarty.const.LLTEXT_LEN}-->文字)</span>
      </td>
    </tr>
    <tr>
      <th>一覧-メインコメント<span class="attention"> *</span></th>
      <td>
        <span class="attention"><!--{$arrErr.main_list_comment}--></span>
        <textarea name="main_list_comment" maxlength="<!--{$smarty.const.MTEXT_LEN}-->" style="<!--{if $arrErr.main_list_comment != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->" cols="60" rows="8" class="area60"><!--{$arrForm.main_list_comment|escape}--></textarea><br />
        <span class="attention"> (上限<!--{$smarty.const.MTEXT_LEN}-->文字)</span>
      </td>
    </tr>
    <tr>
      <th>詳細-メインコメント<span class="attention">(タグ許可)*</span></th>
      <td>
        <span class="attention"><!--{$arrErr.main_comment}--></span>
        <textarea name="main_comment" value="<!--{$arrForm.main_comment|escape}-->" maxlength="<!--{$smarty.const.LLTEXT_LEN}-->" style="<!--{if $arrErr.main_comment != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->"  cols="60" rows="8" class="area60"><!--{$arrForm.main_comment|escape}--></textarea><br />
        <span class="attention"> (上限<!--{$smarty.const.LLTEXT_LEN}-->文字)</span>
      </td>
    </tr>
    <tr>
      <!--{assign var=key value="main_list_image"}-->
      <th>一覧-メイン画像<br />[<!--{$smarty.const.SMALL_IMAGE_WIDTH}-->×<!--{$smarty.const.SMALL_IMAGE_HEIGHT}-->]</th>
      <td>
        <a name="<!--{$key}-->"></a>
        <a name="main_image"></a>
        <a name="main_large_image"></a>
        <span class="attention"><!--{$arrErr[$key]}--></span>
        <!--{if $arrFile[$key].filepath != ""}-->
        <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" />　<a href="" onclick="selectAll('category_id'); fnModeSubmit('delete_image', 'image_key', '<!--{$key}-->'); return false;">[画像の取り消し]</a><br />
        <!--{/if}-->
        <input type="file" name="main_list_image" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
        <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_image', 'image_key', '<!--{$key}-->')" value="アップロード" />
      </td>
    </tr>
    <tr>
      <!--{assign var=key value="main_image"}-->
      <th>詳細-メイン画像<br />[<!--{$smarty.const.NORMAL_IMAGE_WIDTH}-->×<!--{$smarty.const.NORMAL_IMAGE_HEIGHT}-->]</th>
      <td>
        <span class="attention"><!--{$arrErr[$key]}--></span>
        <!--{if $arrFile[$key].filepath != ""}-->
        <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" />　<a href="" onclick="selectAll('category_id'); fnModeSubmit('delete_image', 'image_key', '<!--{$key}-->'); return false;">[画像の取り消し]</a><br />
        <!--{/if}-->
        <input type="file" name="main_image" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
        <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_image', 'image_key', '<!--{$key}-->')" value="アップロード" />
      </td>
    </tr>
    <tr>
      <!--{assign var=key value="main_large_image"}-->
      <th>詳細-メイン拡大画像<br />[<!--{$smarty.const.LARGE_IMAGE_WIDTH}-->×<!--{$smarty.const.LARGE_IMAGE_HEIGHT}-->]</th>
      <td>
        <span class="attention"><!--{$arrErr[$key]}--></span>
        <!--{if $arrFile[$key].filepath != ""}-->
        <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" />　<a href="" onclick="selectAll('category_id'); fnModeSubmit('delete_image', 'image_key', '<!--{$key}-->'); return false;">[画像の取り消し]</a><br />
        <!--{/if}-->
        <input type="file" name="<!--{$key}-->" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
        <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_image', 'image_key', '<!--{$key}-->')" value="アップロード" />
      </td>
    </tr>
  </table>

  <!--{* オペビルダー用 *}-->
  <!--{if "sfViewAdminOpe"|function_exists === TRUE}-->
  <!--{include file=`$smarty.const.MODULE_PATH`mdl_opebuilder/admin_ope_view.tpl}-->
  <!--{/if}-->

  <div class="btn">
    <button type="button" onclick="selectAll('category_id'); lfDispSwitch('sub_detail');"><span>サブ情報表示/非表示</span></button>
  </div>

  <!--{if $sub_find == true}-->
  <div id="sub_detail" style="">
  <!--{else}-->
  <div id="sub_detail" style="display:none">
  <!--{/if}-->
  <table class="form">
    <!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}-->
    <!--▼商品<!--{$smarty.section.cnt.iteration}-->-->
    <tr>
      <th>詳細-サブタイトル(<!--{$smarty.section.cnt.iteration}-->)</th>
      <!--{assign var=key value="sub_title`$smarty.section.cnt.iteration`"}-->
      <td>
        <span class="attention"><!--{$arrErr[$key]}--></span>
        <input type="text" name="sub_title<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrForm[$key]|escape}-->" size="60" class="box60" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"/>
        <span class="attention"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span>
      </td>
    </tr>
    <tr>
      <th>詳細-サブコメント(<!--{$smarty.section.cnt.iteration}-->)<span class="attention">(タグ許可)</span></th>
      <!--{assign var=key value="sub_comment`$smarty.section.cnt.iteration`"}-->
      <td>
        <span class="attention"><!--{$arrErr[$key]}--></span>
        <textarea name="sub_comment<!--{$smarty.section.cnt.iteration}-->" cols="60" rows="8" class="area60" maxlength="<!--{$smarty.const.LLTEXT_LEN}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"><!--{$arrForm[$key]|escape}--></textarea><br />
        <span class="attention"> (上限<!--{$smarty.const.LLTEXT_LEN}-->文字)</span>
      </td>
    </tr>
    <tr>
      <!--{assign var=key value="sub_image`$smarty.section.cnt.iteration`"}-->
      <th>詳細-サブ画像(<!--{$smarty.section.cnt.iteration}-->)<br />[<!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}-->×<!--{$smarty.const.NORMAL_SUBIMAGE_HEIGHT}-->]</th>
      <td>
        <a name="<!--{$key}-->"></a>
        <!--{assign var=largekey value="sub_large_image`$smarty.section.cnt.iteration`"}-->
        <a name="<!--{$largekey}-->"></a>
        <span class="attention"><!--{$arrErr[$key]}--></span>
        <!--{if $arrFile[$key].filepath != ""}-->
        <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" />　<a href="" onclick="selectAll('category_id'); fnModeSubmit('delete_image', 'image_key', '<!--{$key}-->'); return false;">[画像の取り消し]</a><br />
        <!--{/if}-->
        <input type="file" name="<!--{$key}-->" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"/>
        <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_image', 'image_key', '<!--{$key}-->')" value="アップロード" />
      </td>
    </tr>
    <tr>
      <!--{assign var=key value="sub_large_image`$smarty.section.cnt.iteration`"}-->
      <th>詳細-サブ拡大画像(<!--{$smarty.section.cnt.iteration}-->)<br />[<!--{$smarty.const.LARGE_SUBIMAGE_WIDTH}-->×<!--{$smarty.const.LARGE_SUBIMAGE_HEIGHT}-->]</th>
      <td>
        <span class="attention"><!--{$arrErr[$key]}--></span>
        <!--{if $arrFile[$key].filepath != ""}-->
        <img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrForm.name|escape}-->" />　<a href="" onclick="selectAll('category_id'); fnModeSubmit('delete_image', 'image_key', '<!--{$key}-->'); return false;">[画像の取り消し]</a><br />
        <!--{/if}-->
        <input type="file" name="<!--{$key}-->" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->"/>
        <input type="button" name="btn" onclick="selectAll('category_id'); fnModeSubmit('upload_image', 'image_key', '<!--{$key}-->')" value="アップロード" />
      </td>
    </tr>
    <!--▲商品<!--{$smarty.section.cnt.iteration}-->-->
    <!--{/section}-->
  </table>
  </div>

  <div class="btn">
    <button type="button" onclick="selectAll('category_id'); lfDispSwitch('recommend_select');"><span>関連商品表示/非表示</span></button>
  </div>

  <!--{if count($arrRecommend) > 0}-->
  <div id="recommend_select" style="">
  <!--{else}-->
  <div id="recommend_select" style="display:none">
  <!--{/if}-->
  <table class="form">
    <!--{if $smarty.const.OPTION_RECOMMEND == 1}-->
    <!--▼関連商品-->
    <!--{section name=cnt loop=$smarty.const.RECOMMEND_PRODUCT_MAX}-->
    <!--{assign var=recommend_no value="`$smarty.section.cnt.iteration`"}-->
    <tr>
      <!--{assign var=key value="recommend_id`$smarty.section.cnt.iteration`"}-->
      <!--{assign var=anckey value="recommend_no`$smarty.section.cnt.iteration`"}-->
      <th>関連商品(<!--{$smarty.section.cnt.iteration}-->)<br />
        <!--{if $arrRecommend[$recommend_no].product_id}-->
          <img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$arrRecommend[$recommend_no].main_list_image|sfNoImageMainList|escape}-->&width=65&height=65" alt="<!--{$arrRecommend[$recommend_no].name|escape}-->" />
        <!--{/if}-->
      </th>
      <td>
        <a name="<!--{$anckey}-->"></a>
        <input type="hidden" name="<!--{$key}-->" value="<!--{$arrRecommend[$recommend_no].product_id|escape}-->" />
        <input type="button" name="change" value="変更" onclick="selectAll('category_id'); win03('./product_select.php?no=<!--{$smarty.section.cnt.iteration}-->', 'search', '500', '500'); " />
        <!--{assign var=key value="recommend_delete`$smarty.section.cnt.iteration`"}-->
        <input type="checkbox" name="<!--{$key}-->" value="1" />削除<br />
        商品コード:<!--{$arrRecommend[$recommend_no].product_code_min}--><br />
        商品名:<!--{$arrRecommend[$recommend_no].name|escape}--><br />
        <!--{assign var=key value="recommend_comment`$smarty.section.cnt.iteration`"}-->
        <span class="attention"><!--{$arrErr[$key]}--></span>
        <textarea name="<!--{$key}-->" cols="60" rows="8" class="area60" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" ><!--{$arrRecommend[$recommend_no].comment|escape}--></textarea><br />
        <span class="attention"> (上限<!--{$smarty.const.LTEXT_LEN}-->文字)</span>
      </td>
    </tr>
    <!--{/section}-->
    <!--▲関連商品-->
    <!--{/if}-->
  </table>
  </div>

  <div class="btn">
    <!--{if count($arrSearchHidden) > 0}-->
    <!--▼検索結果へ戻る-->
    <button type="button" onClick="fnChangeAction('<!--{$smarty.const.URL_SEARCH_TOP}-->'); fnModeSubmit('search','',''); return false;"><span>検索画面に戻る</span></button>
    <!--▲検索結果へ戻る-->
    <!--{/if}-->
    <button type="submit" onClick="selectAll('category_id')"><span>確認ページへ</span></button>
  </div>
</div>
</form>
