function load_fields_of_form_for_post(tag,anonymous,action){ var id='';var obj=''; if(anonymous){ id='civility'+tag;obj=GetId(id);if(obj)obj.selectedIndex=3; id='gender'+tag;obj=GetId(id);if(obj)obj.selectedIndex=2; id='mail'+tag;obj=GetId(id);if(obj)obj.value='mail@mail.mail'; } if(action=='add_a_post'){ id='language'+tag;obj=GetId(id);if(obj)obj.selectedIndex=2; id='posttitle'+tag;obj=GetId(id);if(obj)obj.value='this is the title'; id='postlongtitle'+tag;obj=GetId(id);if(obj)obj.value='this is the very very long title'; id='postcontent'+tag;obj=GetId(id);if(obj)obj.value='this is le content of the post'; id='postresume'+tag;obj=GetId(id);if(obj)obj.value='this is the resume'; id='postkeywords'+tag;obj=GetId(id);if(obj)obj.value='there are many key words'; id='postsources'+tag;obj=GetId(id);if(obj)obj.value='there are many sources'; id='postcontentimage'+tag;obj=GetId(id);if(obj)obj.value='this is the image of content'; id='postindexpage'+tag;obj=GetId(id);if(obj)obj.value=1; id='postnbrpages'+tag;obj=GetId(id);if(obj)obj.value=1; } id='captcha'+tag;if(obj)obj=GetId(id); id='set_captcha'+tag;var obj2=GetId(id); if(obj&&obj2)obj.value=obj2.value; id='confirm'+tag;obj=GetId(id);if(obj)obj.checked=true; }//c function load_fields_of_form_for_post(tag,anonymous) //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ function get_action_article_with_send_button(tag,anonymous,what,identify){ var arrayprotect = get_array_protect(tag,true); if(anonymous){ arrayprotect = arrayprotect.concat(get_array_civility(tag,true)); arrayprotect = arrayprotect.concat(get_array_birthday(tag)); arrayprotect = arrayprotect.concat(get_array_mail(tag)); } var txttable_popup_message='table_popup_message'; var message = $('#'+txttable_popup_message); var txtlanguage='language'; var language='';var id=txtlanguage+tag;var obj=GetId(id);var i_x=''; if(obj){i_x=fg_osjs_get_infos_of_select(obj);language=i_x[1];} var txtposttitle='posttitle'; var txtpostlongtitle='postlongtitle'; var txtpostcontent='postcontent'; var txtpostresume='postresume'; var txtpostkeywords='postkeywords'; var txtpostsources='postsources'; var txtpostcontentimage='postcontentimage'; var txtaddress_ip='address_ip'; var txtpostindexpage='postindexpage'; var txtpostnbrpages='postnbrpages'; var posttitle='';id=txtposttitle+tag;obj=GetId(id);if(obj)posttitle=obj.value; var postlongtitle='';id=txtpostlongtitle+tag;obj=GetId(id);if(obj)postlongtitle=obj.value; var postcontent='';id=txtpostcontent+tag;obj=GetId(id);if(obj)postcontent=obj.value; var postresume='';id=txtpostresume+tag;obj=GetId(id);if(obj)postresume=obj.value; var postkeywords='';id=txtpostkeywords+tag;obj=GetId(id);if(obj)postkeywords=obj.value; var postsources='';id=txtpostsources+tag;obj=GetId(id);if(obj)postsources=obj.value; var postcontentimage='';id=txtpostcontentimage+tag;obj=GetId(id);if(obj)postcontentimage=obj.value; var address_ip='';id=txtaddress_ip+tag;obj=GetId(id);if(obj)address_ip=obj.value; var postindexpage='';id=txtpostindexpage+tag;obj=GetId(id);if(obj)postindexpage=obj.value; var postnbrpages='';id=txtpostnbrpages+tag;obj=GetId(id);if(obj)postnbrpages=obj.value; ///var txt = 'textareacomment'; ///if(myApp.verify_fields(arrayprotect.concat(new Array(txt,txt+tag,'*',txt)),true)==''){ if(myApp.verify_fields(arrayprotect.concat(),true)==''){ if(get_if_changed_form_is_valid(tag,message)){ /// if(confirm('Are you sure to want "'+what+'" ?')){ var txtupdate_article='update_article'; var sep=myApp.sepofcontrol; var file = myApp.kDIR_xommon+'/'+'article'+'/'+txtupdate_article+myApp.kextph; var date=get_formatted_date(); //c ajoute [plus] ???? var allarray = new Array('action',what,'identify',identify,'oldtabber',myApp.oldtabber, txtaddress_ip+tag,address_ip, 'author'+tag,(anonymous?'anonymous':''), 'date'+tag,date[0], txtlanguage+tag,language, txtposttitle+tag,posttitle, txtpostlongtitle+tag,postlongtitle, txtpostcontent+tag,postcontent, txtpostresume+tag,postresume, txtpostkeywords+tag,postkeywords, txtpostsources+tag,postsources, txtpostcontentimage+tag,postcontentimage, txtpostindexpage+tag,postindexpage, txtpostnbrpages+tag,postnbrpages ); var arraysrc=new Array(); call_ajax_post(file,allarray,arraysrc,new Array(txtupdate_article,txttable_popup_message)); /// }//c if(confirm('Are you sure to want "'+what+'" ?')) }//c if(get_if_changed_form_is_valid(tag,message)) }//c if(myApp.verify_fields(arrayprotect.concat(comment),true)=='') else { alert('loupé get_action_comments_with_send_button'); } }//c function get_action_article_with_send_button(tag,anonymous,what,identify) //c \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\