--- /dev/null
+<h1>Liste de clients</h1>
+<button onclick="synchroniserInfosClients();">Synchronisation</button>
+<table>
+ <tr>
+ <th>Nom</th>
+ <th>Identifiant AP</th>
+ </tr>
+
+ <?php foreach ($clients as $client): ?>
+ <tr>
+ <td><?php echo $client['Client']['nom'] ?></td>
+ <td><?php echo $client['Client']['identifiant_AP']; ?></td>
+ </tr>
+ <?php endforeach; ?>
+ <?php unset($client); ?>
+</table>
+
+<script>
+ var synchroniserInfosClients = function () {
+ $.ajax({
+ url: "http://allo_serveur/?action=synchroniser_infos_clients",
+ beforeSend: function( xhr ) {
+ xhr.overrideMimeType( "text/plain; charset=x-user-defined" );
+ }
+ })
+ .done(function( data ) {
+ if ( console && console.log ) {
+ //console.log( "Sample of data:", data.slice( 0, 100 ) );
+ }
+ location.href = "/clients";
+ });
+ };
+</script>
\ No newline at end of file