Pêche – Chasse, Beach Bazar, La pêche soleil., Ferme Aquacole Faure
@import url(« template/styles.php »);
@import url(« template/modules/PANIER/fenetre-ajout/fenetre-ajout.css »);
function add_to_cart(pid)
{
new Ajax.Updater(
« mb_panier »,
« ajax.php?page=fiche_article »,
{
method: ‘post’,
evalScripts: true,
parameters: {action:’ajout_panier’,pid:pid},
onComplete: function(result)
{
Modalbox.show($(‘mb_panier’), {slideDownDuration:0, slideUpDuration:0, resizeDuration:0, autoFocusing:false});
window.scrollTo(0,0);
// Mise à jour de l’affichage du module panier
new Ajax.Updater(
« nb_articles_panier »,
« ajax.php?page=fiche_article »,
{
method: ‘get’,
parameters: {action:’maj_nb_articles_panier’}
}
);
// Mise à jour de l’affichage du module total panier
new Ajax.Updater(
« total_panier »,
« ajax.php?page=fiche_article »,
{
method: ‘get’,
parameters: {action:’maj_total_panier’}
}
);
// Mise à jour de l’affichage du module panier complet
new Ajax.Updater(
« panier-complet »,
« ajax.php?page=fiche_article »,
{
method: ‘get’,
parameters: {action:’maj_panier-complet’}
}
);
}
}
);
}
// favicon
var css=Builder.node(« link »,{href: »template/images/favicon.ico »,rel:’SHORTCUT ICON’});$$(‘head’)[0].appendChild(css);
function link_module_css(path)
{var css=Builder.node(« link »,{type:’text/css’,href:path,rel:’stylesheet’});$$(‘head’)[0].appendChild(css);}
function addLoadListener(func){if(window.addEventListener){window.addEventListener(« load »,func,false);}else if(document.addEventListener){document.addEventListener(« load »,func,false);}else if(window.attachEvent){window.attachEvent(« onload »,func);}}
function ChangeUrl(formulaire)
{if(formulaire.ListeUrl.selectedIndex!=0)
{location.href=formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;}
else
{alert(‘Veuillez choisir une rubrique.’);}}
function fck_formulaire_dynamique_check()// utilisé pour formulaires fck
{var formu=document.getElementById(‘fck_formulaire_dynamique’);var error=false;for(i=0;i<formu.length;i++)
{if(formu[i].getAttribute('required')=='required')
{try
{formu[i].onfocus=function(){this.style.backgroundColor="#fff";};}catch(e)
{formu[i].setAttribute('onfocus','style.backgroundColor="#fff"');}
if(formu[i].type=='text'||formu[i].type=='textarea')
{if(formu[i].value.length<=0)
{formu[i].style.backgroundColor='#FFCFCF';error=true;}}else if(formu[i].type=='checkbox'||formu[i].type=='radio')
{if(!formu[i].checked)
{formu[i].style.backgroundColor='#FFCFCF';error=true;}}}}
if(error)
{alert('Veuillez renseigner tous les champs obligatoires.');return false;}else
{return true;}}
function formulaire_dynamique_check_captcha(formu)// utilisé par les enquetes publiques avec captcha = 1
{
var error=false;
// on vérifie d'abord le captcha
new Ajax.Request(
"ajax.php",
{
method: 'get',
parameters: {page:'verifCaptcha',captcha:formu.getInputs('text', 'captcha')[0].value},
onSuccess: function(result){
if(result.responseText=='nok')
{
error = true;
var nb = Math.round(Math.random(0)*1000)+1;
$$('img.cryptogram').each(function(elt)
{
elt.src = '/cryptographp.php?cfg=0&session=56ef052e7398a749809016a1926893cf&'+nb;
});
try
{
formu.getInputs('text', 'captcha')[0].onfocus=function(){this.style.backgroundColor="#fff";};
}catch(e)
{
formu.getInputs('text', 'captcha')[0].setAttribute('onfocus','style.backgroundColor="#fff"');
}
formu.getInputs('text', 'captcha')[0].style.backgroundColor='#FFCFCF';
}
// Champs obligatoires
for(i=0;i<formu.length;i++)
{
if(formu[i].getAttribute('required')=='required')
{
try
{
formu[i].onfocus=function(){this.style.backgroundColor="#fff";};
}catch(e)
{
formu[i].setAttribute('onfocus','style.backgroundColor="#fff"');
}
if(formu[i].type=='text'||formu[i].type=='textarea'||formu[i].type=='file')
{
if(formu[i].value.length<=0)
{
formu[i].style.backgroundColor='#FFCFCF';error=true;
}
}else if(formu[i].type=='checkbox')
{
var onechecked = false;
$$('input.'+formu[i].className).each(
function(elt)
{
if(elt.checked)
{
onechecked = true;
}
});
if(!onechecked)
{
error=true;
}
}
}
}
if(error)
{alert('Veuillez renseigner tous les champs obligatoires.');return false;}else
{formu.submit();}
}
}
);
return false;
}
function formulaire_dynamique_check(formu)// utilisé par les enquetes publiques avec captcha = 0
{
var error=false;
// Champs obligatoires
for(i=0;i<formu.length;i++)
{
if(formu[i].getAttribute('required')=='required')
{
try
{
formu[i].onfocus=function(){this.style.backgroundColor="#fff";};
}catch(e)
{
formu[i].setAttribute('onfocus','style.backgroundColor="#fff"');
}
if(formu[i].type=='text'||formu[i].type=='textarea'||formu[i].type=='file')
{
if(formu[i].value.length<=0)
{
formu[i].style.backgroundColor='#FFCFCF';error=true;
}
}else if(formu[i].type=='checkbox')
{
var onechecked = false;
$$('input.'+formu[i].className).each(
function(elt)
{
if(elt.checked)
{
onechecked = true;
}
});
if(!onechecked)
{
error=true;
}
}
}
}
if(error)
{alert('Veuillez renseigner tous les champs obligatoires.');return false;}else
{formu.submit();}
}
function ejs_nodroit()
{
alert(‘Clic droit désactivé’);
return(false);
}
document.oncontextmenu = ejs_nodroit;
|
|||||||||
|
sfHover = function() { |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Office de Tourisme – Place du Général DOSSE – 05200 EMBRUN | Tél. : 04 92 43 72 72 | | Conditions | Plan du site | ![]() | ![]() |© Copyright Photo Oliver 0965190598
|
gi_Cappture_Domain_Id = ‘ezBDOUE4NzU3LUI1QTctNDZCRi04OEFFLTcwNzAyOEUwMjlERH1fe0M5RTdFOTZELTc3MDItNDJBQy1CMkI3LTEzOTcyRThCRjdDOX0=’
var gaJsHost = ((« https: » == document.location.protocol) ? « https://ssl. » : « http://www. »);
document.write(unescape(« %3Cscript src=' » + gaJsHost + « google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E »));
try {
var pageTracker = _gat._getTracker(« UA-5635448-13 »);
pageTracker._trackPageview();
} catch(err) {}
var gaJsHost = ((« https: » == document.location.protocol) ? « https://ssl. » : « http://www. »);
document.write(unescape(« %3Cscript src=' » + gaJsHost + « google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E »));
try {
var pageTracker = _gat._getTracker(« UA-110059-2 »);
pageTracker._trackPageview();
} catch(err) {}
document.observe(‘dom:loaded’,function(){new Lightbox();});
















