1 {**************************************************************************}
3 {* Copyright (C) 2003-2009 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
6 {* This program is free software; you can redistribute it and/or modify *}
7 {* it under the terms of the GNU General Public License as published by *}
8 {* the Free Software Foundation; either version 2 of the License, or *}
9 {* (at your option) any later version. *}
11 {* This program is distributed in the hope that it will be useful, *}
12 {* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13 {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14 {* GNU General Public License for more details. *}
16 {* You should have received a copy of the GNU General Public License *}
17 {* along with this program; if not, write to the Free Software *}
18 {* Foundation, Inc., *}
19 {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
21 {**************************************************************************}
24 Synchronisation depuis l'AX
29 Impossible d'utiliser ce service, il manque la clef privée AX dans la configuration de plat/al.
32 <form action='admin/synchro_ax' method='post'>
33 <table class="tinybicol">
35 <th>Synchroniser un utilisateur</th>
38 <td style='padding:5px'>
39 <input type='text' name='user' value='{$smarty.request.user}' size='40' maxlength='255'/>
40 <input type='submit' value='Chercher' />
47 <form action='admin/synchro_ax/{$x.forlife}/import' method='post'>
48 {if $x.profile_from_ax}
49 <div style="text-align:center;margin:5px;background:green">
50 <strong>Cet utilisateur a accepeté la synchronisation</strong>
53 <div style="text-align:center;margin:5px;background:red">
54 <strong>ATTENTION ! Cet utilisateur n'a pas accepté la synchronisation</strong>
57 <div>Les fiches de cet utilisateur :
59 <li><a href='profile/{$x.user_id}' class='popup2'>polytechnique.org</a></li>
60 <li><a href='profile/ax/{$x.user_id}'>polytechniciens.com</a></li>
64 <table class="bicol" cellpadding="0" cellspacing="0" border="1">
65 {foreach from=$diff key='k' item='i'}
66 {if ($k neq 'adr') and ($k neq 'adr_pro')}
87 {foreach from=$diff.adr item='adr'}
90 Effacer l'adresse {$adr.adrid}.
92 {if $adr.adrid}Modifier l'adresse {$adr.adrid} :{else}Ajouter l'adresse :{/if}
93 {include file='geoloc/address.tpl' address=$adr no_div=1 for="`$x.prenom` `$x.nom`"}
103 {foreach from=$diff.adr_pro item='pro'}
106 Effacer l'emploi {$pro.entrid}.
108 {if $pro.entrid || $pro.entrid === 0}Modifier l'emploi {$pro.entrid} :{else}Ajouter l'emploi :{/if}
111 <em>Entreprise/Organisme : </em> <strong>{$pro.entreprise}</strong>
116 <em>Secteur : </em>
117 <strong>{$pro.secteur}{if $pro.ss_secteur} ({$pro.ss_secteur}){/if}</strong>
122 <em>Fonction : </em> <strong>{$pro.fonction}</strong>
127 <em>Poste : </em> <strong>{$pro.poste}</strong>
130 {include file='geoloc/address.tpl' address=$pro no_div=1 for=$pro.entreprise}
137 <input type='submit' value='Importer' />
141 Le profil actuel est synchronisé avec les données de l'AX.
148 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}