source: branches/camp/camp-2_13-plugin/data/Smarty/templates/admin/ownersstore/plugin_hookpoint_list.tpl @ 22641

Revision 22641, 4.0 KB checked in by Yammy, 8 years ago (diff)

フックポイントのON/OFF機能実装

refs #2179

Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2013 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<script type="text/javascript">//<![CDATA[
26    $(function() {
27
28        /**
29         * 「有効/有効にする」チェックボタン押下時
30         */
31        $('input[name^=plugin_hookpoint_use]').change(function(event) {
32            // モード(有効 or 無効)
33            var value = event.target.value;
34            var id = event.target.id;
35
36            if(value === 'f') {
37                result = window.confirm('無効にしても宜しいですか?');
38                if(result === false) {
39                    //$(event.target).attr("checked", "checked");
40                    event.target.value = 't';
41                }
42            } else if(value === 't') {
43                result = window.confirm('有効にしても宜しいですか?');
44                if(result === false) {
45                    //$(event.target).attr("checked", "checked");
46                    event.target.value = 'f ';
47                }
48            }
49            // プラグインフックID
50            fnModeSubmit('update_use', 'plugin_hookpoint_id', id);
51        });
52    });
53
54//]]></script>
55
56<!--<form name="form1" id="form1" method="post" action="?">-->
57<form name="form1" method="post" action="?">
58<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
59<input type="hidden" name="mode" value="" />
60<input type="hidden" name="plugin_hookpoint_id" value="" />
61<div id="system" class="contents-main">
62    <h2>プラグイン競合チェック</h2>
63
64    <!--▼プラグイン一覧ここから-->
65    <h2>フックポイント別プラグイン一覧</h2>
66    <!--{if count($arrHookPoint) > 0}-->
67
68        <span class="attention"><!--{$arrErr.plugin_error}--></span>
69        <table class="system-plugin" width="900">
70            <col width="40%" />
71            <col width="5" />
72            <col width="40%" />
73            <col width="15%" />
74            <tr>
75                <th>フックポイント</th>
76                <th>優先度</th>
77                <th>プラグイン名</th>
78                <th>利用ON/OFF</th>
79            </tr>
80    <!--{foreach from=$arrHookPoint item=hookpoint}-->
81    <!--{foreach from=$hookpoint item=val name="plugin"}-->
82            <tr>
83                <!--{if $hookpoint|@count > 0 && $smarty.foreach.plugin.iteration == '1'}-->
84                <td rowspan="<!--{$hookpoint|@count}-->"><!--{$val.hook_point}--></td>
85                <!--{elseif !$smarty.foreach.plugin.iteration > 1}-->
86                <td><!--{$val.hook_point}--></td>
87                <!--{/if}-->
88                <td<!--{if $val.use_flg == "f"}--> bgcolor="grey"<!--{/if}-->><!--{$val.priority}--></td>
89                <td<!--{if $val.use_flg == "f"}--> bgcolor="grey"<!--{/if}-->><!--{$val.plugin_name}--></td>
90                <td<!--{if $val.use_flg == "f"}--> bgcolor="grey"<!--{/if}-->>
91                <!--{html_radios name="plugin_hookpoint_use[`$val.plugin_hookpoint_id`]" options=$arrUse selected=$val.use_flg id=$val.plugin_hookpoint_id}-->
92                </td>
93            </tr>
94    <!--{/foreach}-->
95    <!--{/foreach}-->
96        </table>
97    <!--{else}-->
98        <span>登録されているプラグインはありません。</span>
99    <!--{/if}-->
100</div>
101</form>
Note: See TracBrowser for help on using the repository browser.