X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Finclude%2Fplview.trombi.tpl;h=1c46ad1e962f2426c1ba98b449f0beec6e7854bb;hb=977168f6915e290cf8d9351651b9d8a0c908ac70;hp=bdedf2516f5429a228dee7fd370ec98717159cf5;hpb=a0c034efcf0777541e087500e94853f515cda1ca;p=platal.git diff --git a/templates/include/plview.trombi.tpl b/templates/include/plview.trombi.tpl index bdedf25..1c46ad1 100644 --- a/templates/include/plview.trombi.tpl +++ b/templates/include/plview.trombi.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2011 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -26,75 +26,36 @@

{else} - {section name=trombi loop=$set start=0} + {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]} + {assign var=profile_prev value=$set[$key_prev]|get_profile} + {assign var=profile_cur value=$set[$key_cur]|get_profile} + {assign var=profile_next value=$set[$key_next]|get_profile} + + + {include file="include/plview.trombi.entry.tpl" profile=$profile_prev photo=true} + {include file="include/plview.trombi.entry.tpl" profile=$profile_cur photo=true} + {include file="include/plview.trombi.entry.tpl" profile=$profile_next photo=true} + + + {include file="include/plview.trombi.entry.tpl" profile=$profile_prev photo=false} + {include file="include/plview.trombi.entry.tpl" profile=$profile_cur photo=false} + {include file="include/plview.trombi.entry.tpl" profile=$profile_next photo=false} + {elseif ($smarty.section.trombi.index % 3 == 0) && ($smarty.section.trombi.last)} - - - - - - - - + {assign var=key_cur value=$set_keys[trombi]} + {assign var=profile_cur value=$set[$key_cur]|get_profile} + + {include file="include/plview.trombi.entry.tpl" profile=$profile_cur photo=true} + + + + {include file="include/plview.trombi.entry.tpl" profile=$profile_cur photo=false} + + {/if} {/section}
- -  [ PHOTO ] - - {if $trombi_with_admin && hasPerm('admin')} - {icon name=wrench title="[admin]"} - {/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} - -