Form Search

<!-- [streamSection]: start getResources 10070 / --> <!-- start formInputField 10071 --> <!-- start chunk redirectIfDirectAccessToResource -10071 / 10017 --> <!-- end chunk redirectIfDirectAccessToResource --> <div id="input_10071" class="col-xs-12 col-sm-3" style="" > <div class="form-group"> <label class="control-label" for="search_10071"> <!-- begin setTitleSection title_10071_/Search//bc:unset/font-weight:bold,/formInputFieldTitle--> <!-- begin displayTitleSection title_10071_/Search//bc:unset/font-weight:bold,/formInputFieldTitle--> <div class="row equalHeight formInputFieldTitle"> <div class="formInputFieldTitle titleWithNoLine" style="font-weight:bold," ><span style="background-color:unset;" > Search</span> </div> </div> <!-- end row equalHeight --> <!-- end displayTitleSection --> <!-- end setTitleSection --> </label> <div> <input type="text" class="" name="FORM_Search" id="search_10071" placeholder="" value="{{firstname}}" > </div> </div> </div> <!-- end formInputField --> <!-- start TPL 300-600-blapyFormSelectOptions 10122--> <!-- start chunk redirectIfDirectAccessToResource -10122 / 10017 --> <!-- end chunk redirectIfDirectAccessToResource --> <script> //load selectpicker function initSelectOption_10122() { let getScriptProcessing = false; function startBootstrapSelect() { //debugger; $(document).find('#select_searchlastname_10122').selectpicker( $.extend({},{ iconBase: 'far' ,tickIcon:'fa-check' }) ); getScriptProcessing = true; } $(document).on( "Blapy_PageReady","body", function(event,anError) { if ( $(document).find('#select_searchlastname_10122').length==0 || getScriptProcessing ) { return; } $.loadFileOnce("/assets/libraries/bootstrap-select/js/bootstrap-select.js") .done( function() { startBootstrapSelect(); }); /* if (typeof $.fn.selectpicker === 'undefined') { $.getScript("/assets/libraries/bootstrap-select/js/bootstrap-select.js", function() { startBootstrapSelect(); }); } else { startBootstrapSelect(); } */ });//end on blapy_pageready //include specific code of select window.initSelectedOption_10122 = function(aJson) { let aValueToSelect = "{{lastname}}"; if (aValueToSelect == "") return aJson; aInputTag = "lastname"; if (aInputTag == "") return aJson; //debugger; aJson = aJson.map(aData => { if (aData[aInputTag] == aValueToSelect) { aData[aInputTag+"ischecked"]="selected"; } return aData; }); return aJson; } }//end of initSelectOption_10122 if (typeof $ !== "function") { window.addEventListener('DOMContentLoaded', initSelectOption_10122, false); } else initSelectOption_10122(); </script> <div id="selectoptions_10122" class="selectContainer col-sm-3" > <div class="form-group"> <label for="" > <!-- begin setTitleSection title_10122_/SearchLastName/Search on lastname/bc:/font-weight:bold,/formSelectOptionsFieldTitle--> <!-- begin displayTitleSection title_10122_/SearchLastName/Search on lastname/bc:/font-weight:bold,/formSelectOptionsFieldTitle--> <div class="row equalHeight formSelectOptionsFieldTitle"> <div class="formSelectOptionsFieldTitle titleWithNoLine" style="font-weight:bold," ><span style="background-color:transparent;" > Search on lastname&nbsp;<span class="alert-danger"></span></span> </div> </div> <!-- end row equalHeight --> <!-- end displayTitleSection --> <!-- end setTitleSection --> </label> <div id='blapy_10122_div' data-blapy-container="true" data-blapy-container-name="searchlastname_10122" data-blapy-container-content="searchlastname-2025-05-01 - 14:26:14" data-blapy-update="json" data-blapy-template-wrap="<select class='form-control selectpicker show-tick' data-style='btn-warning' name='FORM_SearchLastName' id='select_searchlastname_10122' title='Select a lastname...' onChange='$(&quot;#form_10070&quot;).submit();' >" data-blapy-template-header="<option value=''>Select a lastname...</option>" data-blapy-template-init="/poubelle/fonctions-evoluees/blapy-demos/blapy-table/data/test-json-data.json" data-blapy-template-init-params="{}" data-blapy-template-init-method="GET" data-blapy-template-init-processdata="initSelectedOption_10122" data-blapy-template-mustache-delimiterStart="{+" data-blapy-template-mustache-delimiterEnd="+}" data-blapy-template-init-purejson="1" data-blapy-noblapydata="1" > <|xmp style="display:none"> <option value="{+lastname+}" {+lastnameischecked+} > {+lastname+} </option> <|/xmp> </div> </div> </div> <!-- end 300-600-blapyFormSelectOptions --> <!-- [streamSection]: end getResources 10070 / -->

Blapy Table

Test blapy object

Ceci est un objet blapy... dans lequel on met des blocs blapy

Information en provenance de l'API Rest: https://www.intersel.fr/tools/getipinfo.json

