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

Revision 22134, 16.3 KB checked in by h_yoshimoto, 11 years ago (diff)

#1890 残りメッセージをいくつか集約

  • 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-2012 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; <!--{t string="tpl_578"}--><\/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('    <!--{t string="tpl_191"}--> <a href="#" onClick="lfnDispChange();"> &gt;&gt; <!--{t string="tpl_579"}--><\/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><!--{t string="tpl_250"}--></h2>
64
65    <!--検索条件設定テーブルここから-->
66    <table>
67        <tr>
68            <th><!--{t string="tpl_577"}--></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><!--{t string="tpl_192"}--></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><!--{t string="tpl_189"}--></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><!--{t string="tpl_191"}--></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=""><!--{t string="tpl_068"}--></option>
102                <!--{html_options options=$arrCatList selected=$arrForm[$key].value}-->
103                </select>
104            </td>
105            <th><!--{t string="tpl_256"}--></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><!--{t string="tpl_330"}--></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                <!--{t string="-"}-->
132                <select name="search_endyear" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->">
133                <option value="">----</option>
134                <!--{html_options options=$arrEndYear selected=$arrForm.search_endyear.value}-->
135                </select>年
136                <select name="search_endmonth" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->">
137                <option value="">--</option>
138                <!--{html_options options=$arrEndMonth selected=$arrForm.search_endmonth.value}-->
139                </select>月
140                <select name="search_endday" style="<!--{$arrErr.search_endyear|sfGetErrorColor}-->">
141                <option value="">--</option>
142                <!--{html_options options=$arrEndDay selected=$arrForm.search_endday.value}-->
143                </select>日
144            </td>
145        </tr>
146        <tr>
147            <th><!--{t string="tpl_554"}--></th>
148            <td colspan="3">
149            <!--{assign var=key value="search_product_statuses"}-->
150            <span class="attention"><!--{$arrErr[$key]|h}--></span>
151            <!--{html_checkboxes name="$key" options=$arrSTATUS selected=$arrForm[$key].value}-->
152            </td>
153        </tr>
154    </table>
155    <div class="btn">
156        <p class="page_rows"><!--{t string="tpl_251"}-->
157            <!--{assign var=key value="search_page_max"}-->
158            <!--{if $arrErr[$key]}-->
159                <span class="attention"><!--{$arrErr[$key]}--></span>
160            <!--{/if}-->
161            <!--{t string="record_prefix"}-->
162            <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
163                <!--{html_options options=$arrPageMax selected=$arrForm.search_page_max.value}-->
164            </select>
165            <!--{t string="record_suffix"}-->
166        </p>
167
168        <div class="btn-area">
169            <ul>
170                <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('search_form', 'search', '', ''); return false;"><span class="btn-next"><!--{t string="tpl_252"}--></span></a></li>
171            </ul>
172        </div>
173
174    </div>
175    <!--検索条件設定テーブルここまで-->
176</form>
177
178
179<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete')}-->
180
181<!--★★検索結果一覧★★-->
182<form name="form1" id="form1" method="post" action="?">
183    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
184    <input type="hidden" name="mode" value="search" />
185    <input type="hidden" name="product_id" value="" />
186    <input type="hidden" name="category_id" value="" />
187    <!--{foreach key=key item=item from=$arrHidden}-->
188        <!--{if is_array($item)}-->
189            <!--{foreach item=c_item from=$item}-->
190            <input type="hidden" name="<!--{$key|h}-->[]" value="<!--{$c_item|h}-->" />
191            <!--{/foreach}-->
192        <!--{else}-->
193            <input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->" />
194        <!--{/if}-->
195    <!--{/foreach}-->
196    <h2><!--{t string="tpl_253"}--></h2>
197    <div class="btn">
198        <!--検索結果数--><!--{t string="tpl_230" T_FIELD=$tpl_linemax}-->
199        <!--検索結果-->
200        <!--{if $smarty.const.ADMIN_MODE == '1'}-->
201            <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('delete_all','',''); return false;"><!--{t string="tpl_327"}--></a>
202        <!--{/if}-->
203        <a class="btn-tool" href="javascript:;" onclick="fnModeSubmit('csv','',''); return false;"><!--{t string="tpl_254"}--></a>
204        <a class="btn-tool" href="../contents/csv.php?tpl_subno_csv=product"><!--{t string="tpl_255"}--></a>
205    </div>
206    <!--{if count($arrProducts) > 0}-->
207
208        <!--{include file=$tpl_pager}-->
209
210        <!--検索結果表示テーブル-->
211        <table class="list" id="products-search-result">
212            <col width="8%" />
213            <col width="9%" />
214            <col width="9%" />
215            <col width="8%" />
216            <col width="25%" />
217            <col width="8%" />
218            <col width="8%" />
219            <col width="5%" />
220            <col width="5%" />
221            <col width="5%" />
222            <col width="5%" />
223            <col width="5%" />
224            <tr>
225                <th rowspan="2"><!--{t string="tpl_577"}--></th>
226                <th rowspan="2"><!--{t string="tpl_195"}--></th>
227                <th rowspan="2"><!--{t string="tpl_192"}--></th>
228                <th rowspan="2"><!--{t string="tpl_580"}--></th>
229                <th><!--{t string="tpl_189"}--></th>
230                <th rowspan="2"><!--{t string="tpl_581"}--></th>
231                <th rowspan="2"><!--{t string="tpl_256"}--></th>
232                <th rowspan="2"><!--{t string="tpl_003"}--></th>
233                <th rowspan="2"><!--{t string="tpl_318"}--></th>
234                <!--{if $smarty.const.OPTION_CLASS_REGIST == 1}-->
235                <th rowspan="2"><!--{t string="tpl_582"}--></th>
236                <!--{/if}-->
237                <th rowspan="2"><!--{t string="tpl_004"}--></th>
238                <th rowspan="2"><!--{t string="tpl_583"}--></th>
239            </tr>
240            <tr>
241                <th nowrap><a href="#" onClick="lfnDispChange(); return false;"><!--{t string="tpl_584"}--></a></th>
242            </tr>
243
244            <!--{section name=cnt loop=$arrProducts}-->
245                <!--▼商品<!--{$smarty.section.cnt.iteration}-->-->
246                <!--{assign var=status value="`$arrProducts[cnt].status`"}-->
247                <tr style="background:<!--{$arrPRODUCTSTATUS_COLOR[$status]}-->;">
248                    <td class="id" rowspan="2"><!--{$arrProducts[cnt].product_id}--></td>
249                    <td class="thumbnail" rowspan="2">
250                    <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrProducts[cnt].main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;height=65">            </td>
251                    <td rowspan="2"><!--{$arrProducts[cnt].product_code_min|h}-->
252                        <!--{if $arrProducts[cnt].product_code_min != $arrProducts[cnt].product_code_max}-->
253                            <br /><!--{t string="-"}--> <!--{$arrProducts[cnt].product_code_max|h}-->
254                        <!--{/if}-->
255                    </td>
256                    <!--{* 価格 *}-->
257                    <td rowspan="2" class="right">
258                        <!--{$arrProducts[cnt].price02_min|number_format}-->
259                        <!--{if $arrProducts[cnt].price02_min != $arrProducts[cnt].price02_max}-->
260                            <br /><!--{t string="-"}--> <!--{$arrProducts[cnt].price02_max|number_format}-->
261                        <!--{/if}-->            </td>
262                    <td><!--{$arrProducts[cnt].name|h}--></td>
263                    <!--{* 在庫 *}-->
264                    <!--{* XXX 複数規格でかつ、全ての在庫数量が等しい場合は先頭に「各」と入れたれたら良いと思う。 *}-->
265                    <td class="menu" rowspan="2">
266                        <!--{if $arrProducts[cnt].stock_unlimited_min}--><!--{t string="tpl_053"}--><!--{else}--><!--{$arrProducts[cnt].stock_min|number_format}--><!--{/if}-->
267                        <!--{if $arrProducts[cnt].stock_unlimited_min != $arrProducts[cnt].stock_unlimited_max || $arrProducts[cnt].stock_min != $arrProducts[cnt].stock_max}-->
268                            <br /><!--{t string="-"}--> <!--{if $arrProducts[cnt].stock_unlimited_max}--><!--{t string="tpl_053"}--><!--{else}--><!--{$arrProducts[cnt].stock_max|number_format}--><!--{/if}-->
269                        <!--{/if}-->            </td>
270                    <!--{* 表示 *}-->
271                    <!--{assign var=key value=$arrProducts[cnt].status}-->
272                    <td class="menu" rowspan="2"><!--{$arrDISP[$key]}--></td>
273                    <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;" ><!--{t string="tpl_003"}--></a></span></td>
274                    <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"><!--{t string="tpl_318"}--></a></span></td>
275                    <!--{if $smarty.const.OPTION_CLASS_REGIST == 1}-->
276                    <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;" ><!--{t string="tpl_582"}--></a></span></td>
277                    <!--{/if}-->
278                    <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;"><!--{t string="tpl_004"}--></a></span></td>
279                    <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;" ><!--{t string="tpl_583"}--></a></span></td>
280                </tr>
281                <tr style="background:<!--{$arrPRODUCTSTATUS_COLOR[$status]}-->;">
282                    <td>
283                        <!--{* カテゴリ名 *}-->
284                        <div id="disp_cat<!--{$smarty.section.cnt.iteration}-->" style="display:<!--{$cat_flg}-->">
285                            <!--{foreach from=$arrProducts[cnt].categories item=category_id name=categories}-->
286                                <!--{$arrCatList[$category_id]|sfTrim}-->
287                                <!--{if !$smarty.foreach.categories.last}--><br /><!--{/if}-->
288                            <!--{/foreach}-->
289                        </div>
290
291                        <!--{* URL *}-->
292                        <div id="disp_url<!--{$smarty.section.cnt.iteration}-->" style="display:none">
293                            <!--{$smarty.const.HTTP_URL|sfTrimURL}-->/products/detail.php?product_id=<!--{$arrProducts[cnt].product_id}-->
294                        </div>
295                    </td>
296                </tr>
297                <!--▲商品<!--{$smarty.section.cnt.iteration}-->-->
298            <!--{/section}-->
299        </table>
300        <input type="hidden" name="item_cnt" value="<!--{$arrProducts|@count}-->" />
301        <!--検索結果表示テーブル-->
302    <!--{/if}-->
303
304</form>
305
306<!--★★検索結果一覧★★-->
307<!--{/if}-->
308</div>
Note: See TracBrowser for help on using the repository browser.