source: branches/version-2/data/Smarty/templates/default/admin/order/status.tpl @ 18561

Revision 18561, 9.5 KB checked in by kajiwara, 14 years ago (diff)

Ver2.4.3にアップデート

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/html; charset=UTF-8
Line 
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 align="center">
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                                            <input type="button" name="regist" value="反映" onclick="fnSelectCheckSubmit();"></td>
83                                        </tr>
84                                        <tr>
85                                            <td>
86                        <span class="red12">※ <!--{$arrORDERSTATUS[$smarty.const.ORDER_CANCEL]}-->もしくは、削除に変更時には、在庫数を手動で戻してください。</span><br />
87                                            </td>
88                                        </tr>
89                                    </table>
90
91                                    <table width="650" border="0" cellspacing="0" cellpadding="0" summary=" ">
92                                        <tr class="fs12"><td align="left"><!--{$tpl_linemax}-->件が該当しました。    </td></tr>
93                                        <tr class="fs12">
94                                            <td align="center">
95                                            <!--▼ページナビ-->
96                                            <!--{$tpl_strnavi}-->
97                                            <!--▲ページナビ-->
98                                            </td>
99                                        </tr>
100                                    </table>
101
102                                    <table width="650" border="0" cellspacing="0" cellpadding="0" summary=" ">
103                                        <tr>
104                                        <td align="right"><input type="button" name="btn01" value="全て選択" onclick="fnBoxChecked(true);"> <input type="button" name="btn01" value="全て解除" onclick="fnBoxChecked(false);"></td>
105                                        </tr>
106                                        <tr><td height="10"></td></tr>
107                                    </table>
108
109                                    <table width="650" border="0" cellspacing="1" cellpadding="5" summary=" " bgcolor="#cccccc">
110                                    <tr bgcolor="#f2f1ec" align="center" class="fs12n">
111                                        <td width="30">注文番号</td>
112                                        <td width="90">受注日</td>
113                                        <td width="100">顧客名</td>
114                                        <td width="90">支払方法</td>
115                                        <td width="81">購入金額(円)</td>
116                                        <td width="70">発送日</td>
117                                        <td width="70">対応状況</td>
118                                        <td width="30">選択</td>
119                                    </tr>
120                                    <!--{section name=cnt loop=$arrStatus}-->
121                                    <!--{assign var=status value="`$arrStatus[cnt].status`"}-->
122                                    <tr bgcolor="<!--{$arrORDERSTATUS_COLOR[$status]}-->" class="fs12">
123                                    <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>
124                                    <td align="center"><!--{$arrStatus[cnt].create_date|sfDispDBDate:false}--></td>
125                                    <td><!--{$arrStatus[cnt].order_name01|escape}--><!--{$arrStatus[cnt].order_name02|escape}--></td>
126                                    <!--{assign var=payment_id value=`$arrStatus[cnt].payment_id`}-->
127                                    <td align="center"><!--{$arrPayment[$payment_id]|escape}--></td>
128                                    <td align="right"><!--{$arrStatus[cnt].total|number_format}--></td>
129                                    <td align="center"><!--{if $arrStatus[cnt].status eq 5}--><!--{$arrStatus[cnt].commit_date|sfDispDBDate:false}--><!--{else}-->未発送<!--{/if}--></td>
130                                    <td align="center"><!--{$arrORDERSTATUS[$status]}--></td>
131                                    <td align="center"><input type="checkbox" name="move[]" value="<!--{$arrStatus[cnt].order_id}-->" ></td>
132                                    </tr>
133                                    <!--{/section}-->
134                                    </table>
135                                    <input type="hidden" name="move[]" value="" >
136
137                                    <table width="650" border="0" cellspacing="0" cellpadding="0" summary=" ">
138                                    <tr><td height="10"></td></tr>
139                                    <tr>
140                                    <td align="right"><input type="button" name="btn01" value="全て選択" onclick="fnBoxChecked(true);"> <input type="button" name="btn01" value="全て解除" onclick="fnBoxChecked(false);"></td>
141                                    </tr>
142                                    <tr><td height="10"></td></tr>
143                                    </table>
144
145                                    <table width="650" border="0" cellspacing="0" cellpadding="0" summary=" ">
146                                        <tr class="fs12">
147                                            <td align="center">
148                                            <!--▼ページナビ-->
149                                            <!--{$tpl_strnavi}-->
150                                            <!--▲ページナビ-->
151                                            </td>
152                                        </tr>
153                                    </table>
154
155                                <!--{elseif $arrStatus != "" & $tpl_linemax == 0}-->
156                                    <table width="650" border="0" cellspacing="0" cellpadding="0" summary=" ">
157                                        <tr class="fs12"><td align="center">該当するデータはありません。</td></tr>
158                                    </table>
159                                <!--{/if}-->
160
161                                </td>
162                            </tr>
163                        </table>
164
165                        <!--登録テーブルここまで-->
166
167                        </td>
168                        <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
169                    </tr>
170                    <tr>
171                        <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
172                    </tr>
173                    <tr><td height="30"></td></tr>
174
175                </table>
176                </td>
177            </tr>
178            <!--メインエリア-->
179        </table>
180        </td>
181    </tr>
182</form>
183</table>
184<!--★★メインコンテンツ★★-->
185
186
187<script type="text/javascript">
188<!--
189    function fnSelectCheckSubmit(){
190
191        var selectflag = 0;
192        var fm = document.form1;
193
194        if(fm.change_status.options[document.form1.change_status.selectedIndex].value == ""){
195        selectflag = 1;
196        }
197
198        if(selectflag == 1){
199            alert('セレクトボックスが選択されていません');
200            return false;
201        }
202        var i;
203        var checkflag = 0;
204        var max = fm["move[]"].length;
205
206        if(max) {
207            for (i=0;i<max;i++){
208                if(fm["move[]"][i].checked == true){
209                    checkflag = 1;
210                }
211            }
212        } else {
213            if(fm["move[]"].checked == true) {
214                checkflag = 1;
215            }
216        }
217
218        if(checkflag == 0){
219            alert('チェックボックスが選択されていません');
220            return false;
221        }
222
223        if(selectflag == 0 && checkflag == 1){
224        document.form1.mode.value = 'update';
225        document.form1.submit();
226        }
227    }
228
229    function fnBoxChecked(check){
230        var count;
231        var fm = document.form1;
232        var max = fm["move[]"].length;
233        for(count=0; count<max; count++){
234            fm["move[]"][count].checked = check;
235        }
236    }
237
238//-->
239</script>
Note: See TracBrowser for help on using the repository browser.