Blapy login

<p>Etes-vous loggu&eacute; ?</p> <p id="NotLogged" style="display:none">Vous n'êtes pas loggué</p> <p id="Logged" style="display:none"> Vous êtes loggué<br> Bonjour {{data.fullname}} </p> <p>&nbsp;</p> {{data.code}} <blapyScriptJS> {{#data}}if (!{{status}}){{/data}} $('#NotLogged').attr('style','block'); else $('#Logged').attr('style','block'); </blapyScriptJS> <!-- streamSection for subsection 10097 / / onePageChunk / /menuindex-->

suite bloc

<div> <p>Votre ville : {{city}}</p> <p>Votre pays : {{country_name}}</p> <p>Votre latitude : {{latitude}}</p> <p>Votre longitude : {{longitude}}</p> </div> <!-- streamSection for subsection 10110 / / onePageChunk / /menuindex-->

test avec sous-bloc

<div> <h2>&nbsp;</h2> <h1>{{firstname}} {{lastname}}</h1> <ul> <li>Id : {{id}}</li> <li>Pr&eacute;nom : {{firstname}}</li> <li>Nom : {{lastname}}</li> </ul> <p>&nbsp;</p> <p>&nbsp;</p> </div> <section id="subSection_10123" class="subsection" > <!-- streamSection for subsection 10123 / / onePageChunk / /menuindex--> <!-- [streamSection]: start getResources 10123 / --> <!-- BEGIN template 300-000-Section-Sections Folder 10124 /sous-bloc-blapy / / / / //////--> <!-- start chunk redirectIfDirectAccessToResource -10124 / 10017 --> <!-- end chunk redirectIfDirectAccessToResource --> <!-- Start snippet embedHTMLSection 10124 --> <!-- start standardSection sous-bloc-blapy/10124 / / / / / ///1 / / / / --> <section id="section_sous_bloc_blapy_10123" class="section_10060_10124 template_section_40" style=" background-color:none; " data-info="" > <style scoped> #rowcontainer_sous_bloc_blapy_10123.container { width:100%; } #rowcontainer_sous_bloc_blapy_10123 .container { width:100%; } </style> <div id="rowcontainer_sous_bloc_blapy_10123" class="rowcontainer_10060_10124 template_rowcontainer_40 container" style="clear:none; background:none; " data-info="" > <div class="row"> <!-- start chunk SectionsFolderCode 10124 / 10124 / / #9A295C--> <!-- begin setTitleSection 10124/Details {{firstname}}//bc:#9A295C//title--> <!-- begin displayTitleSection 10124/Details {{firstname}}//bc:#9A295C//title--> <div class="row equalHeight "> <div class="titleBackgroundLine title"></div> <h1 class="title col-xs-12 fittext " style="" data-minfontsize="15" data-maxfontsize="100" data-displayRefWidth="1200" ><span style="background-color:#9A295C;" > Details {{firstname}}</span> </h1> </div> <!-- end row equalHeight --> <!-- end displayTitleSection --> <!-- end setTitleSection --> <div id="blapy_10124_div" class="col-xs-12 pb15 textcontent" data-blapy-container="true" data-blapy-container-name="details {{id}}" data-blapy-container-content="sous-bloc-blapy-2025-05-01 - 14:26:14" data-blapy-update="json" data-blapy-template-init="/poubelle/fonctions-evoluees/blapy-demos/test-avec-sous-bloc/data-nv-0-details-person.html" data-blapy-template-init-params="{&quot;action&quot;:&quot;search&quot;,&quot;search&quot;:&quot;{{id}}&quot;}" data-blapy-template-init-method="GET" data-blapy-template-mustache-delimiterStart="{%" data-blapy-template-mustache-delimiterEnd="%}" data-blapy-template-init-purejson="1" data-blapy-noblapydata="1" > <|xmp style="display:none;"> <ul> <li>Age: {%age%}</li> <li>Ville: {%city%}</li> <li>Sexe: {%sex%}</li> </ul> <section id="subSection_10124" class="subsection" > <!-- streamSection for subsection 10124 / / onePageChunk / /menuindex--> <!-- [streamSection]: start getResources 10124 / --> <!-- BEGIN template 300-000-Section-Sections Folder 10126 /sous-sous-bloc-blapy / / / / //////--> <!-- start chunk redirectIfDirectAccessToResource -10126 / 10017 --> <!-- end chunk redirectIfDirectAccessToResource --> <!-- Start snippet embedHTMLSection 10126 --> <!-- start standardSection sous-sous-bloc-blapy/10126 / / / / / ///1 / / / / --> <section id="section_sous_sous_bloc_blapy_10124" class="section_10060_10126 template_section_40" style=" background-color:none; " data-info="" > <style scoped> #rowcontainer_sous_sous_bloc_blapy_10124.container { width:100%; } #rowcontainer_sous_sous_bloc_blapy_10124 .container { width:100%; } </style> <div id="rowcontainer_sous_sous_bloc_blapy_10124" class="rowcontainer_10060_10126 template_rowcontainer_40 container" style=" background:none; " data-info="" > <div class="row"> <!-- start chunk SectionsFolderCode 10126 / 10126 / / --> <!-- begin setTitleSection 10126/Infos Adresse sur {%city%}//bc://title--> <!-- begin displayTitleSection 10126/Infos Adresse sur {%city%}//bc://title--> <div class="row equalHeight "> <div class="titleBackgroundLine title"></div> <h1 class="title col-xs-12 fittext " style="" data-minfontsize="15" data-maxfontsize="100" data-displayRefWidth="1200" ><span style="background-color:transparent;" > Infos Adresse sur {%city%}</span> </h1> </div> <!-- end row equalHeight --> <!-- end displayTitleSection --> <!-- end setTitleSection --> <div id="blapy_10126_div" class="col-xs-12 pb15 textcontent" data-blapy-container="true" data-blapy-container-name="info from city {%city%} {{id}}" data-blapy-container-content="sous-sous-bloc-blapy-2025-05-01 - 14:26:14" data-blapy-update="json" data-blapy-template-init="/poubelle/fonctions-evoluees/blapy-demos/test-avec-sous-bloc/data-nv-0-details-city.html" data-blapy-template-init-params="{&quot;action&quot;:&quot;search&quot;,&quot;search&quot;:&quot;{%city%}&quot;}" data-blapy-template-init-method="GET" data-blapy-template-mustache-delimiterStart="{$" data-blapy-template-mustache-delimiterEnd="$}" data-blapy-template-init-purejson="1" data-blapy-noblapydata="1" > <||xmp style="display:none;"> <ul> <li>CP: {$cp$}</li> <li>R&eacute;gion: {$region$}</li> <li>Pays: {$country$}</li> </ul> <section id="subSection_10126" class="subsection" > <!-- streamSection for subsection 10126 / / onePageChunk / /menuindex--> <!-- [streamSection]: start getResources 10126 / --> <!-- [streamSection]: end getResources 10126 / --> </section> <||/xmp> </div> <!-- end chunk SectionsFolderCode 10126 / 10126 --> <!-- add modalButton '' in section 10126 --> </div> </div> </section> <!-- end standardSection 10126 --> <!-- End embedHTMLSection --> <!-- END template 300-000-Section-Sections Folder --> <!-- [streamSection]: end getResources 10124 / --> </section> <|/xmp> </div> <!-- end chunk SectionsFolderCode 10124 / 10124 --> <!-- add modalButton '' in section 10124 --> </div> </div> </section> <!-- end standardSection 10124 --> <!-- End embedHTMLSection --> <!-- END template 300-000-Section-Sections Folder --> <!-- [streamSection]: end getResources 10123 / --> </section>

