* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: newsletter.inc.php,v 1.17 2004-10-20 12:59:32 x2000habouzit Exp $
+ $Id: newsletter.inc.php,v 1.18 2004-10-20 13:57:56 x2000habouzit Exp $
***************************************************************************/
}
}
+ function footer($html) {
+ if($html) {
+ return '<div class="foot">Cette lettre est envoyée à tous les Polytechniciens sur Internet par l\'intermédiaire de Polytechnique.org.</div>'
+ . '<div class="foot">'
+ . '[<a href="http://www.polytechnique.org/newsletter/">archives</a> | '
+ . '<a href="http://www.polytechnique.org/newsletter/submit.php">écrire dans la NL</a> | '
+ . '<a href="http://www.polytechnique.org/listes/?nl_unsub=1">ne plus recevoir</a> | '
+ . '<a href="http://www.polytechnique.org/listes/?nl_sub=text">recevoir en texte brut</a>]'
+ . '</div>';
+ } else {
+ return "\n\n--------------------------------------------------------------------\n"
+ . "Cette lettre est envoyée à tous les Polytechniciens sur Internet par\n"
+ . "l'intermédiaire de Polytechnique.org.\n"
+ . "\n"
+ . "archives : [http://www.polytechnique.org/newsletter/]\n"
+ . "écrire : [http://www.polytechnique.org/newsletter/submit.php]\n"
+ . "ne plus recevoir: [http://www.polytechnique.org/listes/?nl_unsub=1]\n"
+ . "recevoir en HTML: [http://www.polytechnique.org/listes/?nl_sub=html]\n";
+ }
+ }
+
function toText() {
$res = "====================================================================\n";
$res .= ' '.$this->title()."\n";
$res .= "\n\n";
}
}
+
+ $res .= $this->footer(false);
+
return $res;
}
}
}
+ $res .= $this->footer(true);
+
if($body) {
$res = <<<EOF
<html>
div.art { padding: 2ex; margin: 0ex 1ex 2ex 1ex; width: 58ex; border-top: 1px #cccccc solid; }
div.app { padding: 2ex 3ex 0ex 3ex; width: 100%; margin: 0ex; text-align: left; font-size: 95%; }
+ div.foot { border-top: 1px #808080 dashed; font-size: 95%; padding: 1ex; color: #808080; background: inherit; text-align: center; }
</style>
</head>
<body>
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: show.tpl,v 1.3 2004-10-16 22:44:40 x2000habouzit Exp $
+ $Id: show.tpl,v 1.4 2004-10-20 13:57:56 x2000habouzit Exp $
***************************************************************************}
{dynamic}
{/perms}
</p>
-<form method="post" action="{$smarty.server.PHP_SELF}">
+<form method="post" action="{$smarty.server.PHP_SELF}?nid={$nl->_id}">
<div class='center'>
<input type='submit' value="me l'envoyer" name='send' />
</div>