// JavaScript Document C:\w3\systemboost.immobilier\pop.js.php C:\iC\pop\+\V0\cfgSite\pop.js.php //try{ var popJsPhp="/iC/pop/+/V0/cfgSite/pop.js.php",isTest=0; //var xline='/4'; alert('toto'); //============================== try{var xline+='/6'; //if(!jsscriptCmd) //var jsscriptCmd=''; //if(!jigpopLine) //if(!jsscriptTest) //var jsscriptTest=0; //var __jojpopInitAllCondition=1;//§\warning: à quoi ça sert ?? /* //if(!__popDevIT) var __popDevIT,__popbaseUrl,__poplocalhost,__popdirname,__popsitename,__popsitename2points ,__popfile,__popparams,__popBarTop,__popLang,__popjs,__jojpopInitAllCondition; //if(!jsscriptFile) //$jigpopLine=4;//jsscriptFile=popJsPhp;//'./pop.js.php';,jsscriptFile //===== __jojpopInitAllCondition=1; __popBarTop=document.title;__popLang=`fr-FR`; if(0&&isLocal)alert('__popLang= '+__popLang); //===== xline+='/52';//var __poplocalhost; __popbaseUrl=window.parent.location.origin; // baseUrl= http://127.0.0.1 par exemple "http://localhost:3000"const imageUrl=`${baseUrl}/images/logo.png`; //x=__popbaseUrl.split(`\/\/127.0.0.1`);//x=x[1]; let x=(__popbaseUrl+1).split(`\/\/127.0.0.1`);//x=x[1]; __poplocalhost=parseInt(x[1]?1:0);// en javascript //===== //var msgAll,msgAllDiv,jsscriptCmd,jsscriptTest,$jigpopNoDebug_CmdTextareaLSall,$jigpopLine; var msgAll,msgAllDiv,$jigpopNoDebug_CmdTextareaLSall; */ //__popBarTop=document.title;//=`titleIHM`; /* popreplaceall=function(text,src,dest){ $jigpopLine=14; //try{$jigpopLine=2; //var tagfct={kjsfile:script_debug,kjsfct:'myDebug.replaceall=function(text,src,dest)',kjsstop:debug_stop}; if(!text||text==''||typeof text!=='string')return(text); let re=new RegExp();//re=/,/g;text.replace(re,dest); let nbsp=`\ \;`; switch(src){ case '\n':re=/\n/g;break; case '/!':re=/\/!/g;break; case 'wyz':re=/wyz/g;break; case `${nbsp}`:re=/ /g;break; default: //if(text=='myApp.konclick=0.paper.0.0.div'||text=='get_boot_cfg_jsph0')return(text); for(let i=0;i<100;i++){ text=text.replace(src,dest); if(text.search(src)<0)break; } return(text); } return(text.replace(re,dest)); //}catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} }//c myDebug.replaceall=function(text,src,dest) */ //}catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; //===================================== function popjsExistsFunction(string,display){ if(1&&isLocal)alert('string,display= popjsExistsFunction(string,display)'); try{xline+='/85'; if(!__poplocalhost)return; if(!string||!display)return; let msg=``; //==== if(window.parent[string] && typeof window.parent[string] === 'function') { //window.toto[string];//("2025"); msg={owner:window,page:`parent`,functname:string,target:window[string]}; } if (window.parent && window.parent !== window && typeof window.parent[string] === 'function') { //window.toto[string];//("2025"); msg={owner:window.parent,page:`iframe`,functname:string,target:window.parent[string]}; } //==== if(0&&__poplocalhost&&msg&&display&&isLocal){ //if($x&&$x.owner) alert( `------- function ${string}() : -------\n` +`\n msg.functname= --> `+string +`\n msg.owner --> `+msg.owner +`\n msg.target= --> code of function ${string}()` //`+msg.target //+`\n msg.target= --> `+typeof msg.target +`\n\n content of Object.entries(msg) --> \n`+Object.entries(msg) ); } //==== /* let parent=window.parent; if (parent && parent !== window && typeof parent[string] === 'function') { //if (window.parent && window.parent !== window && typeof window.parent[string] === 'function') { //window.toto[string];//("2025"); return({parent:parent,function:parent[string]}); } return({parent:null}); */ }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; };//end:function popjsExistsFunction(string,display){ //===================================== /* function xxxxxpopjsSiteAlert(msg){// __popDevIT=null if(!msg)return; if(!__poplocalhost) alert(msg); else alert(`popjsSiteAlert(msg): \n`+msg); } //===================================== function xxxxxpopjsdevAlert(msg,head,script){// __popDevIT=null try{xline+='/130'; if(!__poplocalhost||!msg)return; head=(!head?`devAlert`:head); script=(!script?`js`:script); if(!head)if(!__popDevIT||!jsscriptTest)return; let cmd=(!jsscriptCmd?``:`/cmd:${jsscriptCmd}`); //==== let br,brT=`\n`,brH=``; if(head==`alert`)br=brT;//`\n`; else if(head=='div'){br=brH;head='div.debug.INIT';};//br=``; //==== if(!br)br=brT; msg =`------- ${head} in : -------${br} Script ${popJsPhp} \/ ${$jigpopLine} \/ ${cmd} \/ ${script} : ${br} ${msg}`; if(head=='div'){ // if(!__jojpopInitAllCondition.__jokvpopSetDevAlert)return; if(!__jojpopInitAllCondition)return; // head='div.debug.INIT'; msgAll=msg;//`------- ${head} in : -------\n Script ${popJsPhp}/${$jigpopLine}${cmd} : \n ${msg}`; } else if(window.parent.popjsSiteAlert)popjsSiteAlert(msg);//al ert(msg);//`------- ${head} in : -------\n Script ${popJsPhp}/${$jigpopLine}${cmd} : \n ${msg}`); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; } */ //===================================== /* function xxxxxpopjsAlertError(e,index,line,cmd) { try{xline+='/155'; //function alertError(e,line,fct) { //js$Obj$KV$FS$FilesOfSite=FilesOfFunctions if(!__popjs)__popjs={file:null,previous:null,line:line}; cmd=(!cmd?``:cmd); __popjs.error=`0790 ${e}`; __popjs.file=popJsPhp;//`fct_file`;//(js$Obj$KV$FS$FilesOfSite?js$Obj$KV$FS$FilesOfSite.f1:`not js$Obj$KV$FS$FilesOfSite.f1`); __popjs.cmd=cmd; __popjs.previous=`fct_previous`;//(js$Obj$KV$FS$FilesOfSite?js$Obj$KV$FS$FilesOfSite.previous:`not js$Obj$KV$FS$FilesOfSite.previous`); //js$Obj$KV$FS$FilesOfSite.index=index; //index=0; //hereError="------- Error in : -------\n error= "+e;hereLine="line: "+__popjs.line+"/"+__popjs.file; //properties=" islocalhost="+"jsheadCodeHTML.islocalhost "; // al ert(hereError+"\n"+hereLine+"\n"+fct.name+"\n"+js.fct+"\n"+js$Obj$KV$FS$FilesOfSite.index+"\n"+fct_file+"\n"+fct_previous); // al ert(hereError+"\n"+hereLine+"/"+__popjs.file+"\n"+index+"\n"+__popjs.file+"\n"+__popjs.previous); jsscriptTest=index;$jigpopLine=line; if($js_catch)$js_catch='catch:'; let msg=`${$js_catch} ${__popjs.error}\n`;$js_catch=null; //$x=popjsExistsFunction(`popjsdevAlert`); //if($x&&$x.parent)alert(`popjsdevAlert existe= `+$x); popjsdevAlert(msg,`Error`); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; }; */ //===================================== function popjsGetURLparts(popactionpage){ if(1&&isLocal)alert('popjsGetURLparts(popactionpage)'); try{xline+='/182'; /* alert('ici'); $x=popjsExistsFunction(`popjsdevAlert`); if($x&&$x.owner)alert(`popjsdevAlert existe $x.owner= `+$x.owner +`\n $x.target= `+typeof $x.target +`\n Object.entries($x)= `+Object.entries($x) ); */ popjsExistsFunction(`popjsdevAlert`,1); $jigpopLine=60; if(!popactionpage)popactionpage=`html`;// si popactionpage= /* __popbaseUrl=window.location.origin; // baseUrl= http://127.0.0.1 par exemple "http://localhost:3000"const imageUrl=`${baseUrl}/images/logo.png`; //x=__popbaseUrl.split(`\/\/127.0.0.1`);//x=x[1]; let x=(__popbaseUrl+1).split(`\/\/127.0.0.1`);//x=x[1]; __poplocalhost=parseInt(x[1]?1:0);// en javascript */ __popactionpage=popactionpage; // popactionpage=`html` ou popactionpage=`ajax` ou popactionpage=`alert` //al ert(`__popbaseUrl= ${__popbaseUrl}`); // // baseUrl= http://127.0.0.1 x=window.location.href; // baseUrl= http://127.0.0.1 par exemple "http://localhost:3000"const imageUrl=`${baseUrl}/images/logo.png`; x=x.split(`${__popbaseUrl}/`);x =x[1]; x=x.split(`/`); __popfile=x[x.length-1];x[x.length-1]=null; y=x.join(`/`);//al ert(`y= `+y.substring(0,y.length-1)); __popdirname=y.substring(0,y.length-1); y=__popdirname.split(`/`);//al ert(`y= `+y.substring(0,y.length-1)); let z=y.length; //__popsitename2points=y.length; __popsitename2points="..";for(i=0;i/g," "); //xmsg=xmsg.replace(/&space;/g," "); //xmsg=popreplaceall(xmsg,`\n`,``); //xmsg=popreplaceall(xmsg,`\ \;`,` `); //xmsg=popreplaceall(xmsg,`&;`,``); //popreplaceall=function(text,src,dest) msgAll+=xmsg; //xmsg=`__popbaseUrl= ${__popbaseUrl}${br} __poplocalhost= ${__poplocalhost}` popjsdevAlert(xmsg,popactionpage);//`div`); } //var __popdirname=``; //__popBarTop=`possible function`; }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; }; //================================ function getStyleCSS(styles){//styles){ if(1&&isLocal)alert('function getStyleCSS(styles)'); try{xline+='/278'; styles.forEach(obj=>{ x=document.getElementById(obj.name); // document.getElementById(obj.name); document.querySelector(obj.name) if(x&&x.style){ xline=792; if(obj.type==`visibility`)x.style.visibility=obj.value;// hidden/visible xline=794; if(obj.type==`display`)x.style.display=obj.value;// inline/block/none } } ); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; }; //===== function getButtonsCmdLSallIHM(idname,fct,text,textarea){ if(1&&isLocal)alert('function getButtonsCmdLSallIHM(idname,fct,text,textarea)'); try{xline+='/294'; document.open(); if(!textarea)textarea="textarea"; let msg=`
`; msg+=``; msg+=``; msg+=``; msg+=`
`; //document.open(); document.write(msg);document.close(); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; } //===== function getInformationIHMFilename(paramsinfos){//infos,filename,id,filesize){//copyright){// for popmodal if(1&&isLocal)alert('function getInformationIHMFilename(paramsinfos){'); try{xline+='/308'; if(0)alert('line 271 paramsinfos= '+Object.entries(paramsinfos)); display=(paramsinfos.infos?`block`:`none`); if(!paramsinfos.id)paramsinfos.id=null; //copyright=`@copyright`; let hr=`
`;//
`; let hrEnd=``;//`
`;paramsinfos let i=`
${paramsinfos.filename} | ${paramsinfos.filesize}
`; //document.open();//document.write(p_page);document.close(); let msg=hr;//`
`; msg+=i;//`
${copyright}
`; msg+=`${hrEnd}`;//
`; return({hr:hr,i:i,msg:msg}); //document.open();document.write(msg);document.close(); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; }; //===== function popListIHMCopyrightGET(paramsCopyR){//infos,copyright){// for popmodal if(1&&isLocal)alert('function popListIHMCopyrightGET(paramsCopyR){'); try{xline+='/327'; // params={society:`society`,fct:`fct`,version:`version`,firstDate:`firstDate`} if(!paramsCopyR)paramsCopyR={}; if(!paramsCopyR.society)paramsCopyR.society=`pooletude`;// Pooletude$copy;popinfosNewsView.v0-2013 if(!paramsCopyR.fct)paramsCopyR.fct=`infosNewsView`;// fonction du module affiché if(!paramsCopyR.version)paramsCopyR.version=`v0`;// version lancée actuelle if(!paramsCopyR.firstDate)paramsCopyR.firstDate=`2013`;// de society return(`${paramsCopyR.society}©${paramsCopyR.fct}.${paramsCopyR.version}-${paramsCopyR.firstDate}`); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; } //===== function getInformationIHMCopyright(paramsinfos){//infos,copyright){// for popmodal if(1&&isLocal)alert('function getInformationIHMCopyright(paramsinfos){'); try{xline+='/340'; //(infos:`copyright`,configBtn:``,)) if(!paramsinfos.switchbtn)paramsinfos.switchbtn=` `; if(!paramsinfos.onclick)paramsinfos.onclick=``; if(!paramsinfos.imgSwitch)paramsinfos.imgSwitch=`not.jpg`; if(!paramsinfos.title)paramsinfos.title=``;// toutes les informations quotidiennes if(!paramsinfos.copyright)paramsinfos.copyright=popListIHMCopyrightGET();//paramsCopyR); //===== if(0)alert('line 288 paramsinfos= '+Object.entries(paramsinfos)); display=(paramsinfos.infos?`block`:`none`); xline+=`/290`; //if(!security) security=false; //copyright=`©copyright`; let configBtn=(paramsinfos.configBtn?paramsinfos.configBtn:``),hr=`
`;//
`; let hrEnd=``;//`
`; //if(paramsinfos.onclick) //security.devlop=(security.locate||security.private); xline=296; //!\\code:waiting if(configBtn&&security)if(security.locate||security.private) // paramsinfos.imgConfig config-system.png // configBtn=``; configBtn=``; if(paramsinfos.switchbtn!=` `||paramsinfos.imgSwitch){ paramsinfos.switchbtn=` `; } let i=`
${paramsinfos.switchbtn} ${configBtn} ${paramsinfos.copyright}  
`;// imgSwitch //document.open();//document.write(p_page);document.close(); let msg=hr;//`
`; msg+=i;//`
${copyright}
`; msg+=`${hrEnd}`;//
`; return({hr:hr,i:i,msg:msg}); //document.open();document.write(msg);document.close(); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; }; //===== // module dédié function getInformationIHM(paramsinfos){//infos,copyright){// for popmodal if(1&&isLocal)alert('function getInformationIHM(paramsinfos){'); try{xline+='/387'; /* paramsinfos={ infos:infos ,filename:filename ,id:id ,filesize:filesize }; paramsinfos={ infos:infos ,copyright:copyright }; */ if(0)alert('line 304 infos= '+paramsinfos.infos); document.open(); //paramsinfos.display=(paramsinfos.display?paramsinfos.display:`block`); paramsinfos.display=`block`; //display=(paramsinfos.infos?`block`:`none`); copyright=`©copyright`; //document.open();//document.write(p_page);document.close(); let msg=`
`; msg+=`
`; msg+=`
`; //if(1)alert(`window.parent.getPopModalOfBarTop= `+window.parent.getPopModalOfBarTop); //if(!window.parent.getPopModalOfBarTop){ //if(1)alert(`!window.parent.getPopModalOfBarTop`); //} // {whatType:whatType,dir:dir,title:title} if(window.parent.getPopModalOfBarTop) msg+=window.parent.getPopModalOfBarTop({whatType:null,dir:`./resources/images`,title:`Tableau des informations du jour`});//null,`./resources/images`,`Tableau des informations du jour`); //msg+=getPopModalOfBarTop(`modal`,`./resources/images`,`Tableau des informations du jour`); msg+=`
`; //msg+=getPopModalOfBarTop(`modal`,`./resources/images`,`Tableau des informations du jour`); //msg+=getPopModalOfBarTop(whatType,dir,title); /* msg+=`
`; //if(!dir) dir=`./resources/images`; msg+=get PopModalOfBarTopImage(dir,`system-home.jpg`); msg+=`
`; */ ///let msg=`
`; //msg+=`
`; //==== let backgroundColor,infosTitle=new Array(`NOW`,`développement`,`locales`,`nationales`,`internationales`,`améliorations`); msg+=``; //==== msg+=` `; for (let i=0;i `; } msg+=`
information
${i+1} ${infosTitle[i]}
`; //==== msg+=`
outils et infos prioritaires
`; msg+=`
`;//` id="idListOfInfosDivNone //idListOfInfosDivMaster //paramsinfos.onclick=`alert(999);`; params={ onclick:`x=document.getElementById('idListOfInfosDivMaster');z=document.getElementById('idListOfInfosDivNone');if(x){y=(parseInt(x.style.width)>10);x.style.width=(y?'2%':'99.5%');if(z){z.style.display=(y?'none':'block');}};` //alert(999); idListOfInfosDivNone w=(z.style.display=='none'); ,copyright:`Pooletude©popDocTools.DuckPress-202506v0` ,imgSwitch:`${$jssliCpopPVx}/imgs/arrows_up_down_19336.png` // `imgSwitch.jpg` ,imgConfig:`${$jssliCpopPVx}/imgs/config-system.png` // paramsinfos.imgConfig config-system.png // ,imgSwitch:`../../iC/pop/+/V0/imgs/arrows_up_down_19336.png` // `imgSwitch.jpg` $jssliCpopPVx // ,imgConfig:`../../iC/pop/+/V0/imgs/config-system.png` // paramsinfos.imgConfig config-system.png // ,imgSwitch:`./resources/images/arrows_up_down_19336.png` // `imgSwitch.jpg` // ,imgConfig:`./resources/images/config-system.png` // paramsinfos.imgConfig config-system.png }; let x=getInformationIHMCopyright(params);//.infos,copyright); msg+=x.msg; //msg+=`
${copyright}
`; msg+=`
`; //document.write(msg); document.close(); return(msg); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; }; //======================== //======= 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(1&&isLocal)alert('function popjsAjaxJsonGetDatasOfScreenTo(keys,values,control){'); try{xline+='/491'; 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<\/script>`); return(script); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; } //================================ function fctjs_footer_OpenOrClose(what,This,files){ if(1&&isLocal)alert('function fctjs_footer_OpenOrClose(what,This,files){'); try{xline+='/732'; if(!what)return; if(This){ if(1)alert('This.id= '+This.id+' - This.src= '+This.src);// bottom-hbar-arrows-YY_up_down x=document.getElementById(`bottom-hbar-arrows-YY_up_down`);if(x)x.src=This.src; } if(!files) files=[ `idfooterTabberIdentityCV/arrows` // pour une personne ,`idfooterTabberLaw/law` ,`idfooterTabberDevlop/devlop` // idfooterDevlop ancienne div jaune //,`idfooterPublicity/pub` ,`idfooterTabberPublicity/pub` ,`idfooterTabberLearn/learn` // footerIdentityCV non pas learn , ]; files.forEach(obj=>{ z=obj.split(`/`);x=document.getElementById(z[0]); let divtop=document.getElementById("divtop-footer-top");// id="footer-top" let footerTop=document.getElementById("footer-top");// id="footer-top" if(0)alert('what= '+what+' - x= '+x); if(x){ if(what==z[1]){ y=x.style.display; y=(y?y:`none`); if(0)alert('what= '+what+' - y= '+y); //divtop.style.height=(y==`none`?650:0);//650;// height:650; //divtop.style.height=(y==`none`?650:0);//650;// height:650; //divtop.style.right=(y==`none`?`-90%`:`-10%`);//`100%`);`100%`); //divtop.style.left=(divtop.style.left<0?0:`-90%`); //if(parseInt(divtop.style.left)!=0){ x.style.display=(y==`none`?`block`:`none`); divtop.style.visibility=(y==`none`?`visible`:`hidden`); divtop.style.left=(y==`none`?0:`-90%`); //visibility:hidden; //divtop.style.top=220;//(y==`none`?20:0); //divtop.style.visibility=(y==`none`?`visible`:`hidden`); //footerTop.style.top=(y==`none`?-670:0); if(0)alert('what= '+what+' - x.style.display= '+x.style.display+' - divtop.style.left= '+divtop.style.left); } else {x.style.display=`none`;//divtop.style.top=220;//divtop.style.height=0; //divtop.style.height=0; //divtop.style.right=`-90%`;//`-100%`; //divtop.style.left=`-90%`;//`-100%`; //divtop.style.visibility=`hidden`; } } }); return(true); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; }; //================================ function popDayPilot_Modal_form_Calendar_Record(title){ if(1&&isLocal)alert('function popDayPilot_Modal_form_Calendar_Record(title){'); try{xline+='/795'; //import {Modal} from '@daypilot/modal'; // ... `Calendar Record` const form = [ {name: `${title}`}, { name: 'Description', id: 'description', type: 'text', }, { name: 'Start', id: 'start', type: 'date', dateFormat: 'M/d/yyyy', }, ]; const data = {}; DayPilot.Modal.form(form, data).then(modal => { alert(modal.result);// résultat des éléments des cases de form }); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; } //================================ function popDayPilot_Modal_form_Message_Resources_Dates(title){ if(1&&isLocal)alert('function popDayPilot_Modal_form_Message_Resources_Dates(title){'); try{xline+='/827'; //===================== var resources = [ {name: "Resource A", id: "A"}, {name: "Resource B", id: "B"}, {name: "Resource C", id: "C"}, ]; function validateTextRequired(args) { var value = args.value || ""; if (value.trim().length === 0) { args.valid = false; args.message = "Text required"; } else if (value.toLowerCase().includes("a")) { args.valid = false; args.message = "Text must not contain 'a'."; } else if (value.includes("2020")) { args.valid = false; args.message = "2020 not allowed."; } } var form = [ {name: `${title}`}, {name: "Text", id: "text", onValidate: validateTextRequired }, {name: "Note", id: "note", onValidate: validateTextRequired }, {name: "Start", id: "start", type: "date", onValidate: validateTextRequired}, {name: "End", id: "end", type: "date"}, {name: "Resource", id: "resource", options: resources, onValidate: validateTextRequired}, ]; var data = { start: "2020-11-01", end: "2020-11-02", resource: "B" }; DayPilot.Modal.form(form, data).then(function(modal) { alert(modal); }); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; } //================================ function popDayPilot_Modal_popup_ContactUser(title){//`Hello, World! Envoyer un email` if(1&&isLocal)alert('function popDayPilot_Modal_popup_ContactUser(title){'); try{xline+='/873'; var maDiv = document.querySelector('.modal_default_background'); DayPilot_ihmContactUser(`${title}`); //================ if(1&&maDiv){ //var maDiv = document.querySelector('.modal_default_background'); // Lorsqu'on survole maDiv, désactiver l'interaction maDiv.addEventListener('mouseover', () => { maDiv.style.pointerEvents = 'none'; }); // Lorsqu'on quitte maDiv, réactiver l'interaction maDiv.addEventListener('mouseout', () => { maDiv.style.pointerEvents = '';// 'auto'; }); if(0){ const idmadivmain = document.querySelector('.modal_default_main'); // Lorsqu'on survole maDivchild, réactiver l'interaction idmadivmain.addEventListener('mouseover', () => { maDiv.style.pointerEvents = '';// 'auto'; }); } } }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; } //================================ function tabberCommandLoad(font7pt){ //tabber7pt=true; if(1&&isLocal)alert('function tabberCommandLoad(font7pt){'); try{xline+=`/902`; if(0&&isLocal)alert(`tabberCommandLoad(font7pt)`); /* Run tabberAutomaticOnload() unless the "manualStartup" option was specified */ //tabberCommandLoad(!tabberAutoIsOnLoad);//!\code:test: !OK tabber7pt=(font7pt==`7pt`);//true; //if(font7pt==`7pt`)tabber7pt=true; let t0=`tabberAutoIsOnLoad`,t1=`tabberAutomaticOnLoad`; if(!window.parent[t0]) if(window.parent[t1]){ x=(typeof tabberOptions == 'undefined'||!tabberOptions['manualStartup']); if (x) { window.parent[t1](); } else { //if(!tabberOptions['manualStartup']) { window.parent[t1](tabberOptions); // } } } }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; } //================================ //================================ //============ start: barOfTopWindow //================================ //padding-bottom:3;background-color:blue; ../../res/imgs/system/out.gif C:\w3\popDev IT\resources\images/system-out.gif function getPopModalOfBarTop(params){// whatType,dir,title){// {whatType:whatType,dir:dir,title:title} if(1&&isLocal)alert('function getPopModalOfBarTop(params){'); try{xline+=`/932`; //alert(9999); document.open();//document.write(p_page);document.close(); let msg=``; if(!params.whatType)params.whatType='modal'; if(!params.dir)params.dir=`./resources/images`; if(!params.title)params.title=document.title; if(!params.width)params.width=`100%`; //width=`99%`;//``; //if(``) xline+=`/942`; if(0)alert(xline+` window.parent.getPopModalOfBarTop= `+window.parent.getPopModalOfBarTop); msg+=` `; document.close(); if(0&&isLocal)alert(`1034 ${msg}`); return(msg); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; //document.write(`
`); } //================================ function selectFileChange(This){ if(1&&isLocal)alert('function selectFileChange(This){'); try{xline+='/1025'; // myabout.php iframeAboutPhp /myabout.php/example00.php iframeAboutPhp selectFileChange(); // $file2textarea='/ic-functions/plugins/tcpdf-/res/myabout.php'; const select = This;//document.getElementById('monSelect'); const optionsSelectionnees = Array.from(select.selectedOptions); let i=0; // Parcourir toutes les options sélectionnées optionsSelectionnees.forEach(option => { // Récupérer l'optgroup parent const optgroup = option.parentElement; const groupeLabel = optgroup.label; const optionText = option.text; const optionValue = option.value; const optionDataFile = option.getAttribute("data-file"); //======================= if(select.selectedIndex==i){ alert('optionValue= '+optionValue);return; } i++; }); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; }; //================================ function popbarOfTopWindow(params){ if(1&&isLocal)alert('function popbarOfTopWindow(params){'); try{xline+='/1050'; let whatType=(params.whatType?params.whatType:''); let dir=(params.dir?params.dir:`./resources/images`); let title=(params.title?params.title:`write title`); let idDiv=(params.idDiv?params.idDiv:``);// id master div let idDivPadding=(params.idDivPadding?params.idDivPadding:``);// div paddings let TableImgsDisplay=(params.TableImgsDisplay?params.TableImgsDisplay:``);// block/none/`` let idInfoHelp=(params.idInfoHelp?params.idInfoHelp:`write help`);// id info div let infoHelp=(params.infoHelp?params.infoHelp:`writeHelp`);// text of div let infoHelpDisplay=(params.infoHelpDisplay?params.infoHelpDisplay:`none`);// css //======= let textarea=params.idtextarea;let barButtons=barTextarea=''; if(textarea){ let idtextarea=(params.idtextarea?params.idtextarea:'');// id textarea let idtextareaFile=(params.idtextareaFile?params.idtextareaFile:'');// fichier de textarea let idtextareaContent=(params.idtextareaContent?params.idtextareaContent:'');// contenu de textarea let idtextareaSave=(params.idtextareaSave?params.idtextareaSave:'');// id save //======= if(idtextareaSave){ barButtons=`
Commandes:         
`; // myabout.php iframeAboutPhp /myabout.php/example00.php iframeAboutPhp selectFileChange(); // $file2textarea='/ic-functions/plugins/tcpdf-/res/myabout.php'; } //======= if(idtextarea){ barTextarea=` `; } //======= } /* $topBar=window.parent[fct]({whatType:null,dir:`./resources/images`,title:`écrire le code pour le pdf` ,infoHelp:`écrire le code pour le pdf`,infoHelpDisplay:`block`,idInfoHelp:`idmsgFilePDFhelp`}); */ /* var $topBar=null; if(window.parent.getPopModalOfBarTop) $topBar=window.parent.getPopModalOfBarTop({whatType:null,dir:`./resources/images`,title:`écrire le code pour le pdf` ,infoHelp:`écrire le code pour le pdf`,infoHelpDisplay:`block`,idInfoHelp:`idmsgFilePDFhelp`}); */ let topBar=''; if(window.parent.getPopModalOfBarTop)topBar=window.parent.getPopModalOfBarTop(params); // topBar=window.parent.getPopModalOfBarTop({whatType:whatType,dir:dir,title:title // ,infoHelp:infoHelp,infoHelpDisplay:params.infoHelpDisplay,idInfoHelp:idInfoHelp // }); xline+='/1014'; let msg=`
`; xline+='/1019'; //msgDropArea+=parent.getPopModalOfBarTop(null,null,`title`); msg+=` ${topBar}
${params.infoHelp}
${barButtons}${barTextarea} `; /* ,idtextarea:`idtextareaPDF`,idtextareaFile:`` ,idtextareaContent:`` ,idtextareaSave:`idtextareaSavePDF` }); msgFilePDF+=$topBar; //================ xline+='/91'; msgFilePDF+=`
data1 data2
data3 data4
`; */ xline+='/879'; return(msg); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; } //================================ function popbarOfBottomWindow(params){ if(1&&isLocal)alert('function popbarOfBottomWindow(params){'); try{xline+='/1146'; x0=`getInformationIHMCopyright`; x=window.parent[x0](params.infos,params.copyright);//`infos`,`copyright`); return(x.i+`
`); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; } //================================ //============ end: barOfTopWindow //================================ //================================ //============ start: poplocalStorageDatas??? //================================ //================================ //poplocalStorageDatasSET(`localStorageObjDPE`,params);// keys=economy,co2 poplocalStorageDatasGET(name,coded) function poplocalStorageDatasADD(name,params,coded){//ex: name=localStorageObjDPE if(1&&isLocal)alert('function poplocalStorageDatasADD(name,params,coded){'); try{xline+='/1157'; datasActual=window.parent.poplocalStorageDatasGET(name,coded); //Object.assign(newparams,{[key]:d.value})); datasAdd=Object.assign(datasActual,params); xline+=`/903`; if(1&&isTest)alert('datasAdd= '+datasAdd); // localStorage.setItem('form_nom', nom); // const monObjet = { nom: nom, email: email, message: message, mdp:mdp }; xline+=`/902`; if(!params)return; const msg=JSON.stringify(datasAdd); localStorage.setItem(name,(coded ?btoa(msg):msg)); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; } //================================ //poplocalStorageDatasSET(`localStorageObjDPE`,params);// keys=economy,co2 poplocalStorageDatasGET(name,coded) function poplocalStorageDatasSET(name,params,coded){//ex: name=localStorageObjDPE if(1&&isLocal)alert('function poplocalStorageDatasSET(name,params,coded){'); try{xline+=`/1174`; if(1&&isTest)alert('params= '+params); // localStorage.setItem('form_nom', nom); // const monObjet = { nom: nom, email: email, message: message, mdp:mdp }; xline+=`/902`; if(!params)return; const msg=JSON.stringify(params); localStorage.setItem(name,(coded ?btoa(msg):msg)); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; } //======== function poplocalStorageDatasXISTS(name){// poplocalStorageDatasSET(name,params,coded) if(1&&isLocal)alert('function poplocalStorageDatasXISTS(name){'); try{xline+=`/1187`; // Récupérer la chaîne JSON stockée dans localStorage const storedData = localStorage.getItem(name);//'formsTotalDatas'); return(storedData?1:0); /* if (storedData) { // Convertir la chaîne JSON en objet const formsTotalDatas = JSON.parse(storedData); // Accéder à la valeur de ReferenceANN const referenceValue = formsTotalDatas.ReferenceANN; console.log(referenceValue); // Affichera "toto" } else { console.log('Aucune donnée trouvée dans localStorage.'); } */ }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; } //======== function poplocalStorageDatasGET(name,coded){// poplocalStorageDatasSET(name,params,coded) if(1&&isLocal)alert('function poplocalStorageDatasGET(name,coded){'); try{xline+=`/1209`; // localStorage.setItem('form_nom', nom); // const monObjet = { nom: nom, email: email, message: message, mdp:mdp }; // const msg=JSON.stringify(params); xline+=`/933`; if(localStorage.getItem(name)){ const data = JSON.parse(localStorage.getItem(name)); // 1=65=A 1=a=97 return(coded ?atob(data):data); } // localStorage.setItem(name,(coded ?btoa(msg):msg)); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; } //======== function saveformDatas(This,listIDS){//'idformReferenceANN,idformDateANN'){ if(1&&isLocal)alert('function saveformDatas(This,listIDS){'); try{xline+=`/1223`; let x=name=``;listIDS=listIDS.split(`,`); const storedData = localStorage.getItem(formsTotalDatasLS); formsTotalDatas = JSON.parse(storedData); listIDS.forEach(id=>{ x=id.split(`idform`);key=x[1]; if(key){ x=document.getElementById(id); // x=document.getElementById(`${x[1]}`); //if(1) alert('173 id= '+id+' - x= '+x+' - x.id= '+x.id); if(x){ //const storedData = localStorage.getItem(formsTotalDatasLS); //formsTotalDatas = JSON.parse(storedData); xline+=`/955`; if(0) alert('203 storedData= '+storedData+' - Object.entries(storedData)= '+Object.entries(storedData));// .ReferenceANN +' - x.ReferenceANN= '+x.ReferenceANN); if(0) alert('203 storedData= '+storedData+' - formsTotalDatas= '+formsTotalDatas);// .ReferenceANN +' - x.ReferenceANN= '+x.ReferenceANN); //if (storedData) { // Convertir la chaîne JSON en objet // formsTotalDatas = storedData.JSON.parse(storedData); //.parse // Accéder à la valeur de ReferenceANN name=key;//`ReferenceANN`; // const referenceValue = formsTotalDatas[`${name}`];// formsTotalDatas.ReferenceANN; formsTotalDatas[`${name}`]=x.value;//referenceValue; //} // name=`${id}`; // formsTotalDatas[name]=x.value; // formsTotalDatas[`${key}`]=x.value; // w=localStorage.getItem(formsTotalDatasLS); if(0) alert('173 x.value= '+x.value+' - Object.keys(formsTotalDatas)= '+Object.keys(formsTotalDatas)); } } // area.setAttribute("data-activated","false"); }); localStorage.setItem(formsTotalDatasLS,JSON.stringify(formsTotalDatas)); }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; }; //================================ //============ end: poplocalStorageDatas??? //================================ if(0&&isLocal)popjsGetURLparts(`alert`); //try{$jigpopLine=2;index=1; //var popJsPhp="/iC/pop/+/V0/cfgSite/pop.js.php"; }catch(e){alert("catch(e): "+e+" - "+xline+" - "+popJsPhp);}; /* Exception description: Access violation at address 004F6BDC in module 'PSPad.exe'. Read of address FEAB694C. Exception class: EAccessViolation Exception address: 004F6BDC ---------------------------------------------------------------------------------------------------- Stack list, generated 29/06/2025 10:45:10 [004F6BDC] SynEditWordWrap.TSynWordWrapPlugin.BufferToDisplayPos (Line 169, "SynEditWordWrap.pas" + 13) + $3 [00404C23] System.@HandleAnyException + $33 [004CA8B5] SynUnicode.GetTextSize (Line 2278, "SynUnicode.pas" + 3) + $4 [0042D4F8] Graphics.TResourceManager.Unlock + $4 [0042D778] Graphics.TResourceManager.AssignResource + $5C [0042DD74] Graphics.TGraphicsObject.Unlock + $8 [0042E151] Graphics.TFont.Assign + $B5 [0042E164] Graphics.TFont.Assign + $C8 [0050AFA6] SynEdit.TCustomSynEdit.BufferToDisplayPos (Line 10194, "SynEdit.pas" + 23) + $E [006089EA] uChildEdit.CharToPixels (Line 1642, "uChildEdit.pas" + 1) + $C [00608CBB] uChildEdit.TfChildEdit.SynEditPaintTransient (Line 1711, "uChildEdit.pas" + 66) + $7 [0050ABDF] SynEdit.TCustomSynEdit.DoOnPaintTransientEx (Line 10077, "SynEdit.pas" + 18) + $16 [0050AC12] SynEdit.TCustomSynEdit.DoOnPaintTransient (Line 10086, "SynEdit.pas" + 1) + $6 [004FEC8A] SynEdit.TCustomSynEdit.SetCaretXYEx (Line 4011, "SynEdit.pas" + 4) + $7 [004FEC20] SynEdit.TCustomSynEdit.InternalSetCaretXY (Line 3995, "SynEdit.pas" + 1) + $8 [0050C4FD] SynEdit.TCustomSynEdit.SetInternalDisplayXY (Line 10875, "SynEdit.pas" + 2) + $11 [004F9863] SynEdit.TCustomSynEdit.ComputeCaret (Line 1234, "SynEdit.pas" + 3) + $4 [004FB4B5] SynEdit.TCustomSynEdit.MouseDown (Line 2260, "SynEdit.pas" + 38) + $7 [00512597] PSSynedit.TPSSynEdit.MouseDown (Line 330, "PSSynedit.pas" + 2) + $B [004A0E36] Controls.TControl.DoMouseDown + $76 [004A0FBB] Controls.TControl.WMRButtonDown + $1B [004A0BC8] Controls.TControl.WndProc + $188 [004F0040] TntForms.GetMessageForNT (Line 754, "TntForms.pas" + 10) + $9 [004A3A8D] Controls.TWinControl.IsControlMouseMsg + $51 [004A3C27] Controls.TWinControl.WndProc + $157 [005032B6] SynEdit.TCustomSynEdit.WndProc (Line 6187, "SynEdit.pas" + 22) + $4 [004A38A4] Controls.TWinControl.MainWndProc + $2C [0042B530] Classes.StdWndProc + $14 [0049015F] Forms.TApplication.ProcessMessage + $83 [00490196] Forms.TApplication.HandleMessage + $A [004903C6] Forms.TApplication.Run + $96 [006D7BB1] PSPad.PSPad (Line 55, "I:\Delphi7\Projekty\PSPad\PSPad.dpr" + 31) + $7 ---------------------------------------------------------------------------------------------------- Program : C:\NomadeDev\PSPad editor\PSPad.exe 4.5.4 (2356) System : Workstation, Version: 6.2, Build: 23F0, "" Processor: AMD, AMD E1-2100 APU with Radeon(TM) HD Graphics , 1000 MHz MMX Display : 1440x900 pixels, 32 bpp ---------------------------------------------------------------------------------------------------- Active Controls Hierarchy: TPSSynEdit "Editor1" TfChildEdit "fChildEdit_64" ---------------------------------------------------------------------------------------------------- */