source: branches/version-2_12-multilang/data/Smarty/templates/admin/ownersstore/plugin.tpl @ 22130

Revision 22130, 11.7 KB checked in by h_yoshimoto, 11 years ago (diff)

#1981 必須マークを言語ファイルに切り出し

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2012 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[id^=plugin_enable]').change(function(event) {
32            // モード(有効 or 無効)
33            var mode = event.target.name;
34
35            if(mode === 'disable') {
36                result = window.confirm('<!--{t string="tpl_458"}-->');
37                if(result === false) {
38                    $(event.target).attr("checked", "checked");
39                }
40            } else if(mode === 'enable') {
41                result = window.confirm('<!--{t string="tpl_459"}-->');
42                if(result === false) {
43                    $(event.target).attr("checked", "");
44                }
45            }
46            if(result === true){
47                // プラグインID
48                var plugin_id = event.target.value;
49                fnModeSubmit(mode, 'plugin_id', plugin_id);
50            }
51        });
52
53    /**
54     * 通信エラー表示.
55     */
56    function remoteException(XMLHttpRequest, textStatus, errorThrown) {
57        alert('<!--{t string="tpl_460"}-->');
58    }
59
60    /**
61     * アップデートリンク押下時の処理.
62     */
63    $('.update_link').click(function(event) {
64        var plugin_id = event.target.name;
65        $('div[id="plugin_update_' + plugin_id + '"]').toggle("slow");
66        });
67    });
68
69    /**
70     * アプデートボタン押下時の処理.
71     * アップデート対象ファイル以外はPOSTされない様にdisabled属性を付与
72     */
73    function removeUpdateFile(select_id) {
74        $('input[name="update_plugin_file"]').attr("disabled", "disabled");
75        $('input[id="' + select_id + '"]').removeAttr("disabled");
76    }
77
78    /**
79     * インストール
80     */
81    function install() {
82        if (window.confirm('<!--{t string="tpl_461" kaigyo_escape=true}-->')){
83            fnModeSubmit('install','','');
84        }
85    }
86
87    /**
88     * アンインストール(削除)
89     */
90    function uninstall(plugin_id, plugin_code) {
91        if (window.confirm('<!--{t string="tpl_462"}-->')){
92            fnSetFormValue('plugin_id', plugin_id);
93            fnModeSubmit('uninstall', 'plugin_code', plugin_code);
94        }
95    }
96
97    /**
98     * アップデート処理
99     */
100    function update(plugin_id, plugin_code) {
101        if (window.confirm('<!--{t string="tpl_463"}-->')){
102            removeUpdateFile('update_file_' + plugin_id);
103            fnSetFormValue('plugin_id', plugin_id);
104            fnModeSubmit('update','plugin_code', plugin_code);
105        }
106    }
107
108
109    /**
110     * 優先度変更.
111     */
112    function update_priority(plugin_id, plugin_code) {
113        var priority = $("*[name=priority_" + plugin_code +"]").val();
114        fnSetFormValue('priority', priority);
115        fnModeSubmit('priority','plugin_id',plugin_id);
116    }
117
118//]]></script>
119
120<!--<form name="form1" id="form1" method="post" action="?">-->
121<form name="form1" method="post" action="?" enctype="multipart/form-data">
122<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
123<input type="hidden" name="mode" value="" />
124<input type="hidden" name="plugin_id" value="" />
125<input type="hidden" name="plugin_code" value="" />
126<input type="hidden" name="priority" value="" />
127<div id="system" class="contents-main">
128    <h2><!--{t string="tpl_464"}--></h2>
129    <table class="form">
130        <tr>
131            <th><!--{t string="tpl_465"}--></th>
132            <td>
133                <!--{assign var=key value="plugin_file"}-->
134                <span class="attention"><!--{$arrErr[$key]}--></span>
135                <input type="file" name="<!--{ $key }-->" class="box45" size="43"  style="<!--{$arrErr[$key]|sfGetErrorColor}--> <!--{if $arrErr[$key]}--> background-color:<!--{$smarty.const.ERR_COLOR|h}--><!--{/if}-->">
136                <a class="btn-action" href="javascript:;" onclick="install(); return false;"><span class="btn-next"><!--{t string="tpl_466"}--></span></a>
137            </td>
138        </tr>
139    </table>
140
141    <!--▼プラグイン一覧ここから-->
142    <h2><!--{t string="tpl_467"}--></h2>
143    <!--{if count($plugins) > 0}-->
144        <span class="attention"><!--{$arrErr.plugin_error}--></span>
145        <table class="system-plugin" width="900">
146            <col width="10%" />
147            <col width="77" />
148            <col width="13%" />
149            <tr>
150                <th colspan="2"><!--{t string="tpl_468"}--></th>
151                <th><!--{t string="tpl_469"}--></th>
152            </tr>
153            <!--{section name=data loop=$plugins}-->
154            <!--{assign var=plugin value=$plugins[data]}-->
155            <tr <!--{if $plugin.enable == $smarty.const.PLUGIN_ENABLE_FALSE}--> style="background:#C9C9C9;" <!--{/if}-->>
156                <!--ロゴ-->
157                <td class="center plugin_img">
158                    <!--{if $plugin.plugin_site_url != '' }-->
159                        <a href="?" onclick="win03('<!--{$plugin.plugin_site_url|h}-->','plugin_site_url','620','760'); return false;"><img src="<!--{$plugin.logo}-->" width="65" height="65"/></a>&nbsp;
160                    <!--{else}-->
161                        <img src="<!--{$plugin.logo}-->" width="65" height="65"/>
162                    <!--{/if}-->
163
164                </td>
165                <!--機能説明-->
166                <td class="plugin_info">
167                        <!-- プラグイン名 -->
168                            <!-- ▼plugin_site_urlが設定されている場合はリンクとして表示 -->
169                            <span class="plugin_name">
170                            <!--{if $plugin.plugin_site_url != '' }-->
171                                <a href="?" onclick="win03('<!--{$plugin.plugin_site_url|h}-->','plugin_site_url','620','760'); return false;"><!--{$plugin.plugin_name|default:$plugin.plugin_code|h}--></a>&nbsp;
172                            <!--{else}-->
173                                <sapn><!--{$plugin.plugin_name|default:$plugin.plugin_code|h}-->&nbsp;</sapn>
174                            <!--{/if}-->
175                            </span>
176                        <!-- プラグインバージョン -->
177                            <!--{if $plugin.plugin_version != ''}--><!--{$plugin.plugin_version|h}--><!--{/if}-->&nbsp;
178                        <!-- 作者 -->
179                            <!--{if $plugin.author != ''}-->
180                                <!-- ▼author_site_urlが設定されている場合はリンクとして表示 -->
181                                <!--{if $plugin.author_site_url != '' }-->
182                                    <span>(by <a href="?" onclick="win03('<!--{$plugin.author_site_url|h}-->','author_site_url','620','760'); return false;"><!--{$plugin.author|default:'-'|h}--></a>)</span>
183                                <!--{else}-->
184                                    <span>(by <!--{$plugin.author|default:'-'|h}-->)</span>
185                                <!--{/if}-->
186                            <!--{/if}-->
187                        <br />
188                        <!-- 説明 -->
189                            <p class="description"><!--{$plugin.plugin_description|default:'-'|h}--></p>
190                        <div>
191                            <span class="ec_cube_version"><!--{t string="tpl_470"}--><!--{$plugin.compliant_version|default:'-'|h}--></span><br/>
192                            <span class="attention"><!--{$arrErr[$plugin.plugin_code]}--></span>
193                            <!-- 設定 -->
194                                <!--{if $plugin.config_flg == true && $plugin.status != $smarty.const.PLUGIN_STATUS_UPLOADED}-->
195                                    <a href="?" onclick="win02('../load_plugin_config.php?plugin_id=<!--{$plugin.plugin_id}-->', 'load', 615, 400);return false;"><!--{t string="tpl_471"}--></a>&nbsp;|&nbsp;
196                                <!--{else}-->
197                                    <span><!--{t string="tpl_471"}-->&nbsp;|&nbsp;</span>
198                                <!--{/if}-->
199                            <!-- アップデート -->
200                                <a class="update_link" href="javascript:;" name="<!--{$plugin.plugin_id}-->"><!--{t string="tpl_472"}--></a>&nbsp;|&nbsp;
201                            <!-- 削除 -->
202                                <a  href="javascript:;" name="uninstall" onclick="uninstall(<!--{$plugin.plugin_id}-->, '<!--{$plugin.plugin_code}-->'); return false;"><!--{t string="tpl_004"}--></a>&nbsp;|&nbsp;
203                            <!-- 有効/無効 -->
204                                <!--{if $plugin.enable == $smarty.const.PLUGIN_ENABLE_TRUE}-->
205                                    <label><input id="plugin_enable" type="checkbox" name="disable" value="<!--{$plugin.plugin_id}-->" id="login_memory" checked="checked"><!--{t string="tpl_473"}--></input></label><br/>
206                                <!--{else}-->
207                                    <label><input id="plugin_enable" type="checkbox" name="enable" value="<!--{$plugin.plugin_id}-->" id="login_memory"><!--{t string="tpl_474"}--></input></label><br/>
208                                <!--{/if}-->
209
210                                <!-- アップデートリンク押下時に表示する. -->
211                                <div id="plugin_update_<!--{$plugin.plugin_id}-->" style="display: none">
212                                    <input id="update_file_<!--{$plugin.plugin_id}-->" name="<!--{$plugin.plugin_code}-->" type="file" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" class="box30" size="30" <!--{if $arrErr[$key]}-->style="background-color:<!--{$smarty.const.ERR_COLOR|h}-->"<!--{/if}--> />
213                                    <a class="btn-action" href="javascript:;" onclick="update(<!--{$plugin.plugin_id}-->, '<!--{$plugin.plugin_code}-->'); return false;"><span class="btn-next"><!--{t string="tpl_472"}--></span></a>
214                                </div>
215                        </div>
216                </td>
217                <!--優先順位-->
218                <td class="center">
219                    <span class="attention"><!--{$arrErr.priority[$plugin.plugin_id]}--></span>
220                    <input type="text" class="center" name="priority_<!--{$plugin.plugin_code}-->" value="<!--{$plugin.priority|h}-->" size="1" class="priority" />
221                    <a class="btn-action" href="javascript:;" onclick="update_priority(<!--{$plugin.plugin_id}-->, '<!--{$plugin.plugin_code}-->'); return false;"><span class="btn-next"><!--{t string="tpl_475"}--></span></a><br/>
222                    <span><!--{$plugin.priority_message}--></span>
223                </td>
224            </tr>
225            <!--競合アラート-->
226            <!--{if $plugin.conflict_message != ""}-->
227            <tr>
228                <td class="attention_fookpoint" colspan="3">
229                    <p class="attention"><!--{$plugin.conflict_message}--></p>
230                </td>
231            </tr>
232            <!--{/if}-->
233            <!--{/section}-->
234        </table>
235    <!--{else}-->
236        <span><!--{t string="tpl_476"}--></span>
237    <!--{/if}-->
238</div>
239</form>
Note: See TracBrowser for help on using the repository browser.