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

Revision 20514, 10.9 KB checked in by Seasoft, 13 years ago (diff)

#627(ソース整形・ソースコメントの改善)
#628(未使用処理・定義などの削除)

  • 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<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
27<!--{foreach key=key item=item from=$arrSearchHidden}-->
28<input type="hidden" name="<!--{$key}-->" value="<!--{$item|h}-->" />
29<!--{/foreach}-->
30<input type="hidden" name="mode" value="edit" />
31<input type="hidden" name="product_id" value="<!--{$tpl_product_id}-->" />
32<input type="hidden" name="pageno" value="<!--{$tpl_pageno}-->" />
33<input type="hidden" name="down_key" value="">
34<!--{foreach key=key item=item from=$arrHidden}-->
35<input type="hidden" name="<!--{$key}-->" value="<!--{$item|h}-->" />
36<!--{/foreach}-->
37<div id="products" class="contents-main">
38
39    <table>
40        <tr>
41            <th>商品名</th>
42            <td><!--{$arrForm.product_name|h}--></td>
43        </tr>
44        <tr>
45            <th>規格1<span class="attention">*</span></th>
46            <td>
47                <!--{if $arrErr.select_class_id1}-->
48                <span class="attention"><!--{$arrErr.select_class_id1}--></span>
49                <!--{/if}-->
50                <select name="select_class_id1">
51                    <option value="">選択してください</option>
52                    <!--{html_options options=$arrClass selected=$arrForm.select_class_id1}-->
53                </select>
54            </td>
55        </tr>
56        <tr>
57            <th>規格2</th>
58            <td>
59                <!--{if $arrErr.select_class_id2}-->
60                <span class="attention"><!--{$arrErr.select_class_id2}--></span>
61                <!--{/if}-->
62                <select name="select_class_id2">
63                    <option value="">選択してください</option>
64                    <!--{html_options options=$arrClass selected=$arrForm.select_class_id2}-->
65                </select>
66            </td>
67        </tr>
68    </table>
69    <div class="btn-area">
70        <ul>
71            <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>
72            <li><a class="btn-action" href="javascript:;" onclick="fnModeSubmit('disp','',''); return false;"><span class="btn-next">表示する</span></a></li>
73        <!--{if count($arrClassCat) > 0}-->
74            <li><a class="btn-action" href="javascript:;" onclick="fnModeSubmit('delete','',''); return false;"><span class="btn-next">削除する</span></a></li>
75        <!--{/if}-->
76        </ul>
77    </div>
78
79    <!--{if count($arrClassCat) > 0}-->
80
81    <!--{foreach item=item name=i from=$arrClassCat}-->
82        <!--{if $smarty.foreach.i.first}-->
83            <!--{assign var=cnt value=$smarty.foreach.i.total}-->
84        <!--{/if}-->
85    <!--{/foreach}-->
86
87    <div class="list-info clearfix">
88        <div class="btn"><a class="btn-normal" href="javascript:;" onclick="fnCopyValue('<!--{$cnt}-->', '<!--{$smarty.const.DISABLED_RGB}-->'); return false;"><span>一行目のデータをコピーする</span></a></div>
89        <p><span class="bold">アップロード可能な拡張子:</span><!--{$smarty.const.DOWNLOAD_EXTENSION}-->(パラメータ DOWNLOAD_EXTENSION)</p>
90    </div>
91
92    <!--{assign var=class_id1 value=$arrForm.class_id1}-->
93    <!--{assign var=class_id2 value=$arrForm.class_id2}-->
94    <input type="hidden" name="class_id1" value="<!--{$class_id1}-->" />
95    <input type="hidden" name="class_id2" value="<!--{$class_id2}-->" />
96    <table class="list" width="900">
97        <colgroup width="5%">
98        <colgroup width="9%">
99        <colgroup width="9%">
100        <colgroup width="9%">
101        <colgroup width="10%">
102        <colgroup width="10%">
103        <colgroup width="10%">
104        <colgroup width="10%">
105        <colgroup width="8%">
106        <colgroup width="8%">
107        <colgroup width="8%">
108        <tr>
109            <th><input type="checkbox" onclick="fnAllCheck(this, 'input[name^=check]')" id="allCheck" /> <label for="allCheck"><br>登録</label></th>
110            <th>規格1<br>(<!--{$arrClass[$class_id1]|default:"未選択"}-->)</th>
111            <th>規格2<br>(<!--{$arrClass[$class_id2]|default:"未選択"}-->)</th>
112            <th>商品コード</th>
113            <th>在庫数<span class="attention">*</span></th>
114            <th><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(円)</th>
115            <th><!--{$smarty.const.SALE_PRICE_TITLE}-->(円)<span class="attention">*</span></th>
116            <th>商品種別<span class="attention">*</span></th>
117            <th>ダウンロード<br>ファイル名<span class="red"><br>上限<!--{$smarty.const.STEXT_LEN}-->文字</span></th>
118            <th>ダウンロード商品用<br>ファイル</th>
119        </tr>
120        <!--{section name=cnt loop=$arrClassCat}-->
121            <!--{assign var=key value="error:`$smarty.section.cnt.iteration`"}-->
122            <!--{if $arrErr[$key] != ""}-->
123            <tr>
124                <td colspan="10"><span class="attention"><!--{$arrErr[$key]}--></span></td>
125            </tr>
126            <!--{/if}-->
127            <tr >
128                <!--{assign var=key value="check:`$smarty.section.cnt.iteration`"}-->
129                <td class="center" >
130                    <!--{assign var=id value="product_class_id:`$smarty.section.cnt.iteration`"}-->
131                    <input type="hidden" name="classcategory_id1:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].classcategory_id1}-->" />
132                    <input type="hidden" name="classcategory_id2:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].classcategory_id2}-->" />
133                    <input type="hidden" name="name1:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].name1}-->" />
134                    <input type="hidden" name="name2:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].name2}-->" />
135                    <input type="hidden" name="product_class_id:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrForm[$id]}-->" />
136                    <input type="checkbox" name="check:<!--{$smarty.section.cnt.iteration}-->" value="1" <!--{if $arrForm[$key] == 1}-->checked="checked"<!--{/if}-->>
137                </td>
138                <td class="center"><!--{$arrClassCat[cnt].name1}--></td>
139                <td class="center"><!--{$arrClassCat[cnt].name2}--></td>
140                <!--{assign var=key value="product_code:`$smarty.section.cnt.iteration`"}-->
141                <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>
142                <!--{assign var=key value="stock:`$smarty.section.cnt.iteration`"}-->
143                <!--{assign var=chkkey value="stock_unlimited:`$smarty.section.cnt.iteration`"}-->
144                <td class="center">
145                    <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.AMOUNT_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->>
146                    <!--{assign var=key value="stock_unlimited:`$smarty.section.cnt.iteration`"}--><br />
147                    <input type="checkbox" name="<!--{$key}-->" value="1" <!--{if $arrForm[$key] == "1"}-->checked<!--{/if}--> onClick="fnCheckStockNoLimit('<!--{$smarty.section.cnt.iteration}-->','<!--{$smarty.const.DISABLED_RGB}-->');"/>無制限
148                </td>
149                <!--{assign var=key value="price01:`$smarty.section.cnt.iteration`"}-->
150                <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>
151                <!--{assign var=key value="price02:`$smarty.section.cnt.iteration`"}-->
152                <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>
153                <td class="class-product-type">
154                    <!--{assign var=key value="product_type_id:`$smarty.section.cnt.iteration`"}-->
155                    <!--{html_radios name=$key options=$arrProductType selected=$arrForm[$key] separator='<br />'}-->
156                </td>
157                <td class="center">
158                    <!--{assign var=key value="down_filename:`$smarty.section.cnt.iteration`"}-->
159                    <span class="attention"><!--{$arrErr[$key]}--></span>
160                    <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" />
161                </td>
162                <!--{assign var=key value="down_realfilename:`$smarty.section.cnt.iteration`"}-->
163                <td><span class="attention"><!--{$arrErr[$key]}--></span>
164                    <!--{if $arrForm[$key] != ""}-->
165                        <!--{$arrForm[$key]|h}--><input type="hidden" name="<!--{$key}-->" value="<!--{$arrForm[$key]|h}-->">
166                        <a href="" onclick="fnFormModeSubmit('form1', 'delete_down', 'down_key', '<!--{$key}-->'); return false;">[ファイルの取り消し]</a><br>
167                    <!--{/if}-->
168                    <input type="file" name="<!--{$key}-->" size="10" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" /><br />
169                    <a class="btn-normal" href="javascript:;" name="btn" onclick="fnFormModeSubmit('form1', 'upload_down', 'down_key', '<!--{$key}-->'); return false;">アップロード</a>
170                </td>
171            </tr>
172        <!--{/section}-->
173    </table>
174
175    <div class="btn-area">
176        <ul>
177            <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('form1', 'edit', '', ''); return false;"><span class="btn-next">確認ページへ</span></a></li>
178        </ul>
179    </div>
180
181    <!--{/if}-->
182
183</div>
184</form>
Note: See TracBrowser for help on using the repository browser.