バージョン選択

フォーラム

メニュー

オンライン状況

78 人のユーザが現在オンラインです。 (66 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 78
もっと...

サイト内検索

質問 > 管理機能 > 管理画面のステータス管理のカスタマイズ

管理機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
ken-o
投稿日時: 2012/3/12 19:49
対応状況: −−−
長老
登録日: 2011/9/22
居住地:
投稿: 222
管理画面のステータス管理のカスタマイズ
いつもお世話になっております。
少し詰まってしまったので、ご教授頂ければと思い質問させてください。

管理画面の受注管理のステータス管理を改造しております。

デフォルトではステータスの変更をしたいもののチェックボックスにチェックを入れて、上部にある移動させる項目を選んで変更していますが、これを各受注案件毎に直接ステータス変更できるようにしたいのです。

チェックボックスの位置にスタータス項目のプルダウンが来て、「移動」ボタンはそのままで、ボタンが押された時に、プルダウンが変更されているものを移動させるようにカスタマイズできるのでしょうか。

---------------------------
status.tpl
---------------------------

<form name="form1" id="form1" method="POST" action="?" >
<input type="hidden" name="mode" value="" />
<input type="hidden" name="product_id" value="" />

<table>
<tr>
 <th colspan=3><a href="java script:;" onclick="fnSelectCheckSubmit(); return false;"><span>移動</span></a></th>
</tr>
<tr>
 <th>ステータスを選択</th>
<th>対応状況</th>
<th>注文番号</th>
<th>受注日</th>
<th>お名前</th>
<th>支払方法</th>
<th>購入金額(円)</th>
<th>入金日</th>
<th>発送日</th>
</tr>
<!--{section name=cnt loop=$arrStatus}-->
<tr>
 <td>
<select id="<!--{$arrStatus[cnt].order_id}-->" name="change_status">
<option value="" selected="selected" style="<!--{$Errormes|sfGetErrorColor}-->" >選択してください</option>
<!--{foreach key=key item=item from=$arrORDERSTATUS}-->
<!--{if $key ne $SelectedStatus}-->
<option value="<!--{$key}-->" ><!--{$item}--></option>
<!--{/if}-->
<!--{/foreach}-->
<option value="delete">削除</option>
</select>
</td>
</tr>
<!--{/section}-->
</table>

</form>


<script type="text/javascript">
<!--
function fnSelectCheckSubmit(){

  document.form1.product_id.value = document.getElementsByName(change_status).id;

  document.form1.mode.value = 'update';
  document.form1.submit();
}
//-->
<script>

---------------------------

簡易的にjavascriptを書いてみましたが、上記の方法ですと、change_statusのidに入れたorder_idを引っ張ってこれないのです。
alertですと、undentifiedでした。

申し訳ありませんが、どうかよろしくお願い致します。


----------------
何分知識が浅いですが・・・
出来得る限り協力したいと思っています

フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
 » 管理画面のステータス管理のカスタマイズ ken-o 2012/3/12 19:49
     Re: 管理画面のステータス管理のカスタマイズ PWS 2012/3/12 20:18
     Re: 管理画面のステータス管理のカスタマイズ PWS 2012/3/13 9:03
       Re: 管理画面のステータス管理のカスタマイズ ken-o 2012/3/13 13:18
         Re: 管理画面のステータス管理のカスタマイズ ken-o 2012/3/21 16:22

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,894名です
総投稿数は110,002件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2313
5
umebius
2085
6
yuh
1819
7
h_tanaka
1646
8
red
1570
9
mcontact
1295
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.