| 1 | <!--{* |
---|
| 2 | /* |
---|
| 3 | * This file is part of EC-CUBE |
---|
| 4 | * |
---|
| 5 | * Copyright(c) 2000-2012 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><!--{t string="tpl_439"}--></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'; fnModeSubmit('search','status','<!--{$key}-->' ); return false;" |
---|
| 41 | <!--{/if}--> |
---|
| 42 | ><!--{$item}--></a> |
---|
| 43 | <!--{/foreach}--> |
---|
| 44 | </div> |
---|
| 45 | <h2><!--{t string="tpl_440"}--></h2> |
---|
| 46 | <!--{* 登録テーブルここから *}--> |
---|
| 47 | <!--{if $tpl_linemax > 0}--> |
---|
| 48 | <div class="btn"> |
---|
| 49 | <select name="change_status"> |
---|
| 50 | <option value="" selected="selected" style="<!--{$Errormes|sfGetErrorColor}-->" ><!--{t string="tpl_Please make a selection_01"}--></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"><!--{t string="tpl_Remove_01"}--></option> |
---|
| 57 | </select> |
---|
| 58 | <a class="btn-normal" href="javascript:;" onclick="fnSelectCheckSubmit(); return false;"><span><!--{t string="tpl_Move_01"}--></span></a> |
---|
| 59 | </div> |
---|
| 60 | <span class="attention"><!--{t string="tpl_441" T_FIELD=$arrORDERSTATUS[$smarty.const.ORDER_CANCEL]}--></span><br /> |
---|
| 61 | |
---|
| 62 | <p class="remark"> |
---|
| 63 | <!--{t string="tpl_T_FIELD items were found._01" T_FIELD=$tpl_linemax}--> |
---|
| 64 | <!--{$tpl_strnavi}--> |
---|
| 65 | </p> |
---|
| 66 | |
---|
| 67 | <table class="list center"> |
---|
| 68 | <col width="5%" /> |
---|
| 69 | <col width="7%" /> |
---|
| 70 | <col width="9%" /> |
---|
| 71 | <col width="15%" /> |
---|
| 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"><!--{t string="tpl_Selection_01"}--></label> <input type="checkbox" name="move_check" id="move_check" onclick="fnAllCheck(this, 'input[name=move[]]')" /></th> |
---|
| 79 | <th><!--{t string="tpl_Response status_01"}--></th> |
---|
| 80 | <th><!--{t string="tpl_Order number_01"}--></th> |
---|
| 81 | <th><!--{t string="tpl_Date of order receipt_01"}--></th> |
---|
| 82 | <th><!--{t string="tpl_Name_02"}--></th> |
---|
| 83 | <th><!--{t string="tpl_Payment method_01"}--></th> |
---|
| 84 | <th><!--{t string="tpl_442" escape="none"}--></th> |
---|
| 85 | <th><!--{t string="tpl_Date of deposit_01"}--></th> |
---|
| 86 | <th><!--{t string="tpl_Shipment date_01"}--></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><input type="checkbox" name="move[]" value="<!--{$arrStatus[cnt].order_id}-->" ></td> |
---|
| 92 | <td><!--{$arrORDERSTATUS[$status]}--></td> |
---|
| 93 | <td><a href="#" onclick="fnOpenWindow('./disp.php?order_id=<!--{$arrStatus[cnt].order_id}-->','order_disp','800','900'); return false;" ><!--{$arrStatus[cnt].order_id}--></a></td> |
---|
| 94 | <td><!--{$arrStatus[cnt].create_date|sfDispDBDate:false}--></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><!--{$arrPayment[$payment_id]|h}--></td> |
---|
| 98 | <td class="right"><!--{$arrStatus[cnt].total|number_format}--></td> |
---|
| 99 | <td><!--{if $arrStatus[cnt].payment_date != ""}--><!--{$arrStatus[cnt].payment_date|sfDispDBDate:false}--><!--{else}--><!--{t string="tpl_443"}--><!--{/if}--></td> |
---|
| 100 | <td><!--{if $arrStatus[cnt].status eq 5}--><!--{$arrStatus[cnt].commit_date|sfDispDBDate:false}--><!--{else}--><!--{t string="tpl_Not shipped_01"}--><!--{/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 | <!--{t string="tpl_437"}--> |
---|
| 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('<!--{t string="tpl_438"}-->'); |
---|
| 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('<!--{t string="tpl_A checkbox has not been selected_01"}-->'); |
---|
| 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> |
---|