Commit | Line | Data |
---|---|---|
b9ad0878 PC |
1 | {**************************************************************************} |
2 | {* *} | |
9891bd15 | 3 | {* Copyright (C) 2003-2009 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 PC |
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 | ||
29459c49 SJ |
41 | {if $wrongInXorg > 0} |
42 | <h3>Anciens ayant un matricule_ax sur Xorg ne correspondant à rien dans la base de l'AX</h3> | |
43 | ||
44 | <p><a href="fusionax/ids/wrongInXorg">{$wrongInXorg} ancien{if $wrongInXorg > 1}s{/if}</a>.</p> | |
45 | {/if} | |
46 | ||
b9ad0878 | 47 | <h3>Mettre en correspondance</h3> |
29459c49 SJ |
48 | <form action="fusionax/ids/lier" method="post"> |
49 | Matricule AX : <input type="text" name="matricule_ax" value""/><br/> | |
50 | User ID X.org : <input type="text" name="user_id" value=""/><br/> | |
b9ad0878 PC |
51 | <input type="submit" value="Lier"/> |
52 | </form> | |
53 | ||
54 | <p></p> | |
b65beb64 PC |
55 | <div id="autolink" name="autolink"> |
56 | <h3>Mise en correspondance automatique</h3> | |
b9ad0878 | 57 | {if $easyToLink} |
29459c49 SJ |
58 | <p> |
59 | Ces anciens sont probablement les mêmes (à peu près mêmes nom, prénom, promo)<br /> | |
60 | {$nbMatch} correspondances trouvées. | |
61 | </p> | |
62 | ||
e8591429 | 63 | {include file="fusionax/listFusion.tpl" fusionList=$easyToLink fusionAction="fusionax/ids/link" name="lier" field1="display_name_ax" namefield1="Ancien AX"} |
b65beb64 PC |
64 | <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> |
65 | <script type="text/javascript"> | |
66 | {literal} | |
67 | //<!-- | |
68 | $(document).ready(function() { | |
69 | $('#autolink a.fusion-action').click(function(a){ | |
70 | $.get(a.currentTarget.href,{},function(){ | |
71 | $(a.currentTarget).hide(); | |
72 | $('#fusion-reload').show(); | |
73 | $('#fusion-reload a').click(function(a) { | |
74 | document.location = a.currentTarget.href; | |
75 | document.location.reload(); | |
76 | }); | |
77 | }); | |
78 | return false; | |
79 | }); | |
80 | }); | |
81 | //--> | |
82 | {/literal} | |
83 | </script> | |
b9ad0878 PC |
84 | {else} |
85 | <p>Aucune correspondance automatique n'a été trouvée (mêmes nom, prénom, promo d'étude).</p> | |
86 | {/if} | |
b65beb64 | 87 | </div> |