| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/brest/components/com_djcatalog2/views/address/tmpl/ |
Upload File : |
<?php
/**
* @package DJ-Catalog2
* @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://dj-extensions.com
* @author email contact@dj-extensions.com
*/
// no direct access
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Component\ComponentHelper;
//Joomla\CMS\HTML\HTMLHelper::_('bootstrap.tooltip');
Joomla\CMS\Factory::getDocument()->getWebAssetManager()->useScript('form.validate');
//Joomla\CMS\HTML\HTMLHelper::_('formbehavior.chosen', 'select');
$app = Factory::getApplication();
$tmpl = $app->input->getString('tmpl');
$params = ComponentHelper::getParams('com_djcatalog2');
?>
<h1 class="componentheading<?php echo $this->params->get( 'pageclass_sfx' ) ?>">
<?php echo $this->escape($this->params->get('page_heading')); ?>
</h1>
<script type="text/javascript">
Joomla.submitbutton = function(task)
{
if (task == 'address.cancel' || document.formvalidator.isValid(document.getElementById('address-form'))) {
Joomla.submitform(task, document.getElementById('address-form'));
}
else {
alert('<?php echo $this->escape(Text::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
}
}
</script>
<div id="djcatalog" class="djc_addressform<?php echo $this->params->get( 'pageclass_sfx' ).' djc_theme_'.$this->params->get('theme','default') ?>">
<div class="formelm-buttons djc_form_toolbar btn-toolbar">
<button type="button" onclick="Joomla.submitbutton('address.apply')" class="button btn btn-primary">
<?php echo Text::_('COM_DJCATALOG2_APPLY') ?>
</button>
<?php if ($tmpl == '') {?>
<button type="button" onclick="Joomla.submitbutton('address.save')" class="button btn btn-primary">
<?php echo Text::_('COM_DJCATALOG2_SAVE_AND_CLOSE') ?>
</button>
<button type="button" onclick="Joomla.submitbutton('address.cancel')" class="button btn">
<?php echo Factory::getApplication()->input->get('id') > 0 ? Text::_('COM_DJCATALOG2_CANCEL') : Text::_('COM_DJCATALOG2_CLOSE'); ?>
</button>
<?php } ?>
</div>
<form action="<?php echo Route::_('index.php?option=com_djcatalog2&view=address&id='.(int) $this->item->id . ($tmpl != '' ? '&tmpl=component' : '') ); ?>" method="post" name="adminForm" id="address-form" class="form-validate">
<fieldset class="address">
<?php echo $this->form->renderField('id') ?>
<?php echo $this->form->renderField('name') ?>
<hr />
<?php echo $this->form->renderField('firstname') ?>
<?php echo $this->form->renderField('lastname') ?>
<?php echo $this->form->renderField('company') ?>
<?php echo $this->form->renderField('address') ?>
<?php echo $this->form->renderField('city') ?>
<?php echo $this->form->renderField('country_id') ?>
<?php echo $this->form->renderField('state_id') ?>
<?php echo $this->form->renderField('postcode') ?>
<?php echo $this->form->renderField('phone') ?>
</fieldset>
<input type="hidden" name="id" value="<?php echo $this->item->id ?>" />
<input type="hidden" name="task" value="" />
<?php echo Joomla\CMS\HTML\HTMLHelper::_('form.token'); ?>
</form>
</div>