
{% extends '@ajax-layout/layout.twig' %}

{% block body %}
<div id="genetableau">
	<center>
	<div >
		<form method="POST" id='formulaireAccadre'>
						<input type="hidden" name="divCode" value="{{ post.divCode }}" />
			<input type="hidden" name="divLibelle" value="{{ post.divLibelle }}" />
			<input type="hidden" name="codeMarche" value="{{ post.codeMarche }}" />
			<input type="hidden" name="codeSte" value="{{ post.codeSte }}" />
			
			<table class="table" id="tableau">
				<thead class="thead-dark">
    				<tr>
    					<th>{{ triTable('CODE_STE',  infoPagination.filter.tri_CODE_STE, 'Code société' | trad, 'genetableau', path('Ajax.liste.centreAnalyseUtilisateurAutorise'), 'formulaireAccadre') }}</th>
    					<th>{{ triTable('CODE_CTA',  infoPagination.filter.tri_CODE_CTA, 'Code' | trad, 'genetableau', path('Ajax.liste.centreAnalyseUtilisateurAutorise'), 'formulaireAccadre') }}</th>
    					<th>{{ triTable('LIBELLE',  infoPagination.filter.tri_LIBELLE, 'Libellé' | trad,'genetableau', path('Ajax.liste.centreAnalyseUtilisateurAutorise'), 'formulaireAccadre') }}</th>
    				</tr>
    			</thead>
    			<tbody>
    				<tr>
    					<th>{{ filterTable('CODE_STE', infoPagination.filter.filter_CODE_STE, '', 'genetableau', path('Ajax.liste.centreAnalyseUtilisateurAutorise'), 'formulaireAccadre') }}</th>
						<th>{{ filterTable('CODE_CTA', infoPagination.filter.filter_CODE_CTA, '', 'genetableau', path('Ajax.liste.centreAnalyseUtilisateurAutorise'), 'formulaireAccadre') }}</th>
    					<th>{{ filterTable('LIBELLE', infoPagination.filter.filter_LIBELLE, '', 'genetableau', path('Ajax.liste.centreAnalyseUtilisateurAutorise'), 'formulaireAccadre') }}</th>
    				</tr>
    				{% for ana in centreAnas %}
    				
    				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ ana.CODE_CTA | convert_encoding('UTF-8', 'ISO-8859-1')  }}", "{{ post.divLibelle }}", "{{ ana.LIBELLE~' ('~ana.CODE_CTA~')'  | convert_encoding('UTF-8', 'ISO-8859-1') }}");desactivePopup ()'>
    					<td>{{ ana.CODE_STE | convert_encoding('UTF-8', 'ISO-8859-1')  }}</td>
						<td>{{ ana.CODE_CTA | convert_encoding('UTF-8', 'ISO-8859-1')  }}</td>
    					<td>{{ ana.LIBELLE | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
    				</tr>
    				{% endfor %}
    			</tbody>
			</table>
			
			{{ paginations(path('Ajax.liste.centreAnalyseUtilisateurAutorise'),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'genetableau') }}
		</form>
		
	</div>

	</center>
	</div>
{% endblock %}