source: branches/comu-ver2/data/Smarty/templates/default/admin/order/status.tpl @ 17351

Revision 17351, 5.2 KB checked in by pineray, 14 years ago (diff)
  • 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-2008 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="<!--{$smarty.server.PHP_SELF|escape}-->" >
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  <!--{* 登録テーブルここから *}-->
32  <!--{if $tpl_linemax > 0 }-->
33  <div>
34    <select name="change_status">
35      <option value="" selected="selected" style="<!--{$Errormes|sfGetErrorColor}-->" >選択してください</option>
36      <!--{foreach key=key item=item from=$arrORDERSTATUS}-->
37      <!--{if $key ne $SelectedStatus}-->
38      <option value="<!--{$key}-->" ><!--{$item}--></option>
39      <!--{/if}-->
40      <!--{/foreach}-->
41      <option value="delete">削除</option>
42    </select>
43    <button type="button" onclick="fnSelectCheckSubmit();"><span>反映</span></button>
44  </div>
45
46  <p>
47    <!--{$tpl_linemax}-->件が該当しました。
48    <!--{$tpl_strnavi}-->
49  </p>
50   
51  <div class="btn">
52    <button type="button" onclick="fnBoxChecked(true);"><span>全て選択</span></button>
53    <button type="button" onclick="fnBoxChecked(false);"><span>全て解除</span></button>
54  </div>
55
56  <table class="list center">
57    <tr>
58      <th>受注番号</th>
59      <th>受注日</th>
60      <th>顧客名</th>
61      <th>支払方法</th>
62      <th>購入金額(円)</th>
63      <th>発送日</th>
64      <th>対応状況</th>
65      <th>選択</th>
66    </tr>
67    <!--{section name=cnt loop=$arrStatus}-->
68    <!--{assign var=status value="`$arrStatus[cnt].status`"}-->
69    <tr style="background:<!--{$arrORDERSTATUS_COLOR[$status]}-->;">
70      <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>
71      <td><!--{$arrStatus[cnt].create_date|sfDispDBDate:false}--></td>
72      <td><!--{$arrStatus[cnt].order_name01|escape}--><!--{$arrStatus[cnt].order_name02|escape}--></td>
73      <!--{assign var=payment_id value=`$arrStatus[cnt].payment_id`}-->
74      <td><!--{$arrPayment[$payment_id]|escape}--></td>
75      <td class="right"><!--{$arrStatus[cnt].total|number_format}--></td>
76      <td><!--{if $arrStatus[cnt].status eq 5}--><!--{$arrStatus[cnt].commit_date|sfDispDBDate:false}--><!--{else}-->未発送<!--{/if}--></td>
77      <td><!--{$arrORDERSTATUS[$status]}--></td>
78      <td><input type="checkbox" name="move[]" value="<!--{$arrStatus[cnt].order_id}-->" ></td>
79    </tr>
80    <!--{/section}-->
81  </table>
82  <input type="hidden" name="move[]" value="" />
83   
84  <div class="btn">
85    <button type="button" onclick="fnBoxChecked(true);"><span>全て選択</span></button>
86    <button type="button" onclick="fnBoxChecked(false);"><span>全て解除</span></button>
87  </div>
88   
89  <p><!--{$tpl_strnavi}--></p>
90   
91  <!--{elseif $arrStatus != "" & $tpl_linemax == 0}-->
92  <div class="message">
93    該当するデータはありません。
94  </div>
95  <!--{/if}-->
96           
97  <!--{* 登録テーブルここまで *}-->
98</div>
99</form>
100
101
102<script type="text/javascript">
103<!--
104  function fnSelectCheckSubmit(){
105
106    var selectflag = 0;
107    var fm = document.form1;
108       
109    if(fm.change_status.options[document.form1.change_status.selectedIndex].value == ""){
110    selectflag = 1;
111    }
112   
113    if(selectflag == 1){
114      alert('セレクトボックスが選択されていません');
115      return false;
116    }
117    var i;
118    var checkflag = 0;
119    var max = fm["move[]"].length;
120   
121    if(max) {
122      for (i=0;i<max;i++){
123        if(fm["move[]"][i].checked == true){
124          checkflag = 1;
125        }
126      }
127    } else {
128      if(fm["move[]"].checked == true) {
129        checkflag = 1;
130      }
131    }
132
133    if(checkflag == 0){
134      alert('チェックボックスが選択されていません');
135      return false;
136    }
137   
138    if(selectflag == 0 && checkflag == 1){
139    document.form1.mode.value = 'update';
140    document.form1.submit();
141    }
142  }
143 
144  function fnBoxChecked(check){
145    var count;
146    var fm = document.form1;
147    var max = fm["move[]"].length;
148    for(count=0; count<max; count++){
149      fm["move[]"][count].checked = check;
150    }
151  }
152 
153//-->
154</script>
Note: See TracBrowser for help on using the repository browser.