<div class="row" id="tool-items-infos"  style="display:none">
    <div class="col">
        <div data-select-type="checkbox" class="row no-gutters form-inline pb-1">
            <div class="form-check form-control-usm mr-sm-2">
                Afficher :  
            </div>
            <?php

    $field_ok=array("text","textarea","select");
    foreach($structure as $tag=>$c){
        if(isset($c['@attributes']['afficher']) && in_array($c['@attributes']['type'],$field_ok)){
            echo "<div class=\"form-check form-control-usm mr-sm-2\">\n<input class=\"form-check-input\" type=\"checkbox\" id=\"items-".$tag."\" data-critere=\"".$tag."\" checked=\"checked\">\n<label class=\"form-check-label\" for=\"items-".$tag."\">".$c['@attributes']['titre']."</label>\n</div>"; 
        } 
    }
            ?>
        </div>
    </div>
</div>