Merge commit 'origin/platal-0.10.0'
[platal.git] / templates / include / plview.trombi.tpl
CommitLineData
8c4a0c30 1{**************************************************************************}
2{* *}
8d84c630 3{* Copyright (C) 2003-2009 Polytechnique.org *}
8c4a0c30 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
360ecb20 23{if $plset_count eq 0}
24<p class="erreur">
25 Aucun des camarades concernés n'a de photographie sur sa fiche
26</p>
27{else}
be7ba6fb 28<table cellpadding="0" cellspacing="2" style="width: 100%">
81bb9177
FB
29 {section name=trombi loop=$set start=0}
30 {if $smarty.section.trombi.index % 3 == 1}
8c4a0c30 31 <tr>
be7ba6fb 32 <td class="center" style="vertical-align: middle">
7773d125
VZ
33 <a href="{$mainsiteurl}profile/{$set[trombi.index_prev].hruid}" class="popup2">
34 <img src="photo/{$set[trombi.index_prev].hruid}" width="110" alt=" [ PHOTO ] " />
8c4a0c30 35 </a>
908db125 36 {if $trombi_with_admin && hasPerm('admin')}
be7ba6fb 37 <a href="{$mainsiteurl}admin/trombino/{$set[trombi.index_prev].user_id}">{icon name=wrench title="[admin]"}</a>
8c4a0c30 38 {/if}
be7ba6fb
SJ
39 </td>
40 <td class="center" style="vertical-align: middle">
7773d125
VZ
41 <a href="{$mainsiteurl}profile/{$set[trombi].hruid}" class="popup2">
42 <img src="photo/{$set[trombi].hruid}" width="110" alt=" [ PHOTO ] " />
8c4a0c30 43 </a>
be7ba6fb
SJ
44 {if $trombi_with_admin && hasPerm('admin')}
45 <a href="{$mainsiteurl}admin/trombino/{$set[trombi].user_id}">{icon name=wrench title="[admin]"}</a>
46 {/if}
47 </td>
48 <td class="center" style="vertical-align: middle">
49 {if $set[trombi.index_next]}
7773d125
VZ
50 <a href="{$mainsiteurl}profile/{$set[trombi.index_next].hruid}" class="popup2">
51 <img src="photo/{$set[trombi.index_next].hruid}" width="110" alt=" [ PHOTO ] " />
be7ba6fb
SJ
52 </a>
53 {if $trombi_with_admin && hasPerm('admin')}
54 <a href="{$mainsiteurl}admin/trombino/{$set[trombi.index_next].user_id}">{icon name=wrench title="[admin]"}</a>
55 {/if}
56 {/if}
8c4a0c30 57 </td>
be7ba6fb
SJ
58 </tr>
59 <tr>
60 <td class="center" style="vertical-align: bottom; padding-bottom: 15px">
7773d125 61 <a href="{$mainsiteurl}profile/{$set[trombi.index_prev].hruid}" class="popup2">
be7ba6fb
SJ
62 {$set[trombi.index_prev].prenom} {$set[trombi.index_prev].nom}{if $trombi_with_promo} ({$set[trombi.index_prev].promo}){/if}
63 </a>
64 </td>
65 <td class="center" style="vertical-align: bottom; padding-bottom: 15px">
7773d125 66 <a href="{$mainsiteurl}profile/{$set[trombi].hruid}" class="popup2">
be7ba6fb
SJ
67 {$set[trombi].prenom} {$set[trombi].nom}{if $trombi_with_promo} ({$set[trombi].promo}){/if}
68 </a>
69 </td>
70 <td class="center" style="vertical-align: bottom; padding-bottom: 15px">
71 {if $set[trombi.index_next]}
7773d125 72 <a href="{$mainsiteurl}profile/{$set[trombi.index_next].hruid}" class="popup2">
be7ba6fb
SJ
73 {$set[trombi.index_next].prenom} {$set[trombi.index_next].nom}{if $trombi_with_promo} ({$set[trombi.index_next].promo}){/if}
74 </a>
75 {/if}
76 </td>
77 </tr>
81bb9177 78 {elseif ($smarty.section.trombi.index % 3 == 0) && ($smarty.section.trombi.last)}
be7ba6fb
SJ
79 <tr>
80 <td class="center" style="vertical-align: middle; padding-bottom: 15px">
7773d125
VZ
81 <a href="{$mainsiteurl}profile/{$set[trombi].hruid}" class="popup2">
82 <img src="photo/{$set[trombi].hruid}" width="110" alt=" [ PHOTO ] " />
be7ba6fb
SJ
83 </a>
84 {if $trombi_with_admin && hasPerm('admin')}
85 <a href="{$mainsiteurl}admin/trombino/{$set[trombi].user_id}">{icon name=wrench title="[admin]"}</a>
86 {/if}
87 </td>
88 <td></td><td></td>
89 </tr>
90 <tr style="margin-top: 0; padding-top: 0">
91 <td class="center" style="vertical-align: bottom">
7773d125 92 <a href="{$mainsiteurl}profile/{$set[trombi].hruid}" class="popup2">
be7ba6fb
SJ
93 {$set[trombi].prenom} {$set[trombi].nom}{if $trombi_with_promo} ({$set[trombi].promo}){/if}
94 </a>
95 </td>
96 <td></td><td></td>
8c4a0c30 97 </tr>
98 {/if}
be7ba6fb 99 {/section}
8c4a0c30 100</table>
360ecb20 101{/if}
8c4a0c30 102
103{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}