New page to add users in the database
[platal.git] / templates / profil / general.tpl
index 8a54ec7..e599401 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  *}
@@ -68,7 +68,7 @@
       </td>
       <td class="cold">
         <span class="nom">X{$promo}{if ($promo != $promo_sortie - 3)} - X{math equation="a - b" a=$promo_sortie b=3}{/if}</span>
-        <span class="lien"><a href="orange.php">modifier</a>{if ($promo_sortie -3 == $promo)} pour les oranges{/if}</span>
+        <span class="lien"><a href="profile/orange">modifier</a>{if ($promo_sortie -3 == $promo)} pour les oranges{/if}</span>
       </td>
     </tr>     
     <tr>
@@ -82,7 +82,7 @@
       </td>
       <td class="cold">
         <span class="nom">{$nom_usage|default:"Aucun"}</span>
-        <span class="lien"><a href="nomusage.php">modifier</a></span>
+        <span class="lien"><a href="profile/usage">modifier</a></span>
       </td>
     </tr>
     <tr>
   </table>
 </div>
 
+{if !$no_private_key}
+<div class="blocunite">
+  <table class="bicol" cellspacing="0" cellpadding="0" 
+    summary="Profil : Informations générales">
+    <tr>
+      <th>
+        Synchronisation avec l'AX
+      </th>
+    </tr>
+    <tr>
+      <td>
+        <p>
+          Le service annuaire de l'<a href='http://www.polytechniciens.com'>AX</a> met à jour l'annuaire papier à partir des informations que tu lui envoies. Tu peux choisir ici de récupérer directement ces données pour l'annuaire en ligne.
+        </p>
+        <p>
+          La synchro prend en compte toutes les informations que tu as signalés à l'AX (en orange ou en vert). Elle peut alors effacer, modifier ou rajouter des informations selon ce qu'elle trouve sur ta <a href="http://www.polytechniciens.com/?page=AX_FICHE_ANCIEN&amp;anc_id={$matricule_ax}">fiche AX</a>.
+        </p>
+        <p class="center">
+          <a href="profile/edit/general?synchro_ax=confirm" onclick="return confirm('Es-tu sûr de vouloir lancer la synchronisation ?')"><input type="button" value="Synchroniser"/></a>
+        </p>
+      </td>
+    </tr>
+    <tr>
+      <td class="col">
+        <table class="flags" cellspacing="0" summary="Flags">
+          <tr>
+            <td class="orange">
+              <input type="checkbox" name="synchro_ax" {if $synchro_ax}checked="checked" {/if}/>
+            </td>
+            <td class="texte">
+              Autoriser la synchronisation depuis l'AX par des administrateurs ou des scripts automatiques.
+            </td>
+          </tr>
+        </table>
+      </td>
+    </tr>
+  </table>
+</div>
+{/if}
+    
 <div class="blocunite">
   <table class="bicol" cellspacing="0" cellpadding="0"
     summary="Profil: Trombinoscope">
         d'identité (dans un fichier au format JPEG, PNG ou GIF).<br />
         <div class="center">
           <span class="lien">
-            <a href="trombino.php">Éditer ta photo</a>
+            <a href="photo/change">Éditer ta photo</a>
           </span>
         </div>
       </td>
               Voilà la photo qui apparaîtra sur la fiche de ton profil{if $nouvellephoto} (tu viens
               de changer ta photo, celle-ci correspond à ton ancien
               profil car la nouvelle n'a pas encore été validée par un administrateur du site !
-              <a href="{"fiche.php"|url}?user={$smarty.session.forlife}&amp;modif=new" class="popup2">Ta fiche avec la nouvelle photo</a>)
+              <a href="profile/{$smarty.session.forlife}?modif=new" class="popup2">Ta fiche avec la nouvelle photo</a>)
               {/if}.
             </td>
             <td class="dcolg">
-              <img src="getphoto.php?x={$smarty.session.forlife}" alt=" [ PHOTO ] " />
+              <img src="photo/{$smarty.session.forlife}" alt=" [ PHOTO ] " />
             </td>
           </tr>
         </table>
               privé
             </td>
             <td class="texte">
-              <a href="{"docs/faq.php"|url}#flags" class="popup_800x240">Quelle couleur ??</a>
+              <a href="Docs/FAQ?display=light#flags" class="popup_800x240">Quelle couleur ??</a>
             </td>
           </tr>
         </table>
               site public
             </td>
             <td class="texte">
-              <a href="{"docs/faq.php"|url}#flags" class="popup_800x240">Quelle couleur ??</a>
+              <a href="Docs/FAQ?display=light#flags" class="popup_800x240">Quelle couleur ??</a>
             </td>
           </tr>
         </table>
               site public
             </td>
             <td class="texte">
-              <a href="{"docs/faq.php"|url}#flags" class="popup_800x240">Quelle couleur ??</a>
+              <a href="Docs/FAQ?display=light#flags" class="popup_800x240">Quelle couleur ??</a>
             </td>
           </tr>
         </table>