ins_confirmées
authorx2000habouzit <x2000habouzit>
Fri, 20 Feb 2004 03:37:14 +0000 (03:37 +0000)
committerx2000habouzit <x2000habouzit>
Fri, 20 Feb 2004 03:37:14 +0000 (03:37 +0000)
etat_migration
htdocs/admin/ins_confirmees.php [new file with mode: 0644]
templates/admin/ins_confirmees.tpl [new file with mode: 0644]

index 087f9fd..4713cc0 100644 (file)
@@ -3,10 +3,10 @@
 ,---------------------.
 | NB Etats :          |
 | ;   -> rien de fait |
+| ;!  -> postponned   |
 | x   -> à tester     |
 | xx  -> en templates |
 | xxx -> anonyme      |
-| ;!  -> postponned   |
 | x!! -> supprimée    |
 | xx! -> non modifiée |
 `---------------------'
@@ -23,7 +23,6 @@ Etat  | Ancien nom                                                              | Nouveau nom
 ;        | admin/envoidirect.php                                         | 
 ;        | admin/evenements.php                                          | 
 ;        | admin/homonymes.php                                           | 
-;        | admin/ins_confirmees.php                              | 
 ;        | admin/pg.php                                                          | 
 ------+-[ marketing ]-----------------------------+----------------
 ;        | admin/marketing.php                                           | marketing/
@@ -92,7 +91,6 @@ Etat  | Ancien nom                                                              | Nouveau nom
 ;        | trombino.php                                                          | 
 ;        | trombipromo.php                                                       | 
 ;        | x.php                                                                         | 
-------+-[ admin ]---------------------------------+----------------
 ------+-[ news ]----------------------------------+----------------
 ;!       | news/abonnements.php                                          | \
 ;!       | news/article.php                                              |  |
@@ -133,6 +131,7 @@ xx    | admin/gerer_paiement.php                              | -
 xx       | admin/gerer_skins.php                                         | -
 xx       | admin/graph_promo.php                                         | stats/graph_promo.php
 xx       | admin/index.php                                                       | -
+xx       | admin/ins_confirmees.php                              | -
 xx       | admin/logger_actions.php                              | -
 xx       | admin/logger.php                                              | -
 xx       | admin/newsletter_archi.php                            | -
diff --git a/htdocs/admin/ins_confirmees.php b/htdocs/admin/ins_confirmees.php
new file mode 100644 (file)
index 0000000..56612c8
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+require("auto.prepend.inc.php");
+new_admin_page('admin/ins_confirmees.tpl',true);
+
+if (!isset($_GET["sort"]) || $_GET["sort"] != "promo") $_GET["sort"] = "date_ins";
+
+$sql = "SELECT a.username,a.date_ins,a.promo,a.nom,a.prenom
+        FROM       ins_confirmees AS i
+        INNER JOIN auth_user_md5  AS a ON i.id=a.user_id
+        ORDER BY a.{$_GET['sort']} DESC";
+$page->mysql_assign($sql, 'ins', 'nb_ins');
+
+$page->run();
+?>
diff --git a/templates/admin/ins_confirmees.tpl b/templates/admin/ins_confirmees.tpl
new file mode 100644 (file)
index 0000000..95ca07c
--- /dev/null
@@ -0,0 +1,36 @@
+{* $Id: ins_confirmees.tpl,v 1.1 2004-02-20 03:37:15 x2000habouzit Exp $ *}
+
+{dynamic}
+
+<table class="bicol" summary="liste des nouveaux inscrits">
+  <tr>
+    <th>Inscription</th>
+    <th>Promo</th>
+    <th>Nom</th>
+  </tr>
+{foreach item=in from=$ins}
+  <tr class="{cycle values="impair,pair"}">
+    <td class="center">{$in.date_ins|date_format:"%d/%m/%Y - %H:%M"}</td>
+    <td class="center">
+      <a href="marketing_promo.php?promo={$in.promo}">{$in.promo}</a>
+    </td>
+    <td>
+      <a href="javascript:x()"  onclick="popWin('{"x.php"|url}?x={$in.username}')">
+        {$in.nom} {$in.prenom}</a>
+    </td>
+  </tr>
+{/foreach}
+</table>
+
+<br />
+<div class="right">
+  [<a href="{$smarty.server.PHP_SELF}?sort=date_ins">par date</a>]
+  [<a href="{$smarty.server.PHP_SELF}?sort=promo">par promo</a>]
+</div>
+<p class="normal">
+{$nb_ins} Polytechniciens se sont inscrits depuis le début de la semaine !
+</p>
+
+{/dynamic}
+
+{* vim:set et sw=2 sts=2 sws=2: *}