Un bloc blapy

<!-- streamSection for subsection 10089 / / onePageChunk / /menuindex-->

Quelques resources....

<div>{{{pagetitle}}} - {{publishedon}}</div> <section id="subSection_10119" class="subsection" > <!-- streamSection for subsection 10119 / / onePageChunk / /menuindex--> <!-- [streamSection]: start getResources 10119 / --> <!-- BEGIN template 300-000-Section-Sections Folder 10121 /test-stream-blocs / / #9A295C / / ///col-sm-12///--> <!-- start chunk redirectIfDirectAccessToResource -10121 / 10017 --> <!-- end chunk redirectIfDirectAccessToResource --> <!-- Start snippet embedHTMLSection 10121 --> <!-- start standardSection test-stream-blocs/10121 / #9A295C / / / / ///1 / / / / --> <section id="section_test_stream_blocs_10119" class="section_10060_10121 template_section_40 col-sm-12" style="clear:none; background-color:#9A295C; " data-info="" > <style scoped> #rowcontainer_test_stream_blocs_10119.container { width:100%; } #rowcontainer_test_stream_blocs_10119 .container { width:100%; } </style> <div id="rowcontainer_test_stream_blocs_10119" class="rowcontainer_10060_10121 template_rowcontainer_40 container" style="clear:none; background:none; " data-info="" > <div class="row"> <!-- start chunk SectionsFolderCode 10121 / 10121 / #9A295C / --> <!-- begin setTitleSection 10121/test stream blocs/--/bc:#9A295C//title--> <!-- end setTitleSection --> créé le : {{createdon}} {{#content}} Contenu: {{{content}}} {{/content}} {{^content}} Pas de contenu... {{/content}} {{#contentIsEmpty}} <p>Après controle avec la fonction testIfContentIsEmpty... on confirme! c'est bien vide!</p> {{/contentIsEmpty}} <!-- streamSection for subsection 10121 / / onePageChunk / /menuindex--> <!-- end chunk SectionsFolderCode 10121 / 10121 --> <!-- add modalButton '' in section 10121 --> </div> </div> </section> <!-- end standardSection 10121 --> <!-- End embedHTMLSection --> <!-- END template 300-000-Section-Sections Folder --> <!-- [streamSection]: end getResources 10119 / --> </section>