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

Revision 21539, 19.2 KB checked in by Seasoft, 12 years ago (diff)

#1613 (ソース整形・ソースコメントの改善)

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