1 | <!--{* |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2013 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 | <form name="form1" id="form1" method="post" action="?" > |
---|
26 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
27 | <input type="hidden" name="mode" value="" /> |
---|
28 | <input type="hidden" name="status" value="<!--{if $arrForm.status == ""}-->1<!--{else}--><!--{$arrForm.status}--><!--{/if}-->" /> |
---|
29 | <input type="hidden" name="search_pageno" value="<!--{$tpl_pageno}-->" /> |
---|
30 | <input type="hidden" name="order_id" value="" /> |
---|
31 | <div id="order" class="contents-main"> |
---|
32 | <h2>抽出条件</h2> |
---|
33 | <div class="btn"> |
---|
34 | <!--{foreach key=key item=item from=$arrORDERSTATUS}--> |
---|
35 | <a |
---|
36 | class="btn-normal" |
---|
37 | style="padding-right: 1em;" |
---|
38 | <!--{if $key != $SelectedStatus}--> |
---|
39 | href="javascript:;" |
---|
40 | onclick="document.form1.search_pageno.value='1'; eccube.setModeAndSubmit('search','status','<!--{$key}-->' ); return false;" |
---|
41 | <!--{/if}--> |
---|
42 | ><!--{$item}--></a> |
---|
43 | <!--{/foreach}--> |
---|
44 | </div> |
---|
45 | <h2>対応状況変更</h2> |
---|
46 | <!--{* 登録テーブルここから *}--> |
---|
47 | <!--{if $tpl_linemax > 0}--> |
---|
48 | <div class="btn"> |
---|
49 | <select name="change_status"> |
---|
50 | <option value="" selected="selected" style="<!--{$Errormes|sfGetErrorColor}-->" >選択してください</option> |
---|
51 | <!--{foreach key=key item=item from=$arrORDERSTATUS}--> |
---|
52 | <!--{if $key ne $SelectedStatus}--> |
---|
53 | <option value="<!--{$key}-->" ><!--{$item}--></option> |
---|
54 | <!--{/if}--> |
---|
55 | <!--{/foreach}--> |
---|
56 | <option value="delete">削除</option> |
---|
57 | </select> |
---|
58 | <a class="btn-normal" href="javascript:;" onclick="fnSelectCheckSubmit(); return false;"><span>移動</span></a> |
---|
59 | </div> |
---|
60 | <span class="attention">※ <!--{$arrORDERSTATUS[$smarty.const.ORDER_CANCEL]}-->に変更時には、在庫数を手動で戻してください。</span><br /> |
---|
61 | |
---|
62 | <p class="remark"> |
---|
63 | <!--{$tpl_linemax}-->件が該当しました。 |
---|
64 | <!--{$tpl_strnavi}--> |
---|
65 | </p> |
---|
66 | |
---|
67 | <table class="list"> |
---|
68 | <col width="5%" /> |
---|
69 | <col width="10%" /> |
---|
70 | <col width="8%" /> |
---|
71 | <col width="13%" /> |
---|
72 | <col width="20%" /> |
---|
73 | <col width="10%" /> |
---|
74 | <col width="10%" /> |
---|
75 | <col width="12%" /> |
---|
76 | <col width="12%" /> |
---|
77 | <tr> |
---|
78 | <th><label for="move_check">選択<br /></label> <input type="checkbox" name="move_check" id="move_check" onclick="eccube.checkAllBox(this, 'input[name=move[]]')" /></th> |
---|
79 | <th>対応状況</th> |
---|
80 | <th>注文番号</th> |
---|
81 | <th>受注日</th> |
---|
82 | <th>お名前</th> |
---|
83 | <th>支払方法</th> |
---|
84 | <th>購入金額(円)</th> |
---|
85 | <th>入金日</th> |
---|
86 | <th>発送日</th> |
---|
87 | </tr> |
---|
88 | <!--{section name=cnt loop=$arrStatus}--> |
---|
89 | <!--{assign var=status value="`$arrStatus[cnt].status`"}--> |
---|
90 | <tr style="background:<!--{$arrORDERSTATUS_COLOR[$status]}-->;"> |
---|
91 | <td class="center"><input type="checkbox" name="move[]" value="<!--{$arrStatus[cnt].order_id}-->" ></td> |
---|
92 | <td class="center"><!--{$arrORDERSTATUS[$status]}--></td> |
---|
93 | <td class="center"><a href="#" onclick="eccube.openWindow('./disp.php?order_id=<!--{$arrStatus[cnt].order_id}-->','order_disp','800','900',{resizable:'no',focus:false}); return false;" ><!--{$arrStatus[cnt].order_id}--></a></td> |
---|
94 | <td class="center"><!--{$arrStatus[cnt].create_date|sfDispDBDate}--></td> |
---|
95 | <td><!--{$arrStatus[cnt].order_name01|h}--> <!--{$arrStatus[cnt].order_name02|h}--></td> |
---|
96 | <!--{assign var=payment_id value=`$arrStatus[cnt].payment_id`}--> |
---|
97 | <td class="center"><!--{$arrPayment[$payment_id]|h}--></td> |
---|
98 | <td class="right"><!--{$arrStatus[cnt].total|number_format}--></td> |
---|
99 | <td class="center"><!--{if $arrStatus[cnt].payment_date != ""}--><!--{$arrStatus[cnt].payment_date|sfDispDBDate:false}--><!--{else}-->未入金<!--{/if}--></td> |
---|
100 | <td class="center"><!--{if $arrStatus[cnt].status eq 5}--><!--{$arrStatus[cnt].commit_date|sfDispDBDate:false}--><!--{else}-->未発送<!--{/if}--></td> |
---|
101 | </tr> |
---|
102 | <!--{/section}--> |
---|
103 | </table> |
---|
104 | |
---|
105 | <p><!--{$tpl_strnavi}--></p> |
---|
106 | |
---|
107 | <!--{elseif $arrStatus != "" & $tpl_linemax == 0}--> |
---|
108 | <div class="message"> |
---|
109 | 該当するデータはありません。 |
---|
110 | </div> |
---|
111 | <!--{/if}--> |
---|
112 | |
---|
113 | <!--{* 登録テーブルここまで *}--> |
---|
114 | </div> |
---|
115 | </form> |
---|
116 | |
---|
117 | |
---|
118 | <script type="text/javascript"> |
---|
119 | <!-- |
---|
120 | function fnSelectCheckSubmit(){ |
---|
121 | var selectflag = 0; |
---|
122 | var fm = document.form1; |
---|
123 | |
---|
124 | if (fm.change_status.options[document.form1.change_status.selectedIndex].value == "") { |
---|
125 | selectflag = 1; |
---|
126 | } |
---|
127 | |
---|
128 | if (selectflag == 1) { |
---|
129 | alert('セレクトボックスが選択されていません'); |
---|
130 | return false; |
---|
131 | } |
---|
132 | var i; |
---|
133 | var checkflag = 0; |
---|
134 | var max = fm["move[]"].length; |
---|
135 | |
---|
136 | if (max) { |
---|
137 | for (i=0;i<max;i++){ |
---|
138 | if(fm["move[]"][i].checked == true) { |
---|
139 | checkflag = 1; |
---|
140 | } |
---|
141 | } |
---|
142 | } else { |
---|
143 | if (fm["move[]"].checked == true) { |
---|
144 | checkflag = 1; |
---|
145 | } |
---|
146 | } |
---|
147 | |
---|
148 | if (checkflag == 0){ |
---|
149 | alert('チェックボックスが選択されていません'); |
---|
150 | return false; |
---|
151 | } |
---|
152 | |
---|
153 | if (selectflag == 0 && checkflag == 1) { |
---|
154 | document.form1.mode.value = 'update'; |
---|
155 | document.form1.submit(); |
---|
156 | } |
---|
157 | } |
---|
158 | //--> |
---|
159 | </script> |
---|