2006 => 2007 Happy New Year\!
[platal.git] / templates / admin / synchro_ax.tpl
index dcfb04a..eeb3bee 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2006 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2007 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -29,7 +29,7 @@
   Impossible d'utiliser ce service, il manque la clef privĂ©e AX dans la configuration de plat/al.
 </p>
 {else}
-<form action='{$smarty.request.PHP_SELF}' method='get'>
+<form action='admin/synchro_ax' method='post'>
 <table class="tinybicol">
 <tr>
   <th>Synchroniser un utilisateur</th>
@@ -43,9 +43,8 @@
 </table>
 </form>
 {/if}
-
-{if $x and !no_private_key}
-<form action='{$smarty.request.PHP_SELF}' method='post'>
+{if $x}
+<form action='admin/synchro_ax/{$x.forlife}/import' method='post'>
 {if $x.profile_from_ax}
 <div style="text-align:center;margin:5px;background:green">
 <strong>Cet utilisateur a accepetĂ© la synchronisation</strong>
@@ -57,8 +56,8 @@
 {/if}
 <div>Les fiches de cet utilisateur :
 <ul>
-<li><a href='{rel}/profile/{$x.user_id}' class='popup2'>polytechnique.org</a></li>
-<li><a href='http://www.polytechniciens.com/index.php?page=AX_FICHE_ANCIEN&amp;anc_id={$x.matricule_ax}'>polytechniciens.com</a></li>
+<li><a href='profile/{$x.user_id}' class='popup2'>polytechnique.org</a></li>
+<li><a href='http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&amp;anc_id={$x.matricule_ax}'>polytechniciens.com</a></li>
 </ul>
 </div>
 {if $diff}
@@ -135,8 +134,7 @@ Emplois
 {/if}
 </table>
 <div class='center'>
-  <input type='hidden' name='user' value='{$smarty.request.user}' />
-  <input type='submit' name='importe' value='Importer' />
+  <input type='submit' value='Importer' />
 </div>
 {else}
 <div class='center'>