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

Revision 22720, 4.5 KB checked in by Yammy, 11 years ago (diff)

競合中の文言表示追加

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="conflict_check" />
60<input type="hidden" name="plugin_hookpoint_id" value="" />
61<div id="system" class="contents-main">
62    <!--▼プラグイン一覧ここから-->
63    <h2>フックポイント別プラグイン一覧</h2>
64    <!--{if count($arrHookPoint) > 0}-->
65
66        <span class="attention"><!--{$arrErr.plugin_error}--></span>
67        <table class="system-plugin" width="900">
68            <col width="40%" />
69            <col width="5" />
70            <col width="40%" />
71            <col width="15%" />
72            <tr>
73                <th>フックポイント</th>
74                <th>優先度</th>
75                <th>プラグイン名</th>
76                <th>利用ON/OFF</th>
77            </tr>
78    <!--{foreach from=$arrHookPoint item=hookpoint}-->
79    <!--{foreach from=$hookpoint item=val name="plugin"}-->
80            <tr>
81                <!--{if $hookpoint|@count > 0 && $smarty.foreach.plugin.iteration == '1'}-->
82                <td <!--{if in_array($val.hook_point, $arrConflict)}-->bgcolor="pink"<!--{/if}--> rowspan="<!--{$hookpoint|@count}-->">
83                    <!--{$val.hook_point}-->
84                    <!--{if in_array($val.hook_point, $arrConflict)}--><br /><span class="attention">※ 競合中</span><!--{/if}-->
85                </td>
86                <!--{elseif !$smarty.foreach.plugin.iteration > 1}-->
87                <td <!--{if in_array($val.hook_point, $arrConflict)}-->bgcolor="pink"<!--{/if}-->>
88                    <!--{$val.hook_point}-->
89                    <!--{if in_array($val.hook_point, $arrConflict)}--><br /><span class="attention">※ 競合中</span><!--{/if}-->
90                </td>
91                <!--{/if}-->
92                <td<!--{if $val.use_flg == "f"}--> bgcolor="grey"<!--{/if}-->><!--{$val.priority}--></td>
93                <td<!--{if $val.use_flg == "f"}--> bgcolor="grey"<!--{/if}-->><!--{$val.plugin_name}--></td>
94                <td<!--{if $val.use_flg == "f"}--> bgcolor="grey"<!--{/if}-->>
95                <!--{html_radios name="plugin_hookpoint_use[`$val.plugin_hookpoint_id`]" options=$arrUse selected=$val.use_flg id=$val.plugin_hookpoint_id}-->
96                </td>
97            </tr>
98    <!--{/foreach}-->
99    <!--{/foreach}-->
100        </table>
101    <!--{else}-->
102        <span>登録されているプラグインはありません。</span>
103    <!--{/if}-->
104</div>
105</form>
Note: See TracBrowser for help on using the repository browser.