<?php
/**
 * @package   AdminTools
 * @copyright Copyright (c)2010-2014 Nicholas K. Dionysopoulos
 * @license   GNU General Public License version 3, or later
 */

// Protect from unauthorized access
defined('_JEXEC') or die;

JHTML::_('behavior.framework', true);
JHtml::_('behavior.modal');
?>
<?php if ($this->more): ?>
	<h1><?php echo JText::_('ATOOLS_LBL_FIXPERMSINPROGRESS'); ?></h1>
<?php else: ?>
	<h1><?php echo JText::_('ATOOLS_LBL_FIXPERMSDONE'); ?></h1>
<?php endif; ?>

	<div class="progress progress-striped active">
		<div class="bar" style="width: <?php echo $this->percentage ?>%"></div>
	</div>

	<form action="index.php" name="adminForm" id="adminForm" method="get">
		<input type="hidden" name="option" value="com_admintools"/>
		<input type="hidden" name="view" value="fixperms"/>
		<input type="hidden" name="task" value="run"/>
		<input type="hidden" name="tmpl" value="component"/>
	</form>

<?php if (!$this->more): ?>
	<div class="alert alert-info">
		<p><?php echo JText::_('ATOOLS_LBL_AUTOCLOSE_IN_3S'); ?></p>
	</div>

	<script type="text/javascript">
		window.setTimeout('closeme();', 3000);
		function closeme()
		{
			parent.SqueezeBox.close();
		}
	</script>
<?php endif; ?>