source: branches/comu-ver2/data/Smarty/templates/default/admin/products/product_class.tpl @ 17351

Revision 17351, 7.0 KB checked in by pineray, 14 years ago (diff)
  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/html; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2008 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?<form name="form1" id="form1" method="post" action="">
25<!--{foreach key=key item=item from=$arrSearchHidden}-->
26<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" />
27<!--{/foreach}-->
28<input type="hidden" name="mode" value="edit" />
29<input type="hidden" name="product_id" value="<!--{$tpl_product_id}-->" />
30<input type="hidden" name="pageno" value="<!--{$tpl_pageno}-->" />
31<div id="products" class="contents-main">
32
33  <table>
34    <tr>
35      <th>商品名</th>
36      <td><!--{$arrForm.product_name|escape}--></td>
37    </tr>
38    <tr>
39      <th>規格1<span class="attention">*</span></th>
40      <td>
41        <!--{if $arrErr.select_class_id1}-->
42        <span class="attention"><!--{$arrErr.select_class_id1}--></span>
43        <!--{/if}-->
44        <select name="select_class_id1">
45          <option value="">選択してください</option>
46          <!--{html_options options=$arrClass selected=$arrForm.select_class_id1}-->
47        </select>
48      </td>
49    </tr>
50    <tr>
51      <th>規格2</th>
52      <td>
53        <!--{if $arrErr.select_class_id2}-->
54        <span class="attention"><!--{$arrErr.select_class_id2}--></span>
55        <!--{/if}-->
56        <select name="select_class_id2">
57          <option value="">選択してください</option>
58          <!--{html_options options=$arrClass selected=$arrForm.select_class_id2}-->
59        </select>
60      </td>
61    </tr>
62  </table>
63  <div class="btn">
64    <button type="button" onclick="fnChangeAction('<!--{$smarty.const.URL_SEARCH_TOP}-->'); fnModeSubmit('search','',''); return false;" ><span>検索結果へ戻る</span></button>
65    <button type="button" onclick="fnModeSubmit('disp','','')"><span>表示する</span></button>
66    <!--{if count($arrClassCat) > 0}-->
67    <button type="button" onclick="fnModeSubmit('delete','','');"><span>削除する</span></button>
68    <!--{/if}-->
69  </div>
70
71  <!--{if count($arrClassCat) > 0}-->
72           
73  <!--{foreach item=item name=i from=$arrClassCat}-->
74    <!--{if $smarty.foreach.i.first}-->
75      <!--{assign var=cnt value=$smarty.foreach.i.total}--> 
76    <!--{/if}-->
77  <!--{/foreach}-->
78           
79  <div class="btn">
80    <button type="button" onclick="fnAllCheck(); return false;"><span>全選択</span></button>
81    <button type="button" onclick="fnAllUnCheck(); return false;"><span>全解除</span></button>
82    <button type="button" onclick="fnCopyValue('<!--{$cnt}-->', '<!--{$smarty.const.DISABLED_RGB}-->'); return false;"><span>一行目のデータをコピーする</span></button>
83  </div>
84
85  <!--{assign var=class_id1 value=$arrForm.class_id1}-->
86  <!--{assign var=class_id2 value=$arrForm.class_id2}-->
87  <input type="hidden" name="class_id1" value="<!--{$class_id1}-->" />
88  <input type="hidden" name="class_id2" value="<!--{$class_id2}-->" />
89  <table class="list">
90    <tr>
91      <th>登録</th>
92      <th>規格1(<!--{$arrClass[$class_id1]|default:"未選択"}-->)</th>
93      <th>規格2(<!--{$arrClass[$class_id2]|default:"未選択"}-->)</th>
94      <th>商品コード</th>
95      <th>在庫(個)<span class="attention">*</span></th>
96      <th><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(円)</th>
97      <th><!--{$smarty.const.SALE_PRICE_TITLE}-->(円)<span class="attention">*</span></th>
98    </tr>
99    <!--{section name=cnt loop=$arrClassCat}-->
100    <!--{assign var=key value="error:`$smarty.section.cnt.iteration`"}-->
101    <!--{if $arrErr[$key] != ""}-->
102    <tr>
103      <td colspan="8"><span class="attention"><!--{$arrErr[$key]}--></span></td>
104    </tr>
105    <!--{/if}-->
106    <tr >
107      <!--{assign var=key value="check:`$smarty.section.cnt.iteration`"}-->
108      <td align="center">
109        <input type="hidden" name="classcategory_id1:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].classcategory_id1}-->" />
110        <input type="hidden" name="classcategory_id2:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].classcategory_id2}-->" />
111        <input type="hidden" name="name1:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].name1}-->" />
112        <input type="hidden" name="name2:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].name2}-->" />
113        <input type="checkbox" name="check:<!--{$smarty.section.cnt.iteration}-->" value="1" <!--{if $arrForm[$key] == 1}-->checked="checked"<!--{/if}-->>
114      </td>
115      <td><!--{$arrClassCat[cnt].name1}--></td>
116      <td><!--{$arrClassCat[cnt].name2}--></td>
117      <!--{assign var=key value="product_code:`$smarty.section.cnt.iteration`"}-->
118      <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>
119      <!--{assign var=key value="stock:`$smarty.section.cnt.iteration`"}-->
120      <!--{assign var=chkkey value="stock_unlimited:`$smarty.section.cnt.iteration`"}-->
121      <td align="center">
122        <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.AMOUNT_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->>
123        <!--{assign var=key value="stock_unlimited:`$smarty.section.cnt.iteration`"}-->
124        <input type="checkbox" name="<!--{$key}-->" value="1" <!--{if $arrForm[$key] == "1"}-->checked<!--{/if}--> onClick="fnCheckStockNoLimit('<!--{$smarty.section.cnt.iteration}-->','<!--{$smarty.const.DISABLED_RGB}-->');"/>無制限
125      </td>
126      <!--{assign var=key value="price01:`$smarty.section.cnt.iteration`"}-->
127      <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>
128      <!--{assign var=key value="price02:`$smarty.section.cnt.iteration`"}-->
129      <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>
130    </tr>
131    <!--{/section}-->
132  </table>
133
134  <div class="btn"><button type="submit"><span>この内容で登録する</span></button></div>
135 
136  <!--{/if}-->
137 
138</div>
139</form>
Note: See TracBrowser for help on using the repository browser.