| 1 | <!--{* |
---|
| 2 | /* |
---|
| 3 | * This file is part of EC-CUBE |
---|
| 4 | * |
---|
| 5 | * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved. |
---|
| 6 | * |
---|
| 7 | * http://www.lockon.co.jp/ |
---|
| 8 | * |
---|
| 9 | * This program is free software; you can redistribute it and/or |
---|
| 10 | * modify it under the terms of the GNU General Public License |
---|
| 11 | * as published by the Free Software Foundation; either version 2 |
---|
| 12 | * of the License, or (at your option) any later version. |
---|
| 13 | * |
---|
| 14 | * This program is distributed in the hope that it will be useful, |
---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 17 | * GNU General Public License for more details. |
---|
| 18 | * |
---|
| 19 | * You should have received a copy of the GNU General Public License |
---|
| 20 | * along with this program; if not, write to the Free Software |
---|
| 21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
| 22 | */ |
---|
| 23 | *}--> |
---|
| 24 | <h2>商品規格登録</h2> |
---|
| 25 | <form name="form1" id="form1" method="post" action="" enctype="multipart/form-data"> |
---|
| 26 | <!--{foreach key=key item=item from=$arrSearchHidden}--> |
---|
| 27 | <input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" /> |
---|
| 28 | <!--{/foreach}--> |
---|
| 29 | <input type="hidden" name="mode" value="edit" /> |
---|
| 30 | <input type="hidden" name="product_id" value="<!--{$tpl_product_id}-->" /> |
---|
| 31 | <input type="hidden" name="pageno" value="<!--{$tpl_pageno}-->" /> |
---|
| 32 | <input type="hidden" name="down_key" value=""> |
---|
| 33 | <!--{foreach key=key item=item from=$arrHidden}--> |
---|
| 34 | <input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" /> |
---|
| 35 | <!--{/foreach}--> |
---|
| 36 | <div id="products" class="contents-main"> |
---|
| 37 | |
---|
| 38 | <table> |
---|
| 39 | <tr> |
---|
| 40 | <th>商品名</th> |
---|
| 41 | <td><!--{$arrForm.product_name|escape}--></td> |
---|
| 42 | </tr> |
---|
| 43 | <tr> |
---|
| 44 | <th>規格1<span class="attention">*</span></th> |
---|
| 45 | <td> |
---|
| 46 | <!--{if $arrErr.select_class_id1}--> |
---|
| 47 | <span class="attention"><!--{$arrErr.select_class_id1}--></span> |
---|
| 48 | <!--{/if}--> |
---|
| 49 | <select name="select_class_id1"> |
---|
| 50 | <option value="">選択してください</option> |
---|
| 51 | <!--{html_options options=$arrClass selected=$arrForm.select_class_id1}--> |
---|
| 52 | </select> |
---|
| 53 | </td> |
---|
| 54 | </tr> |
---|
| 55 | <tr> |
---|
| 56 | <th>規格2</th> |
---|
| 57 | <td> |
---|
| 58 | <!--{if $arrErr.select_class_id2}--> |
---|
| 59 | <span class="attention"><!--{$arrErr.select_class_id2}--></span> |
---|
| 60 | <!--{/if}--> |
---|
| 61 | <select name="select_class_id2"> |
---|
| 62 | <option value="">選択してください</option> |
---|
| 63 | <!--{html_options options=$arrClass selected=$arrForm.select_class_id2}--> |
---|
| 64 | </select> |
---|
| 65 | </td> |
---|
| 66 | </tr> |
---|
| 67 | </table> |
---|
| 68 | <div class="btn"> |
---|
| 69 | <button type="button" onclick="fnChangeAction('<!--{$smarty.const.URL_SEARCH_TOP}-->'); fnModeSubmit('search','',''); return false;" ><span>検索結果へ戻る</span></button> |
---|
| 70 | <button type="button" onclick="fnModeSubmit('disp','','')"><span>表示する</span></button> |
---|
| 71 | <!--{if count($arrClassCat) > 0}--> |
---|
| 72 | <button type="button" onclick="fnModeSubmit('delete','','');"><span>削除する</span></button> |
---|
| 73 | <!--{/if}--> |
---|
| 74 | </div> |
---|
| 75 | |
---|
| 76 | <!--{if count($arrClassCat) > 0}--> |
---|
| 77 | |
---|
| 78 | <!--{foreach item=item name=i from=$arrClassCat}--> |
---|
| 79 | <!--{if $smarty.foreach.i.first}--> |
---|
| 80 | <!--{assign var=cnt value=$smarty.foreach.i.total}--> |
---|
| 81 | <!--{/if}--> |
---|
| 82 | <!--{/foreach}--> |
---|
| 83 | |
---|
| 84 | <div class="btn"> |
---|
| 85 | <button type="button" onclick="fnAllCheck(); return false;"><span>全選択</span></button> |
---|
| 86 | <button type="button" onclick="fnAllUnCheck(); return false;"><span>全解除</span></button> |
---|
| 87 | <button type="button" onclick="fnCopyValue('<!--{$cnt}-->', '<!--{$smarty.const.DISABLED_RGB}-->'); return false;"><span>一行目のデータをコピーする</span></button> |
---|
| 88 | </div> |
---|
| 89 | |
---|
| 90 | <!--{assign var=class_id1 value=$arrForm.class_id1}--> |
---|
| 91 | <!--{assign var=class_id2 value=$arrForm.class_id2}--> |
---|
| 92 | <input type="hidden" name="class_id1" value="<!--{$class_id1}-->" /> |
---|
| 93 | <input type="hidden" name="class_id2" value="<!--{$class_id2}-->" /> |
---|
| 94 | <table class="list"> |
---|
| 95 | <tr> |
---|
| 96 | <th>登録</th> |
---|
| 97 | <th>規格1(<!--{$arrClass[$class_id1]|default:"未選択"}-->)</th> |
---|
| 98 | <th>規格2(<!--{$arrClass[$class_id2]|default:"未選択"}-->)</th> |
---|
| 99 | <th>商品コード</th> |
---|
| 100 | <th>在庫数<span class="attention">*</span></th> |
---|
| 101 | <th><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(円)</th> |
---|
| 102 | <th><!--{$smarty.const.SALE_PRICE_TITLE}-->(円)<span class="attention">*</span></th> |
---|
| 103 | <th>実商品・ダウンロード<span class="attention"> *</span></th> |
---|
| 104 | <th>ダウンロードファイル名<BR><span class="red"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span></th> |
---|
| 105 | <th>ダウンロード商品用ファイルアップロード<BR>登録可能拡張子:<!--{$smarty.const.DOWNLOAD_EXTENSION}--> (パラメータ DOWNLOAD_EXTENSION)</th> |
---|
| 106 | </tr> |
---|
| 107 | <!--{section name=cnt loop=$arrClassCat}--> |
---|
| 108 | <!--{assign var=key value="error:`$smarty.section.cnt.iteration`"}--> |
---|
| 109 | <!--{if $arrErr[$key] != ""}--> |
---|
| 110 | <tr> |
---|
| 111 | <td colspan="8"><span class="attention"><!--{$arrErr[$key]}--></span></td> |
---|
| 112 | </tr> |
---|
| 113 | <!--{/if}--> |
---|
| 114 | <tr > |
---|
| 115 | <!--{assign var=key value="check:`$smarty.section.cnt.iteration`"}--> |
---|
| 116 | <td align="center"> |
---|
| 117 | <!--{assign var=id value="product_class_id:`$smarty.section.cnt.iteration`"}--> |
---|
| 118 | <input type="hidden" name="classcategory_id1:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].classcategory_id1}-->" /> |
---|
| 119 | <input type="hidden" name="classcategory_id2:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].classcategory_id2}-->" /> |
---|
| 120 | <input type="hidden" name="name1:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].name1}-->" /> |
---|
| 121 | <input type="hidden" name="name2:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].name2}-->" /> |
---|
| 122 | <input type="hidden" name="product_class_id:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrForm[$id]}-->" /> |
---|
| 123 | <input type="checkbox" name="check:<!--{$smarty.section.cnt.iteration}-->" value="1" <!--{if $arrForm[$key] == 1}-->checked="checked"<!--{/if}-->> |
---|
| 124 | </td> |
---|
| 125 | <td><!--{$arrClassCat[cnt].name1}--></td> |
---|
| 126 | <td><!--{$arrClassCat[cnt].name2}--></td> |
---|
| 127 | <!--{assign var=key value="product_code:`$smarty.section.cnt.iteration`"}--> |
---|
| 128 | <td align="center"><input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.STEXT_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->></td> |
---|
| 129 | <!--{assign var=key value="stock:`$smarty.section.cnt.iteration`"}--> |
---|
| 130 | <!--{assign var=chkkey value="stock_unlimited:`$smarty.section.cnt.iteration`"}--> |
---|
| 131 | <td align="center"> |
---|
| 132 | <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.AMOUNT_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->> |
---|
| 133 | <!--{assign var=key value="stock_unlimited:`$smarty.section.cnt.iteration`"}--> |
---|
| 134 | <input type="checkbox" name="<!--{$key}-->" value="1" <!--{if $arrForm[$key] == "1"}-->checked<!--{/if}--> onClick="fnCheckStockNoLimit('<!--{$smarty.section.cnt.iteration}-->','<!--{$smarty.const.DISABLED_RGB}-->');"/>無制限 |
---|
| 135 | </td> |
---|
| 136 | <!--{assign var=key value="price01:`$smarty.section.cnt.iteration`"}--> |
---|
| 137 | <td align="center"><input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PRICE_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->></td> |
---|
| 138 | <!--{assign var=key value="price02:`$smarty.section.cnt.iteration`"}--> |
---|
| 139 | <td align="center"><input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PRICE_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->></td> |
---|
| 140 | <td> |
---|
| 141 | <!--{assign var=key value="down:`$smarty.section.cnt.iteration`"}--> |
---|
| 142 | <input type="radio" name="<!--{$key}-->" value="1" <!--{if $arrForm[$key] == "1"}-->checked<!--{/if}-->/>実商品 |
---|
| 143 | <input type="radio" name="<!--{$key}-->" value="2" <!--{if $arrForm[$key] == "2"}-->checked<!--{/if}--> />ダウンロード |
---|
| 144 | </td> |
---|
| 145 | <td> |
---|
| 146 | <!--{assign var=key value="down_filename:`$smarty.section.cnt.iteration`"}--> |
---|
| 147 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 148 | <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr[$key] != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->" size="60" class="box60" /> |
---|
| 149 | </td> |
---|
| 150 | <!--{assign var=key value="down_realfilename:`$smarty.section.cnt.iteration`"}--> |
---|
| 151 | <td> |
---|
| 152 | <span class="attention"><!--{$arrErr[$key]}--></span> |
---|
| 153 | <!--{if $arrForm[$key] != ""}--> |
---|
| 154 | <!--{$arrForm[$key]|escape}--><input type="hidden" name="<!--{$key}-->" value="<!--{$arrForm[$key]|escape}-->"> |
---|
| 155 | <a href="" onclick="fnModeSubmit('delete_down', 'down_key', '<!--{$key}-->'); return false;">[ファイルの取り消し]</a><br> |
---|
| 156 | <!--{/if}--> |
---|
| 157 | <input type="file" name="<!--{$key}-->" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" /> |
---|
| 158 | <input type="button" name="btn" onclick="fnModeSubmit('upload_down', 'down_key', '<!--{$key}-->')" value="アップロード"> |
---|
| 159 | </td> |
---|
| 160 | </tr> |
---|
| 161 | <!--{/section}--> |
---|
| 162 | </table> |
---|
| 163 | |
---|
| 164 | <div class="btn"><button type="submit"><span>確認ページへ</span></button></div> |
---|
| 165 | |
---|
| 166 | <!--{/if}--> |
---|
| 167 | |
---|
| 168 | </div> |
---|
| 169 | </form> |
---|