1b61c9e0461c5ad3eee6ee0411c3bb710d098418
[platal.git] / templates / fusionax / listFusion.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2014 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 <table class="bicol">
24     <tr>
25         <th>Ancien</th>
26         <th>Fiches</th>
27         {if t($field1)}
28         <th>{$namefield1}</th>
29         {/if}
30         {if t($field2)}
31         <th>{$namefield2}</th>
32         {/if}
33         {if t($field3)}
34         <th>{$namefield3}</th>
35         {/if}
36         {if t($field4)}
37         <th>{$namefield4}</th>
38         {/if}
39         {if t($fusionAction)}
40         <th>Action</th>
41         {/if}
42     </tr>
43 {if t($fusionList)}
44 {iterate from=$fusionList item=c}
45     <tr class="{cycle values="pair,impair"}">
46         <td>{$c.private_name} ({$c.promo})</td>
47         <td style="text-align:center">
48             {if t($c.pid)}<a href="admin/user/{$c.pid}" class="popup2">{icon name="user_suit" title="Administrer utilisateur"}</a>{/if}
49             {if t($c.ax_id)}<a href="http://kx.polytechniciens.com/?page=AX_FICHE_ANCIEN&amp;ancc_id={$c.ax_id}" class="popup2">{icon name="user_gray" title="fiche AX"}</a>{/if}
50         </td>
51         {if t($field1)}
52         <td>{$c.$field1}</td>
53         {/if}
54         {if t($field2)}
55         <td>{$c.$field2}</td>
56         {/if}
57         {if t($field3)}
58         <td>{$c.$field3}</td>
59         {/if}
60         {if t($field4)}
61         <td>{$c.$field4}</td>
62         {/if}
63         {if t($fusionAction)}
64         <td><a class="fusion-action" href="{$fusionAction}/{$c.pid}/{$c.ax_id}">{$name}</a></td>
65         {/if}
66     </tr>
67 {/iterate}
68 {/if}
69 </table>