1 | <!--{* |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2007 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 | <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
26 | <form name="form1" id="form1" method="POST" action="<!--{$smarty.server.PHP_SELF|escape}-->" > |
---|
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 | <tr valign="top"> |
---|
32 | <td background="<!--{$TPL_DIR}-->img/contents/navi_bg.gif" height="402"> |
---|
33 | <!-- サブナビ --> |
---|
34 | <!--{include file=$tpl_subnavi}--> |
---|
35 | </td> |
---|
36 | <td class="mainbg"> |
---|
37 | <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
38 | <!--メインエリア--> |
---|
39 | <tr> |
---|
40 | <td align="center"> |
---|
41 | <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
42 | <tr><td height="14"></td></tr> |
---|
43 | <tr> |
---|
44 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td> |
---|
45 | </tr> |
---|
46 | <tr> |
---|
47 | <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> |
---|
48 | <td bgcolor="#cccccc"> |
---|
49 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
50 | <tr> |
---|
51 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td> |
---|
52 | </tr> |
---|
53 | <tr> |
---|
54 | <td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td> |
---|
55 | <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->ステータス管理</span></td> |
---|
56 | <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> |
---|
57 | </tr> |
---|
58 | <tr> |
---|
59 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td> |
---|
60 | </tr> |
---|
61 | <tr> |
---|
62 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td> |
---|
63 | </tr> |
---|
64 | </table> |
---|
65 | <!--登録テーブルここから--> |
---|
66 | <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" "> |
---|
67 | <tr bgcolor="#ffffff"> |
---|
68 | <td bgcolor="#ffffff" align="center" valign="top" height="400"> |
---|
69 | <!--{if $tpl_linemax > 0 }--> |
---|
70 | <table border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
71 | <tr> |
---|
72 | <td> |
---|
73 | <select name="change_status"> |
---|
74 | <option value="" selected="selected" style="<!--{$Errormes|sfGetErrorColor}-->" >選択してください</option> |
---|
75 | <!--{foreach key=key item=item from=$arrORDERSTATUS}--> |
---|
76 | <!--{if $key ne $SelectedStatus}--> |
---|
77 | <option value="<!--{$key}-->" ><!--{$item}--></option> |
---|
78 | <!--{/if}--> |
---|
79 | <!--{/foreach}--> |
---|
80 | <option value="delete">削除</option> |
---|
81 | </select> |
---|
82 | </td> |
---|
83 | <td><input type="button" name="regist" value="反映" onclick="fnSelectCheckSubmit();"></td> |
---|
84 | </tr> |
---|
85 | </table> |
---|
86 | |
---|
87 | <table width="650" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
88 | <tr class="fs12"><td align="left"><!--{$tpl_linemax}-->件が該当しました。 </td></tr> |
---|
89 | <tr class="fs12"> |
---|
90 | <td align="center"> |
---|
91 | <!--▼ページナビ--> |
---|
92 | <!--{$tpl_strnavi}--> |
---|
93 | <!--▲ページナビ--> |
---|
94 | </td> |
---|
95 | </tr> |
---|
96 | </table> |
---|
97 | |
---|
98 | <table width="650" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
99 | <tr> |
---|
100 | <td align="right"><input type="button" name="btn01" value="全て選択" onclick="fnBoxChecked(true);"> <input type="button" name="btn01" value="全て解除" onclick="fnBoxChecked(false);"></td> |
---|
101 | </tr> |
---|
102 | <tr><td height="10"></td></tr> |
---|
103 | </table> |
---|
104 | |
---|
105 | <table width="650" border="0" cellspacing="1" cellpadding="5" summary=" " bgcolor="#cccccc"> |
---|
106 | <tr bgcolor="#f2f1ec" align="center" class="fs12n"> |
---|
107 | <td width="30">受注番号</td> |
---|
108 | <td width="90">受注日</td> |
---|
109 | <td width="100">顧客名</td> |
---|
110 | <td width="90">支払方法</td> |
---|
111 | <td width="81">購入金額(円)</td> |
---|
112 | <td width="70">発送日</td> |
---|
113 | <td width="70">対応状況</td> |
---|
114 | <td width="30">選択</td> |
---|
115 | </tr> |
---|
116 | <!--{section name=cnt loop=$arrStatus}--> |
---|
117 | <!--{assign var=status value="`$arrStatus[cnt].status`"}--> |
---|
118 | <tr bgcolor="<!--{$arrORDERSTATUS_COLOR[$status]}-->" class="fs12"> |
---|
119 | <td align="center"><a href ="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnOpenWindow('./edit.php?order_id=<!--{$arrStatus[cnt].order_id}-->','order_disp','800','900'); return false;" ><!--{$arrStatus[cnt].order_id}--></td> |
---|
120 | <td align="center"><!--{$arrStatus[cnt].create_date|sfDispDBDate:false}--></td> |
---|
121 | <td><!--{$arrStatus[cnt].order_name01|escape}--><!--{$arrStatus[cnt].order_name02|escape}--></td> |
---|
122 | <!--{assign var=payment_id value=`$arrStatus[cnt].payment_id`}--> |
---|
123 | <td align="center"><!--{$arrPayment[$payment_id]|escape}--></td> |
---|
124 | <td align="right"><!--{$arrStatus[cnt].total|number_format}--></td> |
---|
125 | <td align="center"><!--{if $arrStatus[cnt].status eq 5}--><!--{$arrStatus[cnt].commit_date|sfDispDBDate:false}--><!--{else}-->未発送<!--{/if}--></td> |
---|
126 | <td align="center"><!--{$arrORDERSTATUS[$status]}--></td> |
---|
127 | <td align="center"><input type="checkbox" name="move[]" value="<!--{$arrStatus[cnt].order_id}-->" ></td> |
---|
128 | </tr> |
---|
129 | <!--{/section}--> |
---|
130 | </table> |
---|
131 | <input type="hidden" name="move[]" value="" > |
---|
132 | |
---|
133 | <table width="650" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
134 | <tr><td height="10"></td></tr> |
---|
135 | <tr> |
---|
136 | <td align="right"><input type="button" name="btn01" value="全て選択" onclick="fnBoxChecked(true);"> <input type="button" name="btn01" value="全て解除" onclick="fnBoxChecked(false);"></td> |
---|
137 | </tr> |
---|
138 | <tr><td height="10"></td></tr> |
---|
139 | </table> |
---|
140 | |
---|
141 | <table width="650" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
142 | <tr class="fs12"> |
---|
143 | <td align="center"> |
---|
144 | <!--▼ページナビ--> |
---|
145 | <!--{$tpl_strnavi}--> |
---|
146 | <!--▲ページナビ--> |
---|
147 | </td> |
---|
148 | </tr> |
---|
149 | </table> |
---|
150 | |
---|
151 | <!--{elseif $arrStatus != "" & $tpl_linemax == 0}--> |
---|
152 | <table width="650" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
153 | <tr class="fs12"><td align="center">該当するデータはありません。</td></tr> |
---|
154 | </table> |
---|
155 | <!--{/if}--> |
---|
156 | |
---|
157 | </td> |
---|
158 | </tr> |
---|
159 | </table> |
---|
160 | |
---|
161 | <!--登録テーブルここまで--> |
---|
162 | |
---|
163 | </td> |
---|
164 | <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> |
---|
165 | </tr> |
---|
166 | <tr> |
---|
167 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td> |
---|
168 | </tr> |
---|
169 | <tr><td height="30"></td></tr> |
---|
170 | |
---|
171 | </table> |
---|
172 | </td> |
---|
173 | </tr> |
---|
174 | <!--メインエリア--> |
---|
175 | </table> |
---|
176 | </td> |
---|
177 | </tr> |
---|
178 | </form> |
---|
179 | </table> |
---|
180 | <!--★★メインコンテンツ★★--> |
---|
181 | |
---|
182 | |
---|
183 | <script type="text/javascript"> |
---|
184 | <!-- |
---|
185 | function fnSelectCheckSubmit(){ |
---|
186 | |
---|
187 | var selectflag = 0; |
---|
188 | var fm = document.form1; |
---|
189 | |
---|
190 | if(fm.change_status.options[document.form1.change_status.selectedIndex].value == ""){ |
---|
191 | selectflag = 1; |
---|
192 | } |
---|
193 | |
---|
194 | if(selectflag == 1){ |
---|
195 | alert('セレクトボックスが選択されていません'); |
---|
196 | return false; |
---|
197 | } |
---|
198 | var i; |
---|
199 | var checkflag = 0; |
---|
200 | var max = fm["move[]"].length; |
---|
201 | |
---|
202 | if(max) { |
---|
203 | for (i=0;i<max;i++){ |
---|
204 | if(fm["move[]"][i].checked == true){ |
---|
205 | checkflag = 1; |
---|
206 | } |
---|
207 | } |
---|
208 | } else { |
---|
209 | if(fm["move[]"].checked == true) { |
---|
210 | checkflag = 1; |
---|
211 | } |
---|
212 | } |
---|
213 | |
---|
214 | if(checkflag == 0){ |
---|
215 | alert('チェックボックスが選択されていません'); |
---|
216 | return false; |
---|
217 | } |
---|
218 | |
---|
219 | if(selectflag == 0 && checkflag == 1){ |
---|
220 | document.form1.mode.value = 'update'; |
---|
221 | document.form1.submit(); |
---|
222 | } |
---|
223 | } |
---|
224 | |
---|
225 | function fnBoxChecked(check){ |
---|
226 | var count; |
---|
227 | var fm = document.form1; |
---|
228 | var max = fm["move[]"].length; |
---|
229 | for(count=0; count<max; count++){ |
---|
230 | fm["move[]"][count].checked = check; |
---|
231 | } |
---|
232 | } |
---|
233 | |
---|
234 | //--> |
---|
235 | </script> |
---|