CoreFiles by mySites.guru
installation.php54 lines, 1,649 bytes, from Joomla_1.7.2-Stable-Full_Package.zip
Raw History Compare with 1.7.1
md5
24318a2d8f7b8ed2ff5da3af60417c9a
sha1
84f5f4ab0611ec5a433541eab77de3cdf5eb9e86
sha256
019806049c789116473bd7cdeb9cf6ee43bcf1d7634ae1f784d0b6e3829a1825
<?php
/**
 * @version		$Id: installation.php 21960 2011-08-12 21:58:56Z dextercowley $
 * @package		Joomla.Installation
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

class JHtmlInstallation
{
	public static function stepbar()
 	{
		$view = JRequest::getWord('view');
		switch ($view) {
			case '':
			case 'language':
				$on = 1;
				break;
			case 'preinstall':
				$on = 2;
				break;
			case 'license':
				$on = 3;
				break;
			case 'database':
				$on = 4;
				break;
			case 'filesystem':
				$on = 5;
				break;
			case 'site':
				$on = 6;
				break;
			case 'complete':
				$on = 7;
				break;
			case 'remove':
				$on = 7;
				break;
			default:
				$on = 1;
		}

 		$html = '<h2>'.JText::_('INSTL_STEPS_TITLE').'</h2>' .
			'<div class="step'.($on == 1 ? ' active' : '').'" id="language">'.JText::_('INSTL_STEP_1_LABEL').'</div>' .
			'<div class="step'.($on == 2 ? ' active' : '').'" id="preinstall">'.JText::_('INSTL_STEP_2_LABEL').'</div>' .
			'<div class="step'.($on == 3 ? ' active' : '').'" id="license">'.JText::_('INSTL_STEP_3_LABEL').'</div>' .
			'<div class="step'.($on == 4 ? ' active' : '').'" id="database">'.JText::_('INSTL_STEP_4_LABEL').'</div>' .
			'<div class="step'.($on == 5 ? ' active' : '').'" id="filesystem">'.JText::_('INSTL_STEP_5_LABEL').'</div>' .
			'<div class="step'.($on == 6 ? ' active' : '').'" id="site">'.JText::_('INSTL_STEP_6_LABEL').'</div>' .
			'<div class="step'.($on == 7 ? ' active' : '').'" id="complete">'.JText::_('INSTL_STEP_7_LABEL').'</div>';
			return $html;
	}
}

The same content is in 5 releases, Joomla 1.7.1 to 1.7.5. See them all, or every version of this file.