<?php

/*

 * ARI Framework Lite

 *

 * @package		ARI Framework Lite

 * @version		1.0.0

 * @author		ARI Soft

 * @copyright	Copyright (c) 2009 www.ari-soft.com. All rights reserved

 * @license		GNU/GPL (http://www.gnu.org/copyleft/gpl.html)

 * 

 */



defined('_JEXEC') or die ('Restricted access');



jimport('joomla.html.html');

jimport('joomla.form.formfield');



class JFormFieldHeader extends JFormField

{

	protected $type = 'Header';



	function getInput()

	{

		return $this->fetchElement($this->element['name'], $this->value, $this->element, $this->name);

	}

	

	function fetchElement($name, $value, &$node, $control_name)

	{

		$options = array(JText::_($value));

		foreach ($node->children() as $option)

		{

			$options[] = $option->data();

		}

		

		return sprintf('<div style="float: left; width: 100%%; font-weight: bold; font-size: 120%%; color: #FFF; background-color: #7A7A7A; padding: 2px 0; text-align: center;">%s</div>', call_user_func_array('sprintf', $options));

	}

}

?>