X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fplview.trombi.tpl;h=bdedf2516f5429a228dee7fd370ec98717159cf5;hb=a0c034efcf0777541e087500e94853f515cda1ca;hp=f9bb41756ae9c80530e0a1f6b39281a159b061c8;hpb=ec011456c86a9f646a34a3bb96953ae77a89f82c;p=platal.git diff --git a/templates/include/plview.trombi.tpl b/templates/include/plview.trombi.tpl index f9bb417..bdedf25 100644 --- a/templates/include/plview.trombi.tpl +++ b/templates/include/plview.trombi.tpl @@ -25,34 +25,78 @@ Aucun des camarades concernés n'a de photographie sur sa fiche

{else} - - {foreach from=$set item=p} - {cycle values="1,2,3" assign="loop"} - {if $loop eq "1"} +
+ {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} - {/foreach} - {if $loop neq "3"} - {if $lopp eq "1"} - - {/if} - - {/if} + {/section}
- -  [ PHOTO ] + + +  [ PHOTO ] {if $trombi_with_admin && hasPerm('admin')} - {icon name=wrench title="[admin]"} + {icon name=wrench title="[admin]"} {/if} -
- - {$p.prenom} {$p.nom}{if $trombi_with_promo} ({$p.promo}){/if} +
+ +  [ PHOTO ] + {if $trombi_with_admin && hasPerm('admin')} + {icon name=wrench title="[admin]"} + {/if} + + {if $set[trombi.index_next]} + +  [ PHOTO ] + + {if $trombi_with_admin && hasPerm('admin')} + {icon name=wrench title="[admin]"} + {/if} + {/if}
+ + {$set[trombi.index_prev].prenom} {$set[trombi.index_prev].nom}{if $trombi_with_promo} ({$set[trombi.index_prev].promo}){/if} + + + + {$set[trombi].prenom} {$set[trombi].nom}{if $trombi_with_promo} ({$set[trombi].promo}){/if} + + + {if $set[trombi.index_next]} + + {$set[trombi.index_next].prenom} {$set[trombi.index_next].nom}{if $trombi_with_promo} ({$set[trombi.index_next].promo}){/if} + + {/if} +
+ +  [ PHOTO ] + + {if $trombi_with_admin && hasPerm('admin')} + {icon name=wrench title="[admin]"} + {/if} +
+ + {$set[trombi].prenom} {$set[trombi].nom}{if $trombi_with_promo} ({$set[trombi].promo}){/if} + +
{/if}