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

Revision 21687, 20.5 KB checked in by eoogle, 12 years ago (diff)

#1516 (複数受注でまとめてメール送信)

  • 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-2011 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('チェックボックスが選択されていません');
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        WIN.focus();
72
73        // 復元
74        fm.target = tmpTarget;
75        fm.mode.value = tmpMode;
76        fm.action = tmpAction;
77    }
78   
79   
80    function fnSelectMailCheckSubmit(action){
81
82        var fm = document.form1;
83
84        if (!fm["mail_order_id[]"]) {
85            return false;
86        }
87
88        var checkflag = false;
89        var max = fm["mail_order_id[]"].length;
90
91        if (max) {
92            for (var i=0; i<max; i++) {
93                if(fm["mail_order_id[]"][i].checked == true){
94                    checkflag = true;
95                }
96            }
97        } else {
98            if(fm["mail_order_id[]"].checked == true) {
99                checkflag = true;
100            }
101        }
102
103        if(!checkflag){
104            alert('チェックボックスが選択されていません');
105            return false;
106        }
107       
108        fm.mode.value="mail_select";
109        fm.action=action;
110        fm.submit();
111    }
112
113
114//-->
115</script>
116<div id="order" class="contents-main">
117<form name="search_form" id="search_form" method="post" action="?">
118<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
119<input type="hidden" name="mode" value="search" />
120    <h2>検索条件設定</h2>
121    <!--{* 検索条件設定テーブルここから *}-->
122    <table>
123        <tr>
124            <th>注文番号</th>
125            <td>
126                <!--{assign var=key1 value="search_order_id1"}-->
127                <!--{assign var=key2 value="search_order_id2"}-->
128                <span class="attention"><!--{$arrErr[$key1]}--></span>
129                <span class="attention"><!--{$arrErr[$key2]}--></span>
130                <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|h}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="6" class="box6" />
131                ~
132                <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|h}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="6" class="box6" />
133            </td>
134            <th>対応状況</th>
135            <td>
136                <!--{assign var=key value="search_order_status"}-->
137                <span class="attention"><!--{$arrErr[$key]}--></span>
138                <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
139                <option value="">選択してください</option>
140                <!--{html_options options=$arrORDERSTATUS selected=$arrForm[$key].value}-->
141                </select>
142            </td>
143        </tr>
144        <tr>
145            <th>お名前</th>
146            <td>
147            <!--{assign var=key value="search_order_name"}-->
148            <span class="attention"><!--{$arrErr[$key]}--></span>
149            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
150            </td>
151            <th>お名前(フリガナ)</th>
152            <td>
153            <!--{assign var=key value="search_order_kana"}-->
154            <span class="attention"><!--{$arrErr[$key]}--></span>
155            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
156            </td>
157        </tr>
158        <tr>
159            <th>メールアドレス</th>
160            <td>
161                <!--{assign var=key value="search_order_email"}-->
162                <span class="attention"><!--{$arrErr[$key]}--></span>
163                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
164            </td>
165            <th>TEL</th>
166            <td>
167                <!--{assign var=key value="search_order_tel"}-->
168                <span class="attention"><!--{$arrErr[$key]}--></span>
169                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
170            </td>
171        </tr>
172        <tr>
173            <th>生年月日</th>
174            <td colspan="3">
175                <span class="attention"><!--{$arrErr.search_sbirthyear}--></span>
176                <span class="attention"><!--{$arrErr.search_ebirthyear}--></span>
177                <select name="search_sbirthyear" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
178                <option value="">----</option>
179                <!--{html_options options=$arrBirthYear selected=$arrForm.search_sbirthyear.value}-->
180                </select>年
181                <select name="search_sbirthmonth" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
182                <option value="">--</option>
183                <!--{html_options options=$arrMonth selected=$arrForm.search_sbirthmonth.value}-->
184                </select>月
185                <select name="search_sbirthday" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
186                <option value="">--</option>
187                <!--{html_options options=$arrDay selected=$arrForm.search_sbirthday.value}-->
188                </select>日~
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>性別</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>支払方法</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>受注日</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                <select name="search_eorderyear" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
237                <option value="">----</option>
238                <!--{html_options options=$arrRegistYear selected=$arrForm.search_eorderyear.value}-->
239                </select>年
240                <select name="search_eordermonth" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
241                <option value="">--</option>
242                <!--{html_options options=$arrMonth selected=$arrForm.search_eordermonth.value}-->
243                </select>月
244                <select name="search_eorderday" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
245                <option value="">--</option>
246                <!--{html_options options=$arrDay selected=$arrForm.search_eorderday.value}-->
247                </select>日
248            </td>
249        </tr>
250        <tr>
251            <th>更新日</th>
252            <td colspan="3">
253                <!--{if $arrErr.search_supdateyear}--><span class="attention"><!--{$arrErr.search_supdateyear}--></span><!--{/if}-->
254                <!--{if $arrErr.search_eupdateyear}--><span class="attention"><!--{$arrErr.search_eupdateyear}--></span><!--{/if}-->
255                <select name="search_supdateyear" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
256                    <option value="">----</option>
257                    <!--{html_options options=$arrRegistYear selected=$arrForm.search_supdateyear.value}-->
258                </select>年
259                <select name="search_supdatemonth" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
260                    <option value="">--</option>
261                    <!--{html_options options=$arrMonth selected=$arrForm.search_supdatemonth.value}-->
262                </select>月
263                <select name="search_supdateday" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
264                    <option value="">--</option>
265                    <!--{html_options options=$arrDay selected=$arrForm.search_supdateday.value}-->
266                </select>日~
267                <select name="search_eupdateyear" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
268                    <option value="">----</option>
269                    <!--{html_options options=$arrRegistYear selected=$arrForm.search_eupdateyear.value}-->
270                </select>年
271                <select name="search_eupdatemonth" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
272                    <option value="">--</option>
273                    <!--{html_options options=$arrMonth selected=$arrForm.search_eupdatemonth.value}-->
274                </select>月
275                <select name="search_eupdateday" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
276                    <option value="">--</option>
277                    <!--{html_options options=$arrDay selected=$arrForm.search_eupdateday.value}-->
278                </select>日
279            </td>
280        </tr>
281        <tr>
282            <th>購入金額</th>
283            <td>
284                <!--{assign var=key1 value="search_total1"}-->
285                <!--{assign var=key2 value="search_total2"}-->
286                <span class="attention"><!--{$arrErr[$key1]}--></span>
287                <span class="attention"><!--{$arrErr[$key2]}--></span>
288                <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|h}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="6" class="box6" />
289                円 ~
290                <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|h}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="6" class="box6" />
291                円
292            </td>
293            <th>購入商品</th>
294            <td>
295                <!--{assign var=key value="search_product_name"}-->
296                <!--{if $arrErr[$key]}--><span class="attention"><!--{$arrErr[$key]}--></span><!--{/if}-->
297                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|h}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="6" class="box30" />
298            </td>
299        </tr>
300    </table>
301
302    <div class="btn">
303        <p class="page_rows">検索結果表示件数
304        <!--{assign var=key value="search_page_max"}-->
305        <span class="attention"><!--{$arrErr[$key]}--></span>
306        <select name="<!--{$arrForm[$key].keyname}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
307        <!--{html_options options=$arrPageMax selected=$arrForm[$key].value}-->
308        </select> 件</p>
309        <div class="btn-area">
310            <ul>
311                <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('search_form', 'search', '', ''); return false;"><span class="btn-next">この条件で検索する</span></a></li>
312            </ul>
313        </div>
314    </div>
315    <!--検索条件設定テーブルここまで-->
316</form>
317
318<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete')}-->
319
320<!--★★検索結果一覧★★-->
321<form name="form1" id="form1" method="post" action="?">
322<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
323<input type="hidden" name="mode" value="search" />
324<input type="hidden" name="order_id" value="" />
325<!--{foreach key=key item=item from=$arrHidden}-->
326    <!--{if is_array($item)}-->
327        <!--{foreach item=c_item from=$item}-->
328        <input type="hidden" name="<!--{$key|h}-->[]" value="<!--{$c_item|h}-->" />
329        <!--{/foreach}-->
330    <!--{else}-->
331        <input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->" />
332    <!--{/if}-->
333<!--{/foreach}-->
334    <h2>検索結果一覧</h2>
335        <div class="btn">
336        <span class="attention"><!--検索結果数--><!--{$tpl_linemax}-->件</span>&nbsp;が該当しました。
337        <!--{if $smarty.const.ADMIN_MODE == '1'}-->
338        <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('delete_all','',''); return false;"><span>検索結果をすべて削除</span></a>
339        <!--{/if}-->
340        <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('csv','',''); return false;">CSV ダウンロード</a>
341        <a class="btn-normal" href="../contents/csv.php?tpl_subno_csv=order">CSV 出力項目設定</a>
342        <a class="btn-normal" href="javascript:;" onclick="fnSelectCheckSubmit('pdf.php'); return false;"><span>PDF一括出力</span></a>
343        <a class="btn-normal" href="javascript:;" onclick="fnSelectMailCheckSubmit('mail.php'); return false;"><span>メール一括通知</span></a>
344    </div>
345    <!--{if count($arrResults) > 0}-->
346
347    <!--{include file=$tpl_pager}-->
348
349    <!--{* 検索結果表示テーブル *}-->
350        <table class="list">
351        <col width="10%" />
352        <col width="8%" />
353        <col width="15%" />
354        <col width="8%" />
355        <col width="10%" />
356        <col width="10%" />
357        <col width="10%" />
358        <col width="10%" />
359        <col width="5%" />
360        <col width="9%" />
361        <col width="5%" />
362        <!--{* ペイジェントモジュール連携用 *}-->
363        <!--{assign var=path value=`$smarty.const.MODULE_REALDIR`mdl_paygent/paygent_order_index.tpl}-->
364        <!--{if file_exists($path)}-->
365            <!--{include file=$path}-->
366        <!--{else}-->
367        <tr>
368            <th>受注日</th>
369            <th>注文番号</th>
370            <th>お名前</th>
371            <th>支払方法</th>
372            <th>購入金額(円)</th>
373            <th>全商品発送日</th>
374            <th>対応状況</th>
375            <th><label for="pdf_check">帳票</label> <input type="checkbox" name="pdf_check" id="pdf_check" onclick="fnAllCheck(this, 'input[name=pdf_order_id[]]')" /></th>
376            <th>編集</th>
377            <th>メール <input type="checkbox" name="mail_check" id="mail_check" onclick="fnAllCheck(this, 'input[name=mail_order_id[]]')" /></th>
378            <th>削除</th>
379        </tr>
380
381        <!--{section name=cnt loop=$arrResults}-->
382        <!--{assign var=status value="`$arrResults[cnt].status`"}-->
383        <tr style="background:<!--{$arrORDERSTATUS_COLOR[$status]}-->;">
384            <td class="center"><!--{$arrResults[cnt].create_date|sfDispDBDate}--></td>
385            <td class="center"><!--{$arrResults[cnt].order_id}--></td>
386            <td><!--{$arrResults[cnt].order_name01|h}--> <!--{$arrResults[cnt].order_name02|h}--></td>
387            <!--{assign var=payment_id value="`$arrResults[cnt].payment_id`"}-->
388            <td class="center"><!--{$arrPayments[$payment_id]}--></td>
389            <td class="right"><!--{$arrResults[cnt].total|number_format}--></td>
390            <td class="center"><!--{$arrResults[cnt].commit_date|sfDispDBDate|default:"未発送"}--></td>
391            <td class="center"><!--{$arrORDERSTATUS[$status]}--></td>
392            <td class="center">
393                <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}-->">一括出力</label><br>
394                <a href="./" onClick="win02('pdf.php?order_id=<!--{$arrResults[cnt].order_id}-->','pdf_input','620','650'); return false;"><span class="icon_class">個別出力</span></a>
395            </td>
396            <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">編集</span></a></td>
397            <td class="center">
398                <!--{if $arrResults[cnt].order_email|strlen >= 1}-->
399                    <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}-->">一括通知</label><br>
400                    <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">個別通知</span></a>
401                <!--{/if}-->
402            </td>
403            <td class="center"><a href="?" onclick="fnModeSubmit('delete_order', 'order_id', <!--{$arrResults[cnt].order_id}-->); return false;"><span class="icon_delete">削除</span></a></td>
404        </tr>
405        <!--{/section}-->
406        <!--{/if}-->
407    </table>
408    <!--{* 検索結果表示テーブル *}-->
409
410    <!--{/if}-->
411
412</form>
413<!--{/if}-->
414</div>
Note: See TracBrowser for help on using the repository browser.