	<div id="IdcDivExportAuthorities"  class="w-100 h-100 p-2 m-0 ximeo_bg-light" style="display: none !important">

		<div id="IdcExportAuthoritiesPanel" class="w-100 h-100 bg-warning">

			<div class="d-flex align-items-start">
            	<div class="nav flex-column nav-pills me-3" id="v-pills-tab" role="tablist" aria-orientation="vertical">
            		<?php
         				$conn = get_dbconnection();
       					if($conn)
       					{
       		  				$sql = "select a.id,tabname,a.description_{$_SESSION['lang']},coalesce(a.modalitytitle,'*') from annexe_afcn a where a.active = true order by tabname";

       		  				if($query=pg_query($conn,$sql))
       		  				{
       		    				while($row = pg_fetch_row($query))
       		    				{
       		    					$id             = $row[0];
                          			$tabname        = $row[1];
                          			$description    = $row[2];
                          			$modalitytitle  = $row[3];

                          			error_log ( " id : ".$id ); 
                          			error_log ( " tabname : ".$tabname ); 
                          			error_log ( " description : ".$description ); 
                          			error_log ( " modalitytitle : ".$modalitytitle );  
       		    				?>
       								<!-- <li class="stattemplate" id="<?=$row[0]?>" onclick="downloadWithTemplate(this.id)"><?=htmlspecialchars($tabname)?></li> -->
       								<button class="nav-link" id="v-pills-home-tab" data-bs-toggle="pill" data-bs-target="#v-pills-home" type="button" role="tab" aria-controls="v-pills-home" aria-selected="true"><?=htmlspecialchars($tabname)?></button>
       							<?php }
       						}
       					} 
       				?>
            	</div>

            	<div class="tab-content" id="v-pills-tabContent">
            	</div>
        	</div>

        	<div class="tab-content" id="v-pills-tabContent">
        	</div>

		</div>
	
	</div>