source: branches/version-2_12-dev/data/Smarty/templates/admin/products/index.tpl @ 22572

Revision 22572, 15.6 KB checked in by Qwert, 11 years ago (diff)

#2153 (各種テンプレート修正)

管理画面のデザイン管理・システム設定・オーナーズストアの直せそうな範囲を修正。管理画面のonClickをonclickに修正。

  • 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-2013 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
25<script type="text/javascript">
26// URLの表示非表示切り替え
27function lfnDispChange(){
28    inner_id = 'switch';
29
30    cnt = document.form1.item_cnt.value;
31
32    if($('#disp_url1').css("display") == 'none'){
33        for (i = 1; i <= cnt; i++) {
34            disp_id = 'disp_url'+i;
35            $('#' + disp_id).css("display", "");
36
37            disp_id = 'disp_cat'+i;
38            $('#' + disp_id).css("display", "none");
39
40            $('#' + inner_id).html('    URL <a href="#" onclick="lfnDispChange();"> &gt;&gt; カテゴリ表示<\/a>');
41        }
42    }else{
43        for (i = 1; i <= cnt; i++) {
44            disp_id = 'disp_url'+i;
45            $('#' + disp_id).css("display", "none");
46
47            disp_id = 'disp_cat'+i;
48            $('#' + disp_id).css("display", "");
49
50            $('#' + inner_id).html('    カテゴリ <a href="#" onclick="lfnDispChange();"> &gt;&gt; URL表示<\/a>');
51        }
52    }
53
54}
55
56</script>
57
58
59<div id="products" class="contents-main">
60<form name="search_form" id="search_form" method="post" action="?">
61    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
62    <input type="hidden" name="mode" value="search" />
63    <h2>検索条件設定</h2>
64
65    <!--検索条件設定テーブルここから-->
66    <table>
67        <tr>
68            <th>商品ID</th>
69            <td colspan="3">
70                <!--{assign var=key value="search_product_id"}-->
71                <!--{if $arrErr[$key]}-->
72                    <span class="attention"><!--{$arrErr[$key]}--></span>
73                <!--{/if}-->
74                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30"/>
75            </td>
76        </tr>
77        <tr>
78            <th>商品コード</th>
79            <td>
80                <!--{assign var=key value="search_product_code"}-->
81                <!--{if $arrErr[$key]}-->
82                    <span class="attention"><!--{$arrErr[$key]}--></span>
83                <!--{/if}-->
84                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
85            </td>
86            <th>商品名</th>
87            <td>
88                <!--{assign var=key value="search_name"}-->
89                <!--{if $arrErr[$key]}-->
90                    <span class="attention"><!--{$arrErr[$key]}--></span>
91                <!--{/if}-->
92                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
93            </td>
94        </tr>
95        <tr>
96            <th>カテゴリ</th>
97            <td>
98                <!--{assign var=key value="search_category_id"}-->
99                <span class="attention"><!--{$arrErr[$key]}--></span>
100                <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
101                <option value="">選択してください</option>
102                <!--{html_options options=$arrCatList selected=$arrForm[$key].value}-->
103                </select>
104            </td>
105            <th>種別</th>
106            <td>
107                <!--{assign var=key value="search_status"}-->
108                <span class="attention"><!--{$arrErr[$key]|h}--></span>
109                <!--{html_checkboxes name="$key" options=$arrDISP selected=$arrForm[$key].value}-->
110            </td>
111        </tr>
112        <tr>
113            <th>登録・更新日</th>
114            <td colspan="3">
115                <!--{if $arrErr.search_startyear || $arrErr.search_endyear}-->
116                    <span class="attention"><!--{$arrErr.search_startyear}--></span>
117                    <span class="attention"><!--{$arrErr.search_endyear}--></span>
118                <!--{/if}-->
119                <select name="search_startyear" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->">
120                <option value="">----</option>
121                <!--{html_options options=$arrStartYear selected=$arrForm.search_startyear.value}-->
122                </select>年
123                <select name="search_startmonth" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->">
124                <option value="">--</option>
125                <!--{html_options options=$arrStartMonth selected=$arrForm.search_startmonth.value}-->
126                </select>月
127                <select name="search_startday" style="<!--{$arrErr.search_startyear|sfGetErrorColor}-->">
128                <option value="">--</option>
129                <!--{html_options options=$arrStartDay selected=$arrForm.search_startday.value}-->
130                </select>日~
131                <select name="search_endyear" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->">
132                <option value="">----</option>
133                <!--{html_options options=$arrEndYear selected=$arrForm.search_endyear.value}-->
134                </select>年
135                <select name="search_endmonth" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->">
136                <option value="">--</option>
137                <!--{html_options options=$arrEndMonth selected=$arrForm.search_endmonth.value}-->
138                </select>月
139                <select name="search_endday" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->">
140                <option value="">--</option>
141                <!--{html_options options=$arrEndDay selected=$arrForm.search_endday.value}-->
142                </select>日
143            </td>
144        </tr>
145        <tr>
146            <th>商品ステータス</th>
147            <td colspan="3">
148            <!--{assign var=key value="search_product_statuses"}-->
149            <span class="attention"><!--{$arrErr[$key]|h}--></span>
150            <!--{html_checkboxes name="$key" options=$arrSTATUS selected=$arrForm[$key].value}-->
151            </td>
152        </tr>
153    </table>
154    <div class="btn">
155        <p class="page_rows">検索結果表示件数
156        <!--{assign var=key value="search_page_max"}-->
157        <!--{if $arrErr[$key]}-->
158            <span class="attention"><!--{$arrErr[$key]}--></span>
159        <!--{/if}-->
160        <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
161            <!--{html_options options=$arrPageMax selected=$arrForm.search_page_max.value}-->
162        </select> 件</p>
163
164        <div class="btn-area">
165            <ul>
166                <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('search_form', 'search', '', ''); return false;"><span class="btn-next">この条件で検索する</span></a></li>
167            </ul>
168        </div>
169
170    </div>
171    <!--検索条件設定テーブルここまで-->
172</form>
173
174
175<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete')}-->
176
177<!--★★検索結果一覧★★-->
178<form name="form1" id="form1" method="post" action="?">
179    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
180    <input type="hidden" name="mode" value="search" />
181    <input type="hidden" name="product_id" value="" />
182    <input type="hidden" name="category_id" value="" />
183    <!--{foreach key=key item=item from=$arrHidden}-->
184        <!--{if is_array($item)}-->
185            <!--{foreach item=c_item from=$item}-->
186            <input type="hidden" name="<!--{$key|h}-->[]" value="<!--{$c_item|h}-->" />
187            <!--{/foreach}-->
188        <!--{else}-->
189            <input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->" />
190        <!--{/if}-->
191    <!--{/foreach}-->
192    <h2>検索結果一覧</h2>
193    <div class="btn">
194        <span class="attention"><!--検索結果数--><!--{$tpl_linemax}-->件</span>&nbsp;が該当しました。
195        <!--検索結果-->
196        <!--{if $smarty.const.ADMIN_MODE == '1'}-->
197            <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('delete_all','',''); return false;">検索結果をすべて削除</a>
198        <!--{/if}-->
199        <a class="btn-tool" href="javascript:;" onclick="fnModeSubmit('csv','',''); return false;">CSV ダウンロード</a>
200        <a class="btn-tool" href="../contents/csv.php?tpl_subno_csv=product">CSV 出力項目設定</a>
201    </div>
202    <!--{if count($arrProducts) > 0}-->
203
204        <!--{include file=$tpl_pager}-->
205
206        <!--検索結果表示テーブル-->
207        <table class="list" id="products-search-result">
208            <col width="8%" />
209            <col width="9%" />
210            <col width="9%" />
211            <col width="8%" />
212            <col width="25%" />
213            <col width="8%" />
214            <col width="8%" />
215            <col width="5%" />
216            <col width="5%" />
217            <col width="5%" />
218            <col width="5%" />
219            <col width="5%" />
220            <tr>
221                <th rowspan="2">商品ID</th>
222                <th rowspan="2">商品画像</th>
223                <th rowspan="2">商品コード</th>
224                <th rowspan="2">価格(円)</th>
225                <th>商品名</th>
226                <th rowspan="2">在庫</th>
227                <th rowspan="2">種別</th>
228                <th rowspan="2">編集</th>
229                <th rowspan="2">確認</th>
230                <!--{if $smarty.const.OPTION_CLASS_REGIST == 1}-->
231                <th rowspan="2">規格</th>
232                <!--{/if}-->
233                <th rowspan="2">削除</th>
234                <th rowspan="2">複製</th>
235            </tr>
236            <tr>
237                <th nowrap="nowrap"><a href="#" onclick="lfnDispChange(); return false;">カテゴリ ⇔ URL</a></th>
238            </tr>
239
240            <!--{section name=cnt loop=$arrProducts}-->
241                <!--▼商品<!--{$smarty.section.cnt.iteration}-->-->
242                <!--{assign var=status value="`$arrProducts[cnt].status`"}-->
243                <tr style="background:<!--{$arrPRODUCTSTATUS_COLOR[$status]}-->;">
244                    <td class="id" rowspan="2"><!--{$arrProducts[cnt].product_id}--></td>
245                    <td class="thumbnail" rowspan="2">
246                    <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProducts[cnt].main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;height=65" />            </td>
247                    <td rowspan="2"><!--{$arrProducts[cnt].product_code_min|h}-->
248                        <!--{if $arrProducts[cnt].product_code_min != $arrProducts[cnt].product_code_max}-->
249                            <br />~ <!--{$arrProducts[cnt].product_code_max|h}-->
250                        <!--{/if}-->
251                    </td>
252                    <!--{* 価格 *}-->
253                    <td rowspan="2" class="right">
254                        <!--{$arrProducts[cnt].price02_min|number_format}-->
255                        <!--{if $arrProducts[cnt].price02_min != $arrProducts[cnt].price02_max}-->
256                            <br />~ <!--{$arrProducts[cnt].price02_max|number_format}-->
257                        <!--{/if}-->            </td>
258                    <td><!--{$arrProducts[cnt].name|h}--></td>
259                    <!--{* 在庫 *}-->
260                    <!--{* XXX 複数規格でかつ、全ての在庫数量が等しい場合は先頭に「各」と入れたれたら良いと思う。 *}-->
261                    <td class="menu" rowspan="2">
262                        <!--{if $arrProducts[cnt].stock_unlimited_min}-->無制限<!--{else}--><!--{$arrProducts[cnt].stock_min|number_format}--><!--{/if}-->
263                        <!--{if $arrProducts[cnt].stock_unlimited_min != $arrProducts[cnt].stock_unlimited_max || $arrProducts[cnt].stock_min != $arrProducts[cnt].stock_max}-->
264                            <br />~ <!--{if $arrProducts[cnt].stock_unlimited_max}-->無制限<!--{else}--><!--{$arrProducts[cnt].stock_max|number_format}--><!--{/if}-->
265                        <!--{/if}-->            </td>
266                    <!--{* 表示 *}-->
267                    <!--{assign var=key value=$arrProducts[cnt].status}-->
268                    <td class="menu" rowspan="2"><!--{$arrDISP[$key]}--></td>
269                    <td class="menu" rowspan="2"><span class="icon_edit"><a href="<!--{$smarty.const.ROOT_URLPATH}-->" onclick="fnChangeAction('./product.php'); fnModeSubmit('pre_edit', 'product_id', <!--{$arrProducts[cnt].product_id}-->); return false;" >編集</a></span></td>
270                    <td class="menu" rowspan="2"><span class="icon_confirm"><a href="<!--{$smarty.const.HTTP_URL|sfTrimURL}-->/products/detail.php?product_id=<!--{$arrProducts[cnt].product_id}-->&amp;admin=on" target="_blank">確認</a></span></td>
271                    <!--{if $smarty.const.OPTION_CLASS_REGIST == 1}-->
272                    <td class="menu" rowspan="2"><span class="icon_class"><a href="<!--{$smarty.const.ROOT_URLPATH}-->" onclick="fnChangeAction('./product_class.php'); fnModeSubmit('pre_edit', 'product_id', <!--{$arrProducts[cnt].product_id}-->); return false;" >規格</a></span></td>
273                    <!--{/if}-->
274                    <td class="menu" rowspan="2"><span class="icon_delete"><a href="<!--{$smarty.const.ROOT_URLPATH}-->" onclick="fnSetFormValue('category_id', '<!--{$arrProducts[cnt].category_id}-->'); fnModeSubmit('delete', 'product_id', <!--{$arrProducts[cnt].product_id}-->); return false;">削除</a></span></td>
275                    <td class="menu" rowspan="2"><span class="icon_copy"><a href="<!--{$smarty.const.ROOT_URLPATH}-->" onclick="fnChangeAction('./product.php'); fnModeSubmit('copy', 'product_id', <!--{$arrProducts[cnt].product_id}-->); return false;" >複製</a></span></td>
276                </tr>
277                <tr style="background:<!--{$arrPRODUCTSTATUS_COLOR[$status]}-->;">
278                    <td>
279                        <!--{* カテゴリ名 *}-->
280                        <div id="disp_cat<!--{$smarty.section.cnt.iteration}-->" style="display:<!--{$cat_flg}-->">
281                            <!--{foreach from=$arrProducts[cnt].categories item=category_id name=categories}-->
282                                <!--{$arrCatList[$category_id]|sfTrim}-->
283                                <!--{if !$smarty.foreach.categories.last}--><br /><!--{/if}-->
284                            <!--{/foreach}-->
285                        </div>
286
287                        <!--{* URL *}-->
288                        <div id="disp_url<!--{$smarty.section.cnt.iteration}-->" style="display:none">
289                            <!--{$smarty.const.HTTP_URL|sfTrimURL}-->/products/detail.php?product_id=<!--{$arrProducts[cnt].product_id}-->
290                        </div>
291                    </td>
292                </tr>
293                <!--▲商品<!--{$smarty.section.cnt.iteration}-->-->
294            <!--{/section}-->
295        </table>
296        <input type="hidden" name="item_cnt" value="<!--{$arrProducts|@count}-->" />
297        <!--検索結果表示テーブル-->
298    <!--{/if}-->
299
300</form>
301
302<!--★★検索結果一覧★★-->
303<!--{/if}-->
304</div>
Note: See TracBrowser for help on using the repository browser.