From e3437d1248997eb92c679b41722f387f0e53af5a Mon Sep 17 00:00:00 2001 From: Pascal Corpet Date: Sat, 15 Jan 2005 12:38:37 +0000 Subject: [PATCH] tri des contacts avec des images git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-338 --- templates/carnet/mescontacts.tpl | 14 ++------------ templates/carnet/tricontacts.tpl | 41 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 12 deletions(-) create mode 100644 templates/carnet/tricontacts.tpl diff --git a/templates/carnet/mescontacts.tpl b/templates/carnet/mescontacts.tpl index 1d15a02..c5b6110 100644 --- a/templates/carnet/mescontacts.tpl +++ b/templates/carnet/mescontacts.tpl @@ -63,12 +63,7 @@ Pour r Pour afficher la liste détaillée de tes contacts: [vue classique]

-

-Trier par : -[nom inversé{else}'>nom{/if}] -[promo croissante{else}&inv=1'>promo{/if}] -[dernière modification inversée{else}&inv=1'>dernière modification{/if}] -

+{include file=carnet/tricontacts.tpl order=$order} {$trombi->show()|smarty:nodefaults} @@ -82,12 +77,7 @@ Trier par : Pour afficher le trombi de tes contacts : [vue sous forme de trombi]

-

-Trier par : -[nom inversé{else}'>nom{/if}] -[promo croissante{else}&inv=1'>promo{/if}] -[dernière modification inversée{else}&inv=1'>dernière modification{/if}] -

+{include file=carnet/tricontacts.tpl order=$order}
diff --git a/templates/carnet/tricontacts.tpl b/templates/carnet/tricontacts.tpl new file mode 100644 index 0000000..3a3eaf1 --- /dev/null +++ b/templates/carnet/tricontacts.tpl @@ -0,0 +1,41 @@ +{*************************************************************************** + * Copyright (C) 2003-2004 Polytechnique.org * + * http://opensource.polytechnique.org/ * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * + ***************************************************************************} + + +

+Trier par : +{if ($order eq 'nom') and not($smarty.request.inv)} +[nom ] +{else} +[{if ($order eq 'nom')}nom {else}nom{/if}] +{/if} +{if ($order eq 'promo') and ($smarty.request.inv)} +[promo ] +{else} +[{if ($order eq 'promo')}promo {else}promo{/if}] +{/if} +{if ($order eq 'last') and ($smarty.request.inv)} +[dernière modification ] +{else} +[{if ($order eq 'last')}dernière modification {else}dernière modification{/if}] +{/if} +

+ +{* vim:set et sw=2 sts=2 sws=2: *} -- 2.1.4