| 1 | <!--{* |
|---|
| 2 | /* |
|---|
| 3 | * This file is part of EC-CUBE |
|---|
| 4 | * |
|---|
| 5 | * Copyright(c) 2000-2011 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 | <!--<form name="form1" id="form1" method="post" action="?">--> |
|---|
| 25 | <form name="form1" method="post" action="?" enctype="multipart/form-data"> |
|---|
| 26 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
|---|
| 27 | <input type="hidden" name="mode" value="" /> |
|---|
| 28 | <input type="hidden" name="plugin_id" value="" /> |
|---|
| 29 | <input type="hidden" name="plugin_code" value="" /> |
|---|
| 30 | |
|---|
| 31 | <div id="system" class="contents-main"> |
|---|
| 32 | |
|---|
| 33 | <h2>プラグイン登録</h2> |
|---|
| 34 | <table class="form"> |
|---|
| 35 | <tr> |
|---|
| 36 | <th>プラグイン<span class="attention"> *</span></th> |
|---|
| 37 | <td> |
|---|
| 38 | <!--{assign var=key value="plugin_file"}--> |
|---|
| 39 | <span class="attention"><!--{$arrErr[$key]}--></span> |
|---|
| 40 | <input type="file" name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" class="box54" size="64" <!--{if $arrErr[$key]}-->style="background-color:<!--{$smarty.const.ERR_COLOR|h}-->"<!--{/if}-->> |
|---|
| 41 | </td> |
|---|
| 42 | </tr> |
|---|
| 43 | </table> |
|---|
| 44 | |
|---|
| 45 | <div class="btn-area"> |
|---|
| 46 | <a class="btn-action" href="javascript:;" onclick="fnModeSubmit('upload', '', '');return false;"><span class="btn-next">この内容で登録する</span></a> |
|---|
| 47 | </div> |
|---|
| 48 | |
|---|
| 49 | <!--▼プラグイン一覧ここから--> |
|---|
| 50 | <h2>プラグイン一覧</h2> |
|---|
| 51 | <!--{if count($plugins) > 0}--> |
|---|
| 52 | <span class="attention"><!--{$arrErr.plugin_error}--><!--{$arrErr.mode}--><!--{$arrErr.plugin_id}--><!--{$arrErr.plugin_code}--></span> |
|---|
| 53 | <table class="list" width="900"> |
|---|
| 54 | <col width="15%" /> |
|---|
| 55 | <col width="10%" /> |
|---|
| 56 | <col width="25%" /> |
|---|
| 57 | <col width="28%" /> |
|---|
| 58 | <col width="7%" /> |
|---|
| 59 | <col width="5%" /> |
|---|
| 60 | <col width="5%" /> |
|---|
| 61 | <col width="5%" /> |
|---|
| 62 | <tr> |
|---|
| 63 | <th>プラグイン名</th> |
|---|
| 64 | <th>作者</th> |
|---|
| 65 | <th>サイトURL</th> |
|---|
| 66 | <th>説明</th> |
|---|
| 67 | <th>商品ステータス</th> |
|---|
| 68 | <th>操作</th> |
|---|
| 69 | <th>設定</th> |
|---|
| 70 | <th>移動</th> |
|---|
| 71 | </tr> |
|---|
| 72 | <!--{section name=data loop=$plugins}--> |
|---|
| 73 | <tr> |
|---|
| 74 | <td><!--{$plugins[data].plugin_name|default:$plugins[data].plugin_code|h}--><!--{if $plugins[data].plugin_version != ''}--><br /><!--{$plugins[data].plugin_version|h}--><!--{/if}--></td> |
|---|
| 75 | <td><!--{$plugins[data].author|default:'-'|h}--></td> |
|---|
| 76 | <td><!--{$plugins[data].plugin_site_url|default:'-'|h}--></td> |
|---|
| 77 | <td><!--{$plugins[data].plugin_description|default:'-'|h}--></td> |
|---|
| 78 | <td class="center"> |
|---|
| 79 | <!--{if $plugins[data].enable == $smarty.const.PLUGIN_ENABLE_TRUE}--> |
|---|
| 80 | 有効 |
|---|
| 81 | <!--{elseif $plugins[data].enable == $smarty.const.PLUGIN_ENABLE_FALSE}--> |
|---|
| 82 | 無効 |
|---|
| 83 | <!--{else}-->-<!--{/if}--> |
|---|
| 84 | </td> |
|---|
| 85 | <td class="center"> |
|---|
| 86 | <!--{if $plugins[data].status == $smarty.const.PLUGIN_STATUS_UPLOADED}--> |
|---|
| 87 | <a class="btn-normal" href="javascript:;" name="install" onclick="fnSetFormValue('plugin_id', '<!--{$plugins[data].plugin_id}-->'); fnModeSubmit('install','plugin_code','<!--{$plugins[data].plugin_code}-->'); return false;">install</a> |
|---|
| 88 | <!--{else}--> |
|---|
| 89 | <!--{if $plugins[data].enable == $smarty.const.PLUGIN_ENABLE_TRUE}--> |
|---|
| 90 | <a class="btn-normal" href="javascript:;" name="disable" onclick="fnSetFormValue('plugin_id', '<!--{$plugins[data].plugin_id}-->'); fnModeSubmit('disable','plugin_code','<!--{$plugins[data].plugin_code}-->'); return false;">disable</a><br /> |
|---|
| 91 | <!--{else}--> |
|---|
| 92 | <a class="btn-normal" href="javascript:;" name="enable" onclick="fnSetFormValue('plugin_id', '<!--{$plugins[data].plugin_id}-->'); fnModeSubmit('enable','plugin_code','<!--{$plugins[data].plugin_code}-->'); return false;">enable</a><br /> |
|---|
| 93 | <!--{/if}--> |
|---|
| 94 | <a class="btn-normal" href="javascript:;" name="uninstall" onclick="fnSetFormValue('plugin_id', '<!--{$plugins[data].plugin_id}-->'); fnModeSubmit('uninstall','plugin_code','<!--{$plugins[data].plugin_code}-->'); return false;">uninstall</a> |
|---|
| 95 | <!--{/if}--> |
|---|
| 96 | </td> |
|---|
| 97 | <td class="center"> |
|---|
| 98 | <!--{if $plugins[data].plugin_setting_path != ''}--> |
|---|
| 99 | <a href="?" onclick="win03('<!--{$plugins[data].plugin_setting_path}-->','plugin_setting','620','760'); return false;">設定</a> |
|---|
| 100 | <!--{else}--> |
|---|
| 101 | - |
|---|
| 102 | <!--{/if}--> |
|---|
| 103 | </td> |
|---|
| 104 | <td align="center"> |
|---|
| 105 | <!--{if $smarty.section.data.iteration != 1}--> |
|---|
| 106 | <a href="?" onclick="fnModeSubmit('up','plugin_id', '<!--{$plugins[data].plugin_id}-->'); return false;">上へ</a> |
|---|
| 107 | <!--{/if}--> |
|---|
| 108 | <!--{if $smarty.section.data.iteration != $smarty.section.data.last}--> |
|---|
| 109 | <a href="?" onclick="fnModeSubmit('down','plugin_id', '<!--{$plugins[data].plugin_id}-->'); return false;">下へ</a> |
|---|
| 110 | <!--{/if}--> |
|---|
| 111 | </td> |
|---|
| 112 | </tr> |
|---|
| 113 | <!--{/section}--> |
|---|
| 114 | </table> |
|---|
| 115 | <!--{else}--> |
|---|
| 116 | 登録されているプラグインはありません。 |
|---|
| 117 | <!--{/if}--> |
|---|
| 118 | |
|---|
| 119 | </div> |
|---|
| 120 | </form> |
|---|