| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2008 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 | {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} |
| 28 | <table cellpadding="0" cellspacing="2" style="width: 100%"> |
| 29 | {section name=trombi loop=$set start=0} |
| 30 | {if $smarty.section.trombi.index % 3 == 1} |
| 31 | <tr> |
| 32 | <td class="center" style="vertical-align: middle"> |
| 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 ] " /> |
| 35 | </a> |
| 36 | {if $trombi_with_admin && hasPerm('admin')} |
| 37 | <a href="{$mainsiteurl}admin/trombino/{$set[trombi.index_prev].user_id}">{icon name=wrench title="[admin]"}</a> |
| 38 | {/if} |
| 39 | </td> |
| 40 | <td class="center" style="vertical-align: middle"> |
| 41 | <a href="{$mainsiteurl}profile/{$set[trombi].hruid}" class="popup2"> |
| 42 | <img src="photo/{$set[trombi].hruid}" width="110" alt=" [ PHOTO ] " /> |
| 43 | </a> |
| 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]} |
| 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 ] " /> |
| 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} |
| 57 | </td> |
| 58 | </tr> |
| 59 | <tr> |
| 60 | <td class="center" style="vertical-align: bottom; padding-bottom: 15px"> |
| 61 | <a href="{$mainsiteurl}profile/{$set[trombi.index_prev].hruid}" class="popup2"> |
| 62 | <span {if $set[trombi.index_prev].name_tooltip}class="hinted" |
| 63 | title="{$set[trombi.index_prev].name_tooltip}"{/if}>{$set[trombi.index_prev].name_display}</span>{if $trombi_with_promo} ({$set[trombi.index_prev].promo_display}){/if} |
| 64 | </a> |
| 65 | </td> |
| 66 | <td class="center" style="vertical-align: bottom; padding-bottom: 15px"> |
| 67 | <a href="{$mainsiteurl}profile/{$set[trombi].hruid}" class="popup2"> |
| 68 | <span {if $set[trombi].name_tooltip}class="hinted" title="{$set[trombi].name_tooltip}"{/if}>{$set[trombi].name_display}</span>{if $trombi_with_promo} ({$set[trombi].promo_display}){/if} |
| 69 | </a> |
| 70 | </td> |
| 71 | <td class="center" style="vertical-align: bottom; padding-bottom: 15px"> |
| 72 | {if $set[trombi.index_next]} |
| 73 | <a href="{$mainsiteurl}profile/{$set[trombi.index_next].hruid}" class="popup2"> |
| 74 | <span {if $set[trombi.index_next].name_tooltip}class="hinted" title="{$set[trombi.index_next].name_tooltip}"{/if}>{$set[trombi.index_next].name_display}</span>{if $trombi_with_promo} ({$set[trombi.index_next].promo_display}){/if} |
| 75 | </a> |
| 76 | {/if} |
| 77 | </td> |
| 78 | </tr> |
| 79 | {elseif ($smarty.section.trombi.index % 3 == 0) && ($smarty.section.trombi.last)} |
| 80 | <tr> |
| 81 | <td class="center" style="vertical-align: middle; padding-bottom: 15px"> |
| 82 | <a href="{$mainsiteurl}profile/{$set[trombi].hruid}" class="popup2"> |
| 83 | <img src="photo/{$set[trombi].hruid}" width="110" alt=" [ PHOTO ] " /> |
| 84 | </a> |
| 85 | {if $trombi_with_admin && hasPerm('admin')} |
| 86 | <a href="{$mainsiteurl}admin/trombino/{$set[trombi].user_id}">{icon name=wrench title="[admin]"}</a> |
| 87 | {/if} |
| 88 | </td> |
| 89 | <td></td><td></td> |
| 90 | </tr> |
| 91 | <tr style="margin-top: 0; padding-top: 0"> |
| 92 | <td class="center" style="vertical-align: bottom"> |
| 93 | <a href="{$mainsiteurl}profile/{$set[trombi].hruid}" class="popup2"> |
| 94 | <a href="{$mainsiteurl}profile/{$set[trombi].forlife}" class="popup2"> |
| 95 | <span {if $set[trombi].name_tooltip}class="hinted" title="{$set[trombi].name_tooltip}"{/if}>{$set[trombi].name_display}</span>{if $trombi_with_promo} ({$set[trombi].promo_display}){/if} |
| 96 | </a> |
| 97 | </td> |
| 98 | <td></td><td></td> |
| 99 | </tr> |
| 100 | {/if} |
| 101 | {/section} |
| 102 | </table> |
| 103 | {/if} |
| 104 | |
| 105 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |