From: Pascal Corpet Date: Mon, 17 Jan 2005 16:34:42 +0000 (+0000) Subject: bug 255 : add a new e-mail directly from private.php X-Git-Tag: xorg/old~382 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7f5c85e491ae17620139b1877a8cbe30b2c95432;p=platal.git bug 255 : add a new e-mail directly from private.php git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-375 --- diff --git a/htdocs/marketing/private.php b/htdocs/marketing/private.php index 0b3f11d..c305b02 100644 --- a/htdocs/marketing/private.php +++ b/htdocs/marketing/private.php @@ -65,6 +65,14 @@ if (Env::has('relance')) { } } +if (Env::get('action') == 'ajouter') { + $globals->xdb->execute( + "INSERT INTO register_marketing + SET uid = {?}, sender = {?}, email = {?}, + date = NOW(), type = {?}", + $uid, Session::get('uid'), Env::get('email'), Env::get('type')); +} + $res = $globals->xdb->iterator( "SELECT r.*, a.alias FROM register_marketing AS r diff --git a/templates/marketing/private.tpl b/templates/marketing/private.tpl index b0c2778..4d7ae87 100644 --- a/templates/marketing/private.tpl +++ b/templates/marketing/private.tpl @@ -50,6 +50,7 @@ sa derni

Adresses connues

+
@@ -76,7 +77,23 @@ sa derni + + + + +
Adresse (*): mail perso
+ + + + + + +
+
{if $rel_to}