source: tmp/version-2_5-test/data/Smarty/templates/default/admin/order/index.tpl @ 18609

Revision 18609, 18.7 KB checked in by kajiwara, 14 years ago (diff)

正式版にナイトリービルド版をマージしてみるテスト

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/html; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2008 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<!--
26    function fnSelectCheckSubmit(action){
27
28        var fm = document.form1;
29       
30        if (!fm["pdf_order_id[]"]) {
31            return false;
32        }
33       
34        var checkflag = false;
35        var max = fm["pdf_order_id[]"].length;
36       
37        if (max) {
38            for (var i=0; i<max; i++) {
39                if(fm["pdf_order_id[]"][i].checked == true){
40                    checkflag = true;
41                }
42            }
43        } else {
44            if(fm["pdf_order_id[]"].checked == true) {
45                checkflag = true;
46            }
47        }
48
49        if(!checkflag){
50            alert('チェックボックスが選択されていません');
51            return false;
52        }
53       
54        fnOpenPdfSettingPage(action);
55    }
56
57    function fnOpenPdfSettingPage(action){
58        var fm = document.form1;
59        var WIN;
60        WIN = window.open("about:blank", "pdf", "width=500,height=600,scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no");
61       
62        // 退避
63        tmpTarget = fm.target;
64        tmpMode = fm.mode.value;
65        tmpAction = fm.action;
66       
67        fm.target = "pdf";
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    function fnBoxChecked(check){
80        var fm = document.form1;
81        var max = fm["pdf_order_id[]"].length;
82        if (max) {
83            for (var i=0; i<max; i++) {
84                fm["pdf_order_id[]"][i].checked = check;
85            }
86        } else {
87            fm["pdf_order_id[]"].checked = check;
88        }
89    }
90   
91//-->
92</script>
93<div id="order" class="contents-main">
94<form name="search_form" id="search_form" method="post" action="?">
95<input type="hidden" name="mode" value="search" />
96    <h2>検索条件設定</h2>
97    <!--{* 検索条件設定テーブルここから *}-->
98    <table>
99        <tr>
100            <th>注文番号</th>
101            <td>
102                <!--{assign var=key1 value="search_order_id1"}-->
103                <!--{assign var=key2 value="search_order_id2"}-->
104                <span class="attention"><!--{$arrErr[$key1]}--></span>
105                <span class="attention"><!--{$arrErr[$key2]}--></span>
106                <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="6" class="box6" />
107                ~
108                <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="6" class="box6" />
109            </td>
110        </tr>
111        <tr>
112            <th>対応状況</th>
113            <td>
114                <!--{assign var=key value="search_order_status"}-->
115                <span class="attention"><!--{$arrErr[$key]}--></span>
116                <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
117                <option value="">選択してください</option>
118                <!--{html_options options=$arrORDERSTATUS selected=$arrForm[$key].value}-->
119                </select>
120            </td>
121        </tr>
122        <tr>
123            <th>顧客名</th>
124            <td>
125            <!--{assign var=key value="search_order_name"}-->
126            <span class="attention"><!--{$arrErr[$key]}--></span>
127            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
128            </td>
129        </tr>
130        <tr>
131            <th>顧客名(カナ)</th>
132            <td>
133            <!--{assign var=key value="search_order_kana"}-->
134            <span class="attention"><!--{$arrErr[$key]}--></span>
135            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
136            </td>
137        </tr>
138        <tr>
139            <th>メールアドレス</th>
140            <td>
141                <!--{assign var=key value="search_order_email"}-->
142                <span class="attention"><!--{$arrErr[$key]}--></span>
143                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
144            </td>
145        </tr>
146        <tr>
147            <th>TEL</th>
148            <td>
149                <!--{assign var=key value="search_order_tel"}-->
150                <span class="attention"><!--{$arrErr[$key]}--></span>
151                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
152            </td>
153        </tr>
154        <tr>
155            <th>生年月日</th>
156            <td>
157                <span class="attention"><!--{$arrErr.search_sbirthyear}--></span>
158                <span class="attention"><!--{$arrErr.search_ebirthyear}--></span>
159                <select name="search_sbirthyear" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
160                <option value="">----</option>
161                <!--{html_options options=$arrBirthYear selected=$arrForm.search_sbirthyear.value}-->
162                </select>年
163                <select name="search_sbirthmonth" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
164                <option value="">--</option>
165                <!--{html_options options=$arrMonth selected=$arrForm.search_sbirthmonth.value}-->
166                </select>月
167                <select name="search_sbirthday" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
168                <option value="">--</option>
169                <!--{html_options options=$arrDay selected=$arrForm.search_sbirthday.value}-->
170                </select>日~
171                <select name="search_ebirthyear" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
172                <option value="">----</option>
173                <!--{html_options options=$arrBirthYear selected=$arrForm.search_ebirthyear.value}-->
174                </select>年
175                <select name="search_ebirthmonth" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
176                <option value="">--</option>
177                <!--{html_options options=$arrMonth selected=$arrForm.search_ebirthmonth.value}-->
178                </select>月
179                <select name="search_ebirthday" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
180                <option value="">--</option>
181                <!--{html_options options=$arrDay selected=$arrForm.search_ebirthday.value}-->
182                </select>日
183            </td>
184        </tr>
185        <tr>
186            <th>性別</th>
187            <td>
188            <!--{assign var=key value="search_order_sex"}-->
189            <span class="attention"><!--{$arrErr[$key]}--></span>
190            <!--{html_checkboxes name="$key" options=$arrSex selected=$arrForm[$key].value}-->
191            </td>
192        </tr>
193        <tr>
194            <th>支払方法</th>
195            <td>
196            <!--{assign var=key value="search_payment_id"}-->
197            <span class="attention"><!--{$arrErr[$key]|escape}--></span>
198            <!--{html_checkboxes name="$key" options=$arrPayment|escape selected=$arrForm[$key].value}-->
199            </td>
200        </tr>
201        <tr>
202            <th>受注日</th>
203            <td>
204                <!--{if $arrErr.search_sorderyear}--><span class="attention"><!--{$arrErr.search_sorderyear}--></span><!--{/if}-->
205                <!--{if $arrErr.search_eorderyear}--><span class="attention"><!--{$arrErr.search_eorderyear}--></span><!--{/if}-->
206                <select name="search_sorderyear" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
207                <option value="">----</option>
208                <!--{html_options options=$arrRegistYear selected=$arrForm.search_sorderyear.value}-->
209                </select>年
210                <select name="search_sordermonth" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
211                <option value="">--</option>
212                <!--{html_options options=$arrMonth selected=$arrForm.search_sordermonth.value}-->
213                </select>月
214                <select name="search_sorderday" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
215                <option value="">--</option>
216                <!--{html_options options=$arrDay selected=$arrForm.search_sorderday.value}-->
217                </select>日~
218                <select name="search_eorderyear" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
219                <option value="">----</option>
220                <!--{html_options options=$arrRegistYear selected=$arrForm.search_eorderyear.value}-->
221                </select>年
222                <select name="search_eordermonth" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
223                <option value="">--</option>
224                <!--{html_options options=$arrMonth selected=$arrForm.search_eordermonth.value}-->
225                </select>月
226                <select name="search_eorderday" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
227                <option value="">--</option>
228                <!--{html_options options=$arrDay selected=$arrForm.search_eorderday.value}-->
229                </select>日
230            </td>
231        </tr>
232        <tr>
233            <th>更新日</th>
234            <td>
235                <!--{if $arrErr.search_supdateyear}--><span class="attention"><!--{$arrErr.search_supdateyear}--></span><!--{/if}-->
236                <!--{if $arrErr.search_eupdateyear}--><span class="attention"><!--{$arrErr.search_eupdateyear}--></span><!--{/if}-->
237                <select name="search_supdateyear" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
238                    <option value="">----</option>
239                    <!--{html_options options=$arrRegistYear selected=$arrForm.search_supdateyear.value}-->
240                </select>年
241                <select name="search_supdatemonth" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
242                    <option value="">--</option>
243                    <!--{html_options options=$arrMonth selected=$arrForm.search_supdatemonth.value}-->
244                </select>月
245                <select name="search_supdateday" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
246                    <option value="">--</option>
247                    <!--{html_options options=$arrDay selected=$arrForm.search_supdateday.value}-->
248                </select>日~
249                <select name="search_eupdateyear" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
250                    <option value="">----</option>
251                    <!--{html_options options=$arrRegistYear selected=$arrForm.search_eupdateyear.value}-->
252                </select>年
253                <select name="search_eupdatemonth" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
254                    <option value="">--</option>
255                    <!--{html_options options=$arrMonth selected=$arrForm.search_eupdatemonth.value}-->
256                </select>月
257                <select name="search_eupdateday" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
258                    <option value="">--</option>
259                    <!--{html_options options=$arrDay selected=$arrForm.search_eupdateday.value}-->
260                </select>日
261            </td>
262        </tr>
263        <tr>
264            <th>購入金額</th>
265            <td>
266                <!--{assign var=key1 value="search_total1"}-->
267                <!--{assign var=key2 value="search_total2"}-->
268                <span class="attention"><!--{$arrErr[$key1]}--></span>
269                <span class="attention"><!--{$arrErr[$key2]}--></span>
270                <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="6" class="box6" />
271                円 ~
272                <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="6" class="box6" />
273                円
274            </td>
275        </tr>
276        <tr>
277            <th>購入商品</th>
278            <td>
279                <!--{assign var=key value="search_product_name"}-->
280                <!--{if $arrErr[$key]}--><span class="attention"><!--{$arrErr[$key]}--></span><!--{/if}-->
281                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="6" class="box30" />
282            </td>
283        </tr>
284    </table>
285
286    <div>
287        検索結果表示件数
288        <!--{assign var=key value="search_page_max"}-->
289        <span class="attention"><!--{$arrErr[$key]}--></span>
290        <select name="<!--{$arrForm[$key].keyname}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
291        <!--{html_options options=$arrPageMax selected=$arrForm[$key].value}-->
292        </select> 件
293        <button type="submit"><span>この条件で検索する</span></button>
294    </div>
295    <!--検索条件設定テーブルここまで-->
296</form>
297
298<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete') }-->
299
300<!--★★検索結果一覧★★-->
301<form name="form1" id="form1" method="post" action="?">
302<input type="hidden" name="mode" value="search" />
303<input type="hidden" name="order_id" value="" />
304<!--{foreach key=key item=item from=$arrHidden}-->
305<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" />
306<!--{/foreach}-->
307    <h2>検索結果一覧</h2>
308 <p>
309        <span class="attention"><!--検索結果数--><!--{$tpl_linemax}-->件</span>&nbsp;が該当しました。
310        <!--{if $smarty.const.ADMIN_MODE == '1'}-->
311        <button type="button" onclick="fnModeSubmit('delete_all','','');"><span>検索結果をすべて削除</span></button>
312        <!--{/if}-->
313        <button type="button" onclick="fnModeSubmit('csv','','');">CSV DOWNLOAD</button>
314        <a href="../contents/csv.php?tpl_subno_csv=order">&gt;&gt; CSV出力項目設定</a>
315        <button type="button" onclick="fnSelectCheckSubmit('pdf.php');"><span>PDF一括出力</span></button>
316    </p>
317    <!--{include file=$tpl_pager}-->
318
319    <!--{if count($arrResults) > 0}-->
320
321    <!--{* 検索結果表示テーブル *}-->
322    <table class="list">
323        <!--{* ペイジェントモジュール連携用 *}-->
324        <!--{assign var=path value=`$smarty.const.MODULE_PATH`mdl_paygent/paygent_order_index.tpl}-->
325        <!--{if file_exists($path)}-->
326            <!--{include file=$path}-->
327        <!--{else}-->
328        <tr>
329            <th>受注日</th>
330            <th>注文番号</th>
331            <th>顧客名</th>
332            <th>支払方法</th>
333            <th>購入金額(円)</th>
334            <th>全商品発送日</th>
335            <th>対応状況</th>
336            <th>
337                帳票<br />
338                <button type="button" onclick="fnBoxChecked(true);">全て選択</button>
339                <button type="button" onclick="fnBoxChecked(false);">全て解除</button>
340            </th>
341            <th>編集</th>
342            <th>メール</th>
343            <th>削除</th>
344        </tr>
345
346        <!--{section name=cnt loop=$arrResults}-->
347        <!--{assign var=status value="`$arrResults[cnt].status`"}-->
348        <tr style="background:<!--{$arrORDERSTATUS_COLOR[$status]}-->;">
349            <td class="center"><!--{$arrResults[cnt].create_date|sfDispDBDate}--></td>
350            <td class="center"><!--{$arrResults[cnt].order_id}--></td>
351            <td><!--{$arrResults[cnt].order_name01|escape}--> <!--{$arrResults[cnt].order_name02|escape}--></td>
352            <!--{assign var=payment_id value="`$arrResults[cnt].payment_id`"}-->
353            <td class="center"><!--{$arrPayment[$payment_id]}--></td>
354            <td class="right"><!--{$arrResults[cnt].total|number_format}--></td>
355            <td class="center"><!--{$arrResults[cnt].commit_date|sfDispDBDate|default:"未発送"}--></td>
356            <td class="center"><!--{$arrORDERSTATUS[$status]}--></td>
357            <td class="center">
358                <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>&nbsp;
359                <a href="./" onClick="win02('pdf.php?order_id=<!--{$arrResults[cnt].order_id}-->','pdf_input','500','650'); return false;"><span class="icon_class">個別出力</span></a>
360            </td>
361            <td class="center"><a href="?" onclick="fnChangeAction('<!--{$smarty.const.URL_ORDER_EDIT}-->'); fnModeSubmit('pre_edit', 'order_id', '<!--{$arrResults[cnt].order_id}-->'); return false;"><span class="icon_edit">編集</span></a></td>
362            <td class="center">
363                <!--{if $arrResults[cnt].order_email|strlen >= 1}-->
364                    <a href="?" onclick="fnChangeAction('<!--{$smarty.const.URL_ORDER_MAIL}-->'); fnModeSubmit('pre_edit', 'order_id', '<!--{$arrResults[cnt].order_id}-->'); return false;"><span class="icon_mail">通知</span></a>
365                <!--{/if}-->
366            </td>
367            <td class="center"><a href="?" onclick="fnModeSubmit('delete', 'order_id', <!--{$arrResults[cnt].order_id}-->); return false;"><span class="icon_delete">削除</span></a></td>
368        </tr>
369        <!--{/section}-->
370        <!--{/if}-->
371    </table>
372    <!--{* 検索結果表示テーブル *}-->
373
374    <!--{/if}-->
375
376</form>
377<!--{/if}-->
378</div>
Note: See TracBrowser for help on using the repository browser.