From: x2000habouzit Date: Sun, 28 Nov 2004 22:51:28 +0000 (+0000) Subject: a lot of work about lists archives. X-Git-Tag: xorg/old~758 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=4b417a5981ad304fb814d77f647fbb90b0952b7b;p=platal.git a lot of work about lists archives. --- diff --git a/htdocs/listes/archives.php b/htdocs/listes/archives.php new file mode 100644 index 0000000..2f5116b --- /dev/null +++ b/htdocs/listes/archives.php @@ -0,0 +1,40 @@ +get_members($liste)) { + $file = isset($_GET['file']) ? $_GET['file'] : "dates.html"; + $page->assign('url', $globals->lists->spool."/polytechnique.org-$liste/$file"); +} else + $page->assign('no_list',true); + +$page->run(); +?> diff --git a/include/conf.d/lists.globals.inc.php b/include/conf.d/lists.globals.inc.php new file mode 100644 index 0000000..d796709 --- /dev/null +++ b/include/conf.d/lists.globals.inc.php @@ -0,0 +1,39 @@ +lists = new ListsConfig; + +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker: +?> diff --git a/install.d/lists/files b/install.d/lists/files index 6060c54..0119966 100644 --- a/install.d/lists/files +++ b/install.d/lists/files @@ -39,3 +39,13 @@ templates/listes/soptions.tpl templates/listes/trombi.tpl templates/mails/listes.promo.tpl templates/mails/valid.liste.tpl +htdocs/images/lists_date.png +htdocs/images/lists_firstia.png +htdocs/images/lists_first.png +htdocs/images/lists_lastia.png +htdocs/images/lists_last.png +htdocs/images/lists_nextia.png +htdocs/images/lists_next.png +htdocs/images/lists_previa.png +htdocs/images/lists_prev.png +htdocs/images/lists_thread.png diff --git a/install.d/lists/platal.mrc b/install.d/lists/platal.mrc new file mode 100644 index 0000000..6dc287c --- /dev/null +++ b/install.d/lists/platal.mrc @@ -0,0 +1,487 @@ + + + + +%d-%m-%y + + +25 + + + + + +text/plain +text/html + + + +m2h_external::filter; forceinline +m2h_text_plain::filter; fancyquote maxwidth=80 quoteclass=quote + + + +/home/x2000habouzit/mh/attach/ + + + +../attach + + + + + + + + + +MY-LINK +?liste={$$smarty.request.liste}&file= + + + +MY-ESCSUBJ +$SUBJECTNA$ + + + +MY-SUBJ +$MY-ESCSUBJ$ + + + +MY-SUBJNA +$MY-ESCSUBJ$ + + + + + + + + + + +précédent + + + +précedent + + + +suivant + + + +suivant + + + +début + + + +fin + + + + +précédent + + + +précedent + + + +suivant + + + +suivant + + + +début + + + +fin + + + + +précédent + + + + + + + +suivant + + + +suivant + + + +début + + + +fin + + + +début + + + +fin + + + + + + + + + + + + + + + + + + + + + +

Vue de message

+ + + + + + + + + + + + + + + +
fil précédentmsg. précédentvue par dates/filsmsg. suivantfil suivant
$BUTTON(TPREVTOP)$$BUTTON(TPREVIN)$ + par dates + / + par fils + $BUTTON(TNEXTIN)$$BUTTON(TNEXTTOP)$
+
+ + + + + + + + + + + + + + + + + + + + +
+ + +-default-: + + + + + +subject +from +to +date + + +subject:strong +-default-: + + +
+ + + + + + + +
{literal} + + + + {/literal}
+ $TSLICE$ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Archives de la liste {$$smarty.request.liste} ($PAGENUM$/$NUMOFPAGES$)

+ + + + + + + + + + + + + + + +
 précédentvue par datesuivant 
$PGLINK(TFIRST)$$PGLINK(TPREV)$par dates$PGLINK(TNEXT)$$PGLINK(TLAST)$
+ + + + +
+ + + + + + + + + + + + + + + - - - + + $MSGLOCALDATE$ + $MY-SUBJ$ + $FROMNAME$ + + + + + + + + +   + [...] +   + + + + + + + + + + + + + + + + + + + + + + + + + + + + $MSGLOCALDATE$ + $MY-SUBJ$ + $FROMNAME$ + + + + + + $MSGLOCALDATE$ + $MY-SUBJ$ + $FROMNAME$ + + + + + + + + + <non disponnible> +   + + + + + + + +10;10;1 + + + + + + +
+ + + + + $MSGLOCALDATE$ + $MY-SUBJ$ + $FROMNAME$ + + + + + + $MSGLOCALDATE$ + $MY-SUBJNA$ + $FROMNAME$ + + + + + + + + + + $MSGLOCALDATE$ + $MY-SUBJNA$ + $FROMNAME$ + + + + + + + + + + + + + + +dates.html + + +date + + + + + + + + + + + + + + + + +

Archives de la liste {$$smarty.request.liste} ($PAGENUM$/$NUMOFPAGES$)

+ + + + + + + + + + + + + + + +
 précédentvue par filssuivant 
$PGLINK(FIRST)$$PGLINK(PREV)$par fils$PGLINK(NEXT)$$PGLINK(LAST)$
+ + + + +
+ + + + + + + + + + + + $MSGLOCALDATE$ + $MY-SUBJ$ + $FROMNAME$ + + + + + + + + diff --git a/templates/listes/archives.head.tpl b/templates/listes/archives.head.tpl new file mode 100644 index 0000000..ccda8b8 --- /dev/null +++ b/templates/listes/archives.head.tpl @@ -0,0 +1,53 @@ +{*************************************************************************** + * 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 * + *************************************************************************** + $Id: archives.head.tpl,v 1.1 2004-11-28 22:51:29 x2000habouzit Exp $ + ***************************************************************************} + +{literal} + +{/literal} + +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/listes/archives.tpl b/templates/listes/archives.tpl new file mode 100644 index 0000000..e78faab --- /dev/null +++ b/templates/listes/archives.tpl @@ -0,0 +1,39 @@ +{*************************************************************************** + * 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 * + *************************************************************************** + $Id: archives.tpl,v 1.1 2004-11-28 22:51:29 x2000habouzit Exp $ + ***************************************************************************} + +{dynamic} + +{if $no_list} + +

La liste n'existe pas ou tu n'as pas le droit d'en voir les détails

+ +{else} + +{include file="listes/header_listes.tpl" on=archives} + +{include file="$url"} + +{/if} + +{/dynamic} + +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/listes/header_listes.tpl b/templates/listes/header_listes.tpl index 73b653c..85c7123 100644 --- a/templates/listes/header_listes.tpl +++ b/templates/listes/header_listes.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: header_listes.tpl,v 1.3 2004-11-27 19:00:33 x2000habouzit Exp $ + $Id: header_listes.tpl,v 1.4 2004-11-28 22:51:29 x2000habouzit Exp $ ***************************************************************************} {dynamic} @@ -41,6 +41,11 @@ {else} [trombinoscope] {/if} + {if $on neq archives} + [archives] + {else} + [archives] + {/if} {if $details.own || $smarty.session.perms eq admin} @@ -63,7 +68,7 @@ [options] {/if} {if $on neq delete} - [détruire liste] + [détruire] {else} [détruire liste] {/if}