<?php
/**
 * @version		$Id$
 * @package		TAOJ.Quanta
 * @subpackage	com_quanta
 * @copyright	Copyright (C) 2009 New Life in IT Pty Ltd. All rights reserved.
 * @license		GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
 * @link		http://www.theartofjoomla.com
 */

// no direct access
defined('_JEXEC') or die;

JHtml::addIncludePath(JPATH_COMPONENT.DS.'helpers'.DS.'html');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
JHtml::stylesheet('default.css', 'administrator/components/com_quanta/media/css/');

$fields	= $this->form->getFields('jxform');
?>

<script type="text/javascript">
function submitbutton(task)
{
	if (task == 'history.cancel' || document.formvalidator.isValid(document.adminForm)) {
		submitform(task);
	}
}
</script>

<?php echo $this->form->getHead(); ?>
	<fieldset>
		<?php if (is_object($this->item) && $this->item->id > 0) : ?>
		<legend><?php echo JText::sprintf('Quanta_Record_Number', $this->item->id); ?></legend>
		<?php endif; ?>

		<table class="adminform">
			<tbody>
				<tr>
					<td>
						<?php echo $fields['record_id']->label; ?><br />
						<?php echo $fields['record_id']->field; ?>
					</td>
					<td>
						<?php echo $fields['record_time']->label; ?><br />
						<?php echo $fields['record_time']->field; ?>
					</td>
					<td>
						<?php echo $fields['record_value']->label; ?><br />
						<?php echo $fields['record_value']->field; ?>
					</td>
				</tr>
				<tr>
					<td>
						<?php echo $fields['user_id']->label; ?><br />
						<?php echo $fields['user_id']->field; ?>
					</td>
					<td>
						<?php echo $fields['published']->label; ?><br />
						<?php echo $fields['published']->field; ?>
					</td>
					<td>
						<?php echo $fields['record_value2']->label; ?><br />
						<?php echo $fields['record_value2']->field; ?>
					</td>
				</tr>
			</tbody>
		</table>

		<?php echo $fields['id']->field; ?>
		<input type="hidden" name="task" value="" />
	</fieldset>
<?php echo $this->form->getFoot(); ?>
