<?php
/**
* Dark layout for form view
*
* @version		$Id: default.php 346 2009-09-25 01:36:05Z dr_drsh $
* @package		Joomla
* @subpackage	JForms
* @copyright	Copyright (C) 2008 Mostafa Muhammad. All rights reserved.
* @license		GNU/GPL
*/
defined('_JEXEC') or die('Restricted access');

JHTML::_('JForms.Frontend.javascript', $this->form);
$formUrl = JRoute::_('index.php?option=com_jforms&id='.$this->form->id.'&Itemid='.$this->Itemid.'&task=submit');
?>

<div class="jform">		
	<table class="jform">
	<tr>
	<td>
		<h2><?php echo $this->form->title ?></h2>
		<form name="jform" action="<?php echo $formUrl ?>" method="post" enctype="multipart/form-data" onsubmit="return validateForm_<?php echo $this->form->id ?>(this);">
			<?php JHTML::_('JForms.Frontend.elements', $this->form); ?>
			<input type="hidden" name="option" value="com_jforms" />
			<input type="hidden" name="task" value="submit" />
			<input type="hidden" name="uid" value="<?php echo $this->user->id ?>" />
			<input type="hidden" name="id" value="<?php echo $this->form->id ?>" />
			<input type="hidden" name="Itemid" value="<?php echo $this->Itemid ?>" />
			<?php echo JHTML::_( 'form.token' ); ?>
		</form>
	</td>
	</tr>
</table>
</div>