| 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/dansnotreville-fr/nice/components/com_mymaplocations/views/locations/tmpl/ |
Upload File : |
<?php
/**
* @version 4.5.2
* @package com_mymaplocations
* @copyright JoomUnited (C) 2011. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* ****@author joomunited - contact@joomunited.com
*/
defined('_JEXEC') or die('Restricted access');
echo $this->loadTemplate('head');
?>
<?php if ($this->params->get('show_page_heading', 0)) : ?>
<div class="page-header">
<h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>
</div>
<?php endif; ?>
<?php if(MyMaplocationsHelper::getAllowAdd()) {?>
<a
href="<?php echo JRoute::_('index.php?option=com_mymaplocations&view=form&layout=edit'); ?>" class="btn btn-inverse resultbtn"><i class="mml-edit" class="edit"></i><?php echo JTEXT::_('JACTION_CREATE')." ".JTEXT::_('COM_MYMAPLOCATIONS_TITLE_STORES'); ?></a>
<?php } ?>
<?php
if($this->layout=="simple")
{
echo $this->loadTemplate('form');
}
else if($this->layout=="plain")
{
}
else
{
$this->matwidth="100%";
$this->width="100%";
}
?>
<?php
if (!(empty($this->items))) {
?>
<span id='mmlloading' class='mmlloader' style=display:none'></span>
<div id="maps">
<?php
if($this->layout=="simple")
{
echo $this->loadTemplate('resultcount');
}
echo $this->loadTemplate('map');
if(($this->layout=="bootstrap"))
{
echo $this->loadTemplate('resultcount');
}
?>
<?php
echo $this->loadTemplate('sidebar');
?>
</div>
</div>
<?php } else {
if(($this->layout=="bottom")||($this->layout=="bootstrap"))
{
echo $this->loadTemplate('bootstrapform');
}
echo $this->loadTemplate('resultcount');
if($this->escape($this->state->get('filter.zip')))
{
?> <div class="noresult"><?php echo JText::_('COM_MYMAPLOCATIONS_NORESULT');?></div><?php
}
}
$country=$this->params->get('country',null);
$constant=MyMapLocationsHelper::getConstantValue();
?>
<div class="pagination mml-pagination" id="pagination_<?php echo $constant;?>">
<?php if($this->ajax) {
?>
<?php } else {?>
<?php
if (!(empty($this->items))) {
echo $this->pagination->getPagesLinks();
}
?>
<?php } ?>
</div>
<script type="text/javascript">
<?php if($this->ajax) {?>
jQuery(document).ready(function(){
form = jQuery("#map-location");
url=form.attr('action');
jQuery('#maps').css('opacity',0.6);
jQuery('#mmlloading').css('display','block');
var searchinput=document.getElementById("searchinput").value;
if((searchinput=="")||(searchinput==null))
{
jQuery('#maps .map_canvas,#maps .result-count,#maps .resultbar').css('display','none');
jQuery('#mmlloading').css('display','none');
jQuery('#maps').css('opacity',1);
}
jQuery.post(url, form.serialize(), function(data) {
var count=countMarker(data);
if(count==0)
{
jQuery('#mmlloading').css('display','none');
jQuery('#maps .map_canvas,#maps .result-count,#maps .resultbar').css('display','none');
jQuery('#noresult').css('display','block');
jQuery('#noresult').html("<?php echo JText::_('COM_MYMAPLOCATIONS_NORESULT');?>");
jQuery('#maps').css('opacity',1);
jQuery('#pagination_<?php echo $constant;?>').html(data.pagination);
}
else
{
jQuery('#noresult').css('display','none');
jQuery('#maps .map_canvas,#maps .result-count,#maps .resultbar').css('display','block');
initialize_<?php echo $constant;?>(data);
sidebar_<?php echo $constant;?>(data);
jQuery('#mmlloading').css('display','none');
jQuery('#maps').css('opacity',1);
jQuery('#pagination_<?php echo $constant;?>').html(data.pagination);
}
},'json');
jQuery('#map-location').submit( function(event){
url=form.attr('action');
jQuery('#maps').css('opacity',0.6);
jQuery('#mmlloading').css('display','block');
jQuery.post(url, form.serialize(), function(data) {
var count=countMarker(data);
if(count==0)
{
jQuery('#noresult').css('display','block');
jQuery('#mmlloading').css('display','none');
jQuery('#maps .map_canvas,#maps .result-count,#maps .resultbar').css('display','none');
jQuery('#noresult').html("<?php echo JText::_('COM_MYMAPLOCATIONS_NORESULT');?>");
jQuery('#maps').css('opacity',1);
jQuery('#pagination_<?php echo $constant;?>').html(data.pagination);
}
else
{
jQuery('#noresult').css('display','none');
jQuery('#maps .map_canvas,#maps .result-count,#maps .resultbar').css('display','block');
initialize_<?php echo $constant;?>(data);
sidebar_<?php echo $constant;?>(data);
jQuery('#mmlloading').css('display','none');
jQuery('#maps').css('opacity',1);
jQuery('#pagination_<?php echo $constant;?>').html(data.pagination);
}
},'json');
return false;
});
redirectForm = function (url)
{
jQuery('#map-location').attr('action', url).submit();
}
});
<?php }
if (($this->geocode == 1)&& (!(preg_match('/^(\-?\d+(\.\d+)?),\s*(\-?\d+(\.\d+)?)$/',$this->state->get('filter.zip'),$match)))) { ?>
jQuery(document).ready(function(){
useGeocode();
});
<?php } ?>
function useGeocode()
{
if (navigator.geolocation)
{
navigator.geolocation.getCurrentPosition(showPosition, showError);
}
else
{
var x = document.getElementById("show-alert");
x.style.display="block";
x.innerHTML="Geolocation is not supported by this browser.";
}
}
function showPosition(position)
{
document.getElementById("mj_rs_ref_lng").value=position.coords.longitude;
document.getElementById("mj_rs_ref_lat").value=position.coords.latitude;
document.getElementById("geo").value=1;
document.getElementById("searchinput").value='<?php echo JTEXT::_("COM_MYMAPLOCATIONS_YOU");?>';
jQuery('#map-location').submit();
}
function showError(error) {
var x = document.getElementById("show-alert");
x.style.display="block";
switch(error.code) {
case error.PERMISSION_DENIED:
if ((window.chrome)&&((window.location.protocol != "https:"))) {
x.innerHTML ='<p>Your website needs a SSL certificate (https) to use geolocation feature on Chrome 50+. Google have made the choice to deprecate this feature on non-secure origins. <a href="https://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only" target="_blank" class="btn btn-danger">More information here.</a>';
}
else
{
x.innerHTML = 'User denied the request for Geolocation';
}
break;
case error.POSITION_UNAVAILABLE:
x.innerHTML = "Location information is unavailable."
break;
case error.TIMEOUT:
x.innerHTML = "The request to get user location timed out."
break;
case error.UNKNOWN_ERROR:
x.innerHTML = "An unknown error occurred."
break;
}
}
<?php if(method_exists('MyMapLocationsHelper','getAutocomplete'))
{
echo MyMapLocationsHelper::getAutocomplete(null,$this->mode,$country,'autosuggest');
}else
{?>
var spSearchDefStr = "search..."
function initRSA() {var input = document.getElementById("<?php if($this->mode==2) {?>searchpostal<?php }else {?>searchinput<?php }?>");var options = {types:['geocode']};var ac = new google.maps.places.Autocomplete(input, options);<?php if(!empty($country)) { ?> ac.setComponentRestrictions({'country': <?php echo MyMaplocationsHelper::getCountryformat($country);?>});<?php } ?>google.maps.event.addListener(ac, "place_changed", function() {var pl = ac.getPlace();jQuery("#mj_rs_ref_lat").val(pl.geometry.location.lat()) ;jQuery("#mj_rs_ref_lng").val(pl.geometry.location.lng()) ;});}window.addEventListener( "load", initRSA);
<?php } ?>
</script>