`;
//document.open();//document.write(p_page);document.close();
let msg=hr;//`
`;
return({hr:hr,i:i,msg:msg});
//document.open();document.write(msg);document.close();
};
//=====
function getInformationIHM(infos,copyright){// for popmodal
display=(infos?`block`:`none`);
copyright=`@copyright`;
//document.open();//document.write(p_page);document.close();
let msg=`
`;
///let msg=`
`;
//msg+=`
`;
msg+=`
les informations now
`;
msg+=`
les informations développement
`;
msg+=`
les informations locales
`;
msg+=`
les informations nationales
`;
msg+=`
les informations internationales
`;
msg+=`
les informations outils ?
`;
let x=getInformationIHMCopyright(infos,copyright);
msg+=x.msg;
//msg+=`
${copyright}
`;
msg+=`
`;
document.open();document.write(msg);document.close();
};
//========================
//=======
function popjsAjaxJsonGetDatasOfScreenTo(keys,values,control)//arr0,ARR0){// arr0,ARR0,arr1,ARR1,arr2,ARR2
//function getDatasOfScreenTo(fileAjax)//!\test:warning: exemple -> $ _SESSION[$sessionSite]['scrWidth']
{//!\success:0K:
if(0)alert(123);
if(!control)control=0;
if(!keys.length||!keys[0]||!values.length||!values[0])
{alert(`function popjsAjaxJsonGetDatasOfScreenTo impossible`);return;};
let fileAjax=values[0];
//let keys=new Array('fileAjax','sessionSite','scrHeight','scrWidth');
//let values=new Array(fileAjax,'systemboost.immobilier',window.screen.width,window.screen.height);
//v ar sessio nSite = 'systemboost.immobilier';//'< ? php echo $ sessionSite; ? >';//systemboost.immobilier';
// Récupérer les dimensions de l'écran
//v ar scrWidth = window.screen.width;
//v ar height = `${window.screen.height}`;
//v ar scrHeight = window.screen.height;
//v ar scrHWwithAjax = '/iC/_scripts/votre_script.php';
// Envoyer ces données à PHP via une requête GET ou POST
// Par exemple, en utilisant fetch :
//let params='sessionSite=' + encodeURIComponent(sessionSite)+'&'+'scrHeight=' + encodeURIComponent(scrHeight)+'&'+'scrWidth=' + encodeURIComponent(scrWidth);
let params;
for(let i=0;i
response.text())
.then(data => {
// console.log('Réponse du serveur:', data);
if(control){
xmsg='function getDatasOfScreenTofetch votre_script.php Reponse du serveur:'+ data;
$jigpopLine=344;if(0)popjsdevAlert(xmsg,`Test`);
// alert('function getDatasOfScreenTofetch votre_script.php Reponse du serveur:'+ data);
}
// data= {"sessionSite":"systemboost.immobilier","scrHeight":"1024","scrWidth":"1280"}
});
}//!\end: function getDatasOfScreenTo()
//=======
//========================
function popjsAjaxJson(arr0,ARR0,arr1,ARR1,arr2,ARR2){// arr0,ARR0,arr1,ARR1,arr2,ARR2
//====
let paramsThis,paramsForm,paramsString,paramsAjaxphp;
if(!arr0){
xmsg=`Error= arr0 to ajax`;$jigpopLine=293;if(1)popjsdevAlert(xmsg,`Error`);
}
paramsThis=ARR0[0];paramsForm=ARR0[1];paramsString=ARR0[2];paramsAjaxphp=ARR0[3];
//====
xmsg=`\n paramsAjaxphp= `+paramsAjaxphp;
$jigpopLine=298;if(0)popjsdevAlert(xmsg);
//====
let formData=xhr=``;
/* //!\warning: inutile et problème formdata avec ActiveXObject
if(window.XMLHttpRequest) xhr = new XMLHttpRequest();
else xhr = new ActiveXObject(Microsoft.XMLHTTP);
*/
if(paramsForm) xhr=new XMLHttpRequest(paramsForm);
else{
formData=new FormData();
for(let i=0;i