//c déclarations globales,première utilisation avec infobulles ///var script_os='os-c.js',os_stop=1;jsscriptslist=jsscriptslist.concat(new Array(script_os)); ///myDebug.checkjsload(script_os); myDebug.line=1;try{ var script_os='js:os',os_stop=1; jsscriptslist=jsscriptslist.concat(new Array(script_os)); myDebug.checkjsload(script_os); ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'load: '+script_os,kjsstop:os_stop}; tagfct.kjsfct='load: '+script_os; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; /// var post={'tabtype':'0','tabdiv':'1.daily.0','tabcols':'01','tabpost':'yves-loucas!?obamashoesgloves!?2015'};show_myapptype_tabber(post); /// var post={'tabtype':'daily','tabdiv':'1.daily.0','tabcols':'00','tabcol1':0,'tabpost':' victorhugo0 !? thepunishments !? 1853'};show_myapptype_tabber(post); //============== //c http://stackoverflow.com/questions/28185131/how-to-detect-safari-chrome-ie-firefox-and-opera-browser-on-load-javascript //c http://stackoverflow.com/questions/3437786/get-the-size-of-the-screen-current-web-page-and-browser-window //=== /* myDebug.line=1461;var formatdata=check_data_after_ajax_call(data,status,tagfct[kjsfct],tagfct[kjsfile],'file='+file+myDebug.chrrc+'callfile='+callfile,myDebug.line,400); if(!formatdata){return(false);} var jsonResponsedata=formatdata['jsonResponsedata'],result=formatdata['result'],result2=formatdata['result2']; var error=formatdata['error'],scroll=formatdata['scroll'],content=formatdata['content'],targetdiv=formatdata['targetdiv']; var synchrocontenttargetdiv=formatdata['synchrocontenttargetdiv'],calltype=formatdata['calltype']; */ /* */ function check_data_after_ajax_call(data,status,tagfctkjsfct,tagfctkjsfile,files,line){ try{///var saveline=myDebug.line;//c 'file'=kjsfile,kjsfct ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'check_data_after_ajax_call(data,status,tagfctkjsfct,tagfctkjsfile,files,line)',kjsstop:os_stop}; ////var tagfct = {'file':script_os,'fct':'check_data_after_ajax_call(data,status)'},stop=os_stop; ///alert_for_msg_for_debug('ljs:38 dedans tagfct[kjsfile]='+tagfct[kjsfile]+' '+myDebug.chrrc+' data='+data); ////myDebug.line=38;var decrypt_data_callpost=debug_search_fatal_error_in_data(data,status,tagfctkjsfct,tagfctkjsfile,files,line,400); var datareturn=true; //c result['ret'] result['error'] result['type']json,::,other result['data'] ///myDebug.line=1632;myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],''+myDebug.chrrc+' IN '+tagfctkjsfile+' '+myDebug.chrrc+'','file='+file,'decrypt_data_callpost='+decrypt_data_callpost),myDebug.line+stop); if(!decrypt_data_callpost['ret']){ ///myDebug.line=43;///myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],''+myDebug.chrrc+' IN '+tagfctkjsfile+''+myDebug.chrrc+' IN '+tagfctkjsfct+' '+myDebug.chrrc+'','stop='+files),myDebug.line+stop); /// os_display_popuploader(true,tagfct[kjsfile],tagfct[kjsfct],data);return(false); ///alert_for_msg_for_debug('ljs:45 dedans tagfct[kjsfile]='+tagfct[kjsfile]+' '+myDebug.chrrc+' data='+data); datareturn=false; } //=== if(datareturn){ ///myDebug.line=49;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],''+myDebug.chrrc+' IN '+tagfctkjsfile+''+myDebug.chrrc+' IN '+tagfctkjsfct+' '+myDebug.chrrc+'','stop='+files),myDebug.line+stop); var error=decrypt_data_callpost['error']; if(error) datareturn=false; else { var jsonResponsedata=(decrypt_data_callpost['type']=='json'), result=decrypt_data_callpost['data'], result2=decrypt_data_callpost['result2']; var scroll=result['scroll']=(decrypt_data_callpost['scroll']?decrypt_data_callpost['scroll']:''), calltype=result['content']=(decrypt_data_callpost['type']?decrypt_data_callpost['type']:''), content=result['content']=(decrypt_data_callpost['content']?decrypt_data_callpost['content']:''), targetdiv=result['targetdiv']=(decrypt_data_callpost['targetdiv']?decrypt_data_callpost['targetdiv']:''); ///myDebug.line=61;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'error='+error,'targetdiv='+targetdiv,'result2='+result2,'content='+content),myDebug.line+stop); var synchrocontenttargetdiv=(content&&targetdiv&&targetdiv!=''); var datareturn={'error':false,'jsonResponsedata':jsonResponsedata,'result':result,'result2':result2,'scroll':scroll,'content':content, 'targetdiv':targetdiv,'calltype':calltype,'synchrocontenttargetdiv':synchrocontenttargetdiv}; }//c !if(error) }//c if(datareturn) //=== os_display_popuploader(datareturn,tagfct[kjsfile],tagfct[kjsfct],data); if(!datareturn){ tagfct.kjsline=68; tagfct.kjsfct='check_data_after_ajax_call(data,status,tagfctkjsfct,tagfctkjsfile,files,line)'; tagfct.kjsfile=script_os;tagfct.kjsstop=os_stop; } return(datareturn); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} } function enterSubmit(keypressEvent,submitFunc){ myDebug.line=256;try{ ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'enterSubmit(keypressEvent,submitFunc)',kjsstop:os_stop}; tagfct.kjsfct='enterSubmit(keypressEvent,submitFunc)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ///try{myDebug.line=147; ///var tagfct = {'file':script_os,'fct':'enterSubmit(keypressEvent,submitFunc)'},stop=os_stop; var kCode=(is.ie?keypressEvent.keyCode:keypressEvent.which); if(kCode==13)eval(submitFunc); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} }//c function enterSubmit(keypressEvent,submitFunc) //c \\\\\\\\\\\\\\\\\\\\\\\\\ //c function findlast(name){ myDebug.line=288;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'findlast(name)',kjsstop:os_stop}; tagfct.kjsfct='findlast(name)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=170; /////var tagfct = {'file':script_os,'fct':'findlast(name)'},stop=os_stop; var i=0;while(document.getElementsByName(name)[i])i++;return(i-1); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} }//c function findlast(name) //c \\\\\\\\\\\\\\\\\\\\\\\\\ //c function fg_ojs_GetType(me){ myDebug.line=299;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'fg_ojs_GetType(me)',kjsstop:os_stop}; tagfct.kjsfct='fg_ojs_GetType(me)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=178; ////var tagfct = {'file':script_os,'fct':'fg_ojs_GetType(me)'},stop=os_stop; if(!me||!me.id)return(new Array()); var x; var types=new Array('text', 'radio', 'checkbox', 'select-one', 'label', 'hidden', 'textarea' ); if(!me.type){x=me.id.split('_');x=x[x.length-1];} return(new Array( new Array((me.type==types[0]), (me.type==types[1]), (me.type==types[2]), (me.type==types[3]), (x==types[4]), (me.type==types[5]), (me.type==types[6]) ), types )); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} }//c function fg_ojs_GetType(me) //c \\\\\\\\\\\\\\\\\\\\\\\\\ function SetConnexionNotconnexion(what){ myDebug.line=135;try{ ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'SetConnexionNotconnexion(what)',kjsstop:os_stop}; tagfct.kjsfct='SetConnexionNotconnexion(what)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=213; ////var tagfct = {'file':script_os,'fct':'SetConnexionNotconnexion(what)'},stop=os_stop; var name='tbltools',o,i=findlast(name); myDebug.line=148; if(i>-1){ for(i=0;i<10;i++){ o=document.getElementsByName(name)[i]; myDebug.line=121; if(!o)break; o.style.display=(what?myApp.kcssinline:myApp.kcssnone); }//c for(i=0;i<10;i++) }//c if(i>-1) ///if(defined('kpseudo')&&kpseudo&&($i_pseudoauthor==kpseudo)){ /// $i_displaytools="inline"; ///} ///if(defined('kpseudo')&&kpseudo&&(kauthor==kpseudo)){ ////echo(' kauthor "'.kauthor.'" ,kpseudo "'.kpseudo.'"');break; ///michelb ,kpseudo ///$id_table='tbltools'; }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} }//c function SetConnexionNotconnexion(what) //c \\\\\\\\\\\\\\\\\\\\\\\\\ /* function isFunction(myfunction){ //c http://jsperf.com/comparing-underscore-js-isfunction-with-typeof-function/2 //c var obj=function(){console.log(myfunction)}; //c return(toString.call(obj)=='[object Function]'); var obj=function(){console.log(myfunction)}; return('function'===typeof obj);//c typeof 'function' }//c function isFunction(myfunction) //c \\\\\\\\\\\\\\\\\\\\\\\\\ */ function set_values_of_args(o,value){ myDebug.line=173;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'set_values_of_args(o,value)',kjsstop:os_stop}; tagfct.kjsfct='set_values_of_args(o,value)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ///try{myDebug.line=253; ///var tagfct = {'file':script_os,'fct':'set_values_of_args(o,value)'},stop=os_stop; var ar=new Array('height','left','top','width','color','font-size','text-shadow'); for(var i=0;i1){ set_values_of_args(x,value);///o.style.left='72%'; if(o)o.innerHTML=namesite; } else{ o=myDebug.GetId('id_texttitle');if(o){ value=v.split(';'); o.innerHTML=value[0];///result[9]; for(i=1;i=0?tab:1)); mapchange_display_tab(0);///(tab>=0?tab:1));//!\try 28/11/2016 12:06:38 ///o.tabber.tabShow(tab); else o.tabber.tabShow(1); /// if(o)o.tabber.tabShow(1); return(!os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct])); }//c if(result[2]=='init') //============== if(result[2]=='country'){ //al ert(result); /// if(result[3]=='0.worldtabber.0.1.div') //al ert(result); } if(result[2]=='region'){ o=myDebug.GetId('id_imgregion');if(o)o.src=result[3]; o=myDebug.GetId('id_mapregion');if(o)o.innerHTML=result[4]; ////myDebug.GetId('0.worldtabber.0').tabber.tabShow(2); mapchange_display_tab(2); return(!os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct])); } //============== if(result[2]=='site'){ display_all_site(result); return(os_display_popuploader(true,tagfct[kjsfile],tagfct[kjsfct])); } //============== if(result[2]=='ebooks'){//!\review 27/09/2019 13:37:54 remplacé 'ebook' par 'ebooks' display_all_ebook(result); return(os_display_popuploader(true,tagfct[kjsfile],tagfct[kjsfct])); } //============== if(result[4]=='country'){ ///myDebug.GetId('0.worldtabber.0').tabber.tabShow(1); /// mapchange_display_tab(1); o=myDebug.GetId('id_imgcountry');if(o&&result[5]!=''&&result[2]=='country'){ o.src=result[5]; } mapchange_display_tab(1); //// myDebug.GetId('0.worldtabber.0').tabber.tabShow(1); /// os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]); ///return(true); } //============== o=myDebug.GetId('id_information');if(o&&result[2])o.innerHTML=result[2]; o=myDebug.GetId('id_subscribers');if(o)o.innerHTML=result[3]; os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]); /* //c https://www.google.fr/search?q=document.body.style.zoom&ie=utf-8&oe=utf-8&gws_rd=cr&ei=a6QFVa_YHMOE7gbGkoCIDQ */ }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} }//c function mapchange_into_call_ajax_post(result) //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //c function os_connexion_for_call_ajax_post(what,result,message,pseudo){ myDebug.line=1000;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'os_connexion_for_call_ajax_post(what,result,message,pseudo)',kjsstop:os_stop}; tagfct.kjsfct='os_connexion_for_call_ajax_post(what,result,message,pseudo)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; /////try{myDebug.line=703; ////var tagfct = {'file':script_os,'fct':'os_connexion_for_call_ajax_post(what,result,message,pseudo)'},stop=os_stop; var data,welcome=$('#id_user_mdl1'), cssmenu_connexion=myDebug.GetId('menu_connexion').style, menu_connexion=$('#menu_connexion'), selected_pseudo_admin=myDebug.GetId('selected_pseudo_admin'); switch(what){ case 'login_deconnect': if((result[1]==1)&&(result[2]==myApp.PSEUDO)){ //c deconnection réussie myApp.PSEUDO=''; ///menu_connexion.css({'color':'white'}); welcome.html(''); menu_connexion.html('Connexion'); selected_pseudo_admin.style.visibility=myApp.kcsshidden; myApp.connexion=new Array(); myApp.display_popupmain(''); SetConnexionNotconnexion(false); }//c if((result[1]==1)&&(result[2]==myApp.PSEUDO)) break; case 'open_box_connexion': myDebug.line=827; ///menu_connexion.css({'color':'black'}); if(selected_pseudo_admin) selected_pseudo_admin.style.visibility=myApp.kcsshidden; /// if(result[1]&&(result[2]==pseudo)){//myApp.PSEUDO)){ if(result[1]&&(result[2]=='connection')&&(result[3]==pseudo)){//myApp.PSEUDO)){ myApp.PSEUDO=pseudo; if(selected_pseudo_admin&&myApp.PSEUDO=='admin') selected_pseudo_admin.style.visibility=myApp.kcssvisible; message.css({'background':'green'}); /// message.html(result[5]);//c // connection réussie message.html(result[6]);//c // connection réussie /// myApp.ID=result[3]; /// myApp.STATUS=result[4]; myApp.ID=result[4]; myApp.STATUS=result[5]; welcome.html(myApp.PSEUDO); myDebug.GetId('id0_menu_connexion').title=myApp.PSEUDO; myDebug.line=436; myApp.display_popupmain(''); menu_connexion.html(myApp.word_account); if(!myApp.cfmi){//c confirmation d'identité data='1/24/4';myDebug.SetCookie('cfmi',data,30); myApp.display_popupmain('identity'); } data=''; SetConnexionNotconnexion(true); }//c if(result[1]&&(result[2]==myApp.PSEUDO)) else{ myDebug.line=780; message.css({'background':'red'}); data=result[5]+' - echec:'+data; myApp.PSEUDO='';myApp.ID=4;myApp.STATUS=0; welcome.html(myApp.PSEUDO); /// menu_connexion.css({'color':'black'}); menu_connexion.html('Connection'); SetConnexionNotconnexion(false); }//c else if(result[1] &&(result[2]==myApp.PSEUDO)) return(data); case 'create_box_connexion': myDebug.line=870; if(result[1]) myApp.display_popupmain(''); else return(new Array('','red','not create'));//{msg='';msgcolor='red';msgresult='not create';} break; case 'demand_params_of_connexion': case 'account_create': ///os_connexion_for_call_ajax_post(what,result,message,pseudo) ///myDebug.line=804;myApp.display_message_popup(result[1],result[5],result[5]);//,id,txtwarning){ ///myApp.display_message_popup=function(test,txtok,txterror,id,txtwarning){ /// if(result[1]){ ////msgcolor=(result[1]?'green':'red'); ////msgresult=result[5]; myDebug.line=804;myApp.display_message_popup(result[1],result[5],result[5],result[5]);//,id,txtwarning){ return(new Array(result[1]));///myApp.display_popupmain(''); /// } break; }//c switch(what) }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} }//c function os_connexion_for_call_ajax_post(what,result) //c \\\\\\\\\\\\\\\\\\\\\\\\\\\ //c function put_content_tabonclick_to_div(content,div,scroll){ myDebug.line=1092;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'put_content_tabonclick_to_div(content,div,scroll)',kjsstop:os_stop}; tagfct.kjsfct='put_content_tabonclick_to_div(content,div,scroll)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=893; ///var tagfct = {'file':script_os,'fct':'put_content_tabonclick_to_div(content,div,scroll)'},stop=os_stop; var writed=false; if(content){///&&content!=''){//!\test 10/05/2016 05:43:38 &&content='' //c 0.oneposts.0.1.div - 1.rpanel.0.3.div myDebug.line=910;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'div='+div,'content='+content,'myApp.konclick='+myApp.konclick),myDebug.line+stop); if(!div){ var x=myApp.oldtabber.split('.'),y=myApp.konclick.split('.'); if(x[1]!=y[1]) div=myApp.konclick; else{ myApp.oldtabber=div; if(myApp.oldtabber!=myApp.konclick) div=myApp.konclick; else div=myApp.oldtabber; } /// div=myApp.konclick; //!\test 10/05/2016 06:19:05 remplacé } var o=myDebug.GetId(div);if(o){ if(o&&o.innerHTML!=content)o.innerHTML=content; writed=true; if(scroll){ o=myDebug.GetId('id_footerscroll');if(o&&o.innerHTML!=scroll){ myDebug.line=930;///myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'div='+div,'scroll='+scroll),myDebug.line+stop); o.innerHTML=scroll; } } if(myApp.showlang){ } } } ///myApp.konclick='';//!\test 10/05/2016 05:43:38 &&content='' ///myApp.oldtabber=div; myApp.blockdiv=false; return(writed); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} }//c function put_content_tabonclick_to_div //c \\\\\\\\\\\\\\\\\\\\\\\\\\\ //c function display_datas_for_resume(result){ myDebug.line=1140;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'display_datas_for_resume(result)',kjsstop:os_stop}; tagfct.kjsfct='display_datas_for_resume(result)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=939; /////var tagfct = {'file':script_os,'fct':'display_datas_for_resume(result)'},stop=os_stop; //c http://www.w3schools.com/js/js_arrays.asp array //c http://julienrenaux.fr/2012/09/13/javascript-associative-arrays/ var x; switch(result[2]){ case '[resume]': myDebug.line=863;myApp.display_message_popup(true,'good_your_datas_is_fine_to_send'); put_content_tabonclick_to_div(result[3]); ////myDebug.GetId(myApp.konclick).innerHTML=result[3]; myApp.kemailuser=result[4]; ftabberjs_init_before_display(); return(true); case '[send]': myDebug.line=885; //// var plus=(jset?jset['datas_send']:'no jset'); x=result[3].split(','); myDebug.line=968;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'jset[\'datas_send\']='+jset['datas_send'],'mail='+x[0]),myDebug.line+stop); myApp.display_popupmain(''); return(true); } return(false); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} }//c function display_datas_for_resume(result) //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //c function display_datas_for_animation(result,index){ myDebug.line=1174;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'display_datas_for_animation(result,index)',kjsstop:os_stop}; tagfct.kjsfct='display_datas_for_animation(result,index)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=970; ////var tagfct = {'file':script_os,'fct':'display_datas_for_animation(result)'},stop=os_stop; var x,index=(index?index:2); switch(result[index]){ case 'diaporama0': if(myDebug.GetId(myApp.konclick)){ x=put_content_tabonclick_to_div(result[4]); ///mySlideShow.array0=new Array('slideShowImages0','slideShowButton0'); ///mySlideShow.mySlideShow0=new slideShow0(mySlideShow.array0); ///window.addEventListener('load',mySlideShow.mySlideShow0,false); if(x){//!\test 10/05/2016 07:16:57} x='slideShow'; mySlideShow.mySlideShow0=new slideShow0(new Array(x+'Images0',x+'Button0',x+'Title0',x+'Copyright0',4000)); ////mySlideShow.load(mySlideShow.mySlideShow0); /// myApp.oldtabber=myApp.konclick; //!\test 10/05/2016 06:45:00 } } break; case 'cursus0': put_content_tabonclick_to_div(result[3]);break; case 'mapper0': /// if(result[3]=='0.worldtabber.0.1.div') put_content_tabonclick_to_div(result[3]); change_map_from_ajax('init',myDebug.GetId('id_inpcontinent').value); break; case 'qstable0': /// $i_x=get_th_to_qstable(); /// $i_qstable=str_replace("",$i_x.chr(13),$i_qstable); put_content_tabonclick_to_div(result[2]);//c pose le tabber sans contenu //// ftabberjs_init_before_display(); /* var c=atcookie+'.0.0.1'; var x=tabbercheck(atcookie,c,true); if(x)getajaxhtmlcontent(atcookie,x,true); */ break; /* case 'carrousel0': myDebug.line=1019;///myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'carrousel0=','result='+result),myDebug.line+stop); //!\standby 25/08/2019 10:18:22 put_content_tabonclick_to_div(result[3]); put_content_tabonclick_to_div(result[2]); /// radiusX:300, /// radiusY:50,//c 10 /// centerX:300, /// centerY:130,//c 50 /// minScale:0.20, /// speed:0.01, /// perspective:20, /// thumbWidth:200, /// thumbHeight:200, /// interval:50, /// idElem:'carrousel0_carrousel', /// classitem:'carrousel_carrousel0_item', /// name:'moving' /// result[4]=new Array(300,50,300,125,0.20,0.01,20,200,200,50,'carrousel0_carrousel','carrousel_carrousel0_item','moving'); ///myApp.carrousel.set(result[4]); ////var init=function() /////{new ligams.carrousel('ligams_carrousel');} // mySlideShow.array1=new Array('slideShowImages0','slideShowButton0'); // mySlideShow.mySlideShow1=new slideShow0(mySlideShow.array1); // window.addEventListener('load',mySlideShow.mySlideShow1,false); //init; //myApp.carrousel=new ligams.carrousel('ligams_carrousel'); //myApp.carrousel=new carrousel0.carrousel('carrousel0_carrousel'); /// myApp.carrousel0=new myApp.fctcarrousel(); /// myApp.carrousel0.set('carrousel0_carrousel',carrousel_settings0); myApp.carrousel=new myApp.fctcarrousel(result[4].split(','));///carrousel_settings0); myApp.carrousel.set(); /// myApp.oldtabber=myApp.konclick; //!\test 10/05/2016 06:45:00 break; */ case 'menuleft': myApp.oldtabber=myApp.konclick; $('#div_menul_nav').remove(); put_content_tabonclick_to_div(result[3]); ////myDebug.GetId(myApp.konclick).innerHTML=result[3]; $('#menul_nav li ul').slideUp(); $('#div_menul_nav').css({'display':'block'}); init_menul_nav_click(); break; } }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} }//c function display_datas_for_animation //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //c function get_arrays_fixed(array){ myDebug.line=1268;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'get_arrays_fixed(array)',kjsstop:os_stop}; tagfct.kjsfct='get_arrays_fixed(array)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ///try{myDebug.line=1057; ///var tagfct = {'file':script_os,'fct':'get_arrays_fixed(array)'},stop=os_stop; var arrayplus=new Array(),j=-1; arrayplus.push(array[0]); for(var i=1;i<9;i++){ if(array[i]) arrayplus.push(array[i]); else arrayplus.push(''); }//c for(var i=1;i<9;i++) arrayplus.push('*'); //c title,oroo,captcha,?,myApp.datetemp,MYSQL ou seulemet XML,boxtype,koclic,ktaer,kpage,* return(arrayplus); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} }//c function get_arrays_fixed //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //c function copy_previous_values_of_form(result){ myDebug.line=1125;try{ ///var tagfct = {'file':script_os,'fct':'copy_previous_values_of_form(result)'},stop=os_stop; tagfct.kjsfct='copy_previous_values_of_form(result)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; if(result[4]&&result[4]=='uploadwwwsite'&&result[5]){ var d=myDebug.GetId('fields_tabber'+result[5]),src,s,sid,styp,sval,did,i,j,items,x,z,xval='';///,dtyp,dval; myDebug.line=823; if(d&&d.value[0]=='$'){ //c '$id_.identity|2_.addresses|3' x=d.value.split('wyz');///,dest=d.value.split('wyz'); items=x[0].split('_.'); for(j=1;j0){did=did.replace('*','');xval=sval*1+20;} }//c *idx_.mcqnamesite.uploadwwwsite } //// if(did==sid)did=sid.replace('.identity','.uploadwwwsite');///dtyp=d[1];dval=d[2]; d=myDebug.GetId(did);//c .replace('.addresses','.uploadwwwsite') if(d){///&&d.value){ switch(styp){ case 'select-one':d.selectedIndex=s.selectedIndex;break; default:d.value=(xval!=''?xval:sval); }//c switch(styp) }//c if(d&&s) }//c if(z!=did) }//c for(var i=0;itrue,'demand'=>'get_article','type'=>$p_type,'content'=>$p_text,'scroll'=>$p_scroll,'cookie_response'=>$_COOKIE['response']); ///1.pro totypes.0.0.div.php ///var iframe=myDebug.GetId("id_iframe0"); ////var idiv=iframe.contentWindow.myDebug.GetId(myApp.konclick); var idiv=get_id_of_object_of_iframe(myApp.konclick); ///if(idiv&&result[3]){ if(idiv&&content&&idiv.innerHTML!=content){idiv.innerHTML=content;} /////var iframe_contents=iframe.contentDocument.body.innerHTML; } if(o){ myDebug.line=1251;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'what='+what,'json='+result['json'],'result[2]='+result[2],'result[3]='+result[3],'result[4]='+result[4]),myDebug.line+stop); if(result['json']){ result[3]=content; result[4]='';if(result['scroll'])result[4]=result['scroll']; } if(result[3]){ if(result[4]) put_content_tabonclick_to_div(result[3],'',result[4]);//!\c content,div,scroll else put_content_tabonclick_to_div(result[3]);/// } ////o.innerHTML=result[3]; else if(what)put_content_tabonclick_to_div(what); ////o.innerHTML=what; } }//c switch(what) myApp.newpost=''; ftabberjs_init_before_display(); copy_previous_values_of_form(result); o=myDebug.GetId('postscroller');if(o){ ByRei_jScroller2.add(o,'up'); } os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]); //================== if($.isFunction(window.fg_ajs_go_actions_after_onclick_steptab)) {///svar t=fg_ajs_go_actions_after_onclick_steptab(motif);if(t)return(t); for(var i=0;i<30;i++){ if(!get_tab_is_checked(i))break; //// if(!load){previous=i;break;} } o=GetName('block'); myDebug.line=1289;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'i='+i),myDebug.line+stop); if(o&&o[i]){ o[i].checked=false; o[i].disabled=false; } } //================== /* x='jdtwl_msg'+idname; myApp.display_message_popup(result[3],msg,'already '+msg,(myDebug.GetId(x)?x:''),'!'); /// if(!x&&result[3])al ert(result2); if($.isFunction(window.jd_set_text_with_langs)){ jd_set_text_with_langs(idname,result); } break; } return(!os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct])); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} } function set_account_from_call_ajax_post(message,make,result){//c 'set_account' myDebug.line=1545;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'set_account_from_call_ajax_post(message,make,result)',kjsstop:os_stop}; tagfct.kjsfct='set_account_from_call_ajax_post(message,make,result)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=1305; ////var tagfct = {'file':script_os,'fct':'set_account_from_call_ajax_post(message,make,result)'},stop=os_stop; var o,i,msg,msgcolor,msgresult,data,calltag; var arraccount=new Array('login_deconnect','open_box_connexion','create_box_connexion', 'demand_params_of_connexion','account_create','account_change_identity','setcookie','donate0'); myDebug.line=1336;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'message='+message,'make='+make,'result[\'json\']='+result['json']),myDebug.line+stop); if(result['json']){ /// $p_fieldslist=array('json'=>true,'demand'=>'account_create','created'=>true,'item_refused'=>$p_refused); myDebug.line=1339;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'message='+message,'make='+make,'result='+result),myDebug.line+stop); switch(result['demand']){ case 'account_create'://c 'account_create': /// if(result['created']){ /// msgcolor=(result['created']?'red':'green'); /// msgresult=result[2];///result2; /// } //c l:1034 ici 'account_create' - 4 - ,1,pseudotry,pseudotry,$i_bodytext,Création réalisée! Merci! Un mail vous est envoyé avec votre mot de passe. /// i=os_connexion_for_call_ajax_post(make[4],result);//c make[4] au lieu de make[0] ///os_connexion_for_call_ajax_post(what,result,message,pseudo) if(result['item_refused']) {myDebug.line=1323; myApp.display_message_popup(true,'','',result['item_refused']);//,id,txtwarning){ setTimeout('myApp.display_popupmain',5); } if(result['bodytext']) {myDebug.line=1329; myApp.display_message_popup(true,result['item_accepted']);//,id,txtwarning){ setTimeout('myApp.display_popupmain',5); } //c return(array('json'=>true,'demand'=>'account_create','created'=>true,'bodytext'=>$i_bodytext,'item_accepted'=>$i_accepted,'$i_confirmation'=>$i_confirmation)); ///myApp.display_message_popup=function(test,txtok,txterror,id,txtwarning){ ////msgcolor=i[0];msgresult=i[1]; /// if(i[0]){myApp.display_popupmain('');} return(true); break; }//c switch(result['demand']) return(new Array(msg,msgcolor,msgresult,data)); }//c if(result['demand']) myDebug.line=1369;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'message='+message,'make='+make,'result='+result),myDebug.line+stop); i=js_in_array(arraccount,message); if(make=='find')return(i>=0?'set_account':''); ///if(i>=0) i=js_in_array(arraccount,make[4]); make[0]=i; myDebug.line=1107; switch(make[0]){ case 0://c 'login_deconnect': os_connexion_for_call_ajax_post(make[4],result);break;//c make[4] au lieu de make[0] case 1://c 'open_box_connexion': data=os_connexion_for_call_ajax_post(make[4],result,message,make[2]);break;//c make[4] au lieu de make[0] case 2://c 'create_box_connexion': i=os_connexion_for_call_ajax_post(make[4],result);//c make[4] au lieu de make[0] if(i[0]){msg=i[0];msgcolor=i[1];msgresult=i[2];} break; case 3://c 'demand_params_of_connexion': case 4://c 'account_create': //c l:1034 ici 'account_create' - 4 - ,1,pseudotry,pseudotry,$i_bodytext,Création réalisée! Merci! Un mail vous est envoyé avec votre mot de passe. i=os_connexion_for_call_ajax_post(make[4],result);//c make[4] au lieu de make[0] ////msgcolor=i[0];msgresult=i[1]; if(i[0]){myApp.display_popupmain('');} break; case 5://c 'account_change_identity': if(result[1]){ msgcolor=(result[1]?'green':'red'); msgresult=result[2];///result2; } break; case 6://c 'setcookie': /* myDebug._al ert(new Array(tagfct[kjsfct],1270,tagfct[kjsfile],'i='+i)); myDebug._al ert(new Array('SetCookie',154,'get_connection.php',make[1],make[2],myApp.cookietime*2,make[3])); D ebug :SetCookie - line:154 - file:get_connection.php - myApp.debug:1 - arg3:iservice - arg4:shop - arg5:10 - arg6:true - yommon/general/js/debug-d.js l8 */ /// SetCookie(make[1],''); myDebug.line=1407; switch(make[1]){ case 'language':isApplication.lang=make[2];make[1]='klang';break; case 'country': o=myDebug.GetId('id_left_flag_country'); if(o){ o.title=make[2]; o.src=o.src.replace('/'+isApplication.country+'.','/'+make[2]+'.'); } isApplication.country=make[2];make[1]='kcountry';break; default:break; } myDebug.line=1149; myDebug.SetCookie(make[1],make[2],myApp.cookietime*2); myDebug.line=1151; if(make[3]&&make[3]==true)document.location.reload(true);//c ex: true with iservice break; ////SetCookie('klang',lang,myApp.cookietime); //window.location.href=window.location.href; ///document.location.reload(true); ///// if(make[4])make[2]+='##'+make[4];//c ex: subplace ////y=make[2].split('##'); } myDebug.line=1161; return(new Array(msg,msgcolor,msgresult,data)); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} } function call_ajax_post_synchrone(file,allarray,demand,option){///'file_exists'){ myDebug.line=1653;try{ ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'call_ajax_post_synchrone(file,allarray,demand,option)',kjsstop:os_stop}; tagfct.kjsfct='call_ajax_post_synchrone(file,allarray,demand,option)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=1384; ////var tagfct = {'file':script_os,'fct':'call_ajax_post_synchrone(file,allarray,demand,option)'},stop=os_stop; myDebug.line=1438;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'file='+file,'demand='+demand,'option='+option),myDebug.line+stop); var result='!result',status='!status';//,fct=tagfct[kjsfile]+'/call_ajax_post_synchrone(file,allarray)'; var option=(option?option:''); var srcfile=callfile=file; ///var out={'tagfct':tagfct[kjsfct],'fct':fct,'line':myDebug.line,'status':status,'result':result}; var returnout='returnout'; if(demand)allarray['function']=demand; switch(demand){ case 'file_exists'://c contrôle de l'existence du fichier callfile=myApp.kDIR_xommon+'/'+'functions-c'+myApp.kextph; allarray['params']=srcfile; allarray['option']=option; allarray['NAMESITE']=myApp.NAMESITE; break; default: callfile=srcfile; } myDebug.line=1454;///myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'file='+file,'callfile='+callfile),myDebug.line+stop); $.ajax({ type: 'POST', url: callfile, data: allarray, success: function(data,status){ //=== myDebug.line=1461;var formatdata=check_data_after_ajax_call(data,status,tagfct[kjsfct],tagfct[kjsfile],'file='+file+myDebug.chrrc+'callfile='+callfile,myDebug.line); if(!formatdata){return(false);} var jsonResponsedata=formatdata['jsonResponsedata'],result=formatdata['result'],result2=formatdata['result2']; var error=formatdata['error'],scroll=formatdata['scroll'],content=formatdata['content'],targetdiv=formatdata['targetdiv']; var synchrocontenttargetdiv=formatdata['synchrocontenttargetdiv'],calltype=formatdata['calltype']; //=== myDebug.line=1486;var called=result['call']; myDebug.line=1490;///myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'result[\'json\']='+result['json'],'result[\'pass\']='+result['pass'],'result[\'call\']='+called),myDebug.line+stop); ///$_POST{"DIR_NAMESITE":"beforegod","fixed":["common-d.j,jsftoigc,globalcertif-c,571","","","\/\/2019-04-03 08:19:15","","10000","true","\/beforegod\/tpl\/ebooks\/ebook\/","..\/..\/..\/..\/strangers\/xommon!!!!","fr\/fr\/fr","false","","","","##1####","","true\/true\/true\/false","ebooks","anonymous","free ma.kstandardformatdate","false","18\/05\/2015","","\/","1200","\u20ac","free ma.resume","beforegod","free get_formatted_date('date+hour')","","ebooks","",""],"plus":["what","globalcertif","action","check","value","adm0123456","site","undefined,ebook,demo,undefined,beforegod"],"fing_collaborative_involvement":"null"} - success - ///{"call":"globalcertif","pass":"adm0123456","rights":"rw_","flength":1000} - success - 1 $p_cookietime switch(called){ case 'globalcertif'://c contrôle du certificat var o=parent.myDebug.GetId('id_'+called),pass=result['pass'],rights=result['rights'],cookietime=result['cookietime'],flength=result['flength']; if(pass==1){ parent.myApp.infos=returnout=(pass==rights); if(parent.myApp.infos){ o.value=''; myDebug.SetCookie(called,o.value,cookietime); } } else if(pass==0)returnout=parent.myApp.infos=false; else{ // ::globalcertif::adm0123456::rw_ - success - true if(o)parent.myApp.infos=returnout=(pass==o.value); if(parent.myApp.infos)myDebug.SetCookie(called,o.value+'|'+rights,cookietime); } /* inutilisable avec json else if(result.isOk == false) */ if(!parent.myApp.infos)alert('C:\res\scripts\js\os-c.js.php Enter correct certificate !'); break; case 'file_exists'://c 'call']='file_exists' file_deport myDebug.line=1516;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'called='+called,'dir_lower0='+result['dir_lower0'],'result='+result,'result[file]='+result[kjsfile],'result[exists_file_deport]='+result['exists_file_deport']),myDebug.line+stop); /* file_exists ! - dir_ lower0= - result={"call":"file_exists","exists_file_deport":true,"file_deport":"..\/..\/usr-i\/alltpl\/tpl\/root\/daily\/1.daily.0.0.div.php","file":"..\/..\/usr-i\/alltpl\/tpl\/root\/daily\/1.daily.0.0.div.php","exists_params":false,"dir_lower0":"","dir_lower":"..\/..","basesite":"ws"} - jsonResponse[file]=../../usr-i/alltpl/tpl/root/daily/1.daily.0.0.div.php - jsonResponse[exists_file_deport]=true - jsonResponse[exists_file_deport]=true */ ////parent.myApp.infos={'file':jsonResponse['file_deport'],'exists':jsonResponse['exists_file_deport']}; ///parent.myApp.infos={'file':jsonResponse[kjsfile],'exists':jsonResponse['exists_file_deport']}; ///parent.myApp.infos=returnout={'file':jsonResponse[kjsfile],'exists':jsonResponse['exists_file_deport']}; returnout={'exists':result['exists_params'],'exists_deport':result['exists_file_deport'],'file':result[kjsfile]}; break; default: myDebug.line=1532;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'called='+called,'result='+result),myDebug.line+stop); }//switch(jsonResponse['call']) /// }//if(status=='success') ///if(result)return(result); },//c function(result,status) async: false }); //// return(parent.myApp.infos); ///al ert('lj:1493 os.js returnout='+returnout); os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]); return(returnout); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} ///}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,out,file,myDebug.line);} ///}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,'error:'+myDebug.chrrc+'tagfct: '+tagfct+''+myDebug.chrrc+'fct: '+fct+''+myDebug.chrrc+'myDebug.line: '+myDebug.line+''+myDebug.chrrc+'status: '+status+''+myDebug.chrrc+'resu lt: '+result);} }//function call_ajax_post_synchrone(file,allarray) function js_file_exists(file,option,allarray){ try{ ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'js_file_exists(file,option,allarray)',kjsstop:os_stop}; tagfct.kjsfct='js_file_exists(file,option,allarray)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=1492; ////var tagfct = {'file':script_os,'fct':'js_file_exists(file,option,allarray)'},stop=os_stop; if(!allarray){ var cookieref='fing_collaborative_involvement'; var o1={'function':'file_exists','params':file,'basesite':myApp.ktagdir,'NAMESITE':myApp.NAMESITE,'dir_images':myApp.kDIR_images}; var o2={'kDIR_NAMESITE':myApp.NAMESITE};///,'fixed[]':params[0],'plus[]':params[1]}; ////var o2={'NAMESITE':myApp.NAMESITE,'kDIR_NAMESITE':myApp.ktagdir};///,'fixed[]':params[0],'plus[]':params[1]}; var o3={cookieref:GetCookie(cookieref)}; allarray=Object.assign({}, o1, o2, o3); } var num=0; option=(option?option:''); //=== var res=call_ajax_post_synchrone(file,allarray,'file_exists',option); if(res){ num=(res['exists']?(res['exists_deport']?3:1):0); if(!res['exists']){ file=''; if(res['exists_deport']){ file=res[kjsfile]; num=2;//c file deport existe et est renvoyé ///xfile=xfile.replace('ws-i','usr-i'); ///xfile=xfile.replace('tpl/root/tools','tpl/root/lefttabmenu/tools'); }//c if(res['exists_deport']) }//c if(!res['exists']) }//c if(res) return({'status':num,'file':file}); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} } function call_ajax_post(file,array,arraysrc,make,verified,synchrone,source){ myDebug.line=1785;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'call_ajax_post(file,array,arraysrc,make,verified,synchrone,source)',kjsstop:os_stop}; tagfct.kjsfct='call_ajax_post(file,array,arraysrc,make,verified,synchrone,source)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=1523; ////var tagfct = {'file':script_os,'fct':'call_ajax_post(file,array,arraysrc,make,verified,synchrone,source)'},stop=os_stop; var ret=true,callok='';os_display_popuploader(ret,tagfct[kjsfile],tagfct[kjsfct],file); //c http://www.w3schools.com/js/js_arrays.asp array //c http://julienrenaux.fr/2012/09/13/javascript-associative-arrays/ var o,i,x,y,message,msg='',msgresult,msgcolor='green',called=false,entry=false; if(file&&file.substring(0,1)=='/'){ ////if(file&&file.substring(file,0,1)=='/'){ msg=' - file='+file; msg+=' - myApp.klistfor_dbsearch='+myApp.klistfor_dbsearch; msg+=' - myApp.klistfor_map='+myApp.klistfor_map; /// msg+=' - myApp.kDIR_I0='+myApp.kDIR_I0;// myApp.kDIR_I0=../../ws-i/dailybaby msg+=' - myApp.kdir_www='+myApp.kdir_www;// myApp.kDIR _WWW= dev ou try ou prod msg+=' - myApp.ktagdir='+myApp.ktagdir; msg+=' - myApp.NAMESITE='+myApp.NAMESITE; } myDebug.line=1598;///myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'msg='+msg),myDebug.line+stop); var param1=(file==''),param2=!(isArray(array)); var data,status,result,error=(param1||param2),allarray; var tarray=get_arrays_fixed(arraysrc);tarray=tarray.concat(array); var params=get_arrays_ajax(tarray); myDebug.line=1604; ///$\i_cookieref var cookieref='fing_collaborative_involvement'; //=== if(0||!myApp.ktagdir||!myApp.NAMESITE||!myApp.subsite){ myDebug.line=1610;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'myApp.NAMESITE='+myApp.NAMESITE),myDebug.line+stop); } var o1={'function':'','params':'','basesite':myApp.ktagdir,'dir_images':myApp.kDIR_images}; var o2={'NAMESITE':myApp.NAMESITE,'fixed[]':params[0],'plus[]':params[1]}; ///var o2={'NAMESITE':myApp.NAMESITE,'kDIR_ NAMESITE':myApp.ktagdir,'fixed[]':params[0],'plus[]':params[1]}; var o3={cookieref:GetCookie(cookieref)}; //=== if(verified){ //myApp.kDIR_lower x=myApp.params.split(myApp.sepofcontrol);y=myApp.values.split(myApp.sepofcontrol); var o4={'fields[]':x,'values[]':y}; allarray=Object.assign({}, o1, o2, o3, o4); /// allarray={'function':'','params':'','basesite':myApp.ktagdir,'dir_images':myApp.kDIR_images,'DIR_ NAMESITE':myApp.NAMESITE,'fixed[]':params[0],'plus[]':params[1],'fields[]':x,'values[]':y,'fing_collaborative_involvement':GetCookie(cookieref)}; } else allarray=Object.assign({}, o1, o2, o3); /// allarray={'function':'','params':'','basesite':myApp.ktagdir,'dir_images':myApp.kDIR_images,'DIR_ NAMESITE':myApp.NAMESITE,'fixed[]':params[0],'plus[]':params[1],'fing_collaborative_involvement':GetCookie(cookieref)};//,'appli[]':array};//array.concat(array2); //=== ///allarray=Object.assign({}, o1, o2, o3, o4); myDebug.line=1446; // load the page : position:relative;top:-5px; ???? myApp.callajaxrunning=false; var callphpok='beforeCALLajax',response; //c 'afterCALLajax' //// if(myApp.showlang)al ert('lj:1256 '+tagfct[kjsfile]+' myApp.showlang='+myApp.showlang); if(!file||!allarray) {myDebug.line=1634;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'file='+file),myDebug.line+stop); } ///if(arraysrc[0]=='starthtml'||synchrone)return(call_ajax_post_synchrone(file,allarray)); if(synchrone)return(call_ajax_post_synchrone(file,allarray)); ///if(synchrone)return(call_ajax_post_synchrone(file,allarray)); var x=file.split('/'); x=x[x.length-1].split('.'); ///al ert('1595 os.js x='+x); //if(x[1]&&x[1]!='masterworldtabber'){ var res=call_ajax_post_synchrone(file,allarray,'file_exists'); ///var res=parent.myApp.infos; if(res) if(!res['exists_params']) if(res['exists_deport']){ file=res[kjsfile]; } else if(!file) { myDebug.line=1656;///myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'not file='+file),myDebug.line+stop); os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]);return(null); } //}//c if(x[1]&&x[1]!='masterworldtabber') //al ert('1731 os.js '+myDebug.chrrc+' file='+file); ////alert_for_msg_for_debug('call $.post kislocalsite '+myDebug.chrrc+' line=1645 '+''+myDebug.chrrc+'tagfct[\'fct\']='+tagfct[kjsfct]+''+myDebug.chrrc+'tagfct[\'file\']='+tagfct[kjsfile]+''+myDebug.chrrc+'file='+file); $.post(file,allarray,function(data,status){ //al ert('1734 os.js '+myDebug.chrrc+' data='+data+''+myDebug.chrrc+' status='+status); /* $.post line=1631 tagfct[kjsfct]=call_ajax_post(file,array,arraysrc,make,verified,synchrone,source) tagfct[kjsfile]=os-c.js file=../../strangers/xommon/connexion/form_reading.php data=::1::Michel.B123::Michel.B123::From: prototypes X-Mailer: PHP/5.3.4 Content-type: text/plain; charset=utf-8 TO: i_to_email_address REPLY: noanswer@127. 0.0.1 WHAT: a [infos:,fr] BODY: ::Création de votre compte réalisée! Merci! '+myDebug.chrrc+' Un mail vous est envoyé avec votre mot de passe.::http://127. 0.0.1/myproducts_sites/ws/prototypes/?confirmcreate=�75N3Z4u8x2XJ7DGzQKVT676j65tf89ckWn9idMRHY36F932/30/7291$!:hg.yrt@321B.lehciM$!:321B.lehciMeuqisyhP$!:rehtom_ruoy_fo_emantsrif.1$!:29$!:owspqrhUIbQ967v38S8XRemL9E64CV8YJgk2ty897WTZcn testmake=undefined */ //=== /* myDebug.line=1634;var decrypt_data_callpost=debug_search_fatal_error_in_data(data,status,tagfct[kjsfct],tagfct[kjsfile],file,myDebug.line,400); //c result['ret'] result['error'] result['type']json,::,other result['data'] ///myDebug.line=1632;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],''+myDebug.chrrc+' IN CALL AJAX POST '+myDebug.chrrc+'','file='+file,'decrypt_data_callpost='+decrypt_data_callpost),myDebug.line+stop); if(!decrypt_data_callpost['ret']){ myDebug.line=1694;myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],''+myDebug.chrrc+' IN CALL AJAX POST '+myDebug.chrrc+'','stop='+file),myDebug.line+stop); os_display_popuploader(true,tagfct[kjsfile],tagfct[kjsfct],data);return(false); } myDebug.line=1697;myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],''+myDebug.chrrc+' IN CALL AJAX POST '+myDebug.chrrc+'','stop='+file),myDebug.line+stop); var jsonResponsedata=(decrypt_data_callpost['type']=='json'),result=decrypt_data_callpost['data'],result2=decrypt_data_callpost['result2']; var error=decrypt_data_callpost['error'], scroll=result['scroll']=(decrypt_data_callpost['scroll']?decrypt_data_callpost['scroll']:''), content=result['content']=(decrypt_data_callpost['content']?decrypt_data_callpost['content']:''), targetdiv=result['targetdiv']=(decrypt_data_callpost['targetdiv']?decrypt_data_callpost['targetdiv']:''); myDebug.line=1703;myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'error='+error,'targetdiv='+targetdiv,'result2='+result2,'content='+content),myDebug.line+stop); if(error){os_display_popuploader(true,tagfct[kjsfile],tagfct[kjsfct],data);return(false);} var synchrocontenttargetdiv=(content&&targetdiv&&targetdiv!=''); */ //=== myDebug.line=1684;var formatdata=check_data_after_ajax_call(data,status,tagfct[kjsfct],tagfct[kjsfile],'file='+file,myDebug.line); if(!formatdata){return(false);} var jsonResponsedata=formatdata['jsonResponsedata'],result=formatdata['result'],result2=formatdata['result2']; var error=formatdata['error'],scroll=formatdata['scroll'],content=formatdata['content'],targetdiv=formatdata['targetdiv']; var synchrocontenttargetdiv=formatdata['synchrocontenttargetdiv'],calltype=formatdata['calltype']; //=== //=== /* var jsonResponsedata=(decrypt_data_callpost['type']=='json'),jsonResponse=result=decrypt_data_callpost['data'],result2=decrypt_data_callpost['result2']; if(decrypt_data_callpost['type']=='json') {jsonResponsedata=true;result=decrypt_data_callpost['data'];} else if(decrypt_data_callpost['type']=='::') {result=decrypt_data_callpost['data'];result2=(result[2]&&result[2].length<20?result[2]:result[1]);} else result=data; */ //=== callphpok='afterCALLajax',myApp.callajaxrunning=true,called=error,entry=true; //// var testmake=(make&&make[0]?make[0]:'unknow'); var testmake=(make&&make[0]),tagmake=(testmake?make[0]:'unknow'); /* var jsonResponsedata=jsonResponse=''; try { jsonResponse=JSON.parse(data); jsonResponsedata=true; } catch(e) { var result=data.split('::'),result2=(result[2]?result[2]:''); } */ ///al ert('$.post '+myDebug.chrrc+' line=1649 '+''+myDebug.chrrc+'tagfct[\'fct\']='+tagfct[kjsfct]+''+myDebug.chrrc+'tagfct[\'file\']='+tagfct[kjsfile]+''+myDebug.chrrc+'jsonResponse='+jsonResponse+''+myDebug.chrrc+'data='+data); /* $.ajax({ type: 'POST', url: url, data: data, success: success, dataType: dataType, async:false }); jQuery.ajax({ url: url, success: function(result) { if(result.isOk == false) al ert(result.message); }, async: false }); */ //// os_display_popuploader(true,tagfct[kjsfile],tagfct[kjsfct]);//!\review 29/03/2017 11:17:04 /* if(xhr){ response=xhr.responseText;///jsonResponse='no'; jsonResponse=JSON.parse(xhr.responseText); myDebug._al ert(new Array(tagfct[kjsfct],1609,tagfct[kjsfile],'data='+data,'status='+status,'xhr='+xhr,'jsonResponse='+jsonResponse)); } */ myDebug.line=1750; /* data reçu avec un echo json_encode($_POST);exit; {"DIR_ NAMESITE":"demo","fixed":["intro_tabber-d.j","","","Y-m-d H:i:s\/602623932\/2017-03-26 12:05:39", "","10000","true","\/demo\/empty4i\/root\/empty4i\/","..\/xommon!!..\/..\/images!!.","fr\/fr\/gb", "false","","0.paper.0.0.div","","theone !? 0 !? 2015 !? theone,0,0.paper.0,1##1####","","false\/false\/1\/false", "free ma.newpost","anonymous","free ma.kstandardformatdate","false","04\/02\/1956","0.paper.0.0.div", "noanswer@127. 0.0.1\/","free ma.country","eur,euro,?","free ma.resume","empty4i", "free get_formatted_date('date+hour')","","root"],"fields":[""],"values":[""]} */ ////al ert('$.post '+myDebug.chrrc+' line=1651 '+''+myDebug.chrrc+'tagfct[\'fct\']='+tagfct[kjsfct]+''+myDebug.chrrc+'tagfct[\'file\']='+tagfct[kjsfile]+''+myDebug.chrrc+'file='+file+''+myDebug.chrrc+'data='+data+''+myDebug.chrrc+'testmake='+testmake); if(source) {myDebug.line=1777;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'file='+file,'source='+source,'synchrone='+synchrone,'allarray='+allarray,'arraysrc='+arraysrc,'make='+make,'data='+data),myDebug.line+stop); } myDebug.line=1780;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'result[2]='+result[2],'tagmake='+tagmake,'testmake='+testmake,'make='+make),myDebug.line+stop); if(!jsonResponsedata)set_order_into_result2(result); /// 1,money,cest le contenu de money myDebug.line=1783;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'result[2]='+result[2],'tagmake='+tagmake,'testmake='+testmake,'make='+make),myDebug.line+stop); //======= myDebug.line=1785; if(testmake){//c calls from make_tabber myDebug.line=1787;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'tagmake='+tagmake),myDebug.line+stop); if(make[1]){ make[1]=make[1].replace('$',''); if($('#'+make[1])) message=$('#'+make[1]);//make[1]; else message=make[1];//make[1]; } myDebug.line=1795; msg=(message?message.html():''); if(msg&&message){ message.css({'background-color':msgcolor}); message.html('work in progress'); } if(!error){ if(result[1]){ msgcolor=(result[1]?'green':'red'); if(result2)msgresult=result2; } /* var arraccount=new Array('login_deconnect','open_box_connexion','create_box_connexion', 'demand_params_of_connexion','account_create','account_change_identity','setcookie'); */ x=set_account_from_call_ajax_post(make[0],'find',result);///(jsonResponsedata?jsonResponse:result));//c 'set_account' ///al ert('lj:1796 os.js x='+x); if(x=='set_account'){make[4]=make[0];make[0]=x;} /* y=set_make_tabber_from_call_ajax_post(make[0],'find'); if(x=='set_mktab')make[0]=y; */ ////parent.myApp.infos='entry '+make; var actualmyAppkonclick=myApp.konclick; switch(make[0]){ case 'update_post'://c nombre de visites break; case 'get_boot_cfg_jsph0': myDebug.line=1823;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'make[0]='+make[0]),myDebug.line+stop); js_set_screen_dimension();break; case 'display_popupmain':///,boxtype,arr ///al ert('lj:1813 os.js make[1]='+make[1]+' '+myDebug.chrrc+' result='+result); set_display_popupmain_from_call_ajax_post(make[1],result);break; case 'updatefile': ////return(os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct])); break; case 'make_tabber': make=false; ///var synchrocontenttargetdiv=(result['content']&&result['targetdiv']&&result['targetdiv']!=''); myDebug.line=1834;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'synchrocontenttargetdiv='+synchrocontenttargetdiv,'targetdiv='+targetdiv,'result2=',result2,'content='+content),myDebug.line+stop); ///al ert_for_msg_for_debug('lj:1831 os.js synchrocontenttargetdiv='+synchrocontenttargetdiv+' '+myDebug.chrrc+' targetdiv='+targetdiv); if(synchrocontenttargetdiv&&$('#'+targetdiv)){ var contentdiv=$('#'+targetdiv).html();//c ça ne marchepas parce qu'il doit y avoir une minime différence peut-être un n° identifiant ?? différent if(content!=contentdiv){ myApp.konclick=targetdiv;put_content_tabonclick_to_div(content); /// run_ByRei_jScroller2(1,result[3],'400px'); if(scroll)run_ByRei_jScroller2(1,scroll,'400px'); /// if(scroll)run_ByRei_jScroller2(1,'help0','400px'); /* switch(result[3]){ case 'help':run_ByRei_jScroller2(1,'help0','400px'); case 'ljdp':run_ByRei_jScroller2(1,'help0','400px'); }'call'=>$p_type */ if(result['call']=='carrousel0'){ /// radiusX:300, /// radiusY:50,//c 10 /// centerX:300, /// centerY:130,//c 50 /// minScale:0.20, /// speed:0.01, /// perspective:20, /// thumbWidth:200, /// thumbHeight:200, /// interval:50, /// idElem:'carrousel0_carrousel', /// classitem:'carrousel_carrousel0_item', /// name:'moving' /// result[4]=new Array(300,50,300,125,0.20,0.01,20,200,200,50,'carrousel0_carrousel','carrousel_carrousel0_item','moving'); ///myApp.carrousel.set(result[4]); myApp.carrousel=new myApp.fctcarrousel(result['params'].split(','));///carrousel_settings0); myApp.carrousel.set(); } } os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]); } else set_make_tabber_from_call_ajax_post(result2,result); break; case 'set_account': i=set_account_from_call_ajax_post(message,make,result);///(jsonResponsedata?jsonResponse:result)); msg=i[0];msgcolor=i[1];msgresult=i[2];data=i[3]; break; case 'gallerychange': gallerychange_into_call_ajax_post(result);break; case 'mapchange': myDebug.line=1860;///myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'make[0]='+make[0],'tagmake='+tagmake),myDebug.line+stop); mapchange_into_call_ajax_post(result); break; case 'menu_enrollment_person': if(result2=='copy') if($('#'+result[3]))$('#'+result[3]).html(result[4]); break; case 'search_mail_available': if(result[1]){ msgcolor=(result[1]?'green':'red'); msgresult=result2+':'+result[3];} break; case 'update_comment': myDebug.line=1874;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'result2='+result2),myDebug.line+stop); if(result[1]){ msgcolor=(result[1]?'green':'red'); msgresult=result2; } //c rafraichir page make_tabber(result[3],true); /// make_ tabber('1.daily.0.1.div',true); /// show_tabber('1.comments.0.0.div',1,'michelb !? 0 !? 2014','daily'); myApp.display_popupmain(''); break; case 'update_article': myDebug.line=1886;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'result2='+result2,'tagmake='+tagmake),myDebug.line+stop); //ligne 229 ::1:: ::1.daily.0.0.div::anonymous!?7!?2014!?127. 0.0.1 if(result[1]){ msgcolor=(result[1]?'green':'red'); msgresult=result2; } //c rafraichir page if(result[4]){ myApp.newpost=result[4]; make_tabber(result[3],true); } if(result[5]&&result[5]=='update') myApp.display_popupmain(''); break; case 'evaluate_article': if(result[1]){ msgcolor=(result[1]?'green':'red'); msgresult=result2; myDebug.line=1906;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'result2='+result2,'tagmake='+tagmake),myDebug.line+stop); } myApp.display_popupmain(''); break; //========= case 'display_catalog': put_content_tabonclick_to_div(result2); ////myDebug.GetId(myApp.konclick).innerHTML=result2; break; case 'get_ref_article': if(result[1]){ msgcolor=(result[1]?'green':'red'); msgresult=result2; myDebug.line=1919;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'result2='+result2,'tagmake='+tagmake),myDebug.line+stop); ///infobulle_onmouseover(myApp.infobulle1,'infobulle1',5,'div_popup_profil2'); ////myApp.infobulle1.show(msgresult); //'$i_infos_post'); /// myDebug.GetId('div_popup_article').value=result[3]; infobulle_onmouseover(myApp.infobulle1,'infobulle1',6,'div_popup_article'); } break; default: }//c switch(make[0]) ////myApp.konclick=(synchrocontenttargetdiv?targetdiv:actualmyAppkonclick); }//c if(!error) make=(make=='get_boot_cfg_jsph0'?make:false); }//c if(testmake) if(message&&msgresult){ message.css({'background-color':msgcolor}); message.html(msgresult); } if(make){ //!\postit automatic load konclick myDebug.line=1941;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'before show tabber','myApp.konclick='+myApp.konclick,make),myDebug.line+stop); make_tabber(myApp.konclick,true); } callphpok='endCALLajax'; //c 'afterCALLajax' ////os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]); }//c $.post(file,allarray,function(data,status) ); /* var s='scrollpaperhelp0',a=myDebug.GetId(s); if(a&&myApp.konclick=='0.help.0.1.div'&&!myApp.scrollpaperhelp0){run_ByRei_jScroller2(true,'help0','400px');myApp.scrollpaperhelp0=true;al ert('lj:1467 myApp.konclick='+myApp.konclick);} */ var msgcallpost='CALL POST CRASH'; msgcallpost=(callphpok=='beforeCALLajax'?msgcallpost:''); if(!myApp.callajaxrunning||msgcallpost){//c warning ajax asynchrone myDebug.line=1957;stop=1;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'myApp.konclick='+myApp.konclick,'callphpok='+callphpok,'stop='+stop),myDebug.line+stop); } myApp.callajaxrunning=false; myDebug.line=1960;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'result2='+result2,'tagmake='+tagmake),myDebug.line+stop); os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]);//!\review 29/03/2017 11:17:04 ////ftabberjs_init_before_display(); ////if(callok!='')return(callok); if(!entry||ret)return(!os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]));//c stop display }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} }//c function call_ajax_post //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\ //c //+ =================fonctions OS/navigation ================= // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function infos(){ myDebug.line=2216;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'infos()',kjsstop:os_stop}; tagfct.kjsfct='infos()'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=1857; ////var tagfct = {'file':script_os,'fct':'infos()'},stop=os_stop; // on teste d'abord si Java est bien activé if(navigator.javaEnabled()){ // on intercepte les informations générales sur la machine adresse=java.net.InetAddress.getLocalHost(); // on en retire le nom de la machine machine=adresse.getHostName(); // on en retire l'adresse IP de la machine ip=adresse.getHostAddress(); } else { // si java n'est pas activé ip="Java n'est "; machine="pas active"; } // on affiche les données dans le formulaire document.formulaire.ip.value=ip; document.formulaire.machine.value=machine; }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} } //- =================fonctions OS/navigation ================= //+ =================fonctions OS/navigateur ================= // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function js_root_nav_dim(what){ myDebug.line=2249;try{ ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'js_root_nav_dim(what)',kjsstop:os_stop}; tagfct.kjsfct='js_root_nav_dim(what)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ///try{myDebug.line=1887; ///var tagfct = {'file':script_os,'fct':'js_root_nav_dim(what)'},stop=os_stop; var winW,winH; if(parseInt(navigator.appVersion)>3){ if(navigator.appName=="Netscape"){ winW=window.innerWidth-16; winH=window.innerHeight-16; } if(navigator.appName.indexOf("Microsoft")!=-1){ winW=document.body.offsetWidth-20; winH=document.body.offsetHeight-20; } } if(what=="h")return(winH); if(what=="w")return(winW); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} } //- =================fonctions OS/navigateur ================= //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function os_get_datas_motifs_tab_appli(motif){// foundmotif myDebug.line=2273;try{ ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'os_get_datas_motifs_tab_appli(motif)',kjsstop:os_stop}; tagfct.kjsfct='os_get_datas_motifs_tab_appli(motif)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ///try{myDebug.line=1908; ///var tagfct = {'file':script_os,'fct':'os_get_datas_motifs_tab_appli(motif)'},stop=os_stop; //!\review 08/03/2017 20:05:37 ///var tabsappli=new Array('oneposts','rpanel','menuleft','lefttabmenu','recruitment','contest','registrationx0','registration','actionsarticle','createsimplewwwsite','uploadwwwsite'); var tabsappli=new Array('oneposts','rpanel','menuleft','lefttabmenu','forms_simple','recruitment','registrationx0','registration','actionsarticle','createsimplewwwsite','uploadwwwsite'); if(!motif)return(tabsappli); var tagcalled=(motif.substring(0,1)=='$'); if(tagcalled)return('$'); ///if(motif=='university')return(motif); for(var i=0;i=0){ select.selectedIndex=index; var tab=fg_osjs_get_infos_of_select(select); if(vort=='v') selected=(tab[0]==select.options[index].value); if(vort=='t') selected=(tab[1]==select.options[index].text); }//c if(set&&index>=0) return(new Array(index,vort,selected)); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} }//c function search_index_of_option_and_set_or_not(select,option,set) //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //c function mdp_is_valid(mdp){ myDebug.line=2352;try{ ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'mdp_is_valid(mdp)',kjsstop:os_stop}; tagfct.kjsfct='mdp_is_valid(mdp)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; //a lert('ici :'+mdp); var msg=''; if(mdp.length<8)msg+='not long enough'; return(msg); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} //// }//c function mdp_is_valid(mdp) //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //c function test_mail(mail){ myDebug.line=2364;try{ ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'test_mail(mail)',kjsstop:os_stop}; tagfct.kjsfct='test_mail(mail)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; //c E:\myproducts_sites\php\common\general\js\save\os-d.js var re=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return(re.test(mail)); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} //// }//c function test_mail(mail) //c \\\\\\\\\\\\\\\\\\\\\\\\\\\ //c function concat_msg_verify_fields(msg,comment,plus){ myDebug.line=2375;try{ ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'concat_msg_verify_fields(msg,comment,plus)',kjsstop:os_stop}; tagfct.kjsfct='concat_msg_verify_fields(msg,comment,plus)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; msg+=(msg?' - ':'')+(comment?comment:'')+(plus?' '+plus:''); return(msg); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} //// }//c function mdp_is_valid(mdp) //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function verify_fields(array,displaymsg){ myDebug.line=2383;try{ ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'verify_fields(array,displaymsg)',kjsstop:os_stop}; tagfct.kjsfct='verify_fields(array,displaymsg)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; myDebug.line=2113;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'function verify_fields(array,displaymsg)','myApp.konclick='+myApp.konclick,'callphpok='+callphpok),myDebug.line+stop); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} //// } myApp.verify_fields=function(array,displaymsg){ myDebug.line=2392;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'myApp.verify_fields=function(array,displaymsg)',kjsstop:os_stop}; tagfct.kjsfct='myApp.verify_fields=function(array,displaymsg)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; //var erreur=myApp.verify_fields('connexion',fieldsarray,true); //myApp.test=2; //myApp.test=''; // test les valeurs dans les forms selon la liste des champs et des valeurs attendues // exemple:norobo0::pseudo0::password0::captcha0 // ::*::*::set_captcha0 // myApp.verify_fields('norobo0::pseudo0::password0::captcha0','::*::*::set_captcha0'); // valeur attendues:'!*' vide,'*' non vide,'=?' où?peut être une valeur // ou le nom d'un autre champ ///try{myDebug.line=2008; ///var tagfct = {'file':script_os,'fct':'myApp.verify_fields=function(array,displaymsg)'},stop=os_stop; ///var tagfct = 'myApp.verify_fields'; ///mjsreplaceall+strings-c.js+'; var arrayidx=arrayfieldsnames=arrayvalues=arraycomments=''; var sep=myApp.sepofcontrol; for(var i=0;i '+i+ ' ['+fields[i]+']'+ ' ['+fields[i+1]+']'); //msg='there is no argument:'+comments[i]+ ' -> '+i+ ' ['+fields[i]+']'+ ' ['+fields[i+1]+']'; break; } } if(msg==''){ var thevalue='',valuei=''; for(i=0;i1)){ //il y a pas de commandes valuei=valuei.substring(1); test=(test.value==myDebug.GetId(valuei).value); if(!test) //msg=comments[i]; msg=concat_msg_verify_fields('',comments[i]); }//c if(!(commande.length>1)) else{//c else if(!(commande.length>1)) //il y a des commandes =password0!pass! ou =!length!4 // =pseudo0!pseudo! ou =mail0!mail! ou =age0!age! commande[0]=commande[0].trim(); commande[1]=commande[1].trim(); commande[2]=commande[2].trim(); if(myDebug.GetId(commande[2])) obj=myDebug.GetId(commande[2]);//if(!obj)msg='codejs? '; else obj=commande[2];//if(!obj)msg='codejs? '; var idx=text[i]; //text.indexOf(commande[1]); var msgtext='see '+ text[i]; //text[idx]; test=false; motif=''; if(commande[1]=='length')idx =commande[1]+'-'+comments[i]; switch(idx){ case 'pseudo'://0:// test=(thevalue==''); if(!test){msgfull+=msgtext;motif=notsame;} break; case 'password'://1:// msgerr=mdp_is_valid(thevalue); test=(msgerr==''); if(!test){msgfull+=msgtext;motif=msgerr;} break; case 'confirmmdp'://2:// test=(thevalue==obj.value); if(!test){msgfull+=msgtext;motif=notsame;} break; case 'captcha'://6:// test=(thevalue==obj.value); if(!test){msgfull+=msgtext;motif=notsame;} break; case 'mail'://3:// test=(test_mail(thevalue)); if(!test){msgfull+=msgtext;motif=notmail;} break; case 'confirmmail'://2:// test=(test_mail(thevalue)); if(!test){msgfull+=msgtext;motif=notmail;break;} test=(thevalue==obj.value); if(!test){msgfull+=msgtext;motif=notsame;} break; case 'civility'://5:// case 'gender'://5:// /// case 'question'://4:// case 'answer'://5:// case 'firstname'://5:// case 'lastname'://5:// case 'identifying'://5:// test=(thevalue==''); if(!test){msgfull+=msgtext;motif=notsame;} break; case 'length-year'://7://'length': case 'length-month'://7://'length': case 'length-day'://7://'length': //typeof(x) // returns number test=(myApp.IsNumeric(thevalue)); if(test){ test=(thevalue.length-obj==0); if(!test){msgfull+=msgtext;motif=notsame;} }else motif=notnumber; break; case 'length-age'://8://'age': 58 - agebirthdayC - 3 myDebug.line=2293;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'thevalue='+thevalue,'fields[i]='+fields[i],'obj='+obj),myDebug.line+stop); test=(myApp.IsNumeric(thevalue)); test=test&&(myApp.IsNumeric(obj.value)); if(test){ test=(thevalue-obj.value==0); if(!test){msgfull+=msgtext;motif=badage;} }else motif=notnumber; break; }//c switch(idx) //c imbrication de message entre parenthèses if(!test)msg=comments[i]+' - ('+msg+')'; if(!test) {myDebug.line=2304;//myDebug._al ert(new Array(tagfct[kjsfct],myDebug.line,tagfct[kjsfile],'msg='+msg,'motif='+motif,'comments[i]='+comments[i]),myDebug.line+stop); } if(!test) msg=concat_msg_verify_fields('',comments[i],(motif?' ('+motif+') ':'')); // msg+=(msg?' - ':'')+comments[i]+(motif?' ('+motif+') ':''); }//c else if(!(commande.length>1)) }//c if(valuei.substring(0,1)=='=') //!\ }//c else if(valuei==''&&thevalue!='') }//c for(i=0;i function is_there_main_js() { myDebug.line=2622;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'is_there_main_js()',kjsstop:os_stop}; tagfct.kjsfct='is_there_main_js()'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; return(typeof(is_mainpopup_ok)!='undefined'); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} //// } //c function is_there_main_js() //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function change_captcha(){ myDebug.line=2507;try{ ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'change_captcha()',kjsstop:os_stop}; tagfct.kjsfct='change_captcha()'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=2227; ////var tagfct = {'file':script_os,'fct':'change_captcha()'},stop=os_stop; var chaine=ChaineAleatoire(5+Math.random(5)); myDebug.GetId('textecaptcha').innerHTML=chaine; myDebug.GetId('verifcaptcha').value=chaine; }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} }//c function change_captcha() //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function actualize_imgloader(status,pos){ myDebug.line=2646;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'actualize_imgloader(status,pos)',kjsstop:os_stop}; tagfct.kjsfct='actualize_imgloader(status,pos)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=2239; ////var tagfct = {'file':script_os,'fct':'actualize_imgloader(status,pos)'},stop=os_stop; var tag='imgloader',x=myDebug.GetId(tag); if(x){ if(!status){ status=(x.style.display==myApp.kcssnone?myApp.kcssinline:myApp.kcssnone); } x.style.display=status; os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]); //======= x=myDebug.GetId('div'+tag); if(x&&pos){ x.style.left=pos[0];x.style.top=pos[1]; } } }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} }//c function actualize_imgloader(status,pos) //c \\\\\\\\\\\\\\\\\\\\\\\\\\ function os_init_myapp_js_for_ajax(){ myDebug.line=2668;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'os_init_myapp_js_for_ajax()',kjsstop:os_stop}; tagfct.kjsfct='os_init_myapp_js_for_ajax()'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=2258; ////var tagfct = {'file':script_os,'fct':'os_init_myapp_js_for_ajax()'},stop=os_stop; if(!myApp.NAMESITE){ //// myApp.NAMESITE=myApp.ktypeiservice; myApp.subsite='root'; //// myApp.kis localsite=false; } }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} } function fg_ojs_get_native_arrays_test_motif(motif){//c return(new Array(t,arr0,tagdiv,s)); myDebug.line=2682;try{ ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'fg_ojs_get_native_arrays_test_motif(motif)',kjsstop:os_stop}; tagfct.kjsfct='fg_ojs_get_native_arrays_test_motif(motif)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=2268; ////var tagfct = {'file':script_os,'fct':'fg_ojs_get_native_arrays_test_motif(motif)'},stop=os_stop; var arr0=new Array(),tagdiv='.div',s=motif.substring(0,1); ///jc_is_inarray(myApp.klistfor_dbsearch,motif); var t=!jc_is_inarray(['paper','contest'],motif); if(t) t=(s=='$'||motif==myApp.NAMESITE||motif=='school'||motif=='shop'||jc_is_inarray(myApp.klistfor_dbsearch,motif)); ///var t=(s=='$'||motif==myApp.NAMESITE||motif=='school'||motif=='shop'||jc_is_inarray(myApp.klistfor_dbsearch,motif)); ///var t=(s=='$'||motif==myApp.NAMESITE||motif=='school'||motif=='shop'||motif=='law4i'||motif=='agrifood4i'||motif=='dev4i'); return(new Array(t,arr0,tagdiv,s));///{//c '$uploadwwwsite' }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} } function fg_ojs_get_native_arrays_after_click(motif,arrays){ myDebug.line=2702;try{ ///tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'fg_ojs_get_native_arrays_after_click(motif,arrays)',kjsstop:os_stop}; tagfct.kjsfct='fg_ojs_get_native_arrays_after_click(motif,arrays)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; ////try{myDebug.line=2285; ////var tagfct = {'file':script_os,'fct':'fg_ojs_get_native_arrays_after_click(motif,arrays)'},stop=os_stop; //================== ///alert_for_msg_for_debug('ljs:2404 motif'+motif+' - myApp.submotif='+myApp.submotif+' - myApp.konclick='+myApp.konclick); if(motif==myApp.NAMESITE||motif==myApp.submotif)return(arrays[0]);///'school') //================== var tagcalled=(motif.substring(0,1)=='$');//tagcalled=='$'|| if(tagcalled)return(arrays[0]); //================== if($.isFunction(window.fg_ajs_go_actions_after_onclick_steptab)) {var t=fg_ajs_go_actions_after_onclick_steptab(motif);if(t)return(t);} //================== if(motif=='account') arrays[1]=new Array( '0.'+motif+'.0.2.div','1.'+motif+'.2.0.div', '0.'+motif+'.0.0.div','1.'+motif+'.0.0.div', '0.'+motif+'.0.3.div','2.'+motif+'.3.0.0.div', '1.'+motif+'.0.4.div','2.'+motif+'.4.0.0.div' ); //================== return(arrays[1]); }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);} ////}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);} } function fg_ojs_team_demanded(thisselect){ myDebug.line=2730;try{ ////tagfct = {kjsfile:script_os,kjsline:myDebug.line,kjsfct:'fg_ojs_team_demanded(thisselect)',kjsstop:os_stop}; tagfct.kjsfct='fg_ojs_team_demanded(thisselect)'; tagfct.kjsfile=script_os;tagfct.kjsline=myDebug.line;tagfct.kjsstop=os_stop; //c se produit à chaque changement d'équipe demamdé ////try{myDebug.line=2310; ////var tagfct = {'file':script_os,'fct':'fg_ojs_team_demanded(thisselect)'},stop=os_stop; var x,t,dir,dirlogos,list,tdphoto,tbody,td,o=myDebug.GetId('id_labelshopteam'); if(o){ x=thisselect.value.split('|'); o.innerHTML=x[0]; //=== //c 0 Awono-Lamango| 1 ../../vsb4i- i/tpl/root/team/cm/logos/cambi.jpg| 2 http://www.awonolamango.com| 3 santana.jpg| 4 | 5 Ewono | 6 specifities ///id_httpshopteam ////var onclick='myApp.ali en=\'^'+'i_teamfirst'+'\';myApp.display_popupmain(\'open_announce_site\',\'site0/'+'i_teamfirst'+'/siteshc\',0);'; //c Cam-BI,cambi.jpg,http://www.cambi.cm,emmanuel.jpg,,Ewono //c lj:1917 '+tagfct[kjsfile]+' x=Awono-Lamango,cambi.jpg,http://www.awonolamango.com,santana.jpg,,Awon ///var onclick='myApp.display_siteshc(\''+x[2]+'\');';//c x[3] ///var onclick='myApp.display_siteshc(\''+'i_teamfirst'+'\');';//c x[3] o=myDebug.GetId('id_httpshopteam'); ////o.setAttribute("onclick",onclick); o.onclick=function(){myApp.display_siteshc(x[2]);}; o.innerHTML=x[3]; //=== o=myDebug.GetId('id_photoshopteam'); t=myDebug.GetId('id_titleshopteam'); //=== dir=myDebug.GetId('id_dirphotosteam').value; dirlogos=dir.replace('/photos','/logos'); myDebug.GetId('id_imgshopteam').src=dirlogos+'/'+x[1]; //=== list=myDebug.GetId('id_listpersonsteam'); //=== tdphoto=myDebug.GetId('id_tdphotofirst'); ///var persons=list.value.split('!?'); ///var person; ///tdphoto.style.url=dir.value+'/'+trim(person0[0]); ////id_listteamspecificitiesfirst myDebug.GetId('id_teamspecificities').innerHTML=x[6]; tbody=myDebug.GetId('id_tbodyphotosteam'); //=== var style=myDebug.GetId('id_tdborder_dim').value; ///style+='background:url('+dir.value+'/'+photo+') no-repeat;'; //style+='background-size:100% 100%;'; style+=myDebug.GetId('id_tdborder_round').value; //=== ///$i_listphotos='1){ td=''; for(i=0;i0?tdspace:'')+' '; } td+=''; //=== td+=''; for(i=0;i0?tdspace:'')+''+names[i].trim()+''; } td+=''; } //=== tbody.innerHTML=td; // id_tdborder_round //$i_teamsphotos.='  '; ///fg_ojs_background_change_with_imgfile(tdphoto,dir.value+'/'+person0[0].trim()); //// var searchTbody=searchTable.getElementsByTagName('tbody')[0]; /* var allRows=tbody.getElementsByTagName('tr'),inCells; // id_tdborder_round var photo=person0[0].trim(); for(i=0;i /* onPaste=function(ID,e){ (ID=="")?ID=e.srcElement.id:""; var elem=myDebug.GetId(ID); var copie; var MonObjet; var Selection; var Range; if(!document.all){ MonObjet=elem.contentWindow; Selection=MonObjet.getSelection(); Range=Selection.getRangeAt(0); } else{ MonObjet=elem; MonObjet.focus(); Selection=document.selection.createRange().text; Range=document.selection.createRange(); } SavedRange=Range; var savedcontent; (!$.browser.msie)?savedcontent=elem.contentWindow.document.body.innerHTML:savedcontent=elem.innerHTML; if(e&&e.clipboardData&&e.clipboardData.getData){// Webkit - get data from clipboard,put into editdiv,cleanup,then cancel event if(/text\/html/.test(e.clipboardData.types)){ copie=e.clipboardData.getData('text/html'); } else if(/text\/plain/.test(e.clipboardData.types)){ copie=e.clipboardData.getData('text/plain'); } else { copie=""; } waitforpastedata(elem,savedcontent); if(e.preventDefault){ e.stopPropagation(); e.preventDefault(); } return(false); } else{// Everything else - empty editdiv and allow browser to paste content into it,then cleanup (!$.browser.msie)?elem.contentDocument.body.innerHTML="":$("#"+ID).html(""); waitforpastedata(elem,savedcontent); return(true); } }//c onPaste=function(ID,e) //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function waitforpastedata(elem,savedcontent){ (!$.browser.msie)?newelem=elem.contentWindow.document.body:newelem=elem; var Retour; if(newelem.childNodes&&newelem.childNodes.length>0) Retour=(processpaste(elem,savedcontent)); else{ that={e:elem,s:savedcontent} that.callself=function(){waitforpastedata(that.e,that.s)} setTimeout(that.callself,20);} }//c function waitforpastedata(elem,savedcontent) //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function processpaste(elem,savedcontent){ var pasteddata=elem.innerHTML||elem.contentWindow.document.body.innerHTML; //^^Alternatively loop through dom(elem.childNodes or elem.getElementsByTagName) here (!$.browser.msie)?elem.contentDocument.body.innerHTML=savedcontent:elem.innerHTML=savedcontent; // Do whatever with gathered data; return pasteddata; }//c function processpaste(elem,savedcontent) //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function retournepressepapier() {return(document.clipboardData.getData("Text")); }//c function retournepressepapier //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function copiedanspressepapier(name) {document.clipboardData.setData("Text",myDebug.GetId(name).value); }//c function copiedanspressepapier(name) */ //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ /* provoque une erreur */ /* (function($){ $.prompt=function(message,options){options=$.extend({},$.prompt.defaults,options); $.prompt.currentPrefix=options.prefix; var ie6=($.browser.msie&&$.browser.version<7); var $body=$(document.body); var $window=$(window); var msgbox='
'; if(options.useiframe&&(($('object,applet').length>0)||ie6)){ msgbox+=''; } else {if(ie6){$('select').css('visibility','hidden');} msgbox+='
'; } msgbox+='
X
'; msgbox+='
'; var $jqib=$(msgbox).appendTo($body); var $jqi=$jqib.children('#'+options.prefix); var $jqif=$jqib.children('#'+options.prefix+'fade'); if(message.constructor==String){ message={state0:{html:message,buttons:options.buttons,focus:options.focus,submit:options.submit}}; } var states=""; $.each(message,function(statename,stateobj){stateobj=$.extend({},$.prompt.defaults.state,stateobj); message[statename]=stateobj; states+=''; } ); $jqi.find('#'+options.prefix+'states').html(states).children('.'+options.prefix+'_state:first').css('display','block'); $jqi.find('.'+options.prefix+'buttons:empty').css('display',myApp.kcssnone); $.each(message,function(statename,stateobj){var $state=$jqi.find('#'+options.prefix+'_state_'+statename); $state.children('.'+options.prefix+'buttons').children('button').click(function(){var msg=$state.children('.'+options.prefix+'message'); var clicked=stateobj.buttons[$(this).text()]; var forminputs={}; $.each($jqi.find('#'+options.prefix+'states :input').serializeArray(),function(i,obj){if(forminputs[obj.name]===undefined){forminputs[obj.name]=obj.value; } else if(typeof forminputs[obj.name]==Array){forminputs[obj.name].push(obj.value);}else{forminputs[obj.name]=[forminputs[obj.name],obj.value]; } } ); var close=stateobj.submit(clicked,msg,forminputs); if(close===undefined||close){removePrompt(true,clicked,msg,forminputs); } } ); $state.find('.'+options.prefix+'buttons button:eq('+stateobj.focus+')').addClass(options.prefix+'defaultbutton'); } ); var ie6scroll=function(){$jqib.css({top:$window.scrollTop()}); }; var fadeClicked=function(){ if(options.persistent){ var i=0;$jqib.addClass(options.prefix+'warning'); var intervalid=setInterval(function(){$jqib.toggleClass(options.prefix+'warning'); if(i++>1){clearInterval(intervalid);$jqib.removeClass(options.prefix+'warning'); } },100); } else {removePrompt();} }; var keyPressEventHandler=function(e){var key=(window.event)?event.keyCode:e.keyCode; if(key==27){removePrompt();} if(key==9){ var $inputels=$(':input:enabled:visible',$jqib); var fwd=!e.shiftKey&&e.target==$inputels[$inputels.length-1]; var back=e.shiftKey&&e.target==$inputels[0]; if(fwd||back){ setTimeout(function(){ if(!$inputels)return; var el=$inputels[back===true?$inputels.length-1:0]; if(el)el.focus(); },10); return(false); } } } var positionPrompt=function(){ $jqib.css({ position:(ie6)?"absolute":"fixed",height:$window.height(),width:"100%",top:(ie6)?$window.scrollTop():0,left:0,right:0,bottom:0});$jqif.css({position:"absolute",height:$window.height(),width:"100%",top:0,left:0,right:0,bottom:0}); $jqi.css({position:"absolute",top:options.top,left:"50%",marginLeft:(($jqi.outerWidth()/2)*-1)}); } var stylePrompt=function(){ $jqif.css({zIndex:options.zIndex,display:"none",opacity:options.opacity}); $jqi.css({zIndex:options.zIndex+1,display:"none"}); $jqib.css({zIndex:options.zIndex}); } var removePrompt=function(callCallback,clicked,msg,formvals){ $jqi.remove(); if(ie6){ $body.unbind('scroll',ie6scroll); } $window.unbind('resize',positionPrompt); $jqif.fadeOut(options.overlayspeed,function(){ $jqif.unbind('click',fadeClicked); $jqif.remove(); if(callCallback){ options.callback(clicked,msg,formvals); } $jqib.unbind('keypress',keyPressEventHandler); $jqib.remove(); if(ie6&&!options.useiframe){ $('select').css('visibility','visible'); } } ) } positionPrompt(); stylePrompt(); if(ie6){$window.scroll(ie6scroll);} $jqif.click(fadeClicked); $window.resize(positionPrompt); $jqib.bind("keydown keypress",keyPressEventHandler); $jqi.find('.'+options.prefix+'close').click(removePrompt); $jqif.fadeIn(options.overlayspeed); $jqi[options.show](options.promptspeed,options.loaded); $jqi.find('#'+options.prefix+'states .'+options.prefix+'_state:first .'+options.prefix+'defaultbutton').focus(); if(options.timeout>0)setTimeout($.prompt.close,options.timeout); return $jqib; } $.prompt.defaults={prefix:'jqi',buttons:{Ok:true},loaded:function(){},submit:function(){return(true);},callback:function(){},opacity:0.6,zIndex:999,overlayspeed:'slow',promptspeed:'fast',show:'fadeIn',focus:0,useiframe:false,top:"15%",persistent:true,timeout:0,state:{html:'',buttons:{Ok:true},focus:0,submit:function(){return(true);}}} $.prompt.currentPrefix=$.prompt.defaults.prefix; $.prompt.setDefaults=function(o){$.prompt.defaults=$.extend({},$.prompt.defaults,o);} $.prompt.setStateDefaults=function(o){$.prompt.defaults.state=$.extend({},$.prompt.defaults.state,o);} $.prompt.getStateContent=function(state){return $('#'+$.prompt.currentPrefix+'_state_'+state);} $.prompt.getCurrentState=function(){return $('.'+$.prompt.currentPrefix+'_state:visible');} $.prompt.getCurrentStateName=function(){var stateid=$.prompt.getCurrentState().attr('id');return stateid.replace($.prompt.currentPrefix+'_state_','');} $.prompt.goToState=function(state){$('.'+$.prompt.currentPrefix+'_state').slideUp('slow');$('#'+$.prompt.currentPrefix+'_state_'+state).slideDown('slow',function(){$(this).find('.'+$.prompt.currentPrefix+'defaultbutton').focus();});} $.prompt.nextState=function(){var $next=$('.'+$.prompt.currentPrefix+'_state:visible').next();$('.'+$.prompt.currentPrefix+'_state').slideUp('slow');$next.slideDown('slow',function(){$next.find('.'+$.prompt.currentPrefix+'defaultbutton').focus();});} $.prompt.prevState=function(){var $next=$('.'+$.prompt.currentPrefix+'_state:visible').prev();$('.'+$.prompt.currentPrefix+'_state').slideUp('slow');$next.slideDown('slow',function(){$next.find('.'+$.prompt.currentPrefix+'defaultbutton').focus();});} $.prompt.close=function(){$('#'+$.prompt.currentPrefix+'box').fadeOut('fast',function(){$(this).remove();});} } ) (jQuery); function openprompt(){ var temp={ state0:{ html:'

