From: x2000habouzit Date: Fri, 9 Jul 2004 14:35:36 +0000 (+0000) Subject: debut migration marketing X-Git-Tag: xorg/old~1812 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=0e23c3a2c79d3225f07e328ebd1f584cb81b89fe;p=platal.git debut migration marketing --- diff --git a/etat_migration b/etat_migration index e496d66..6a37f98 100644 --- a/etat_migration +++ b/etat_migration @@ -29,7 +29,6 @@ Etat | Ancien nom | Nouveau nom ; | admin/relance.php | marketing/ ; | admin/utilisateurs_identification.php | marketing/ ; | admin/utilisateurs_marketing.php | marketing/ -; | marketing.php | marketing/index ------+-[ docs ]----------------------------------+---------------- ; | docs/FROM.php | docs/from.php ; | en-cours.php | docs/en-cours.php @@ -163,6 +162,7 @@ xx! | groupex/export-econfiance.php | - xx | groupex.php | groupex/index.php xx | index.php | - xx | login.php | - +xx | marketing.php | marketing/public.php xx | mescontacts.php | - xx | motdepassemd5.php | - xx | nbpromo2.php | stats/nb_by_promo.php diff --git a/htdocs/marketing/public.php b/htdocs/marketing/public.php new file mode 100644 index 0000000..d98c54b --- /dev/null +++ b/htdocs/marketing/public.php @@ -0,0 +1,24 @@ +db->query("SELECT nom,prenom,promo FROM identification WHERE matricule = '$mat'"); +if (list($nom, $prenom, $promo) = mysql_fetch_row($res)) { + $page->assign('prenom', $prenom); + $page->assign('nom', $nom); + $page->assign('promo', $promo); +} + +if (isset($_REQUEST["valide"])) { + $globals->db->query( + "INSERT INTO marketing + SET expe = {$_SESSION['uid']}, dest = '$mat', email = '{$_REQUEST['mail']}', flags = '".(($_REQUEST["origine"]=="perso") ? "mail_perso" : "")."'" + ); +} + +$page->run(); +?> diff --git a/templates/marketing/public.tpl b/templates/marketing/public.tpl new file mode 100644 index 0000000..a4de44e --- /dev/null +++ b/templates/marketing/public.tpl @@ -0,0 +1,76 @@ +{* $Id: public.tpl,v 1.1 2004-07-09 14:35:37 x2000habouzit Exp $ *} + +{dynamic} +{if $smarty.request.num} + +{if $smarty.request.valide} + +

+ Merci de nous avoir communiqué cette information ! Un administrateur de Polytechnique.org va + envoyer un email de proposition d'inscription à Polytechnique.org à {$prenom} {$nom} dans les + toutes prochaines heures (ceci est fait à la main pour vérifier qu'aucun utilisateur malveillant + ne fasse mauvais usage de cette fonctionnalité...). +

+

+ Merci de ton aide à la reconnaissance de notre site ! Tu seras informé par email de + l'inscription de {$prenom} {$nom} si notre camarade accepte de rejoindre la communauté des X sur + le web ! +

+ +{else} + +{if $prenom} +
+ Et si nous proposions à {$prenom} {$nom} de s'inscrire à Polytechnique.org ? +
+ +

+ En effet notre camarade n'a pour l'instant pas encore rejoint la communauté des X sur le web... + C'est dommage, et en nous indiquant son adresse email, tu nous permettrais de lui envoyer une + proposition d'inscription. +

+

+ Si tu es d'accord, merci d'indiquer ci-dessous l'adresse email de {$prenom} {$nom} si tu la + connais. Nous nous permettons d'attirer ton attention sur le fait que nous avons besoin d'être + sûrs que cette adresse est bien la sienne, afin que la partie privée du site reste uniquement + accessible aux seuls polytechniciens. Merci donc de ne nous donner ce renseignement uniquement si + tu es certain de sa véracité ! +

+

+ Nous pouvons au choix lui écrire au nom de l'équipe Polytechnique.org, ou bien, si tu le veux + bien, en ton nom. A toi de choisir la solution qui te paraît la plus adaptée !! Une fois {$prenom} + {$nom} inscrit, nous t'enverrons un email pour te prévenir que son inscription a réussi. +

+ +
+ + + + + + + + + + + + + +
Nom :{$nom}
Prénom :{$prenom}
Promo :{$promo}
Adresse email : + +
Nous lui écrirons : + en ton nom
+ au nom de l'équipe Polytechnique.org +
+
+ +
+{/if} + +{/if} + +{/if} +{/dynamic} + + +{* vim:set et sw=2 sts=2 sws=2: *}