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

142 lines
6.4 KiB
HTML
Raw Normal View History

2014-05-09 10:34:00 +00:00
<div class="heading">
<h2>Plugin Manager</h2>
</div>
<h3>Installed Plugins</h3>
2014-01-24 13:41:55 +00:00
{if $installed_plugin_list}
<form name="installed_plugins" id="installed_plugins" method="post" action="plugin_manager.php">
2014-04-16 05:52:17 +00:00
<div class="btn-group" style="margin-bottom: 10px">
<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" />
2014-05-06 13:36:47 +00:00
<input class="btn btn-primary btn-sm" type="submit" name="uninstall_selected" value="Uninstall" onclick="return 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">
2014-05-06 13:36:47 +00:00
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>
</td>
<td>Plugin Details</td>
<td>&nbsp;</td>
</tr>
{assign var = bgcolor value = ""}
{foreach from=$installed_plugin_list item=plug name=item}
2014-04-07 12:44:28 +00:00
<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-05-06 13:36:47 +00:00
{if $plug.plugin_active == 'yes'}
2014-04-07 12:44:28 +00:00
<span class="label label-success">Active </span>
2014-04-15 11:45:14 +00:00
{elseif $plug.plugin_active != 'Active'} <span class="label label-warning">NotActive {/if}</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-04-15 11:45:14 +00:00
<li>
{if $plug.plugin_active == 'Active'}
<a href="?deactivate={$plug.plugin_file}{if $plug.plugin_folder!=''}&f={$plug.plugin_folder}{/if}">Deactivate</a>
{else}
<a href="?activate={$plug.plugin_file}{if $plug.plugin_folder!=''}&f={$plug.plugin_folder}{/if}">Activate</a>
{/if}
</li>
<!--{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>-->
<!--</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}-->
2014-05-06 13:36:47 +00:00
<li role="presentation"><a role="menuitem" tabindex="-1" href="javascript: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" />
2014-05-06 13:36:47 +00:00
<input class="btn btn-primary btn-sm" type="submit" name="uninstall_selected" value="Uninstall" onclick="return 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 *}
2014-05-09 10:34:00 +00:00
<div class="heading">
<h2>Available Plugins </h2>
</div>
{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">
2014-05-06 13:36:47 +00:00
<input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/></td>
<td class="head">Plugin Details</td>
<!-- <td>
<div class="form-group">
2014-05-06 13:36:47 +00:00
<input class="btn btn-primary btn-xs pull-right" type="submit" name="install_selected" value="Install" onclick="return 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">
2014-05-06 13:36:47 +00:00
<input class="btn btn-primary btn-sm pull-right" type="submit" name="install_selected" value="Install" onclick="return 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}