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

Revision 22173, 21.3 KB checked in by m_uehara, 11 years ago (diff)

#1986 default関数のテキストを切り出しました。

  • 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<!--
27    function fnSelectCheckSubmit(action){
28
29        var fm = document.form1;
30
31        if (!fm["pdf_order_id[]"]) {
32            return false;
33        }
34
35        var checkflag = false;
36        var max = fm["pdf_order_id[]"].length;
37
38        if (max) {
39            for (var i=0; i<max; i++) {
40                if(fm["pdf_order_id[]"][i].checked == true){
41                    checkflag = true;
42                }
43            }
44        } else {
45            if(fm["pdf_order_id[]"].checked == true) {
46                checkflag = true;
47            }
48        }
49
50        if(!checkflag){
51            alert('<!--{t string="tpl_398"}-->');
52            return false;
53        }
54
55        fnOpenPdfSettingPage(action);
56    }
57
58    function fnOpenPdfSettingPage(action){
59        var fm = document.form1;
60        win02("about:blank", "pdf_input", "620","650");
61
62        // 退避
63        tmpTarget = fm.target;
64        tmpMode = fm.mode.value;
65        tmpAction = fm.action;
66
67        fm.target = "pdf_input";
68        fm.mode.value = 'pdf';
69        fm.action = action;
70        fm.submit();
71
72        // 復元
73        fm.target = tmpTarget;
74        fm.mode.value = tmpMode;
75        fm.action = tmpAction;
76    }
77   
78   
79    function fnSelectMailCheckSubmit(action){
80
81        var fm = document.form1;
82
83        if (!fm["mail_order_id[]"]) {
84            return false;
85        }
86
87        var checkflag = false;
88        var max = fm["mail_order_id[]"].length;
89
90        if (max) {
91            for (var i=0; i<max; i++) {
92                if(fm["mail_order_id[]"][i].checked == true){
93                    checkflag = true;
94                }
95            }
96        } else {
97            if(fm["mail_order_id[]"].checked == true) {
98                checkflag = true;
99            }
100        }
101
102        if(!checkflag){
103            alert('<!--{t string="tpl_398"}-->');
104            return false;
105        }
106       
107        fm.mode.value="mail_select";
108        fm.action=action;
109        fm.submit();
110    }
111
112
113//-->
114</script>
115<div id="order" class="contents-main">
116<form name="search_form" id="search_form" method="post" action="?">
117<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
118<input type="hidden" name="mode" value="search" />
119    <h2><!--{t string="tpl_250"}--></h2>
120    <!--{* 検索条件設定テーブルここから *}-->
121    <table>
122        <tr>
123            <th><!--{t string="tpl_231"}--></th>
124            <td>
125                <!--{assign var=key1 value="search_order_id1"}-->
126                <!--{assign var=key2 value="search_order_id2"}-->
127                <span class="attention"><!--{$arrErr[$key1]}--></span>
128                <span class="attention"><!--{$arrErr[$key2]}--></span>
129                <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|h}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="6" class="box6" />
130                <!--{t string="-"}-->
131                <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|h}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="6" class="box6" />
132            </td>
133            <th><!--{t string="tpl_360"}--></th>
134            <td>
135                <!--{assign var=key value="search_order_status"}-->
136                <span class="attention"><!--{$arrErr[$key]}--></span>
137                <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
138                <option value=""><!--{t string="tpl_068"}--></option>
139                <!--{html_options options=$arrORDERSTATUS selected=$arrForm[$key].value}-->
140                </select>
141            </td>
142        </tr>
143        <tr>
144            <th><!--{t string="tpl_208"}--></th>
145            <td>
146            <!--{assign var=key value="search_order_name"}-->
147            <span class="attention"><!--{$arrErr[$key]}--></span>
148            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
149            </td>
150            <th><!--{t string="tpl_210"}--></th>
151            <td>
152            <!--{assign var=key value="search_order_kana"}-->
153            <span class="attention"><!--{$arrErr[$key]}--></span>
154            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
155            </td>
156        </tr>
157        <tr>
158            <th><!--{t string="tpl_108"}--></th>
159            <td>
160                <!--{assign var=key value="search_order_email"}-->
161                <span class="attention"><!--{$arrErr[$key]}--></span>
162                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
163            </td>
164            <th><!--{t string="tpl_037"}--></th>
165            <td>
166                <!--{assign var=key value="search_order_tel"}-->
167                <span class="attention"><!--{$arrErr[$key]}--></span>
168                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
169            </td>
170        </tr>
171        <tr>
172            <th><!--{t string="tpl_217"}--></th>
173            <td colspan="3">
174                <span class="attention"><!--{$arrErr.search_sbirthyear}--></span>
175                <span class="attention"><!--{$arrErr.search_ebirthyear}--></span>
176                <select name="search_sbirthyear" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
177                <option value="">----</option>
178                <!--{html_options options=$arrBirthYear selected=$arrForm.search_sbirthyear.value}-->
179                </select>年
180                <select name="search_sbirthmonth" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
181                <option value="">--</option>
182                <!--{html_options options=$arrMonth selected=$arrForm.search_sbirthmonth.value}-->
183                </select>月
184                <select name="search_sbirthday" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
185                <option value="">--</option>
186                <!--{html_options options=$arrDay selected=$arrForm.search_sbirthday.value}-->
187                </select>日
188                <!--{t string="-"}-->
189                <select name="search_ebirthyear" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
190                <option value="">----</option>
191                <!--{html_options options=$arrBirthYear selected=$arrForm.search_ebirthyear.value}-->
192                </select>年
193                <select name="search_ebirthmonth" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
194                <option value="">--</option>
195                <!--{html_options options=$arrMonth selected=$arrForm.search_ebirthmonth.value}-->
196                </select>月
197                <select name="search_ebirthday" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
198                <option value="">--</option>
199                <!--{html_options options=$arrDay selected=$arrForm.search_ebirthday.value}-->
200                </select>日
201            </td>
202        </tr>
203        <tr>
204            <th><!--{t string="tpl_215"}--></th>
205            <td colspan="3">
206            <!--{assign var=key value="search_order_sex"}-->
207            <span class="attention"><!--{$arrErr[$key]}--></span>
208            <!--{html_checkboxes name="$key" options=$arrSex selected=$arrForm[$key].value}-->
209            </td>
210        </tr>
211        <tr>
212            <th><!--{t string="tpl_016"}--></th>
213            <td colspan="3">
214            <!--{assign var=key value="search_payment_id"}-->
215            <span class="attention"><!--{$arrErr[$key]|h}--></span>
216            <!--{html_checkboxes name="$key" options=$arrPayments selected=$arrForm[$key].value}-->
217            </td>
218        </tr>
219        <tr>
220            <th><!--{t string="tpl_359"}--></th>
221            <td colspan="3">
222                <!--{if $arrErr.search_sorderyear}--><span class="attention"><!--{$arrErr.search_sorderyear}--></span><!--{/if}-->
223                <!--{if $arrErr.search_eorderyear}--><span class="attention"><!--{$arrErr.search_eorderyear}--></span><!--{/if}-->
224                <select name="search_sorderyear" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
225                <option value="">----</option>
226                <!--{html_options options=$arrRegistYear selected=$arrForm.search_sorderyear.value}-->
227                </select>年
228                <select name="search_sordermonth" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
229                <option value="">--</option>
230                <!--{html_options options=$arrMonth selected=$arrForm.search_sordermonth.value}-->
231                </select>月
232                <select name="search_sorderday" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
233                <option value="">--</option>
234                <!--{html_options options=$arrDay selected=$arrForm.search_sorderday.value}-->
235                </select>日
236                <!--{t string="-"}-->
237                <select name="search_eorderyear" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
238                <option value="">----</option>
239                <!--{html_options options=$arrRegistYear selected=$arrForm.search_eorderyear.value}-->
240                </select>年
241                <select name="search_eordermonth" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
242                <option value="">--</option>
243                <!--{html_options options=$arrMonth selected=$arrForm.search_eordermonth.value}-->
244                </select>月
245                <select name="search_eorderday" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
246                <option value="">--</option>
247                <!--{html_options options=$arrDay selected=$arrForm.search_eorderday.value}-->
248                </select>日
249            </td>
250        </tr>
251        <tr>
252            <th><!--{t string="tpl_399"}--></th>
253            <td colspan="3">
254                <!--{if $arrErr.search_supdateyear}--><span class="attention"><!--{$arrErr.search_supdateyear}--></span><!--{/if}-->
255                <!--{if $arrErr.search_eupdateyear}--><span class="attention"><!--{$arrErr.search_eupdateyear}--></span><!--{/if}-->
256                <select name="search_supdateyear" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
257                    <option value="">----</option>
258                    <!--{html_options options=$arrRegistYear selected=$arrForm.search_supdateyear.value}-->
259                </select>年
260                <select name="search_supdatemonth" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
261                    <option value="">--</option>
262                    <!--{html_options options=$arrMonth selected=$arrForm.search_supdatemonth.value}-->
263                </select>月
264                <select name="search_supdateday" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
265                    <option value="">--</option>
266                    <!--{html_options options=$arrDay selected=$arrForm.search_supdateday.value}-->
267                </select>日
268                <!--{t string="-"}-->
269                <select name="search_eupdateyear" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
270                    <option value="">----</option>
271                    <!--{html_options options=$arrRegistYear selected=$arrForm.search_eupdateyear.value}-->
272                </select>年
273                <select name="search_eupdatemonth" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
274                    <option value="">--</option>
275                    <!--{html_options options=$arrMonth selected=$arrForm.search_eupdatemonth.value}-->
276                </select>月
277                <select name="search_eupdateday" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
278                    <option value="">--</option>
279                    <!--{html_options options=$arrDay selected=$arrForm.search_eupdateday.value}-->
280                </select>日
281            </td>
282        </tr>
283        <tr>
284            <th><!--{t string="tpl_232"}--></th>
285            <td>
286                <!--{assign var=key1 value="search_total1"}-->
287                <!--{assign var=key2 value="search_total2"}-->
288                <span class="attention"><!--{$arrErr[$key1]}--></span>
289                <span class="attention"><!--{$arrErr[$key2]}--></span>
290                <!--{t string="currency_prefix"}-->
291                <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|h}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="6" class="box6" />
292                <!--{t string="currency_suffix"}-->
293                <!--{t string="-"}-->
294                <!--{t string="currency_prefix"}-->
295                <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|h}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="6" class="box6" />
296                <!--{t string="currency_suffix"}-->
297            </td>
298            <th><!--{t string="tpl_400"}--></th>
299            <td>
300                <!--{assign var=key value="search_product_name"}-->
301                <!--{if $arrErr[$key]}--><span class="attention"><!--{$arrErr[$key]}--></span><!--{/if}-->
302                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="6" class="box30" />
303            </td>
304        </tr>
305    </table>
306
307    <div class="btn">
308        <p class="page_rows"><!--{t string="tpl_251"}-->
309            <!--{assign var=key value="search_page_max"}-->
310            <span class="attention"><!--{$arrErr[$key]}--></span>
311            <!--{t string="record_prefix"}-->
312            <select name="<!--{$arrForm[$key].keyname}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
313            <!--{html_options options=$arrPageMax selected=$arrForm[$key].value}-->
314            </select>
315            <!--{t string="record_suffix"}-->
316        </p>
317        <div class="btn-area">
318            <ul>
319                <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>
320            </ul>
321        </div>
322    </div>
323    <!--検索条件設定テーブルここまで-->
324</form>
325
326<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete')}-->
327
328<!--★★検索結果一覧★★-->
329<form name="form1" id="form1" method="post" action="?">
330<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
331<input type="hidden" name="mode" value="search" />
332<input type="hidden" name="order_id" value="" />
333<!--{foreach key=key item=item from=$arrHidden}-->
334    <!--{if is_array($item)}-->
335        <!--{foreach item=c_item from=$item}-->
336        <input type="hidden" name="<!--{$key|h}-->[]" value="<!--{$c_item|h}-->" />
337        <!--{/foreach}-->
338    <!--{else}-->
339        <input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->" />
340    <!--{/if}-->
341<!--{/foreach}-->
342    <h2><!--{t string="tpl_253"}--></h2>
343        <div class="btn">
344        <!--検索結果数--><!--{t string="tpl_230" T_FIELD=$tpl_linemax}-->
345        <!--{if $smarty.const.ADMIN_MODE == '1'}-->
346        <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('delete_all','',''); return false;"><span><!--{t string="tpl_327"}--></span></a>
347        <!--{/if}-->
348        <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('csv','',''); return false;"><!--{t string="tpl_254"}--></a>
349        <a class="btn-normal" href="../contents/csv.php?tpl_subno_csv=order"><!--{t string="tpl_255"}--></a>
350        <a class="btn-normal" href="javascript:;" onclick="fnSelectCheckSubmit('pdf.php'); return false;"><span><!--{t string="tpl_401"}--></span></a>
351        <a class="btn-normal" href="javascript:;" onclick="fnSelectMailCheckSubmit('mail.php'); return false;"><span><!--{t string="tpl_402"}--></span></a>
352    </div>
353    <!--{if count($arrResults) > 0}-->
354
355    <!--{include file=$tpl_pager}-->
356
357    <!--{* 検索結果表示テーブル *}-->
358        <table class="list">
359        <col width="10%" />
360        <col width="8%" />
361        <col width="15%" />
362        <col width="8%" />
363        <col width="10%" />
364        <col width="10%" />
365        <col width="10%" />
366        <col width="10%" />
367        <col width="5%" />
368        <col width="9%" />
369        <col width="5%" />
370        <!--{* ペイジェントモジュール連携用 *}-->
371        <!--{assign var=path value=`$smarty.const.MODULE_REALDIR`mdl_paygent/paygent_order_index.tpl}-->
372        <!--{if file_exists($path)}-->
373            <!--{include file=$path}-->
374        <!--{else}-->
375        <tr>
376            <th><!--{t string="tpl_359"}--></th>
377            <th><!--{t string="tpl_231"}--></th>
378            <th><!--{t string="tpl_208"}--></th>
379            <th><!--{t string="tpl_016"}--></th>
380            <th><!--{t string="tpl_403"}--></th>
381            <th><!--{t string="tpl_404"}--></th>
382            <th><!--{t string="tpl_360"}--></th>
383            <th><label for="pdf_check"><!--{t string="tpl_405"}--></label> <input type="checkbox" name="pdf_check" id="pdf_check" onclick="fnAllCheck(this, 'input[name=pdf_order_id[]]')" /></th>
384            <th><!--{t string="tpl_003"}--></th>
385            <th><!--{t string="tpl_719"}--> <input type="checkbox" name="mail_check" id="mail_check" onclick="fnAllCheck(this, 'input[name=mail_order_id[]]')" /></th>
386            <th><!--{t string="tpl_004"}--></th>
387        </tr>
388
389        <!--{section name=cnt loop=$arrResults}-->
390        <!--{assign var=status value="`$arrResults[cnt].status`"}-->
391        <tr style="background:<!--{$arrORDERSTATUS_COLOR[$status]}-->;">
392            <td class="center"><!--{$arrResults[cnt].create_date|sfDispDBDate}--></td>
393            <td class="center"><!--{$arrResults[cnt].order_id}--></td>
394            <td><!--{$arrResults[cnt].order_name01|h}--> <!--{$arrResults[cnt].order_name02|h}--></td>
395            <!--{assign var=payment_id value="`$arrResults[cnt].payment_id`"}-->
396            <td class="center"><!--{$arrPayments[$payment_id]}--></td>
397            <td class="right"><!--{$arrResults[cnt].total|number_format}--></td>
398            <td class="center"><!--{$arrResults[cnt].commit_date|sfDispDBDate|default_t:"tpl_234"}--></td>
399            <td class="center"><!--{$arrORDERSTATUS[$status]}--></td>
400            <td class="center">
401                <input type="checkbox" name="pdf_order_id[]" value="<!--{$arrResults[cnt].order_id}-->" id="pdf_order_id_<!--{$arrResults[cnt].order_id}-->"/><label for="pdf_order_id_<!--{$arrResults[cnt].order_id}-->"><!--{t string="tpl_406"}--></label><br>
402                <a href="./" onClick="win02('pdf.php?order_id=<!--{$arrResults[cnt].order_id}-->','pdf_input','620','650'); return false;"><span class="icon_class"><!--{t string="tpl_407"}--></span></a>
403            </td>
404            <td class="center"><a href="?" onclick="fnChangeAction('<!--{$smarty.const.ADMIN_ORDER_EDIT_URLPATH}-->'); fnModeSubmit('pre_edit', 'order_id', '<!--{$arrResults[cnt].order_id}-->'); return false;"><span class="icon_edit"><!--{t string="tpl_003"}--></span></a></td>
405            <td class="center">
406                <!--{if $arrResults[cnt].order_email|strlen >= 1}-->
407                    <input type="checkbox" name="mail_order_id[]" value="<!--{$arrResults[cnt].order_id}-->" id="mail_order_id_<!--{$arrResults[cnt].order_id}-->"/><label for="mail_order_id_<!--{$arrResults[cnt].order_id}-->"><!--{t string="tpl_408"}--></label><br>
408                    <a href="?" onclick="fnChangeAction('<!--{$smarty.const.ADMIN_ORDER_MAIL_URLPATH}-->'); fnModeSubmit('pre_edit', 'order_id', '<!--{$arrResults[cnt].order_id}-->'); return false;"><span class="icon_mail"><!--{t string="tpl_409"}--></span></a>
409                <!--{/if}-->
410            </td>
411            <td class="center"><a href="?" onclick="fnModeSubmit('delete_order', 'order_id', <!--{$arrResults[cnt].order_id}-->); return false;"><span class="icon_delete"><!--{t string="tpl_004"}--></span></a></td>
412        </tr>
413        <!--{/section}-->
414        <!--{/if}-->
415    </table>
416    <!--{* 検索結果表示テーブル *}-->
417
418    <!--{/if}-->
419
420</form>
421<!--{/if}-->
422</div>
Note: See TracBrowser for help on using the repository browser.