Commit | Line | Data |
---|---|---|
b9ad0878 PC |
1 | {**************************************************************************} |
2 | {* *} | |
3 | {* Copyright (C) 2003-2007 Polytechnique.org *} | |
4 | {* http://opensource.polytechnique.org/ *} | |
5 | {* *} | |
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. *} | |
10 | {* *} | |
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. *} | |
15 | {* *} | |
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 *} | |
20 | {* *} | |
21 | {**************************************************************************} | |
22 | ||
23 | <h2><a href="fusionax">Fusion des annuaires X.org - AX<a> / Identifiants</h2> | |
24 | ||
25 | <p>Le préalable à toute fusion de renseignements pour une personne entre ce | |
26 | que contient la base AX et ce que contient ce site est bien évidemment de | |
27 | trouver une correspondance entre les personnes renseignés dans ces annuaires.</p> | |
28 | ||
29 | {if $nbMissingInAX} | |
30 | <h3>Anciens manquants à l'AX</h3> | |
31 | ||
32 | <p><a href="fusionax/ids/missingInAX">{$nbMissingInAX} ancien{if $nbMissingInAX > 1}s{/if}</a>.</p> | |
33 | {/if} | |
34 | ||
35 | {if $nbMissingInXorg > 0} | |
36 | <h3>Anciens manquants à x.org</h3> | |
37 | ||
38 | <p><a href="fusionax/ids/missingInXorg">{$nbMissingInXorg} ancien{if $nbMissingInXorg > 1}s{/if}</a>.</p> | |
39 | {/if} | |
40 | ||
41 | <h3>Mettre en correspondance</h3> | |
42 | <form action="fusionax/ids/lier" method="get"> | |
43 | Matricule AX : <input name="matricule_ax" value""/><br/> | |
44 | User ID X.org : <input name="user_id" value=""/><br/> | |
45 | <input type="submit" value="Lier"/> | |
46 | </form> | |
47 | ||
48 | <p></p> | |
b65beb64 PC |
49 | <div id="autolink" name="autolink"> |
50 | <h3>Mise en correspondance automatique</h3> | |
b9ad0878 | 51 | {if $easyToLink} |
cc8ea8b2 | 52 | <p>Ces anciens sont probablement les mêmes (à peu près mêmes nom, prénom, promo)</p> |
e8591429 | 53 | {include file="fusionax/listFusion.tpl" fusionList=$easyToLink fusionAction="fusionax/ids/link" name="lier" field1="display_name_ax" namefield1="Ancien AX"} |
b65beb64 PC |
54 | <p><a href="fusionax/ids/linknext">Lier toutes les fiches affichées</a> <span id="fusion-reload" style="display:none"> - <a href="fusionax/ids#autolink">Trouver d'autres correspondances</a></span></p> |
55 | <script type="text/javascript"> | |
56 | {literal} | |
57 | //<!-- | |
58 | $(document).ready(function() { | |
59 | $('#autolink a.fusion-action').click(function(a){ | |
60 | $.get(a.currentTarget.href,{},function(){ | |
61 | $(a.currentTarget).hide(); | |
62 | $('#fusion-reload').show(); | |
63 | $('#fusion-reload a').click(function(a) { | |
64 | document.location = a.currentTarget.href; | |
65 | document.location.reload(); | |
66 | }); | |
67 | }); | |
68 | return false; | |
69 | }); | |
70 | }); | |
71 | //--> | |
72 | {/literal} | |
73 | </script> | |
b9ad0878 PC |
74 | {else} |
75 | <p>Aucune correspondance automatique n'a été trouvée (mêmes nom, prénom, promo d'étude).</p> | |
76 | {/if} | |
b65beb64 | 77 | </div> |