Spade

Mini Shell

Directory:~$ /home/lmsyaran/www/administrator/components/com_phocacart/views/phocacartitem/tmpl/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/www/administrator/components/com_phocacart/views/phocacartitem/tmpl/modal.php

<?php
/**
 * @package   Phoca Cart
 * @author    Jan Pavelka - https://www.phoca.cz
 * @copyright Copyright (C) Jan Pavelka https://www.phoca.cz
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 and later
 * @cms       Joomla
 * @copyright Copyright (C) Open Source Matters. All rights reserved.
 * @license   http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 */

defined('_JEXEC') or die;

Joomla\CMS\HTML\HTMLHelper::_('bootstrap.tooltip',
'.hasTooltip', array('placement' =>
'bottom'));

// @deprecated 4.0 the function parameter, the inline js and the buttons
are not needed since 3.7.0.
$function  =
JFactory::getApplication()->input->getCmd('function',
'jEditPhocacartitem_' . (int) $this->item->id);

// Function to update input title when changed
// phocacartitem-form ==> adminForm
JFactory::getDocument()->addScriptDeclaration('
	function jEditPhocacartitemModal() {
		if (window.parent &&
document.formvalidator.isValid(document.getElementById("adminForm")))
{
			return window.parent.' . $this->escape($function) .
'(document.getElementById("jform_title").value);
		}
	}
');
?>
<button id="applyBtn" type="button"
class="hidden"
onclick="Joomla.submitbutton('phocacartitem.apply');
jEditPhocacartitemModal();"></button>
<button id="saveBtn" type="button"
class="hidden"
onclick="Joomla.submitbutton('phocacartitem.save');
jEditPhocacartitemModal();"></button>
<button id="closeBtn" type="button"
class="hidden"
onclick="Joomla.submitbutton('phocacartitem.cancel');"></button>

<div class="container-popup">
	<?php $this->setLayout('edit'); ?>
	<?php echo $this->loadTemplate(); ?>
</div>