source: branches/version-2_13-dev/data/Smarty/templates/admin/ownersstore/plugin_hookpoint_list.tpl @ 22978

Revision 22978, 4.5 KB checked in by adachi, 11 years ago (diff)

#2308 開発合宿(2013/06)プラグイン改善分をマージ

RevLine 
[22629]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         */
[22641]31        $('input[name^=plugin_hookpoint_use]').change(function(event) {
[22629]32            // モード(有効 or 無効)
[22641]33            var value = event.target.value;
34            var id = event.target.id;
[22629]35
[22641]36            if(value === 'f') {
37                result = window.confirm('無効にしても宜しいですか?');
[22629]38                if(result === false) {
[22641]39                    //$(event.target).attr("checked", "checked");
40                    event.target.value = 't';
[22629]41                }
[22641]42            } else if(value === 't') {
43                result = window.confirm('有効にしても宜しいですか?');
[22629]44                if(result === false) {
[22641]45                    //$(event.target).attr("checked", "checked");
46                    event.target.value = 'f ';
[22629]47                }
48            }
[22641]49            // プラグインフックID
50            fnModeSubmit('update_use', 'plugin_hookpoint_id', id);
[22629]51        });
52    });
53
54//]]></script>
55
56<!--<form name="form1" id="form1" method="post" action="?">-->
[22641]57<form name="form1" method="post" action="?">
[22629]58<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
[22664]59<input type="hidden" name="mode" value="conflict_check" />
[22641]60<input type="hidden" name="plugin_hookpoint_id" value="" />
[22629]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">
[22641]68            <col width="40%" />
69            <col width="5" />
70            <col width="40%" />
71            <col width="15%" />
[22629]72            <tr>
73                <th>フックポイント</th>
74                <th>優先度</th>
75                <th>プラグイン名</th>
76                <th>利用ON/OFF</th>
77            </tr>
78    <!--{foreach from=$arrHookPoint item=hookpoint}-->
[22641]79    <!--{foreach from=$hookpoint item=val name="plugin"}-->
[22629]80            <tr>
[22641]81                <!--{if $hookpoint|@count > 0 && $smarty.foreach.plugin.iteration == '1'}-->
[22720]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>
[22641]86                <!--{elseif !$smarty.foreach.plugin.iteration > 1}-->
[22720]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>
[22641]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}-->
[22629]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.