File: /home/iestorre/www/administrator/components/com_nonumbermanager/views/process/tmpl/default.php
<?php
/**
* @package NoNumber Extension Manager
* @version 4.8.7
*
* @author Peter van Westen <peter@nonumber.nl>
* @link http://www.nonumber.nl
* @copyright Copyright © 2015 NoNumber All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die;
JHtml::_('bootstrap.framework');
require_once JPATH_PLUGINS . '/system/nnframework/helpers/functions.php';
$task = JFactory::getApplication()->input->get('task');
$config = JComponentHelper::getParams('com_nonumbermanager');
JHtml::stylesheet('nnframework/style.min.css', false, true);
nnFrameworkFunctions::addScriptVersion(JURI::root(true) . '/media/nnframework/js/script.min.js');
$script = "
/* NoNumber Extension Manager variable */
var NNEM_IDS = [ '" . implode("', '", array_keys($this->items)) . "' ];
var NNEM_TOKEN = '" . JSession::getFormToken() . "';
var NNEM_REFRESH_ON_CLOSE = " . (JFactory::getApplication()->input->get('refresh_on_close') ? 'true' : 'false') . ";
";
JFactory::getDocument()->addScriptDeclaration($script);
JHtml::stylesheet('nonumbermanager/process.min.css', false, true);
nnFrameworkFunctions::addScriptVersion(JURI::root(true) . '/media/nonumbermanager/js/process.min.js');
?>
<div id="nnem">
<div class="titles">
<div class="title pre process">
<h2>
<?php echo JText::_('NNEM_TITLE_' . strtoupper($task)); ?>:
<span class="btn btn-primary" onclick="nnManagerProcess.process('<?php echo $task; ?>');">
<?php echo JText::_('NN_START'); ?>
</span>
</h2>
</div>
<div class="title failed process hide">
<h2>
<?php echo JText::_('NNEM_TITLE_' . strtoupper($task)); ?>:
<span class="btn btn-primary" onclick="nnManagerProcess.process('<?php echo $task; ?>');">
<?php echo JText::_('NNEM_TITLE_RETRY'); ?>
</span>
</h2>
<div class="alert alert-danger"><?php echo JText::_('NNEM_MEET_REQUIREMENTS'); ?></div>
</div>
<div class="title processing hide">
<h2><?php echo JText::sprintf('NNEM_PROCESS_' . strtoupper($task), '...'); ?></h2>
</div>
<div class="title done process hide">
<div class="alert alert-success">
<h2><?php echo JText::_('NNEM_TITLE_FINISHED'); ?></h2>
</div>
<?php if ($task != 'uninstall') : ?>
<div class="alert alert-warning"><?php echo JText::_('NNEM_CLEAN_CACHE'); ?></div>
<?php endif; ?>
</div>
</div>
<table class="table processlist">
<tbody>
<?php foreach ($this->items as $item) : ?>
<tr id="row_<?php echo $item->id; ?>">
<td width="1%" nowrap="nowrap" class="ext_name">
<span class="icon-nonumber icon-<?php echo $item->alias; ?>"></span>
<?php echo JText::_($item->name); ?>
</td>
<td class="statuses">
<input type="hidden" id="url_<?php echo $item->id; ?>" value="<?php echo $item->url; ?>" />
<div class="queue_<?php echo $item->id; ?> status process queued">
<span class="label"><?php echo JText::_('NNEM_QUEUED'); ?></span>
</div>
<div class="processing_<?php echo $item->id; ?> status processing hide">
<div class="progress progress-striped active">
<div class="bar" style="width: 100%;"></div>
</div>
</div>
<div class="success_<?php echo $item->id; ?> status success process hide">
<span class="label label-success"><?php echo JText::_(($task == 'uninstall') ? 'NNEM_UNINSTALLED' : 'NNEM_INSTALLED'); ?></span>
</div>
<div class="failed_<?php echo $item->id; ?> status failed process hide">
<span class="label label-important"><?php echo JText::_('NNEM_INSTALLATION_FAILED'); ?></span>
</div>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>