source: branches/version-2_5-dev/data/Smarty/templates/admin/order/status.tpl @ 20407

Revision 20407, 5.8 KB checked in by kotani, 13 years ago (diff)

#812 (トランザクションIDの自動生成/自動検証), #1053 (transactionidが埋め込まれる前にクリックされるとエラー)

  • transactionid用hiddenタグをJavaScriptで生成しないように変更
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
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="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
26<input type="hidden" name="mode" value="" />
27<input type="hidden" name="status" value="<!--{if $arrForm.status == ""}-->1<!--{else}--><!--{$arrForm.status}--><!--{/if}-->" />
28<input type="hidden" name="search_pageno" value="<!--{$tpl_pageno}-->" >
29<input type="hidden" name="order_id" value="" />
30<div id="order" class="contents-main">
31  <h2>抽出条件</h2>
32    <div class="btn">
33    <!--{foreach key=key item=item from=$arrORDERSTATUS}-->
34      <a
35        class="btn-normal"
36        style="padding-right: 1em;"
37        <!--{if $key != $SelectedStatus}-->
38          href="javascript:;"
39          onclick="document.form1.search_pageno.value='1'; fnModeSubmit('search','status','<!--{$key}-->' ); return false;"
40        <!--{/if}-->
41      ><!--{$item}--></a>
42    <!--{/foreach}-->
43    </div>
44  <h2>ステータス変更</h2>
45  <!--{* 登録テーブルここから *}-->
46  <!--{if $tpl_linemax > 0}-->
47  <div class="btn">
48    <select name="change_status">
49      <option value="" selected="selected" style="<!--{$Errormes|sfGetErrorColor}-->" >選択してください</option>
50      <!--{foreach key=key item=item from=$arrORDERSTATUS}-->
51      <!--{if $key ne $SelectedStatus}-->
52      <option value="<!--{$key}-->" ><!--{$item}--></option>
53      <!--{/if}-->
54      <!--{/foreach}-->
55      <option value="delete">削除</option>
56    </select>
57    <a class="btn-normal" href="javascript:;" onclick="fnSelectCheckSubmit(); return false;"><span>移動</span></a>
58  </div>
59  <span class="attention">※ <!--{$arrORDERSTATUS[$smarty.const.ORDER_CANCEL]}-->もしくは、削除に変更時には、在庫数を手動で戻してください。</span><br />
60
61  <p class="remark">
62    <!--{$tpl_linemax}-->件が該当しました。
63    <!--{$tpl_strnavi}-->
64  </p>
65
66  <table class="list center">
67    <colgroup width="5%">
68    <colgroup width="7%">
69    <colgroup width="9%">
70    <colgroup width="15%">
71    <colgroup width="20%">
72    <colgroup width="10%">
73    <colgroup width="10%">
74    <colgroup width="12%">
75    <colgroup width="12%">
76    <tr>
77      <th><label for="move_check">選択</label> <input type="checkbox" name="move_check" id="move_check" onclick="fnAllCheck(this, 'input[name=move[]]')" /></th>
78      <th>対応状況</th>
79      <th>注文番号</th>
80      <th>受注日</th>
81      <th>顧客名</th>
82      <th>支払方法</th>
83      <th>購入金額(円)</th>
84      <th>入金日</th>
85      <th>発送日</th>
86    </tr>
87    <!--{section name=cnt loop=$arrStatus}-->
88    <!--{assign var=status value="`$arrStatus[cnt].status`"}-->
89    <tr style="background:<!--{$arrORDERSTATUS_COLOR[$status]}-->;">
90      <td><input type="checkbox" name="move[]" value="<!--{$arrStatus[cnt].order_id}-->" ></td>
91      <td><!--{$arrORDERSTATUS[$status]}--></td>
92      <td><a href="#" onclick="fnOpenWindow('./edit.php?order_id=<!--{$arrStatus[cnt].order_id}-->','order_disp','800','900'); return false;" ><!--{$arrStatus[cnt].order_id}--></a></td>
93      <td><!--{$arrStatus[cnt].create_date|sfDispDBDate:false}--></td>
94      <td><!--{$arrStatus[cnt].order_name01|h}--><!--{$arrStatus[cnt].order_name02|h}--></td>
95      <!--{assign var=payment_id value=`$arrStatus[cnt].payment_id`}-->
96      <td><!--{$arrPayment[$payment_id]|h}--></td>
97      <td class="right"><!--{$arrStatus[cnt].total|number_format}--></td>
98      <td><!--{if $arrStatus[cnt].payment_date != ""}--><!--{$arrStatus[cnt].payment_date|sfDispDBDate:false}--><!--{else}-->未入金<!--{/if}--></td>
99      <td><!--{if $arrStatus[cnt].status eq 5}--><!--{$arrStatus[cnt].commit_date|sfDispDBDate:false}--><!--{else}-->未発送<!--{/if}--></td>
100    </tr>
101    <!--{/section}-->
102  </table>
103  <input type="hidden" name="move[]" value="" />
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
122    var selectflag = 0;
123    var fm = document.form1;
124
125    if(fm.change_status.options[document.form1.change_status.selectedIndex].value == ""){
126    selectflag = 1;
127    }
128
129    if(selectflag == 1){
130      alert('セレクトボックスが選択されていません');
131      return false;
132    }
133    var i;
134    var checkflag = 0;
135    var max = fm["move[]"].length;
136
137    if(max) {
138      for (i=0;i<max;i++){
139        if(fm["move[]"][i].checked == true){
140          checkflag = 1;
141        }
142      }
143    } else {
144      if(fm["move[]"].checked == true) {
145        checkflag = 1;
146      }
147    }
148
149    if(checkflag == 0){
150      alert('チェックボックスが選択されていません');
151      return false;
152    }
153
154    if(selectflag == 0 && checkflag == 1){
155    document.form1.mode.value = 'update';
156    document.form1.submit();
157    }
158  }
159
160//-->
161</script>
Note: See TracBrowser for help on using the repository browser.