| 1 | {* *} |
| 2 | {* *} |
| 3 | {* *} |
| 4 | |
| 5 | {if $withtabs} |
| 6 | <table class="cadre_a_onglet" style="width: 100%" cellpadding="0" cellspacing="0"> |
| 7 | <tr> |
| 8 | <td> |
| 9 | <ul id="onglet"> |
| 10 | {foreach from=$pages item=pg key=name} |
| 11 | {if $name eq $page} |
| 12 | <li class="actif">{$pg.text}</li> |
| 13 | {assign var=current_page value=$pg} |
| 14 | {else} |
| 15 | <li>{if $name eq 'subscribe'}{link action=subscribe text=$pg.text} |
| 16 | {elseif $name eq 'forums'}{link text=$pg.text} |
| 17 | {elseif $name eq 'thread'}{link group=$group text=$group} |
| 18 | {elseif $name eq 'message'}{link group=$group artid=$artid text=$pg.text} |
| 19 | {else}{link page=$name text=$pg.text} |
| 20 | {/if}</li> |
| 21 | {/if} |
| 22 | {/foreach} |
| 23 | </ul> |
| 24 | </td> |
| 25 | </tr> |
| 26 | <tr> |
| 27 | <td class="conteneur_tab banana"> |
| 28 | {else} |
| 29 | <div class="banana"> |
| 30 | {/if} |
| 31 | {foreach from=$errors item=error} |
| 32 | <p class="error">{$error}</p> |
| 33 | {/foreach} |
| 34 | {if !$killed} |
| 35 | {foreach from=$actions item=act} |
| 36 | <p class="center" style="padding: 0; margin: 0 0 1em 0">{$act.text}</p> |
| 37 | {/foreach} |
| 38 | {if $page eq 'forums'} |
| 39 | {include file="banana-boxlist.inc.tpl" grouplist=$groups withstats=true} |
| 40 | {if $newgroups|@count} |
| 41 | <p>{"Les nouveaux groupes suivants ont été créés depuis votre dernière visite"|b}</p> |
| 42 | {include file="banana-boxlist.inc.tpl" grouplist=$newgroups withstats=true} |
| 43 | {/if} |
| 44 | {elseif $page eq 'subscribe'} |
| 45 | {include file="banana-boxlist.inc.tpl" grouplist=$groups withsubs=true} |
| 46 | {elseif $page eq 'thread'} |
| 47 | {include file="banana-thread.inc.tpl" withtitle=true} |
| 48 | {elseif $page eq 'message'} |
| 49 | {include file="banana-message.inc.tpl"} |
| 50 | {if $showthread} |
| 51 | {include file="banana-thread.inc.tpl" withtitle=false} |
| 52 | {/if} |
| 53 | {elseif $page eq 'new'} |
| 54 | {include file="banana-newmessage.inc.tpl"} |
| 55 | {elseif $page eq 'cancel'} |
| 56 | <p class="error">{"Voulez-vous vraiment annuler ce message ?"|b}</p> |
| 57 | <form action="{url group=$group artid=$artid action=cancel}" method="post"> |
| 58 | <p class="center"> |
| 59 | <input type="submit" name="cancel" value="{"Annuler !"|b}" /> |
| 60 | </p> |
| 61 | </form> |
| 62 | {include file="banana-message.inc.tpl" noactions=true} |
| 63 | {elseif $current_page.template} |
| 64 | {include file=$current_page.template} |
| 65 | {/if} |
| 66 | {/if} |
| 67 | {if $withtabs} |
| 68 | </td> |
| 69 | </tr> |
| 70 | </table> |
| 71 | {else} |
| 72 | </div> |
| 73 | {/if} |
| 74 | |
| 75 | {* vim:set et sw=2 sts=2 ts=2 enc=utf-8: *} |