How would you rate the content of this site?

', buttons:{Cancel:false,Next:true}, focus:1, submit:function(v,m,f){ if(!v) $.prompt.close() else $.prompt.goToState('state1');//go forward return(false); }//c submit:function(v,m,f) }//c state0: , state1:{ //// html:'

Check all which need improvement:

', buttons:{Back:-1,Cancel:0,Next:1}, focus:2, submit:function(v,m,f){ if(v==0) $.prompt.close() else if(v==1) $.prompt.goToState('state2');//go forward else if(v=-1) $.prompt.goToState('state0');//go back return(false); }//c submit:function(v,m,f) }//c state1: , state2:{ html:'How did you first find out about this site?
', buttons:{Back:-1,Cancel:0,Next:1}, focus:2, submit:function(v,m,f){ if(v==0) $.prompt.close() else if(v==1) $.prompt.goToState('state3');//go forward else if(v=-1) $.prompt.goToState('state1');//go back return(false); }//c submit:function(v,m,f) }//c state2: , state3:{ html:'

Please leave any other comments you have about this site:

', buttons:{Back:-1,Cancel:0,Finish:1}, focus:2, submit:function(v,m,f){ if(v==0) $.prompt.close() else if(v==1) return(true); //we're done else if(v=-1) $.prompt.goToState('state2');//go back return(false); }//c submit:function(v,m,f) }//c state3: }//c var temp= $.prompt(temp,{ callback:function(v,m,f){ var str="You can now process with this given information:
"; $.each(f,function(i,obj){ str+=i+" - "+obj+"
"; }); $.prompt(str); } }); }//c function openprompt() */ /* */ //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ }catch(e){if(myDebug)myDebug.debug_view_e_catch(e,tagfct);}