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

Revision 20568, 15.4 KB checked in by Seasoft, 13 years ago (diff)

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