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

{% block body %}
<div>
	<center>
	<div id="genetableau">
				<form method="POST" id='formulaireCsNonCoche'>
			<input type="hidden" name="divCode" value="{{ post.divCode }}" />
			<input type="hidden" name="divLibelle" value="{{ post.divLibelle }}" />
			
			<table class="table" id="tableau">
				<thead class="thead-dark">
    				<tr>
						<th>{{'Code' | trad}}</th> 
						<th>{{'Libellé' | trad}}</th>
						<tbody>
							<tr>
								<th>{{ filterTable('COD_TAB', infoPagination.filter.filter_COD_TAB, '','Rechercher par code ' |trad,'tableau', path('EtatStatistique.ajaxListe.csCoche', {'userCode' : userCode}), 'formulaireCsNonCoche') }}
								</th>
								<th>{{ filterTable('LIBELLE', infoPagination.filter.filter_LIBELLE, '','Rechercher par Libellé' |trad ,'tableau', path('EtatStatistique.ajaxListe.csCoche', {'userCode' : userCode}), 'formulaireCsNonCoche') }}
								</th>
																					
							</tr>

						</thead>
					
							{% for valuee in affichage_r %}

								<tr onclick="{{ attrJs('changeCodeLibelle', post.divCode, valuee.COD_TAB, post.divLibelle, valuee.LIBELLE ]) }};desactivePopup()">
								<td>
									{{valuee.COD_TAB | convert_encoding('UTF-8', 'ISO-8859-1') }}
								</td>
										
								<td>
									{{valuee.LIBELLE | convert_encoding('UTF-8', 'ISO-8859-1') }}
								</td>
								</tr>
								
							{% endfor %}
    			</tbody>
			</table>
			
		</form>
		
	{{ paginations(path('EtatStatistique.ajaxListe.csCoche'),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
	</div>

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