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

{% block body %}
<div id="genetableau">
	<center>
	<div>
		<form method="POST" id='formListeFournisseur'>
			
			<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>{{ triTable('CODE_CTR',  infoPagination.filter.tri_CODE_CTR, 'Code Centre' | trad, 'genetableau', path('Ajax.liste.centreEmetteurImpression'), 'formListeFournisseur') }}</th>
        					<th>{{ triTable('RAIS_SOC',  infoPagination.filter.tri_RAIS_SOC, 'Raison Sociale' | trad,'genetableau', path('Ajax.liste.centreEmetteurImpression'), 'formListeFournisseur') }}</th>
        				</tr>
        			</thead>
        			<tbody>
        				<tr>
        					<th>{{ filterTable('CODE_CTR', infoPagination.filter.filter_CODE_CTR, '','genetableau', path('Ajax.liste.centreEmetteurImpression'), 'formListeFournisseur') }}</th>
        					<th>{{ filterTable('RAIS_SOC', infoPagination.filter.filter_RAIS_SOC, '','genetableau', path('Ajax.liste.centreEmetteurImpression'), 'formListeFournisseur') }}</th>
        				</tr>
        				{% for ctr in centreEm %}
        				
        				<tr onclick='changeCodeLibelle("{{ post.divCode }}","{{ ctr.CODE_CTR | convert_encoding('UTF-8', 'ISO-8859-1')  }}", "{{ post.divLibelle }}", "{{ ctr.RAIS_SOC~' ('~ctr.CODE_CTR~')'  | convert_encoding('UTF-8', 'ISO-8859-1')}}");desactivePopup ()'>
        					<td>{{ ctr.CODE_CTR | convert_encoding('UTF-8', 'ISO-8859-1')  }}</td>
        					<td>{{ ctr.RAIS_SOC   | convert_encoding('UTF-8', 'ISO-8859-1') }}</td>
        
        				</tr>
        				{% endfor %}
        			</tbody>
    			</table>
			
		</form>
		
	{{ paginations(path('Ajax.liste.centreEmetteurImpression'),infoPagination.nombreDePage, infoPagination.page, infoPagination.post, 'modal-body') }}
	</div>

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