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