New page to add users in the database
[platal.git] / templates / profil.tpl
index 6a37f1e..8eb438a 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2004 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2006 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 <p class="erreur">{$e}</p>
 {/foreach}
 
-<p>Tu peux consulter <a href="{rel}/fiche.php?user={$smarty.session.forlife}" class="popup2">l'état actuel de ta fiche</a>
-tel qu'elle apparaîtra pour un camarade,
-ou <a href="{rel}/fiche.php?user={$smarty.session.forlife}&amp;public=1" class="popup2">tel</a> qu'elle apparaîtra à tout le monde.</p>
+<p>
+Tu peux consulter <a href="profile/{$smarty.session.forlife}" class="popup2">l'état actuel de ta fiche</a>
+telle qu'elle apparaîtra pour un camarade, ou telle qu'elle apparaîtra dans l'annuaire de
+l'<a href="profile/{$smarty.session.forlife}?view=ax" class="popup2">AX</a>
+ou à <a href="profile/{$smarty.session.forlife}?view=public" class="popup2">tout le monde</a>.</p>
 
-<form action="{$smarty.server.PHP_SELF}" method="post" id="prof_annu">
+<form action="profile/edit/{$onglet}" method="post" id="prof_annu">
   <table class="cadre_a_onglet" cellpadding="0" cellspacing="0" style="width: 98%; margin-left:1%;">
     <tr>
       <td>
@@ -42,11 +44,10 @@ ou <a href="{rel}/fiche.php?user={$smarty.session.forlife}&amp;public=1" class="
           {if $o eq $onglet}
           <li class="actif">{$i|nl2br}</li>
           {else}
-          <li><a href="{$smarty.server.PHP_SELF}?old_tab={$o}">{$i|nl2br}</a></li>
+          <li><a href="profile/edit/{$o}">{$i|nl2br}</a></li>
           {/if}
           {/foreach}
         </ul>
-        <input type="hidden" value="{$onglet}" name="old_tab" />
         <input type="hidden" value="" name="adresse_flag" />
       </td>
     </tr>
@@ -62,15 +63,9 @@ ou <a href="{rel}/fiche.php?user={$smarty.session.forlife}&amp;public=1" class="
             <td>
               <input type="submit" value="Valider ces modifications" name="modifier" />
             </td>
-            {if $onglet != $onglet_last}
             <td>
               <input type="submit" value="Valider et passer au prochain onglet" name="suivant" />
             </td>
-            {else}
-            <td>
-              <input type="submit" value="Valider et revenir au premier onglet" name="suivant" />
-            </td>
-            {/if}
           </tr>
         </table>
       </td>