Commit | Line | Data |
---|---|---|
b9ad0878 PC |
1 | {**************************************************************************} |
2 | {* *} | |
5e1513f6 | 3 | {* Copyright (C) 2003-2011 Polytechnique.org *} |
b9ad0878 PC |
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 | ||
29459c49 | 23 | <h2><a href="fusionax">Fusion des annuaires X.org - AX</a> / Identifiants</h2> |
b9ad0878 | 24 | |
ddc4c642 SJ |
25 | <p> |
26 | Le préalable à toute fusion de renseignements pour une personne entre ce | |
b9ad0878 | 27 | que contient la base AX et ce que contient ce site est bien évidemment de |
ddc4c642 | 28 | trouver une correspondance entre les personnes renseignés dans ces annuaires.<br /><br /> |
b9ad0878 | 29 | |
ddc4c642 SJ |
30 | {if t($nbMissingInAX)} |
31 | <strong>Anciens manquants à l'AX :</strong> | |
32 | <a href="fusionax/ids/missingInAX">{$nbMissingInAX} ancien{if $nbMissingInAX > 1}s{/if}</a>.<br /> | |
b9ad0878 PC |
33 | {/if} |
34 | ||
ddc4c642 SJ |
35 | {if t($nbMissingInXorg)} |
36 | <strong>Anciens manquants à x.org :</strong> | |
37 | <a href="fusionax/ids/missingInXorg">{$nbMissingInXorg} ancien{if $nbMissingInXorg > 1}s{/if}</a>.<br /> | |
b9ad0878 PC |
38 | {/if} |
39 | ||
ddc4c642 SJ |
40 | {if t($wrongInXorg)} |
41 | <strong>Anciens ayant un ax_id sur Xorg ne correspondant à rien dans la base de l'AX :</strong> | |
42 | <a href="fusionax/ids/wrongInXorg">{$wrongInXorg} ancien{if $wrongInXorg > 1}s{/if}</a>. | |
29459c49 | 43 | {/if} |
ddc4c642 | 44 | </p> |
29459c49 | 45 | |
b9ad0878 | 46 | <h3>Mettre en correspondance</h3> |
29459c49 | 47 | <form action="fusionax/ids/lier" method="post"> |
ddc4c642 SJ |
48 | <p> |
49 | Matricule AX : <input type="text" name="ax_id" /><br/> | |
50 | User ID X.org : <input type="text" name="pid" /><br/> | |
51 | <input type="submit" value="Lier" /> | |
52 | </p> | |
b9ad0878 PC |
53 | </form> |
54 | ||
55 | <p></p> | |
ddc4c642 | 56 | <div id="autolink"> |
b65beb64 | 57 | <h3>Mise en correspondance automatique</h3> |
ddc4c642 | 58 | {if t($easyToLink)} |
29459c49 SJ |
59 | <p> |
60 | Ces anciens sont probablement les mêmes (à peu près mêmes nom, prénom, promo)<br /> | |
61 | {$nbMatch} correspondances trouvées. | |
62 | </p> | |
63 | ||
e8591429 | 64 | {include file="fusionax/listFusion.tpl" fusionList=$easyToLink fusionAction="fusionax/ids/link" name="lier" field1="display_name_ax" namefield1="Ancien AX"} |
b65beb64 PC |
65 | <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> |
66 | <script type="text/javascript"> | |
67 | {literal} | |
68 | //<!-- | |
69 | $(document).ready(function() { | |
70 | $('#autolink a.fusion-action').click(function(a){ | |
71 | $.get(a.currentTarget.href,{},function(){ | |
72 | $(a.currentTarget).hide(); | |
73 | $('#fusion-reload').show(); | |
74 | $('#fusion-reload a').click(function(a) { | |
75 | document.location = a.currentTarget.href; | |
76 | document.location.reload(); | |
aab2ffdd | 77 | }); |
b65beb64 PC |
78 | }); |
79 | return false; | |
80 | }); | |
81 | }); | |
82 | //--> | |
83 | {/literal} | |
84 | </script> | |
b9ad0878 PC |
85 | {else} |
86 | <p>Aucune correspondance automatique n'a été trouvée (mêmes nom, prénom, promo d'étude).</p> | |
87 | {/if} | |
b65beb64 | 88 | </div> |