[ffb_section_0 unique_id= »2a4ie94l » data= »%7B%22o%22%3A%7B%22gen%22%3A%7B%22ffsys-disabled%22%3A%220%22%2C%22ffsys-info%22%3A%22%7B%7D%22%2C%22type%22%3A%22fg-container-fluid%22%2C%22no-padding%22%3A%220%22%2C%22no-gutter%22%3A%220%22%2C%22gutter-size%22%3A%22%22%2C%22match-col%22%3A%220%22%2C%22match-col-sm%22%3A%22inherit%22%2C%22match-col-md%22%3A%22inherit%22%2C%22match-col-lg%22%3A%22inherit%22%2C%22show-divider%22%3A%220%22%2C%22divider%22%3A%7B%22divider-width%22%3A%221%22%2C%22divider-height%22%3A%22100%25%22%2C%22divider-h-alignment%22%3A%22left%22%2C%22divider-v-alignment%22%3A%22center%22%2C%22divider-color%22%3A%22%23c4c4c4%22%7D%2C%22force-fullwidth%22%3A%220%22%7D%2C%22a-t%22%3A%7B%22id%22%3A%22exportSEA%22%7D%7D%7D »][ffb_column_1 unique_id= »2a4t8752″ data= »%7B%22o%22%3A%7B%22gen%22%3A%7B%22ffsys-disabled%22%3A%220%22%2C%22ffsys-info%22%3A%22%7B%7D%22%2C%22xs%22%3A%2212%22%2C%22sm%22%3A%22unset%22%2C%22md%22%3A%226%22%2C%22lg%22%3A%22unset%22%2C%22is-centered%22%3A%220%22%2C%22not-equalize%22%3A%220%22%2C%22is-bg-clipped%22%3A%220%22%2C%22xs-last%22%3A%22no%22%2C%22sm-last%22%3A%22unset%22%2C%22md-last%22%3A%22unset%22%2C%22lg-last%22%3A%22unset%22%2C%22xs-offset%22%3A%22unset%22%2C%22sm-offset%22%3A%22unset%22%2C%22md-offset%22%3A%22unset%22%2C%22lg-offset%22%3A%22unset%22%2C%22xs-pull%22%3A%22unset%22%2C%22sm-pull%22%3A%22unset%22%2C%22md-pull%22%3A%22unset%22%2C%22lg-pull%22%3A%22unset%22%2C%22xs-push%22%3A%22unset%22%2C%22sm-push%22%3A%22unset%22%2C%22md-push%22%3A%22unset%22%2C%22lg-push%22%3A%22unset%22%2C%22xs-overlap%22%3A%22no%22%2C%22sm-overlap%22%3A%22unset%22%2C%22md-overlap%22%3A%22unset%22%2C%22lg-overlap%22%3A%22unset%22%7D%7D%7D »][ffb_wrapper_2 unique_id= »2hfev2q4″ data= »%7B%22o%22%3A%7B%22gen%22%3A%7B%22ffsys-disabled%22%3A%220%22%2C%22ffsys-info%22%3A%22%7B%7D%22%2C%22html-attribute%22%3A%22div%22%2C%22caching%22%3A%220%22%7D%2C%22a-t%22%3A%7B%22cls%22%3A%22x_panel%22%7D%7D%7D »][ffb_wrapper_3 unique_id= »2a4t8753″ data= »%7B%22o%22%3A%7B%22gen%22%3A%7B%22ffsys-disabled%22%3A%220%22%2C%22ffsys-info%22%3A%22%7B%7D%22%2C%22html-attribute%22%3A%22div%22%2C%22caching%22%3A%220%22%7D%2C%22a-t%22%3A%7B%22cls%22%3A%22x_title%22%7D%7D%7D »][ffb_heading_4 unique_id= »2a4t8756″ data= »%7B%22o%22%3A%7B%22gen%22%3A%7B%22ffsys-disabled%22%3A%220%22%2C%22ffsys-info%22%3A%22%7B%7D%22%2C%22text-is-richtext%22%3A%220%22%2C%22tag%22%3A%22h2%22%2C%22align%22%3A%22text-left%22%2C%22align-sm%22%3A%22%22%2C%22align-md%22%3A%22%22%2C%22align-lg%22%3A%22%22%7D%7D%7D »][ffb_param route= »o gen text »]Export pour SEA[/ffb_param][/ffb_heading_4][ffb_html_4 unique_id= »2a4t8757″ data= »%7B%22o%22%3A%7B%22gen%22%3A%7B%22ffsys-disabled%22%3A%220%22%2C%22ffsys-info%22%3A%22%7B%7D%22%2C%22html%22%3A%7B%22html%22%3A%22%3Cul class%3D%5C%22nav navbar-right panel_toolbox%5C%22%3E%3Cli%3E%3Ca class%3D%5C%22collapse-link%5C%22%3E%3Ci class%3D%5C%22fa fa-chevron-up%5C%22%3E%3C%2Fi%3E%3C%2Fa%3E%3C%2Fli%3E%3C%2Ful%3E%5Cn %3Cdiv class%3D%5C%22clearfix%5C%22%3E%3C%2Fdiv%3E%22%2C%22html-is-richtext%22%3A%220%22%7D%2C%22blank%22%3A%22null%22%7D%7D%7D »][/ffb_html_4][/ffb_wrapper_3][ffb_wrapper_3 unique_id= »2a4t8758″ data= »%7B%22o%22%3A%7B%22gen%22%3A%7B%22ffsys-disabled%22%3A%220%22%2C%22ffsys-info%22%3A%22%7B%7D%22%2C%22html-attribute%22%3A%22div%22%2C%22caching%22%3A%220%22%7D%2C%22a-t%22%3A%7B%22cls%22%3A%22x_content%22%7D%7D%7D »][ffb_html_4 unique_id= »2a4iqhqt » data= »%7B%22o%22%3A%7B%22gen%22%3A%7B%22ffsys-disabled%22%3A%220%22%2C%22ffsys-info%22%3A%22%7B%7D%22%2C%22html%22%3A%7B%22wrapper%22%3A%22div%22%2C%22html%22%3A%22%24parcelles %3D cclair_liste_parcelle(%5Bget_current_user_id()%5D)%3B%5Cn%3F%3E%5Cn%3Cselect class%3D%5C%22form-control%5C%22 id%3D%5C%22IdParcelle%5C%22 name%3D%5C%22IdParcelle%5C%22%3E%5Cn%3Coption%3E- S%C3%A9lectionner une parcelle -%3C%2Foption%3E%5Cn%3C%3Fphp foreach (%24parcelles as %24parcelle) %7B%5Cn print ‘%3Coption value%3D%5C%22′.%24parcelle-%3EIdParcelle.’%5C%22 data-id-client%3D%5C%22′.%24parcelle-%3EIdClient.’%5C%22%3E’.%24parcelle-%3ENom.’%3C%2Foption%3E’%3B%5Cn%7D %3F%3E%5Cn%3C%2Fselect%3E%5Cn%3Cbutton id%3D%5C%22boutonExportSEA%5C%22 class%3D%5C%22btn btn-success pull-right%5C%22 type%3D%5C%22submit%5C%22 style%3D%5C%22margin%3A 20px 0 0 20px%3B%5C%22%3ECr%C3%A9er fichier%3C%2Fbutton%3E%5Cn%3C%2Fform%3E%5Cn%3Cdiv id%3D%5C%22resultatExportSEA%5C%22 class%3D%5C%22pull-right%5C%22%3E%3C%2Fdiv%3E%22%2C%22html-is-richtext%22%3A%220%22%2C%22use-as-php%22%3A%221%22%7D%2C%22blank%22%3A%22null%22%7D%7D%7D »][/ffb_html_4][ffb_javascript_4 unique_id= »2a4p8lgl » data= »%7B%22o%22%3A%7B%22gen%22%3A%7B%22ffsys-disabled%22%3A%220%22%2C%22ffsys-info%22%3A%22%7B%7D%22%2C%22js%22%3A%22%24(‘%23boutonExportSEA’).on(‘click’%2C function(ev)%7B%5Cn ev.preventDefault()%3B%5Cn%5Cn %24(‘%23sectionExportSEA .x_content’).addClass(‘loading’)%3B%5Cn %5Cn var option %3D %24(‘%23IdParcelle’).children(‘option%3Aselected’)%3B%5Cn%5Cn %24.ajax(%7B%5Cn url%3A ‘%2Fwp-content%2Fthemes%2Foyopi%2Fexport_sea.php’%2C%5Cn type%3A ‘POST’%2C%5Cn data%3A %7B%5Cn IdParcelle%3A option.val()%2C%5Cn IdClient%3A option.data(‘idClient’)%5Cn %7D%5Cn %7D).done(function (data) %7B%5Cn %24(‘%23sectionExportSEA .x_content’).removeClass(‘loading’)%3B%5Cn const response %3D JSON.parse(data)%3B%5Cn if (response.success) %7B%5Cn if (response.data %26%26 response.data%5B0%5D %26%26 response.data%5B0%5D.CodeRetour %3D%3D%3D ‘0’) %7B%5Cn toastr.success(‘Fichier export%C3%A9 avec succ%C3%A8s.’)%3B%5Cn %2F%2F Ajouter un bouton de t%C3%A9l%C3%A9chargement%5Cn %24(‘%23resultatExportSEA’).html(‘%3Ca href%3D%5C%22%2Fwp-content%2Fthemes%2Foyopi%2Fserve_file.php%3FIdParcelle%3D’%2Boption.val()%2B’%26IdClient%3D’%2Boption.data(‘idClient’)%2B’%26sea%3D1%5C%22 target%3D%5C%22_blank%5C%22 class%3D%5C%22btn btn-success%5C%22 style%3D%5C%22margin-top%3A 20px%3B%5C%22%3ET%C3%A9l%C3%A9charger le dernier fichier g%C3%A9n%C3%A9r%C3%A9%3C%2Fa%3E’)%3B%5Cn window.open(‘%2Fwp-content%2Fthemes%2Foyopi%2Fserve_file.php%3FIdParcelle%3D’%2Boption.val()%2B’%26IdClient%3D’%2Boption.data(‘idClient’)%2B’%26sea%3D1’%2C ‘_blank’)%3B%5Cn %7D else %7B%5Cn toastr.error(‘Erreur lors du traitement de votre demande%2C informez-en le service technique. Code erreur ‘ %2B response.data%2C ‘Erreur’%2C %7BtimeOut%3A 20000%7D)%5Cn %7D%5Cn %7D else %7B%5Cn toastr.error(‘Erreur lors du traitement de votre demande%2C informez-en le service technique’%2C ‘Erreur’%2C %7BtimeOut%3A 20000%7D)%3B%5Cn %7D%5Cn %7D)%3B%5Cn %7D)%3B%5Cn %5Cn %24(%5C%22%23IdParcelle%5C%22).on(‘change’%2C function()%7B%5Cn %24(‘%23resultatExportSEA’).html( »)%3B%5Cn %7D)%3B%22%2C%22type%22%3A%22jquery%22%7D%7D%7D »][/ffb_javascript_4][/ffb_wrapper_3][/ffb_wrapper_2][/ffb_column_1][/ffb_section_0]