X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fplview.trombi.tpl;h=66c8973f9b048e0f16a0a1e4658ef8e1b27b259d;hb=9891bd15f772caef0c199a98f036e976bf4ab94a;hp=afe6d62f12ad7c5d44d00c13f0e43d85bd03614b;hpb=eccc8fa784f19c658862f57ff634cce331e0b40a;p=platal.git diff --git a/templates/include/plview.trombi.tpl b/templates/include/plview.trombi.tpl index afe6d62..66c8973 100644 --- a/templates/include/plview.trombi.tpl +++ b/templates/include/plview.trombi.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2007 Polytechnique.org *} +{* Copyright (C) 2003-2009 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,34 +20,86 @@ {* *} {**************************************************************************} - - {iterate from=$set item=p} - {cycle values="1,2,3" assign="loop"} - {if $loop eq "1"} +{if $plset_count eq 0} +

+ Aucun des camarades concernés n'a de photographie sur sa fiche +

+{else} +
+ {section name=trombi loop=$set start=0} + {if $smarty.section.trombi.index % 3 == 1} - {/if} - + + - {if $loop eq "3"} + + + + + + + {elseif ($smarty.section.trombi.index % 3 == 0) && ($smarty.section.trombi.last)} + + + + + + + {/if} - {/iterate} - {if $loop neq "3"} - {if $lopp eq "1"} - - {/if} - - {/if} + {/section}
- -  [ PHOTO ] + + +  [ PHOTO ] + + {if $trombi_with_admin && hasPerm('admin')} + {icon name=wrench title="[admin]"} + {/if} + + +  [ PHOTO ] - {if $trombi_with_admin && $smarty.session.perms->hasFlag('admin')} - {icon name=wrench title="[admin]"} + {if $trombi_with_admin && hasPerm('admin')} + {icon name=wrench title="[admin]"} {/if} -
- - {$p.prenom} {$p.nom}{if $trombi_with_promo} ({$p.promo}){/if} +
+ {if $set[trombi.index_next]} + +  [ PHOTO ] + {if $trombi_with_admin && hasPerm('admin')} + {icon name=wrench title="[admin]"} + {/if} + {/if}
+ + {$set[trombi.index_prev].name_display}{if $trombi_with_promo} ({$set[trombi.index_prev].promo_display}){/if} + + + + {$set[trombi].name_display}{if $trombi_with_promo} ({$set[trombi].promo_display}){/if} + + + {if $set[trombi.index_next]} + + {$set[trombi.index_next].name_display}{if $trombi_with_promo} ({$set[trombi.index_next].promo_display}){/if} + + {/if} +
+ +  [ PHOTO ] + + {if $trombi_with_admin && hasPerm('admin')} + {icon name=wrench title="[admin]"} + {/if} +
+ + + {$set[trombi].name_display}{if $trombi_with_promo} ({$set[trombi].promo_display}){/if} + +
+{/if} {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}