b0y-101 Mini Shell


Current Path : E:/www/instructor/test02/administrator/components/com_eventgallery/views/file/tmpl/
File Upload :
Current File : E:/www/instructor/test02/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'));
		}
	};
");

?>

<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'); ?>
    <img src="<?php echo $file->getImageUrl(100, 100, false);?>">

    <?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>

Copyright © 2019 by b0y-101