Your IP : 216.73.216.209


Current Path : /home/megadansyp/www/administrator/components/com_eventgallery/views/file/tmpl/
Upload File :
Current File : /home/megadansyp/www/administrator/components/com_eventgallery/views/file/tmpl/default.php

<?php

/**
 * @package     Sven.Bluege
 * @subpackage  com_eventgallery
 *
 * @copyright   Copyright (C) 2005 - 2019 Sven Bluege All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

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




/**
 * @var EventgalleryLibraryFile $file
 */
$file = $this->file;

JFactory::getDocument()->addScriptDeclaration("
	Joomla.submitbutton = function(task)
	{
		if (task.indexOf('.cancel')>0 
		        || document.formvalidator.isValid(document.getElementById('adminForm'))) {
			
			Joomla.submitform(task, document.getElementById('adminForm'));
		}
	};
");

?>

<img style="margin-bottom: 20px" src="<?php echo $file->getImageUrl(100, 100, false);?>">

<form class="form-validate" action="<?php echo JRoute::_('index.php?option=com_eventgallery&layout=edit&id='.(int) $this->item->id); ?>" method="POST" name="adminForm" id="adminForm">

    <?php echo $this->loadSnippet('formfields'); ?>


    <?php echo JHtml::_('form.token'); ?>
    <input type="hidden" name="option" value="com_eventgallery" />
    <input type="hidden" name="folderid" value="<?php echo $this->file->getFolder()->getId(); ?>" />
    <input type="hidden" name="id" value="<?php echo $this->file->getId(); ?>" />
    <input type="hidden" name="task" value="" />
</form>