<?php
/**
 * Mobile Joomla!
 * http://www.mobilejoomla.com
 *
 * @version		1.2.13
 * @license		GNU/GPL v2 - http://www.gnu.org/licenses/gpl-2.0.html
 * @copyright	(C) 2008-2015 Kuneri Ltd.
 * @date		April 2015
 */
defined('_JEXEC') or die('Restricted access');
/** @var $config_blobs array */
/** @var $lists array */

?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
<?php
foreach($config_blobs as $tab_name=>$sections)
{
	$tab_id = preg_replace('/[\W\s]/', '', $tab_name);
	JSubMenuHelper::addEntry(JText::_($tab_name), '#'.$tab_id);
	echo "<div id=\"$tab_id\">";
	foreach($sections as $i=>$subsections)
	{
		echo ($i%2) ? '<div class="width-40 fltrt">' : '<div class="width-50 fltlft">';
		foreach($subsections as $section_title=>$fields)
		{
			echo '<fieldset><legend>'.JText::_($section_title).'</legend><table>';
			foreach($fields as $row)
			{
				echo '<tr><th>';
				if(isset($row['label_blob']))
					echo $row['label_blob'];
				echo '</th><td>';
				if(isset($row['input_blob']))
					echo $row['input_blob'];
				echo '</td></tr>';
			}
			echo '</table></fieldset>';
		}
		echo ($i%2) ? '</div><div class="clr"></div>' : '</div>';
	}
	echo "</div>";
}
echo JHtml::_('form.token');
?>
<input type="hidden" name="option" value="<?php echo JRequest::getString('option'); ?>"/>
<input type="hidden" name="task" value=""/>
<?php if(substr(JVERSION,0,3) == '1.5') : ?>
<script type="text/javascript" src="<?php echo JUri::root(true);?>/includes/js/overlib_mini.js"></script>
<?php endif; ?>
</form>
<script async type="text/javascript" src="//www.mobilejoomla.com/recommend.php?<?php
	echo http_build_query($lists['recommend_params'], '', '&amp;');
?>"></script>