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

Revision 19785, 9.9 KB checked in by Seasoft, 13 years ago (diff)

#862(テンプレート上のエスケープを簡単に)
#628(未使用処理・定義などの削除)

  • Smarty 変数 tpl_start

#879(jQuery の ready イベントと競合する body の onload イベントを使用している)

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
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|h}-->" />
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|h}-->" />
35<!--{/foreach}-->
36<div id="products" class="contents-main">
37
38  <table>
39    <tr>
40      <th>商品名</th>
41      <td><!--{$arrForm.product_name|h}--></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    <a class="btn-normal" href="javascript:;" onclick="fnChangeAction('<!--{$smarty.const.URL_SEARCH_TOP}-->'); fnModeSubmit('search','',''); return false;" ><span>検索結果へ戻る</span></a>
70    <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('disp','','')"><span>表示する</span></a>
71    <!--{if count($arrClassCat) > 0}-->
72    <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('delete','','');"><span>削除する</span></a>
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    <a class="btn-normal" href="javascript:;" onclick="fnCopyValue('<!--{$cnt}-->', '<!--{$smarty.const.DISABLED_RGB}-->'); return false;"><span>一行目のデータをコピーする</span></button>
86  </div>
87
88  <!--{assign var=class_id1 value=$arrForm.class_id1}-->
89  <!--{assign var=class_id2 value=$arrForm.class_id2}-->
90  <input type="hidden" name="class_id1" value="<!--{$class_id1}-->" />
91  <input type="hidden" name="class_id2" value="<!--{$class_id2}-->" />
92  <table class="list">
93    <tr>
94      <th><label for="allCheck">登録</label> <input type="checkbox" onclick="fnAllCheck(this, 'input[name^=check]')" id="allCheck" /></th>
95      <th>規格1(<!--{$arrClass[$class_id1]|default:"未選択"}-->)</th>
96      <th>規格2(<!--{$arrClass[$class_id2]|default:"未選択"}-->)</th>
97      <th>商品コード</th>
98      <th>在庫数<span class="attention">*</span></th>
99      <th><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(円)</th>
100      <th><!--{$smarty.const.SALE_PRICE_TITLE}-->(円)<span class="attention">*</span></th>
101      <th>商品種別<span class="attention">*</span></th>
102      <th><label for="allPaymentIds">支払方法</label><span class="attention">*</span> <input type="checkbox" name="allPaymentIds" onclick="fnAllCheck(this, 'input[name^=payment_ids]')" /></th>
103      <th>ダウンロードファイル名<BR><span class="red"> (上限<!--{$smarty.const.STEXT_LEN}-->文字)</span></th>
104      <th>ダウンロード商品用ファイルアップロード<BR>登録可能拡張子:<!--{$smarty.const.DOWNLOAD_EXTENSION}--> (パラメータ DOWNLOAD_EXTENSION)</th>
105    </tr>
106    <!--{section name=cnt loop=$arrClassCat}-->
107    <!--{assign var=key value="error:`$smarty.section.cnt.iteration`"}-->
108    <!--{if $arrErr[$key] != ""}-->
109    <tr>
110      <td colspan="8"><span class="attention"><!--{$arrErr[$key]}--></span></td>
111    </tr>
112    <!--{/if}-->
113    <tr >
114      <!--{assign var=key value="check:`$smarty.section.cnt.iteration`"}-->
115      <td align="center">
116                <!--{assign var=id value="product_class_id:`$smarty.section.cnt.iteration`"}-->
117        <input type="hidden" name="classcategory_id1:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].classcategory_id1}-->" />
118        <input type="hidden" name="classcategory_id2:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].classcategory_id2}-->" />
119        <input type="hidden" name="name1:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].name1}-->" />
120        <input type="hidden" name="name2:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].name2}-->" />
121        <input type="hidden" name="product_class_id:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrForm[$id]}-->" />
122        <input type="checkbox" name="check:<!--{$smarty.section.cnt.iteration}-->" value="1" <!--{if $arrForm[$key] == 1}-->checked="checked"<!--{/if}-->>
123      </td>
124      <td><!--{$arrClassCat[cnt].name1}--></td>
125      <td><!--{$arrClassCat[cnt].name2}--></td>
126      <!--{assign var=key value="product_code:`$smarty.section.cnt.iteration`"}-->
127      <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>
128      <!--{assign var=key value="stock:`$smarty.section.cnt.iteration`"}-->
129      <!--{assign var=chkkey value="stock_unlimited:`$smarty.section.cnt.iteration`"}-->
130      <td align="center">
131        <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.AMOUNT_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->>
132        <!--{assign var=key value="stock_unlimited:`$smarty.section.cnt.iteration`"}-->
133        <input type="checkbox" name="<!--{$key}-->" value="1" <!--{if $arrForm[$key] == "1"}-->checked<!--{/if}--> onClick="fnCheckStockNoLimit('<!--{$smarty.section.cnt.iteration}-->','<!--{$smarty.const.DISABLED_RGB}-->');"/>無制限
134      </td>
135      <!--{assign var=key value="price01:`$smarty.section.cnt.iteration`"}-->
136      <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>
137      <!--{assign var=key value="price02:`$smarty.section.cnt.iteration`"}-->
138      <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>
139      <td>
140        <!--{assign var=key value="product_type_id:`$smarty.section.cnt.iteration`"}-->
141        <input type="radio" name="<!--{$key}-->" value="<!--{$smarty.const.PRODUCT_TYPE_NORMAL}-->" <!--{if $arrForm[$key] == "1"}-->checked<!--{/if}-->/>通常商品 
142        <input type="radio" name="<!--{$key}-->" value="<!--{$smarty.const.PRODUCT_TYPE_DOWNLOAD}-->" <!--{if $arrForm[$key] == "2"}-->checked<!--{/if}--> />ダウンロード商品
143      </td>
144      <td>
145        <!--{assign var=key value="payment_ids:`$smarty.section.cnt.iteration`"}-->
146        <span class="attention"><!--{$arrErr[$key]}--></span>
147        <!--{html_checkboxes name=$key options=$arrPayments selected=$arrForm[$key]}-->
148      </td>
149      <td>
150        <!--{assign var=key value="down_filename:`$smarty.section.cnt.iteration`"}-->
151        <span class="attention"><!--{$arrErr[$key]}--></span>
152        <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" style="<!--{if $arrErr[$key] != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->" size="30" class="box30" />
153      </td>
154      <!--{assign var=key value="down_realfilename:`$smarty.section.cnt.iteration`"}-->
155      <td>
156        <span class="attention"><!--{$arrErr[$key]}--></span>
157          <!--{if $arrForm[$key] != ""}-->
158            <!--{$arrForm[$key]|h}--><input type="hidden" name="<!--{$key}-->" value="<!--{$arrForm[$key]|h}-->">
159            <a href="" onclick="fnModeSubmit('delete_down', 'down_key', '<!--{$key}-->'); return false;">[ファイルの取り消し]</a><br>
160          <!--{/if}-->
161          <input type="file" name="<!--{$key}-->" size="50" class="box50" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" />
162          <a class="btn-normal" href="javascript:;" name="btn" onclick="fnModeSubmit('upload_down', 'down_key', '<!--{$key}-->')">アップロード</a>
163      </td>
164    </tr>
165    <!--{/section}-->
166  </table>
167
168  <div class="btn"><a class="btn-normal" href="javascript:;" onclick="fnFormModeSubmit('form1', 'edit', '', '');"><span>確認ページへ</span></a></div>
169
170  <!--{/if}-->
171
172</div>
173</form>
Note: See TracBrowser for help on using the repository browser.