From: x2000habouzit Date: Fri, 16 Jul 2004 23:45:02 +0000 (+0000) Subject: one more page X-Git-Tag: xorg/old~1810 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=866a84a782363f52091ca1ac65a6b0f555a2e735;p=platal.git one more page +--------+--------+--------+--------+ | todo | post | done | tot. | +--------+--------+--------+--------+ | 35 | 31 | 108 | 174 | | 20% | 18% | 62% | 100% | +--------+--------+--------+--------+ PS: don't understand why, but jam seems to be fast as hell tonight ?! --- diff --git a/etat_migration b/etat_migration index 178ca9f..8370747 100644 --- a/etat_migration +++ b/etat_migration @@ -22,7 +22,6 @@ Etat | Ancien nom | Nouveau nom ; | admin/evenements.php | ;! | admin/pg.php | ------+-[ marketing ]-----------------------------+---------------- -; | admin/envoidirect.php | ; | admin/marketing_promo.php | marketing/ ; | admin/marketing_volontaire.php | marketing/ ; | admin/relance.php | marketing/ @@ -103,6 +102,7 @@ xx | acces_smtp.php | - xx | acces_wap.php | - xx | admin/ax-xorg.php | - xx | admin/deces_promo.php | - +xx | admin/envoidirect.php | marketing/envoidirect.php xx | admin/FormatePrenomNOM2.php | scripts/ xx | admin/FormatePrenomNOM.php | scripts/ xx | admin/gerer_applis.php | - diff --git a/htdocs/marketing/envoidirect.php b/htdocs/marketing/envoidirect.php new file mode 100644 index 0000000..db265bd --- /dev/null +++ b/htdocs/marketing/envoidirect.php @@ -0,0 +1,25 @@ +db->query("DELETE FROM envoidirect WHERE DATE_ADD(date_succes, INTERVAL 8 DAY) < CURRENT_DATE AND date_succes <> '0000-00-00'"); +$sql = "SELECT a.date_ins,e.date_envoi,e.promo,e.nom,e.prenom,e.email,b.nom as sender + FROM envoidirect AS e + INNER JOIN auth_user_md5 AS a ON e.matricule = a.matricule + LEFT JOIN auth_user_md5 AS b ON e.sender = b.user_id + ORDER BY e.date_envoi DESC"; + +$page->mysql_assign($sql, 'recents', 'nbrecents'); + +$sql = "SELECT e.date_envoi, e.promo, e.nom, e.prenom, e.email, b.nom as sender + FROM envoidirect AS e + LEFT JOIN auth_user_md5 AS a ON e.matricule = a.matricule + LEFT JOIN auth_user_md5 AS b ON e.sender = b.user_id + WHERE a.nom is null + ORDER BY e.date_envoi DESC"; +$page->mysql_assign($sql, 'notsub', 'nbnotsub'); + +$page->run(); + +?> diff --git a/templates/marketing/envoidirect.tpl b/templates/marketing/envoidirect.tpl new file mode 100644 index 0000000..1a835e2 --- /dev/null +++ b/templates/marketing/envoidirect.tpl @@ -0,0 +1,66 @@ +{* $Id: envoidirect.tpl,v 1.1 2004-07-16 23:45:03 x2000habouzit Exp $ *} + +
+ Liste des sollicités inscrits récemment +
+ +{dynamic} + + + + + + + + + + {foreach from=$recents item=it} + + + + + + + + {/foreach} +
Date sollicitationPromoNomEmailDate inscription
{$it.date_envoi|date_format:"%e %b %Y"} (par {$it.sender|truncate:4:""}) + {$it.promo} + {$it.nom} {$it.prenom} + {$it.email} + {$it.date_ins|date_format:"%e %b %Y"}
+

+{$nbrecents} Polytechniciens ont été sollicités et se sont inscrits. +

+ +
+ Liste des sollicités non inscrits +
+ + + + + + + + + {foreach from=$notsub item=it} + + + + + + + {/foreach} +
Date sollicitationPromoNomEmail
{$it.date_envoi|date_format:"%e %b %Y"} (par {$it.sender|truncate:4:""}) + {$it.promo} + {$it.nom} {$it.prenom} + {$it.email} +
+ +

+{$nbnotsub} Polytechniciens ont été sollicités et ne se sont toujours pas inscrits. +

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