Warning: Can't use blame annotator:
svn blame failed on branches/version-2_5-dev/data/Smarty/templates/admin/products/product_class.tpl: バイナリファイル 'file:///home/svn/open/branches/version-2_5-dev/data/Smarty/templates/admin/products/product_class.tpl' に対しては blame で各行の最終変更者を計算できません 195004

source: branches/version-2_5-dev/data/Smarty/templates/admin/products/product_class.tpl @ 20612

Revision 20612, 14.5 KB checked in by nanasess, 13 years ago (diff)

#991 (商品規格登録での不具合)

  • r20595 の続き. 入力チェックを実装
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
RevLine 
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<script type="text/javascript">//<![CDATA[
25$(function() {
26    $('input[id^=stock_unlimited_]').each(function() {
27        var index = $(this).attr('id').replace(/^stock_unlimited_/ig, '');
28        var checked = $(this).attr('checked');
29
30        if (checked) {
31            $('#stock_' + index)
32                .attr('readonly', true)
33                .css('background-color', '<!--{$smarty.const.DISABLED_RGB}-->');
34        }
35    });
36
37    $('input[id^=stock_unlimited_]').change(function() {
38        var index = $(this).attr('id').replace(/^stock_unlimited_/ig, '');
39        var checked = $(this).attr('checked');
40
41        if (checked) {
42            $('#stock_' + index)
43                .attr('readonly', true)
44                .css('background-color', '<!--{$smarty.const.DISABLED_RGB}-->');
45        } else {
46            $('#stock_' + index)
47                .attr('readonly', false)
48                .css('background-color', '');
49        }
50    });
51});
52//]]>
53</script>
54<h2>商品規格登録</h2>
55<form name="form1" id="form1" method="post" action="" enctype="multipart/form-data">
56<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
57<!--{foreach key=key item=item from=$arrSearchHidden}-->
58    <!--{if is_array($item)}-->
59        <!--{foreach item=c_item from=$item}-->
60        <input type="hidden" name="<!--{$key|h}-->[]" value="<!--{$c_item|h}-->" />
61        <!--{/foreach}-->
62    <!--{else}-->
63        <input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->" />
64    <!--{/if}-->
65<!--{/foreach}-->
66<input type="hidden" name="mode" value="edit" />
67<input type="hidden" name="product_id" value="<!--{$arrForm.product_id.value|h}-->" />
68<input type="hidden" name="down_key" value="">
69<input type="hidden" name="total" value="<!--{$arrForm.total.value|h}-->" />
70<!--{* foreach key=name item=item from=$arrHidden *}-->
71<input type="hidden" name="<!--{$name}-->" value="<!--{$item|h}-->" />
72<!--{* /foreach *}-->
73<div id="products" class="contents-main">
74
75    <table>
76        <tr>
77            <th>商品名</th>
78            <td><!--{$arrForm.product_name.value|h}--></td>
79        </tr>
80        <tr>
81            <th>規格1<span class="attention">*</span></th>
82            <td>
83                <!--{assign var=key value="select_class_id1"}-->
84                <!--{if $arrErr[$key]}-->
85                <span class="attention"><!--{$arrErr[$key]}--></span>
86                <!--{/if}-->
87
88                <select name="<!--{$key}-->">
89                    <option value="">選択してください</option>
90                    <!--{html_options options=$arrClass selected=$arrForm[$key].value}-->
91                </select>
92            </td>
93        </tr>
94        <tr>
95            <th>規格2</th>
96            <td>
97                <!--{assign var=key value="select_class_id2"}-->
98                <!--{if $arrErr[$key]}-->
99                <span class="attention"><!--{$arrErr[$key]}--></span>
100                <!--{/if}-->
101                <select name="<!--{$key}-->">
102                    <option value="">選択してください</option>
103                    <!--{html_options options=$arrClass selected=$arrForm[$key].value}-->
104                </select>
105            </td>
106        </tr>
107    </table>
108    <div class="btn-area">
109        <ul>
110            <li><a class="btn-action" href="javascript:;" onclick="fnChangeAction('<!--{$smarty.const.ADMIN_PRODUCTS_URLPATH}-->'); fnModeSubmit('search','',''); return false;" ><span class="btn-prev">検索結果へ戻る</span></a></li>
111            <li><a class="btn-action" href="javascript:;" onclick="fnModeSubmit('disp','',''); return false;"><span class="btn-next">表示する</span></a></li>
112        <!--{if $arrForm.total.value > 0}-->
113            <li><a class="btn-action" href="javascript:;" onclick="fnModeSubmit('delete','',''); return false;"><span class="btn-next">削除する</span></a></li>
114        <!--{/if}-->
115        </ul>
116    </div>
117
118    <!--{if $arrForm.total.value > 0}-->
119
120    <!--{foreach item=item name=i from=$arrClassCat}-->
121        <!--{if $smarty.foreach.i.first}-->
122            <!--{assign var=cnt value=$smarty.foreach.i.total}-->
123        <!--{/if}-->
124    <!--{/foreach}-->
125
126    <div class="list-info clearfix">
127        <div class="btn"><a class="btn-normal" href="javascript:;" onclick="fnCopyValue('<!--{$cnt}-->', '<!--{$smarty.const.DISABLED_RGB}-->'); return false;"><span>一行目のデータをコピーする</span></a></div>
128        <p><span class="bold">アップロード可能な拡張子:</span><!--{$smarty.const.DOWNLOAD_EXTENSION}-->(パラメータ DOWNLOAD_EXTENSION)</p>
129    </div>
130
131    <!--{assign var=key1 value="class_id1"}-->
132    <!--{assign var=key2 value="class_id2"}-->
133    <!--{assign var=class_id1 value=$arrForm[$key1].value|h}-->
134    <!--{assign var=class_id2 value=$arrForm[$key2].value|h}-->
135    <input type="hidden" name="<!--{$key1}-->" value="<!--{$class_id1}-->" />
136    <input type="hidden" name="<!--{$key2}-->" value="<!--{$class_id2}-->" />
137    <!--{if $arrErr.check_empty}-->
138        <span class="attention"><!--{$arrErr.check_empty}--></span>
139    <!--{/if}-->
140
141    <table class="list" width="900">
142        <colgroup width="5%">
143        <colgroup width="9%">
144        <colgroup width="9%">
145        <colgroup width="9%">
146        <colgroup width="10%">
147        <colgroup width="10%">
148        <colgroup width="10%">
149        <colgroup width="10%">
150        <colgroup width="8%">
151        <colgroup width="8%">
152        <colgroup width="8%">
153        <tr>
154            <th><input type="checkbox" onclick="fnAllCheck(this, 'input[name^=check]')" id="allCheck" /> <label for="allCheck"><br>登録</label></th>
155            <th>規格1<br>(<!--{$arrClass[$class_id1]|default:"未選択"|h}-->)</th>
156            <th>規格2<br>(<!--{$arrClass[$class_id2]|default:"未選択"|h}-->)</th>
157            <th>商品コード</th>
158            <th>在庫数<span class="attention">*</span></th>
159            <th><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(円)</th>
160            <th><!--{$smarty.const.SALE_PRICE_TITLE}-->(円)<span class="attention">*</span></th>
161            <th>商品種別<span class="attention">*</span></th>
162            <th>ダウンロード<br>ファイル名<span class="red"><br>上限<!--{$smarty.const.STEXT_LEN}-->文字</span></th>
163            <th>ダウンロード商品用<br>ファイル</th>
164        </tr>
165        <!--{section name=cnt loop=$arrForm.total.value}-->
166            <!--{assign var=index value=$smarty.section.cnt.index}-->
167
168            <tr>
169                <td class="center">
170                    <!--{assign var=key value="classcategory_id1"}-->
171                    <input type="hidden" name="<!--{$key}-->[<!--{$index}-->]" value="<!--{$arrForm[$key].value[$index]|h}-->" />
172                    <!--{assign var=key value="classcategory_id2"}-->
173                    <input type="hidden" name="<!--{$key}-->[<!--{$index}-->]" value="<!--{$arrForm[$key].value[$index]|h}-->" />
174                    <!--{assign var=key value="product_class_id"}-->
175                    <input type="hidden" name="<!--{$key}-->[<!--{$index}-->]" value="<!--{$arrForm[$key].value[$index]|h}-->" />
176                    <!--{assign var=key value="check"}-->
177                    <!--{if $arrErr[$key][$index]}-->
178                        <span class="attention"><!--{$arrErr[$key][$index]}--></span>
179                    <!--{/if}-->
180                    <input type="checkbox" name="<!--{$key}-->[<!--{$index}-->]" value="1" <!--{if $arrForm[$key].value[$index] == 1}-->checked="checked"<!--{/if}--> />
181                </td>
182                <td class="center">
183                    <!--{assign var=key value="classcategory_name1"}-->
184                    <!--{if $arrErr[$key][$index]}-->
185                        <span class="attention"><!--{$arrErr[$key][$index]}--></span>
186                    <!--{/if}-->
187                    <!--{$arrForm[$key].value[$index]|h}-->
188                    <input type="hidden" name="<!--{$key}-->[<!--{$index}-->]" value="<!--{$arrForm[$key].value[$index]|h}-->" />
189                </td>
190                <td class="center">
191                    <!--{assign var=key value="classcategory_name2"}-->
192                    <!--{if $arrErr[$key][$index]}-->
193                        <span class="attention"><!--{$arrErr[$key][$index]}--></span>
194                    <!--{/if}-->
195                    <!--{$arrForm[$key].value[$index]|h}-->
196                    <input type="hidden" name="<!--{$key}-->[<!--{$index}-->]" value="<!--{$arrForm[$key].value[$index]|h}-->" />
197                </td>
198                <td class="center">
199                    <!--{assign var=key value="product_code"}-->
200                    <!--{if $arrErr[$key][$index]}-->
201                        <span class="attention"><!--{$arrErr[$key][$index]}--></span>
202                    <!--{/if}-->
203                    <input type="text" name="<!--{$key}-->[<!--{$index}-->]" value="<!--{$arrForm[$key].value[$index]|h}-->" size="6" class="box6" maxlength="<!--{$arrForm[$key].length}-->" <!--{if $arrErr[$key][$index] != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
204                </td>
205                <td class="center">
206                    <!--{assign var=key value="stock"}-->
207                    <!--{if $arrErr[$key][$index]}-->
208                        <span class="attention"><!--{$arrErr[$key][$index]}--></span>
209                    <!--{/if}-->
210                     <input type="text" name="<!--{$key}-->[<!--{$index}-->]" value="<!--{$arrForm[$key].value[$index]|h}-->" size="6" class="box6" maxlength="<!--{$arrForm[$key].length}-->" <!--{if $arrErr[$key][$index] != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> id="<!--{$key}-->_<!--{$index}-->" />
211                    <!--{assign var=key value="stock_unlimited"}--><br />
212                    <!--{if $arrErr[$key][$index]}-->
213                        <span class="attention"><!--{$arrErr[$key][$index]}--></span>
214                    <!--{/if}-->
215                    <input type="checkbox" name="<!--{$key}-->[<!--{$index}-->]" value="1" <!--{if $arrForm[$key].value[$index] == "1"}-->checked="checked"<!--{/if}--> onClick="fnCheckStockNoLimit('<!--{$index}-->','<!--{$smarty.const.DISABLED_RGB}-->');" id="<!--{$key}-->_<!--{$index}-->" /><label for="<!--{$key}-->_<!--{$index}-->">無制限</label>
216                </td>
217                <td class="center">
218                    <!--{assign var=key value="price01"}-->
219                    <!--{if $arrErr[$key][$index]}-->
220                        <span class="attention"><!--{$arrErr[$key][$index]}--></span>
221                    <!--{/if}-->
222                    <input type="text" name="<!--{$key}-->[<!--{$index}-->]" value="<!--{$arrForm[$key].value[$index]|h}-->" size="6" class="box6" maxlength="<!--{$arrForm[$key].length}-->" <!--{if $arrErr[$key][$index] != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
223                </td>
224                <td class="center">
225                    <!--{assign var=key value="price02"}-->
226                    <!--{if $arrErr[$key][$index]}-->
227                        <span class="attention"><!--{$arrErr[$key][$index]}--></span>
228                    <!--{/if}-->
229                    <input type="text" name="<!--{$key}-->[<!--{$index}-->]" value="<!--{$arrForm[$key].value[$index]|h}-->" size="6" class="box6" maxlength="<!--{$arrForm[$key].length}-->" <!--{if $arrErr[$key][$index] != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
230                </td>
231                <td class="class-product-type">
232                    <!--{assign var=key value="product_type_id"}-->
233                    <!--{if $arrErr[$key][$index]}-->
234                        <span class="attention"><!--{$arrErr[$key][$index]}--></span>
235                    <!--{/if}-->
236                    <!--{html_radios name="`$key`[`$index`]" options=$arrProductType selected=$arrForm[$key].value[$index]|h separator='<br />'}-->
237                </td>
238                <td class="center">
239                    <!--{assign var=key value="down_filename}-->
240                    <!--{if $arrErr[$key][$index]}-->
241                        <span class="attention"><!--{$arrErr[$key][$index]}--></span>
242                    <!--{/if}-->
243                    <input type="text" name="<!--{$key}-->[<!--{$index}-->]" value="<!--{$arrForm[$key].value[$index]|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{if $arrErr[$key][$index] != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->" size="10" />
244                </td>
245                <td>
246                    <!--{assign var=key value="down_realfilename"}-->
247                    <!--{if $arrErr[$key][$index]}-->
248                        <span class="attention"><!--{$arrErr[$key][$index]}--></span>
249                    <!--{/if}-->
250                    <!--{if $arrForm[$key].value[$index] != ""}-->
251                        <!--{$arrForm[$key].value[$index]|h}-->
252                        <input type="hidden" name="<!--{$key}-->[<!--{$index}-->]" value="<!--{$arrForm[$key].value[$index]|h}-->" />
253                        <a href="?" onclick="fnFormModeSubmit('form1', 'delete_down', 'down_key[<!--{$index}-->]', '<!--{$key}-->'); return false;">[ファイルの取り消し]</a><br />
254                    <!--{/if}-->
255                    <input type="file" name="<!--{$key}-->[<!--{$index}-->]" size="10" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" /><br />
256                    <a class="btn-normal" href="javascript:;" name="btn" onclick="fnFormModeSubmit('form1', 'upload_down', 'down_key', '<!--{$key}-->[<!--{$index}-->]'); return false;">アップロード</a>
257                </td>
258            </tr>
259        <!--{/section}-->
260    </table>
261
262    <div class="btn-area">
263        <ul>
264            <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('form1', 'edit', '', ''); return false;"><span class="btn-next">確認ページへ</span></a></li>
265        </ul>
266    </div>
267
268    <!--{/if}-->
269
270</div>
271</form>
Note: See TracBrowser for help on using the repository browser.