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

Revision 19715, 18.7 KB checked in by nanasess, 13 years ago (diff)

#382(管理画面XHTMLに変更)

  • UI を改善
  • Property svn:eol-style set to LF
  • 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-2010 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            <th>対応状況</th>
111            <td>
112                <!--{assign var=key value="search_order_status"}-->
113                <span class="attention"><!--{$arrErr[$key]}--></span>
114                <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
115                <option value="">選択してください</option>
116                <!--{html_options options=$arrORDERSTATUS selected=$arrForm[$key].value}-->
117                </select>
118            </td>
119        </tr>
120        <tr>
121            <th>顧客名</th>
122            <td>
123            <!--{assign var=key value="search_order_name"}-->
124            <span class="attention"><!--{$arrErr[$key]}--></span>
125            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
126            </td>
127            <th>顧客名(カナ)</th>
128            <td>
129            <!--{assign var=key value="search_order_kana"}-->
130            <span class="attention"><!--{$arrErr[$key]}--></span>
131            <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
132            </td>
133        </tr>
134        <tr>
135            <th>メールアドレス</th>
136            <td>
137                <!--{assign var=key value="search_order_email"}-->
138                <span class="attention"><!--{$arrErr[$key]}--></span>
139                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
140            </td>
141            <th>TEL</th>
142            <td>
143                <!--{assign var=key value="search_order_tel"}-->
144                <span class="attention"><!--{$arrErr[$key]}--></span>
145                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="30" class="box30" />
146            </td>
147        </tr>
148        <tr>
149            <th>生年月日</th>
150            <td colspan="3">
151                <span class="attention"><!--{$arrErr.search_sbirthyear}--></span>
152                <span class="attention"><!--{$arrErr.search_ebirthyear}--></span>
153                <select name="search_sbirthyear" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
154                <option value="">----</option>
155                <!--{html_options options=$arrBirthYear selected=$arrForm.search_sbirthyear.value}-->
156                </select>年
157                <select name="search_sbirthmonth" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
158                <option value="">--</option>
159                <!--{html_options options=$arrMonth selected=$arrForm.search_sbirthmonth.value}-->
160                </select>月
161                <select name="search_sbirthday" style="<!--{$arrErr.search_sbirthyear|sfGetErrorColor}-->">
162                <option value="">--</option>
163                <!--{html_options options=$arrDay selected=$arrForm.search_sbirthday.value}-->
164                </select>日~
165                <select name="search_ebirthyear" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
166                <option value="">----</option>
167                <!--{html_options options=$arrBirthYear selected=$arrForm.search_ebirthyear.value}-->
168                </select>年
169                <select name="search_ebirthmonth" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
170                <option value="">--</option>
171                <!--{html_options options=$arrMonth selected=$arrForm.search_ebirthmonth.value}-->
172                </select>月
173                <select name="search_ebirthday" style="<!--{$arrErr.search_ebirthyear|sfGetErrorColor}-->">
174                <option value="">--</option>
175                <!--{html_options options=$arrDay selected=$arrForm.search_ebirthday.value}-->
176                </select>日
177            </td>
178        </tr>
179        <tr>
180            <th>性別</th>
181            <td colspan="3">
182            <!--{assign var=key value="search_order_sex"}-->
183            <span class="attention"><!--{$arrErr[$key]}--></span>
184            <!--{html_checkboxes name="$key" options=$arrSex selected=$arrForm[$key].value}-->
185            </td>
186        </tr>
187        <tr>
188            <th>支払方法</th>
189            <td colspan="3">
190            <!--{assign var=key value="search_payment_id"}-->
191            <span class="attention"><!--{$arrErr[$key]|escape}--></span>
192            <!--{html_checkboxes name="$key" options=$arrPayment|escape selected=$arrForm[$key].value}-->
193            </td>
194        </tr>
195        <tr>
196            <th>受注日</th>
197            <td colspan="3">
198                <!--{if $arrErr.search_sorderyear}--><span class="attention"><!--{$arrErr.search_sorderyear}--></span><!--{/if}-->
199                <!--{if $arrErr.search_eorderyear}--><span class="attention"><!--{$arrErr.search_eorderyear}--></span><!--{/if}-->
200                <select name="search_sorderyear" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
201                <option value="">----</option>
202                <!--{html_options options=$arrRegistYear selected=$arrForm.search_sorderyear.value}-->
203                </select>年
204                <select name="search_sordermonth" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
205                <option value="">--</option>
206                <!--{html_options options=$arrMonth selected=$arrForm.search_sordermonth.value}-->
207                </select>月
208                <select name="search_sorderday" style="<!--{$arrErr.search_sorderyear|sfGetErrorColor}-->">
209                <option value="">--</option>
210                <!--{html_options options=$arrDay selected=$arrForm.search_sorderday.value}-->
211                </select>日~
212                <select name="search_eorderyear" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
213                <option value="">----</option>
214                <!--{html_options options=$arrRegistYear selected=$arrForm.search_eorderyear.value}-->
215                </select>年
216                <select name="search_eordermonth" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
217                <option value="">--</option>
218                <!--{html_options options=$arrMonth selected=$arrForm.search_eordermonth.value}-->
219                </select>月
220                <select name="search_eorderday" style="<!--{$arrErr.search_eorderyear|sfGetErrorColor}-->">
221                <option value="">--</option>
222                <!--{html_options options=$arrDay selected=$arrForm.search_eorderday.value}-->
223                </select>日
224            </td>
225        </tr>
226        <tr>
227            <th>更新日</th>
228            <td colspan="3">
229                <!--{if $arrErr.search_supdateyear}--><span class="attention"><!--{$arrErr.search_supdateyear}--></span><!--{/if}-->
230                <!--{if $arrErr.search_eupdateyear}--><span class="attention"><!--{$arrErr.search_eupdateyear}--></span><!--{/if}-->
231                <select name="search_supdateyear" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
232                    <option value="">----</option>
233                    <!--{html_options options=$arrRegistYear selected=$arrForm.search_supdateyear.value}-->
234                </select>年
235                <select name="search_supdatemonth" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
236                    <option value="">--</option>
237                    <!--{html_options options=$arrMonth selected=$arrForm.search_supdatemonth.value}-->
238                </select>月
239                <select name="search_supdateday" style="<!--{$arrErr.search_supdateyear|sfGetErrorColor}-->">
240                    <option value="">--</option>
241                    <!--{html_options options=$arrDay selected=$arrForm.search_supdateday.value}-->
242                </select>日~
243                <select name="search_eupdateyear" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
244                    <option value="">----</option>
245                    <!--{html_options options=$arrRegistYear selected=$arrForm.search_eupdateyear.value}-->
246                </select>年
247                <select name="search_eupdatemonth" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
248                    <option value="">--</option>
249                    <!--{html_options options=$arrMonth selected=$arrForm.search_eupdatemonth.value}-->
250                </select>月
251                <select name="search_eupdateday" style="<!--{$arrErr.search_eupdateyear|sfGetErrorColor}-->">
252                    <option value="">--</option>
253                    <!--{html_options options=$arrDay selected=$arrForm.search_eupdateday.value}-->
254                </select>日
255            </td>
256        </tr>
257        <tr>
258            <th>購入金額</th>
259            <td>
260                <!--{assign var=key1 value="search_total1"}-->
261                <!--{assign var=key2 value="search_total2"}-->
262                <span class="attention"><!--{$arrErr[$key1]}--></span>
263                <span class="attention"><!--{$arrErr[$key2]}--></span>
264                <input type="text" name="<!--{$key1}-->" value="<!--{$arrForm[$key1].value|escape}-->" maxlength="<!--{$arrForm[$key1].length}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->" size="6" class="box6" />
265                円 ~
266                <input type="text" name="<!--{$key2}-->" value="<!--{$arrForm[$key2].value|escape}-->" maxlength="<!--{$arrForm[$key2].length}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->" size="6" class="box6" />
267                円
268            </td>
269            <th>購入商品</th>
270            <td>
271                <!--{assign var=key value="search_product_name"}-->
272                <!--{if $arrErr[$key]}--><span class="attention"><!--{$arrErr[$key]}--></span><!--{/if}-->
273                <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|escape}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" size="6" class="box30" />
274            </td>
275        </tr>
276    </table>
277
278    <div class="btn">
279        検索結果表示件数
280        <!--{assign var=key value="search_page_max"}-->
281        <span class="attention"><!--{$arrErr[$key]}--></span>
282        <select name="<!--{$arrForm[$key].keyname}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
283        <!--{html_options options=$arrPageMax selected=$arrForm[$key].value}-->
284        </select> 件
285        <button type="submit"><span>この条件で検索する</span></button>
286    </div>
287    <!--検索条件設定テーブルここまで-->
288</form>
289
290<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete') }-->
291
292<!--★★検索結果一覧★★-->
293<form name="form1" id="form1" method="post" action="?">
294<input type="hidden" name="mode" value="search" />
295<input type="hidden" name="order_id" value="" />
296<!--{foreach key=key item=item from=$arrHidden}-->
297<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->" />
298<!--{/foreach}-->
299    <h2>検索結果一覧</h2>
300         <div class="btn">
301        <span class="attention"><!--検索結果数--><!--{$tpl_linemax}-->件</span>&nbsp;が該当しました。
302        <!--{if $smarty.const.ADMIN_MODE == '1'}-->
303        <button type="button" onclick="fnModeSubmit('delete_all','','');"><span>検索結果をすべて削除</span></button>
304        <!--{/if}-->
305        <button type="button" onclick="fnModeSubmit('csv','','');">CSV ダウンロード</button>
306        <button type="button" onclick="location.href='../contents/csv.php?tpl_subno_csv=order'">CSV 出力項目設定</button>
307        <button type="button" onclick="fnSelectCheckSubmit('pdf.php');"><span>PDF一括出力</span></button>
308    </div>
309    <!--{include file=$tpl_pager}-->
310
311    <!--{if count($arrResults) > 0}-->
312
313    <!--{* 検索結果表示テーブル *}-->
314    <table class="list">
315        <!--{* ペイジェントモジュール連携用 *}-->
316        <!--{assign var=path value=`$smarty.const.MODULE_PATH`mdl_paygent/paygent_order_index.tpl}-->
317        <!--{if file_exists($path)}-->
318            <!--{include file=$path}-->
319        <!--{else}-->
320        <tr>
321            <th>受注日</th>
322            <th>注文番号</th>
323            <th>顧客名</th>
324            <th>支払方法</th>
325            <th>購入金額(円)</th>
326            <th>全商品発送日</th>
327            <th>対応状況</th>
328            <th>
329                帳票<br />
330                <a href="javascript:;" onclick="fnBoxChecked(true);">全て選択</a>
331                <a href="javascript:;" onclick="fnBoxChecked(false);">全て解除</a>
332            </th>
333            <th>編集</th>
334            <th>メール</th>
335            <th>削除</th>
336        </tr>
337
338        <!--{section name=cnt loop=$arrResults}-->
339        <!--{assign var=status value="`$arrResults[cnt].status`"}-->
340        <tr style="background:<!--{$arrORDERSTATUS_COLOR[$status]}-->;">
341            <td class="center"><!--{$arrResults[cnt].create_date|sfDispDBDate}--></td>
342            <td class="center"><!--{$arrResults[cnt].order_id}--></td>
343            <td><!--{$arrResults[cnt].order_name01|escape}--> <!--{$arrResults[cnt].order_name02|escape}--></td>
344            <!--{assign var=payment_id value="`$arrResults[cnt].payment_id`"}-->
345            <td class="center"><!--{$arrPayment[$payment_id]}--></td>
346            <td class="right"><!--{$arrResults[cnt].total|number_format}--></td>
347            <td class="center"><!--{$arrResults[cnt].commit_date|sfDispDBDate|default:"未発送"}--></td>
348            <td class="center"><!--{$arrORDERSTATUS[$status]}--></td>
349            <td class="center">
350                <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;
351                <a href="./" onClick="win02('pdf.php?order_id=<!--{$arrResults[cnt].order_id}-->','pdf_input','500','650'); return false;"><span class="icon_class">個別出力</span></a>
352            </td>
353            <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>
354            <td class="center">
355                <!--{if $arrResults[cnt].order_email|strlen >= 1}-->
356                    <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>
357                <!--{/if}-->
358            </td>
359            <td class="center"><a href="?" onclick="fnModeSubmit('delete_order', 'order_id', <!--{$arrResults[cnt].order_id}-->); return false;"><span class="icon_delete">削除</span></a></td>
360        </tr>
361        <!--{/section}-->
362        <!--{/if}-->
363    </table>
364    <!--{* 検索結果表示テーブル *}-->
365
366    <!--{/if}-->
367
368</form>
369<!--{/if}-->
370</div>
Note: See TracBrowser for help on using the repository browser.