X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fplview.trombi.tpl;h=15d9db0da2a1ab7e450815372704c8d7249c4798;hb=0be1a4a16a7e66d2a1bf617c2ed1914fae5e91a7;hp=89a5d9b71d680151563b184159a72796b1dcd8c9;hpb=8c4a0c30c699f190cb7906746e22f67014df3368;p=platal.git diff --git a/templates/include/plview.trombi.tpl b/templates/include/plview.trombi.tpl index 89a5d9b..15d9db0 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-2010 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -20,34 +20,40 @@ {* *} {**************************************************************************} - - {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_keys start=0} + {if $smarty.section.trombi.index % 3 == 1} + {assign var=key_prev value=$set_keys[trombi.index_prev]} + {assign var=key_cur value=$set_keys[trombi]} + {assign var=key_next value=$set_keys[trombi.index_next]} - {/if} - - {if $loop eq "3"} + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_prev] photo=true} + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_cur] photo=true} + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_next] photo=true} + + + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_prev] photo=false} + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_cur] photo=false} + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_next] photo=false} + + {elseif ($smarty.section.trombi.index % 3 == 0) && ($smarty.section.trombi.last)} + {assign var=key_cur value=$set_keys[trombi]} + + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_cur] photo=true} + + + + {include file="include/plview.trombi.entry.tpl" profile=$set[$key_cur] photo=false} + {/if} - {/iterate} - {if $loop neq "3"} - {if $lopp eq "1"} - - {/if} - - {/if} + {/section}
- -  [ PHOTO ] - - {if $trombi_with_admin && $smarty.session.perms->hasFlag('admin')} - {icon name=wrench title="[admin]"} - {/if} -
- - {$p.prenom} {$p.nom}{if $trombi_with_promo} ({$p.promo}){/if} - -
+{/if} {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}