clipbucket/upload/admin_area/styles/cb_2014/layout/plugin_manager.html

126 lines
5.8 KiB
HTML
Raw Normal View History

2014-01-24 13:41:55 +00:00
<h3>Plugin Manager</h3>
<h2>Installed Plugins</h2>
{if $installed_plugin_list}
<form name="installed_plugins" id="installed_plugins" method="post" action="plugin_manager.php">
<div class="btn-group">
<input class="btn btn-primary btn-sm" type="submit" name="activate_selected" value="Activate" />
<input class="btn btn-primary btn-sm" type="submit" name="deactivate_selected" value="Deactivate" />
<input class="btn btn-primary btn-sm" type="submit" name="uninstall_selected" value="Uninstall" onclick="return _cb.confirm_it('Are you sure you want to uninstall selected plugin(s)')" id="uninstall_selected"/>
</div>
<table class="table table-bordered table-striped">
<tr>
<td width="30">
<input type="checkbox" name="checkall" onclick="_cb.checkUncheckAll(this);"/>
</td>
<td>Plugin Details</td>
<td>&nbsp;</td>
</tr>
{assign var = bgcolor value = ""}
{foreach from=$installed_plugin_list item=plug name=item}
<tr>
<td width="30">
<input name="check_plugin[]" type="checkbox" value="{$smarty.foreach.item.iteration}" />
<input type="hidden" name="plugin_file_{$smarty.foreach.item.iteration}" value="{$plug.plugin_file}" />
<input type="hidden" name="plugin_folder_{$smarty.foreach.item.iteration}" value="{$plug.folder}" />
</td>
<td>
<strong>{$plug.name}</strong>
<p>{$plug.description}</p>
<div class="pluginStatus">
2014-02-28 12:08:54 +00:00
<span class="label {if $plugin.plugin_active == active}label-success {else}label-warning{/if}">
<strong>{if $plug.plugin_active =='active'}Active{else}InActive{/if}</strong>
</span>
2014-01-24 13:41:55 +00:00
<span class="label label-danger"><span>Author:</span><strong>{$plug.author}</strong></span>
<span class="label label-info"><span>Ver.</span><strong>{$plug.version}</strong></span>
</div>
</td>
<td>
<div class="dropdown">
<button id="dropdownMenu1" class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown">Actions <i class="caret"></i></button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1" role="menu">
2014-02-28 12:08:54 +00:00
{if $plug.plugin_active == 'active'}
<li role="presentation">
<a role="menuitem" tabindex="-1" href="?deactivate={$plug.plugin_file}{if $plug.folder!=''}&f={$plug.folder}{/if}">
Deactivate
</a>
2014-01-27 11:30:36 +00:00
</li>
{else}
<li role="presentation">
<a role="menuitem" tabindex="-1" href="?activate={$plug.plugin_file}{if $plug.folder!=''}&f={$plug.folder}{/if}">
Activate
</a>
</li>
{/if}
<li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:_cb.Confirm_Uninstall('?uninstall={$plug.plugin_file}{if $plug.folder!=''}&f={$plug.folder}{/if}')">
Uninstall
</a>
</li>
</ul>
</div>
</td>
{/foreach}
</tr>
</table>
<div class="btn-group">
<input class="btn btn-primary btn-sm" type="submit" name="activate_selected" value="Activate" />
<input class="btn btn-primary btn-sm" type="submit" name="deactivate_selected" value="Deactivate" />
<input class="btn btn-primary btn-sm" type="submit" name="uninstall_selected" value="Uninstall" onclick="return _cb.confirm_it('Are you sure you want to uninstall selected plugin(s)')" id="uninstall_selected"/>
</div>
2014-01-24 13:41:55 +00:00
</form>
{else}
<div>
<strong><em>No Installed Plugin Found</em></strong>
</div>
2014-01-24 13:41:55 +00:00
{/if}
{* Listing New Plugins *}
<h2>Available Plugins </h2>
{if $new_plugin_list}
<form name="available_plugins" id="available_plugins" action="plugin_manager.php" method="post">
<table class="table table-bordered table-striped">
<tr>
<td width="30" align="center" valign="middle" class="left_head">
<input type="checkbox" name="checkall" onclick="_cb.checkUncheckAll(this);"/></td>
<td class="head">Plugin Details</td>
<!-- <td>
<div class="form-group">
<input class="btn btn-primary btn-xs pull-right" type="submit" name="install_selected" value="Install" onclick="return _cb.confirm_it('Are you sure you want to install selected plugin(s)')" id="install_selected"/>
</div>
</td> -->
</tr>
2014-01-24 13:41:55 +00:00
{assign var = bgcolor value = ""}
{foreach from=$new_plugin_list item=plug name=item}
<tr>
<td width="30">
<input name="check_plugin[]" type="checkbox" value="{$smarty.foreach.item.iteration}" />
<input type="hidden" name="plugin_file_{$smarty.foreach.item.iteration}" value="{$plug.file}" />
<input type="hidden" name="plugin_folder_{$smarty.foreach.item.iteration}" value="{$plug.folder}" />
</td>
<td>
<strong>{$plug.name}</strong>
<span class="vdo_sets">
<strong>{$plug.plugin_active}</strong><br>
Author :
<strong>
<a href="{$plug.website}">{$plug.author}</a>
</strong><br>
Version : <strong>{$plug.version}</strong>
</span>
<p>{$plug.description}</p>
<span>
<a class="btn btn-info btn-xs" href="?install_plugin={$plug.file}{if $plug.folder!=''}&f={$plug.folder}{/if}">
Install Plugin
</a>
</span>
</td>
</tr>
{/foreach}
</table>
<div class="form-group clearfix">
<input class="btn btn-primary btn-sm pull-right" type="submit" name="install_selected" value="Install" onclick="return _cb.confirm_it('Are you sure you want to install selected plugin(s)')" id="install_selected"/>
</div>
2014-01-24 13:41:55 +00:00
</form>
{else}
<div align="center"><strong><em>No Plugin is available</em></strong></div>
{/if}