From: x2000habouzit Date: Fri, 16 Jul 2004 20:22:02 +0000 (+0000) Subject: unepage de marketing en plus X-Git-Tag: xorg/old~1811 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=9d481237e80e9a059fa0a2fc13069d4f7fd5416f;p=platal.git unepage de marketing en plus +--------+--------+--------+--------+ | todo | post | done | tot. | +--------+--------+--------+--------+ | 36 | 31 | 107 | 174 | | 20% | 18% | 61% | 100% | +--------+--------+--------+--------+ --- diff --git a/etat_migration b/etat_migration index 6a37f98..178ca9f 100644 --- a/etat_migration +++ b/etat_migration @@ -22,7 +22,6 @@ Etat | Ancien nom | Nouveau nom ; | admin/evenements.php | ;! | admin/pg.php | ------+-[ marketing ]-----------------------------+---------------- -; | admin/marketing.php | marketing/ ; | admin/envoidirect.php | ; | admin/marketing_promo.php | marketing/ ; | admin/marketing_volontaire.php | marketing/ @@ -120,6 +119,7 @@ xx | admin/index.php | - xx | admin/ins_confirmees.php | - xx | admin/logger_actions.php | - xx | admin/logger.php | - +xx | admin/marketing.php | marketing/index.php xx | admin/newsletter_archi.php | - xx | admin/newsletter_pattecassee.php | - xx | admin/newsletter_prep.php | - diff --git a/htdocs/marketing/index.php b/htdocs/marketing/index.php new file mode 100644 index 0000000..30313f8 --- /dev/null +++ b/htdocs/marketing/index.php @@ -0,0 +1,44 @@ += 1972, 0)) as vivants72, + count(NULLIF(i.promo >= 1972 AND u.matricule, 0)) as inscrits72, + 100 * count(NULLIF(i.promo >= 1972 AND u.matricule, 0)) / + count(NULLIF(i.promo >= 1972, 0)) as ins72_rate, + count(NULLIF(FIND_IN_SET('femme', i.flags), 0)) as vivantes, + count(NULLIF(FIND_IN_SET('femme', i.flags) AND u.matricule, 0)) as inscrites, + 100 * count(NULLIF(FIND_IN_SET('femme', i.flags) AND u.matricule, 0)) / + count(NULLIF(FIND_IN_SET('femme', i.flags), 0)) as inse_rate + FROM identification as i + LEFT JOIN auth_user_md5 as u USING(matricule) + WHERE i.deces = 0"; +$res = $globals->db->query($sql); +$stats = mysql_fetch_assoc($res); + +$page->assign('stats', $stats); +mysql_free_result($res); + +$res = $globals->db->query("SELECT count(*) FROM ins_confirmees"); +list($nbInsSem) = mysql_fetch_row($res); +mysql_free_result($res); + +$page->assign('nbInsSem', $nbInsSem); + +$res = $globals->db->query("SELECT count(*) FROM en_cours WHERE loginbis != 'INSCRIT'"); +list($nbInsEnCours) = mysql_fetch_row($res); +mysql_free_result($res); +$page->assign('nbInsEnCours', $nbInsEnCours); + +$res = $globals->db->query("SELECT count(*) FROM envoidirect as e left join auth_user_md5 as a ON e.matricule = a.matricule WHERE a.nom is null"); +list($nbInsEnvDir) = mysql_fetch_row($res); +mysql_free_result($res); +$page->assign('nbInsEnvDir', $nbInsEnvDir); + +$page->run(); +?> diff --git a/htdocs/marketing/public.php b/htdocs/marketing/public.php index d98c54b..7e7c976 100644 --- a/htdocs/marketing/public.php +++ b/htdocs/marketing/public.php @@ -2,7 +2,7 @@ require("auto.prepend.inc.php"); new_skinned_page('marketing/public.php', AUTH_MDP); -if (! isset($_REQUEST["num"])) { require("footer.inc.php"); exit; } +if (! isset($_REQUEST["num"])) { exit; } $mat = (((integer) $_REQUEST["num"]) + 100) / 2; diff --git a/templates/marketing/index.tpl b/templates/marketing/index.tpl new file mode 100644 index 0000000..cf2eeec --- /dev/null +++ b/templates/marketing/index.tpl @@ -0,0 +1,63 @@ +{* $Id: index.tpl,v 1.1 2004-07-16 20:22:03 x2000habouzit Exp $ *} + + +
Marketing Polytechnique.org
+ + + + + + + + + + + + + + +
actions disponibles
+ Premier contact : + Chercher un non inscrit   |   + Marketing promo   |   + Sollicitations faites +
+ Relances : + Inscriptions confirmées +   |   + Relance des ½-inscrits +
+ Emails : + Utiliser les adresses données par les inscrits +
+ +
+ +{dynamic} +

+Nombre d'X vivants d'après notre base de données : {$stats.vivants}
+Nombre d'X vivants inscrits à Polytechnique.org : {$stats.inscrits}
+Soit un pourcentage d'inscrits de : {$stats.ins_rate} %
+

+ +

+Parmi ceux-ci :
+Nombre d'X vivants depuis 1972 d'après notre base de données : {$stats.vivants72}
+Nombre d'X vivants depuis 1972 inscrits à Polytechnique.org : {$stats.inscrits72}
+Soit un pourcentage d'inscrits de : {$stats.ins72_rate} %
+

+ +

+Nombre de Polytechniciennes vivantes : {$stats.vivantes}
+Nombre de Polytechniciennes vivantes et inscrites : {$stats.inscrites}
+Soit un pourcentage d'inscrites de : {$stats.inse_rate} %
+

+ +

+Nombre d'inscrits depuis le début de la semaine : {$nbInsSem}
+Nombre d'inscriptions en cours (2ème phase non terminée) : {$nbInsEnCours}
+Nombre d'envois marketing effectués n'ayant pas abouti : {$nbInsEnvDir} +

+{/dynamic} + +{* vim:set et sw=2 sts=2 sws=2: *}