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

Revision 20116, 9.9 KB checked in by nanasess, 13 years ago (diff)
  • svn properties を再設定
  • 再設定用のスクリプト追加
  • 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
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-area">
69    <ul>
70      <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>
71      <li><a class="btn-action" href="javascript:;" onclick="fnModeSubmit('disp','',''); return false;"><span class="btn-next">表示する</span></a></li>
72    <!--{if count($arrClassCat) > 0}-->
73      <li><a class="btn-action" href="javascript:;" onclick="fnModeSubmit('delete','',''); return false;"><span class="btn-next">削除する</span></a></li>
74    <!--{/if}-->
75    </ul>
76  </div>
77
78  <!--{if count($arrClassCat) > 0}-->
79
80  <!--{foreach item=item name=i from=$arrClassCat}-->
81    <!--{if $smarty.foreach.i.first}-->
82      <!--{assign var=cnt value=$smarty.foreach.i.total}-->
83    <!--{/if}-->
84  <!--{/foreach}-->
85
86  <div class="list-info clearfix">
87    <div class="btn"><a class="btn-normal" href="javascript:;" onclick="fnCopyValue('<!--{$cnt}-->', '<!--{$smarty.const.DISABLED_RGB}-->'); return false;"><span>一行目のデータをコピーする</span></a></div>
88    <p><span class="bold">アップロード可能な拡張子:</span><!--{$smarty.const.DOWNLOAD_EXTENSION}-->(パラメータ DOWNLOAD_EXTENSION)</p>
89  </div>
90
91  <!--{assign var=class_id1 value=$arrForm.class_id1}-->
92  <!--{assign var=class_id2 value=$arrForm.class_id2}-->
93  <input type="hidden" name="class_id1" value="<!--{$class_id1}-->" />
94  <input type="hidden" name="class_id2" value="<!--{$class_id2}-->" />
95  <table class="list" width="900">
96    <colgroup width="5%">
97    <colgroup width="9%">
98    <colgroup width="9%">
99    <colgroup width="9%">
100    <colgroup width="10%">
101    <colgroup width="10%">
102    <colgroup width="10%">
103    <colgroup width="10%">
104    <colgroup width="8%">
105    <colgroup width="8%">
106    <colgroup width="8%">
107    <tr>
108      <th><input type="checkbox" onclick="fnAllCheck(this, 'input[name^=check]')" id="allCheck" /> <label for="allCheck"><br>登録</label></th>
109      <th>規格1<br>(<!--{$arrClass[$class_id1]|default:"未選択"}-->)</th>
110      <th>規格2<br>(<!--{$arrClass[$class_id2]|default:"未選択"}-->)</th>
111      <th>商品コード</th>
112      <th>在庫数<span class="attention">*</span></th>
113      <th><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(円)</th>
114      <th><!--{$smarty.const.SALE_PRICE_TITLE}-->(円)<span class="attention">*</span></th>
115      <th>商品種別<span class="attention">*</span></th>
116      <th>ダウンロード<br>ファイル名<span class="red"><br>上限<!--{$smarty.const.STEXT_LEN}-->文字</span></th>
117      <th>ダウンロード商品用<br>ファイル</th>
118    </tr>
119    <!--{section name=cnt loop=$arrClassCat}-->
120    <!--{assign var=key value="error:`$smarty.section.cnt.iteration`"}-->
121    <!--{if $arrErr[$key] != ""}-->
122    <tr>
123      <td colspan="10"><span class="attention"><!--{$arrErr[$key]}--></span></td>
124    </tr>
125    <!--{/if}-->
126    <tr >
127      <!--{assign var=key value="check:`$smarty.section.cnt.iteration`"}-->
128      <td class="center" >
129                <!--{assign var=id value="product_class_id:`$smarty.section.cnt.iteration`"}-->
130        <input type="hidden" name="classcategory_id1:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].classcategory_id1}-->" />
131        <input type="hidden" name="classcategory_id2:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].classcategory_id2}-->" />
132        <input type="hidden" name="name1:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].name1}-->" />
133        <input type="hidden" name="name2:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].name2}-->" />
134        <input type="hidden" name="product_class_id:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrForm[$id]}-->" />
135        <input type="checkbox" name="check:<!--{$smarty.section.cnt.iteration}-->" value="1" <!--{if $arrForm[$key] == 1}-->checked="checked"<!--{/if}-->>
136      </td>
137      <td class="center"><!--{$arrClassCat[cnt].name1}--></td>
138      <td class="center"><!--{$arrClassCat[cnt].name2}--></td>
139      <!--{assign var=key value="product_code:`$smarty.section.cnt.iteration`"}-->
140      <td class="center"><input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.STEXT_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->></td>
141      <!--{assign var=key value="stock:`$smarty.section.cnt.iteration`"}-->
142      <!--{assign var=chkkey value="stock_unlimited:`$smarty.section.cnt.iteration`"}-->
143      <td class="center">
144        <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.AMOUNT_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->>
145        <!--{assign var=key value="stock_unlimited:`$smarty.section.cnt.iteration`"}--><br />
146        <input type="checkbox" name="<!--{$key}-->" value="1" <!--{if $arrForm[$key] == "1"}-->checked<!--{/if}--> onClick="fnCheckStockNoLimit('<!--{$smarty.section.cnt.iteration}-->','<!--{$smarty.const.DISABLED_RGB}-->');"/>無制限
147      </td>
148      <!--{assign var=key value="price01:`$smarty.section.cnt.iteration`"}-->
149      <td class="center"><input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PRICE_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->></td>
150      <!--{assign var=key value="price02:`$smarty.section.cnt.iteration`"}-->
151      <td class="center"><input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PRICE_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->></td>
152      <td class="class-product-type">
153        <!--{assign var=key value="product_type_id:`$smarty.section.cnt.iteration`"}-->
154        <!--{html_radios name=$key options=$arrProductType selected=$arrForm[$key] separator='<br />'}-->
155      </td>
156      <td class="center">
157        <!--{assign var=key value="down_filename:`$smarty.section.cnt.iteration`"}-->
158        <span class="attention"><!--{$arrErr[$key]}--></span>
159        <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="10" />
160      </td>
161      <!--{assign var=key value="down_realfilename:`$smarty.section.cnt.iteration`"}-->
162      <td><span class="attention"><!--{$arrErr[$key]}--></span>
163          <!--{if $arrForm[$key] != ""}-->
164            <!--{$arrForm[$key]|h}--><input type="hidden" name="<!--{$key}-->" value="<!--{$arrForm[$key]|h}-->">
165            <a href="" onclick="fnFormModeSubmit('form1', 'delete_down', 'down_key', '<!--{$key}-->'); return false;">[ファイルの取り消し]</a><br>
166          <!--{/if}-->
167          <input type="file" name="<!--{$key}-->" size="10" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" /><br />
168          <a class="btn-normal" href="javascript:;" name="btn" onclick="fnFormModeSubmit('form1', 'upload_down', 'down_key', '<!--{$key}-->'); return false;">アップロード</a>
169      </td>
170    </tr>
171    <!--{/section}-->
172  </table>
173
174  <div class="btn-area">
175    <ul>
176      <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('form1', 'edit', '', ''); return false;"><span class="btn-next">確認ページへ</span></a></li>
177    </ul>
178  </div>
179
180  <!--{/if}-->
181
182</div>
183</form>
Note: See TracBrowser for help on using the repository browser.