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

Revision 22177, 20.9 KB checked in by h_yoshimoto, 11 years ago (diff)

#1997 カナのテキストフィールドを削除

  • 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 colspan="3">
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="60" class="box60" />
149            </td>
150        </tr>
151        <tr>
152            <th><!--{t string="tpl_108"}--></th>
153            <td>
154                <!--{assign var=key value="search_order_email"}-->
155                <span class="attention"><!--{$arrErr[$key]}--></span>
156                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
157            </td>
158            <th><!--{t string="tpl_037"}--></th>
159            <td>
160                <!--{assign var=key value="search_order_tel"}-->
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        </tr>
165        <tr>
166            <th><!--{t string="tpl_217"}--></th>
167            <td colspan="3">
168                <span class="attention"><!--{$arrErr.search_sbirthyear}--></span>
169                <span class="attention"><!--{$arrErr.search_ebirthyear}--></span>
170                <select name="search_sbirthyear" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
171                <option value="">----</option>
172                <!--{html_options options=$arrBirthYear selected=$arrForm.search_sbirthyear.value}-->
173                </select>年
174                <select name="search_sbirthmonth" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
175                <option value="">--</option>
176                <!--{html_options options=$arrMonth selected=$arrForm.search_sbirthmonth.value}-->
177                </select>月
178                <select name="search_sbirthday" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
179                <option value="">--</option>
180                <!--{html_options options=$arrDay selected=$arrForm.search_sbirthday.value}-->
181                </select>日
182                <!--{t string="-"}-->
183                <select name="search_ebirthyear" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
184                <option value="">----</option>
185                <!--{html_options options=$arrBirthYear selected=$arrForm.search_ebirthyear.value}-->
186                </select>年
187                <select name="search_ebirthmonth" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
188                <option value="">--</option>
189                <!--{html_options options=$arrMonth selected=$arrForm.search_ebirthmonth.value}-->
190                </select>月
191                <select name="search_ebirthday" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
192                <option value="">--</option>
193                <!--{html_options options=$arrDay selected=$arrForm.search_ebirthday.value}-->
194                </select>日
195            </td>
196        </tr>
197        <tr>
198            <th><!--{t string="tpl_215"}--></th>
199            <td colspan="3">
200            <!--{assign var=key value="search_order_sex"}-->
201            <span class="attention"><!--{$arrErr[$key]}--></span>
202            <!--{html_checkboxes name="$key" options=$arrSex selected=$arrForm[$key].value}-->
203            </td>
204        </tr>
205        <tr>
206            <th><!--{t string="tpl_016"}--></th>
207            <td colspan="3">
208            <!--{assign var=key value="search_payment_id"}-->
209            <span class="attention"><!--{$arrErr[$key]|h}--></span>
210            <!--{html_checkboxes name="$key" options=$arrPayments selected=$arrForm[$key].value}-->
211            </td>
212        </tr>
213        <tr>
214            <th><!--{t string="tpl_359"}--></th>
215            <td colspan="3">
216                <!--{if $arrErr.search_sorderyear}--><span class="attention"><!--{$arrErr.search_sorderyear}--></span><!--{/if}-->
217                <!--{if $arrErr.search_eorderyear}--><span class="attention"><!--{$arrErr.search_eorderyear}--></span><!--{/if}-->
218                <select name="search_sorderyear" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
219                <option value="">----</option>
220                <!--{html_options options=$arrRegistYear selected=$arrForm.search_sorderyear.value}-->
221                </select>年
222                <select name="search_sordermonth" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
223                <option value="">--</option>
224                <!--{html_options options=$arrMonth selected=$arrForm.search_sordermonth.value}-->
225                </select>月
226                <select name="search_sorderday" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
227                <option value="">--</option>
228                <!--{html_options options=$arrDay selected=$arrForm.search_sorderday.value}-->
229                </select>日
230                <!--{t string="-"}-->
231                <select name="search_eorderyear" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
232                <option value="">----</option>
233                <!--{html_options options=$arrRegistYear selected=$arrForm.search_eorderyear.value}-->
234                </select>年
235                <select name="search_eordermonth" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
236                <option value="">--</option>
237                <!--{html_options options=$arrMonth selected=$arrForm.search_eordermonth.value}-->
238                </select>月
239                <select name="search_eorderday" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
240                <option value="">--</option>
241                <!--{html_options options=$arrDay selected=$arrForm.search_eorderday.value}-->
242                </select>日
243            </td>
244        </tr>
245        <tr>
246            <th><!--{t string="tpl_399"}--></th>
247            <td colspan="3">
248                <!--{if $arrErr.search_supdateyear}--><span class="attention"><!--{$arrErr.search_supdateyear}--></span><!--{/if}-->
249                <!--{if $arrErr.search_eupdateyear}--><span class="attention"><!--{$arrErr.search_eupdateyear}--></span><!--{/if}-->
250                <select name="search_supdateyear" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
251                    <option value="">----</option>
252                    <!--{html_options options=$arrRegistYear selected=$arrForm.search_supdateyear.value}-->
253                </select>年
254                <select name="search_supdatemonth" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
255                    <option value="">--</option>
256                    <!--{html_options options=$arrMonth selected=$arrForm.search_supdatemonth.value}-->
257                </select>月
258                <select name="search_supdateday" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
259                    <option value="">--</option>
260                    <!--{html_options options=$arrDay selected=$arrForm.search_supdateday.value}-->
261                </select>日
262                <!--{t string="-"}-->
263                <select name="search_eupdateyear" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
264                    <option value="">----</option>
265                    <!--{html_options options=$arrRegistYear selected=$arrForm.search_eupdateyear.value}-->
266                </select>年
267                <select name="search_eupdatemonth" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
268                    <option value="">--</option>
269                    <!--{html_options options=$arrMonth selected=$arrForm.search_eupdatemonth.value}-->
270                </select>月
271                <select name="search_eupdateday" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
272                    <option value="">--</option>
273                    <!--{html_options options=$arrDay selected=$arrForm.search_eupdateday.value}-->
274                </select>日
275            </td>
276        </tr>
277        <tr>
278            <th><!--{t string="tpl_232"}--></th>
279            <td>
280                <!--{assign var=key1 value="search_total1"}-->
281                <!--{assign var=key2 value="search_total2"}-->
282                <span class="attention"><!--{$arrErr[$key1]}--></span>
283                <span class="attention"><!--{$arrErr[$key2]}--></span>
284                <!--{t string="currency_prefix"}-->
285                <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|h}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="6" class="box6" />
286                <!--{t string="currency_suffix"}-->
287                <!--{t string="-"}-->
288                <!--{t string="currency_prefix"}-->
289                <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|h}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="6" class="box6" />
290                <!--{t string="currency_suffix"}-->
291            </td>
292            <th><!--{t string="tpl_400"}--></th>
293            <td>
294                <!--{assign var=key value="search_product_name"}-->
295                <!--{if $arrErr[$key]}--><span class="attention"><!--{$arrErr[$key]}--></span><!--{/if}-->
296                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="6" class="box30" />
297            </td>
298        </tr>
299    </table>
300
301    <div class="btn">
302        <p class="page_rows"><!--{t string="tpl_251"}-->
303            <!--{assign var=key value="search_page_max"}-->
304            <span class="attention"><!--{$arrErr[$key]}--></span>
305            <!--{t string="record_prefix"}-->
306            <select name="<!--{$arrForm[$key].keyname}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
307            <!--{html_options options=$arrPageMax selected=$arrForm[$key].value}-->
308            </select>
309            <!--{t string="record_suffix"}-->
310        </p>
311        <div class="btn-area">
312            <ul>
313                <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>
314            </ul>
315        </div>
316    </div>
317    <!--検索条件設定テーブルここまで-->
318</form>
319
320<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete')}-->
321
322<!--★★検索結果一覧★★-->
323<form name="form1" id="form1" method="post" action="?">
324<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
325<input type="hidden" name="mode" value="search" />
326<input type="hidden" name="order_id" value="" />
327<!--{foreach key=key item=item from=$arrHidden}-->
328    <!--{if is_array($item)}-->
329        <!--{foreach item=c_item from=$item}-->
330        <input type="hidden" name="<!--{$key|h}-->[]" value="<!--{$c_item|h}-->" />
331        <!--{/foreach}-->
332    <!--{else}-->
333        <input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->" />
334    <!--{/if}-->
335<!--{/foreach}-->
336    <h2><!--{t string="tpl_253"}--></h2>
337        <div class="btn">
338        <!--検索結果数--><!--{t string="tpl_230" T_FIELD=$tpl_linemax}-->
339        <!--{if $smarty.const.ADMIN_MODE == '1'}-->
340        <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('delete_all','',''); return false;"><span><!--{t string="tpl_327"}--></span></a>
341        <!--{/if}-->
342        <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('csv','',''); return false;"><!--{t string="tpl_254"}--></a>
343        <a class="btn-normal" href="../contents/csv.php?tpl_subno_csv=order"><!--{t string="tpl_255"}--></a>
344        <a class="btn-normal" href="javascript:;" onclick="fnSelectCheckSubmit('pdf.php'); return false;"><span><!--{t string="tpl_401"}--></span></a>
345        <a class="btn-normal" href="javascript:;" onclick="fnSelectMailCheckSubmit('mail.php'); return false;"><span><!--{t string="tpl_402"}--></span></a>
346    </div>
347    <!--{if count($arrResults) > 0}-->
348
349    <!--{include file=$tpl_pager}-->
350
351    <!--{* 検索結果表示テーブル *}-->
352        <table class="list">
353        <col width="10%" />
354        <col width="8%" />
355        <col width="15%" />
356        <col width="8%" />
357        <col width="10%" />
358        <col width="10%" />
359        <col width="10%" />
360        <col width="10%" />
361        <col width="5%" />
362        <col width="9%" />
363        <col width="5%" />
364        <!--{* ペイジェントモジュール連携用 *}-->
365        <!--{assign var=path value=`$smarty.const.MODULE_REALDIR`mdl_paygent/paygent_order_index.tpl}-->
366        <!--{if file_exists($path)}-->
367            <!--{include file=$path}-->
368        <!--{else}-->
369        <tr>
370            <th><!--{t string="tpl_359"}--></th>
371            <th><!--{t string="tpl_231"}--></th>
372            <th><!--{t string="tpl_208"}--></th>
373            <th><!--{t string="tpl_016"}--></th>
374            <th><!--{t string="tpl_403"}--></th>
375            <th><!--{t string="tpl_404"}--></th>
376            <th><!--{t string="tpl_360"}--></th>
377            <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>
378            <th><!--{t string="tpl_003"}--></th>
379            <th><!--{t string="tpl_719"}--> <input type="checkbox" name="mail_check" id="mail_check" onclick="fnAllCheck(this, 'input[name=mail_order_id[]]')" /></th>
380            <th><!--{t string="tpl_004"}--></th>
381        </tr>
382
383        <!--{section name=cnt loop=$arrResults}-->
384        <!--{assign var=status value="`$arrResults[cnt].status`"}-->
385        <tr style="background:<!--{$arrORDERSTATUS_COLOR[$status]}-->;">
386            <td class="center"><!--{$arrResults[cnt].create_date|sfDispDBDate}--></td>
387            <td class="center"><!--{$arrResults[cnt].order_id}--></td>
388            <td><!--{$arrResults[cnt].order_name01|h}--> <!--{$arrResults[cnt].order_name02|h}--></td>
389            <!--{assign var=payment_id value="`$arrResults[cnt].payment_id`"}-->
390            <td class="center"><!--{$arrPayments[$payment_id]}--></td>
391            <td class="right"><!--{$arrResults[cnt].total|number_format}--></td>
392            <td class="center"><!--{$arrResults[cnt].commit_date|sfDispDBDate|default_t:"tpl_234"}--></td>
393            <td class="center"><!--{$arrORDERSTATUS[$status]}--></td>
394            <td class="center">
395                <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>
396                <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>
397            </td>
398            <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>
399            <td class="center">
400                <!--{if $arrResults[cnt].order_email|strlen >= 1}-->
401                    <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>
402                    <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>
403                <!--{/if}-->
404            </td>
405            <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>
406        </tr>
407        <!--{/section}-->
408        <!--{/if}-->
409    </table>
410    <!--{* 検索結果表示テーブル *}-->
411
412    <!--{/if}-->
413
414</form>
415<!--{/if}-->
416</div>
Note: See TracBrowser for help on using the repository browser.