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

Revision 19785, 18.4 KB checked in by Seasoft, 13 years ago (diff)

#862(テンプレート上のエスケープを簡単に)
#628(未使用処理・定義などの削除)

  • Smarty 変数 tpl_start

#879(jQuery の ready イベントと競合する body の onload イベントを使用している)

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