Your IP : 216.73.216.215


Current Path : /home/sunflowe/www2/j15/components/com_jforms/views/form/tmpl/
Upload File :
Current File : /home/sunflowe/www2/j15/components/com_jforms/views/form/tmpl/embedded.php

<?php
/**
* Embedded layout for form view
*
* @version		$Id: embedded.php 28 2008-12-09 07:14:08Z dr_drsh $
* @package		Joomla
* @subpackage	JForms
* @copyright	Copyright (C) 2008 Mostafa Muhammad. All rights reserved.
* @license		GNU/GPL
*/
defined('_JEXEC') or die('Restricted access');


$id = $this->row->id;
echo '<div class="jform">';
echo '<table class="jform"><tr><td>';
echo '<form name="jform" action="index.php" method="post" enctype="multipart/form-data" onsubmit="return validateForm_'.$this->row->id.'(this);">';

foreach ($this->row->fields as $f ){
	echo $this->pManager->invokeMethod('render', JFORM_PLUGIN_ELEMENT, array($f->type), array( $f ) );
}


$uri = JURI::getInstance();

?>

<input type="hidden" name="option" value="com_jforms" />
<input type="hidden" name="task" value="save" />
<input type="hidden" name="from_jforms_plugin" value="1" />
<input type="hidden" name="uid" value="<?php echo $this->uid ?>" />
<input type="hidden" name="id" value="<?php echo $this->row->id ?>" />
<input type="hidden" name="url" value="<?php echo $uri->toString() ?>" />
<input type="hidden" name="Itemid" value="<?php echo $this->Itemid; ?>" />

<?php echo JHTML::_( 'form.token' );
echo '</form>';
echo '</td></tr></table>';
echo '</div>';