<?php
/***************************************************************************
- * Copyright (C) 2003-2010 Polytechnique.org *
+ * Copyright (C) 2003-2014 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
-function smarty_function_test_email($params, &$smarty) {
+function smarty_function_test_email($params, $smarty) {
$label = isset($params['title']) ? $params['title'] : 'Envoyer un email de test';
$token = "'" . S::v('xsrf_token') . (isset($params['hruid']) ? "', " : "'");
$hruid = isset($params['hruid']) ? "'" . $params['hruid'] . "'" : '';
return '<div class="center">'
. ' <div id="mail_sent" style="position: absolute;"></div><br />'
- . ' <form action="emails/test" method="get" onsubmit="return sendTestEmail(' . $token . $hruid . ')">'
- . ' <input type="hidden" name="token" value="' . S::v('xsrf_token') . '" />'
- . ' <div><input type="submit" name="send" value="' . $label . '" /></div>'
- . ' </form>'
+ . ' <div><input type="submit" name="send" value="' . $label . '" onclick="sendTestEmail(' . $token . $hruid . ')" /></div>'
. '</div>';
}
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
?>