AnonSec Shell
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/lorient/components/com_djcatalog2/views/query/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/lorient/components/com_djcatalog2/views/query/tmpl/default.php
<?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
 */

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

//Joomla\CMS\HTML\HTMLHelper::_('bootstrap.tooltip');
Joomla\CMS\Factory::getDocument()->getWebAssetManager()->useScript('form.validate');

$user = JFactory::getUser();

$return_url = base64_encode(DJCatalogHelperRoute::getQueryRoute());
?>

<?php //if ($this->params->get( 'show_page_heading', 1)) { ?>
<h1 class="componentheading<?php echo $this->params->get( 'pageclass_sfx' ) ?>">
	<?php echo $this->escape($this->params->get('page_heading')); ?>
</h1>
<?php //} ?>

<div id="djcatalog" class="djc_checkout<?php echo $this->params->get( 'pageclass_sfx' ).' djc_theme_'.$this->params->get('theme','default') ?>">

<?php if (!empty($this->user_profile) && !empty($this->user_profile->id) && $this->user_valid) { ?>
<div class="djc_checkout_header">
	<h2><?php echo JText::_('COM_DJCATALOG2_USER_PROFILE'); ?></h2>
	<p>
	<?php if ($this->user_profile->company) { ?>
		<strong><?php echo $this->user_profile->company?></strong><br />
	<?php }?>
	<?php if (!empty($this->user_profile->_name)) {?>
	<strong><?php echo $this->user_profile->_name; ?></strong><br />
	<?php } ?>
	<?php 
		$addr = array();
		if (!empty($this->user_profile->address)) {
			$addr['address'] = $this->user_profile->address;
		}
		if (!empty($this->user_profile->postcode)) {
			$addr['postcode'] = $this->user_profile->postcode;
		}
		if (!empty($this->user_profile->city)) {
			$addr['city'] = $this->user_profile->city;
		}
		if (!empty($this->user_profile->country_name)) {
			$addr['country'] = $this->user_profile->country_name;
		}
		if (!empty($this->user_profile->state_name)) {
			$addr['state'] = $this->user_profile->state_name;
		}
		if (count($addr) > 0) {
			echo implode(', ', $addr).'<br />';
		}
	?>
	
	</p>
</div>
<?php } ?>

<?php if (count($this->items) > 0) { ?>
	<h2><?php echo JText::_('COM_DJCATALOG2_CART_HEADING'); ?></h2>
	<div class="djc_cart djc_cart_checkout djc_clearfix">
		<?php echo $this->loadTemplate('table'); ?>
	</div>
<?php }  ?>

<div class="djc_checkout_form">
<form action="<?php echo JRoute::_(DJCatalogHelperRoute::getCartRoute());?>" method="post" class="form-validate form form-horizontal" id="djc_query_form">
	<fieldset class="djc_checkout_notes">
	
		<?php if (empty($this->user_profile) || empty($this->user_profile->id) || $this->user_valid == false) { ?>
			<h2><?php echo JText::_('COM_DJCATALOG2_USER_PROFILE'); ?></h2>
			<?php if ($user->guest) { ?>
				<p class="djc_login_link">
				<?php 
				$login_url = JRoute::_('index.php?option=com_users&view=login&return='.$return_url);
				echo JText::sprintf('COM_DJCATALOG2_CLICK_TO_LOGIN', $login_url);
				?>
				</p>
			<?php } ?>
			<?php 
			$fields = $this->form->getFieldset('basicprofile'); 
			foreach ($fields as $field) { ?>
				<?php echo $field->renderField(); ?>
			<?php } ?>
		<?php } ?>
		
		<?php //Dynamically load any additional fields from plugins. ?>
	    <?php foreach ($this->form->getFieldsets() as $fieldset) { ?>
	          <?php if ($fieldset->name != 'basicprofile') { ?>
	               <?php $fields = $this->form->getFieldset($fieldset->name);?>
	               
	               <?php if ($fieldset->name == 'message') {$fieldset->label = 'COM_DJCATALOG2_QUERY_NOTES';}?>
	               
	               <?php if ($fieldset->label && count($fields)) {?>
	          		<h2><?php echo JText::_($fieldset->label); ?></h2>
	          		<?php } ?>
	               <?php foreach($fields as $field) { ?>
	                    <?php if ($field->hidden) { ?>
	                         <?php echo $field->input;?>
	                    <?php } /*else if ($field->fieldname == 'customer_note') { ?>
							<div class="control-group">
								<div class="controls">
									<div style="display: none;"><?php echo $field->label; ?></div>
									<?php echo $field->input; ?>
								</div>
							</div>
	                    <?php }*/ else { ?>
	                    	<?php echo $field->renderField(); ?>
	                    	<?php /*?><div class="control-group">
	                        	<div class="control-label">
	                            	<?php echo $field->label; ?>
	                         	</div>
	                         	<div class="controls">
	                         		<?php echo $field->input;?>
	                         	</div>
	                         </div><?php */ ?>
	                    <?php }?>
	               <?php } ?>
	          <?php } ?>
	     <?php } ?>
		
		<div class="control-group">
			<div class="controls">
				<a class="btn btn-primary djc_back_to_cart_btn " href="<?php echo JRoute::_(DJCatalogHelperRoute::getCartRoute());?>"><span><?php echo JText::_('COM_DJCATALOG2_BACK_TO_CART'); ?></span></a>
				<input type="submit" value="<?php echo JText::_('COM_DJCATALOG2_CONFIRM_QUERY');?>" class="btn btn-success button validate" onclick="return DJCatalog2OneStepQuery(this);"/>
			</div>
		</div>
		
	</fieldset>
	
	
	<input type="hidden" name="option" value="com_djcatalog2" />
	<input type="hidden" name="task" value="cart.query_confirm" />
	<?php echo Joomla\CMS\HTML\HTMLHelper::_( 'form.token' ); ?>
</form>
</div>
<?php 
	if ($this->params->get('show_footer')) echo DJCATFOOTER;
?>
</div>

<script>
    function DJCatalog2OneStepQuery(btn) {
    	if (jQuery(btn).attr('quasi-disabled') == 'disabled') {
    		return false;
    	}
        if (document.formvalidator.isValid(document.getElementById('djc_query_form'))) {
        	jQuery(btn).attr('quasi-disabled', 'disabled');
            return true;
        } else {
            alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
            jQuery('html, body').animate({
                scrollTop: jQuery('#system-message-container').offset().top
            }, 200);
        }
    }
</script>

Anon7 - 2022
AnonSec Team