{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2006 Polytechnique.org *}
+{* Copyright (C) 2003-2010 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
{* *}
{**************************************************************************}
-<form action="{rel}/marketing/promo/" method="post" onsubmit="this.action += this.promo.value">
+<form action="marketing/promo/" method="post" onsubmit="this.action += this.promo.value">
<div class="center">
- <a href="{rel}/marketing/promo/{$promo-10}" title="-10"><img src="{rel}/images/24/first-page.png" alt="[<<]" /></a>
- <a href="{rel}/marketing/promo/{$promo-1}" title="-1"><img src="{rel}/images/24/previous.png" alt="[<]" /></a>
-
-
- Promo:<input type="text" name="promo" value="{$promo}" size="4" maxlength="4" /><input type="submit" value="GO" />
-
-
- <a href="{rel}/marketing/promo/{$promo+1}" title="+1"><img src="{rel}/images/24/next.png" alt="[>]" /></a>
- <a href="{rel}/marketing/promo/{$promo+10}" title="+10"><img src="{rel}/images/24/last-page.png" alt="[>>]" /></a>
+ Promo :<input type="text" name="promo" value="{$promo}" size="5" maxlength="5" /><input type="submit" value="GO" />
</div>
</form>
<br />
<div class="center">
- <a href="javascript:void(window.open('{"stats/stats_promo.php"|url}?promo={$promo}','','width=800,height=600,toolbar=no'))">
- Voir l'évolution des inscriptions de la promotion
+ <a href="javascript:void(window.open('stats/promos/{$promo}','','width=800,height=600,toolbar=no'))">
+ Voir l'évolution des inscriptions de la promotion
</a>
</div>
<br />
-<form action="{rel}/marketing/promo" method="post">
- <table class="bicol" summary="liste des inscriptions non confirmées">
+<form action="marketing/promo" method="post">
+ <table class="bicol" summary="liste des inscriptions non confirmées">
<tr>
<th>Nom</th>
- <th>Dernière adresse connue</th>
+ <th>Dernière adresse connue</th>
<th>Statut</th>
<th> </th>
</tr>
- {iterate from=$nonins item=it}
+ {foreach from=$nonins item=it}
<tr class="{cycle values="pair,impair"}">
- <td>{$it.nom} {$it.prenom}</td>
- <td>{if $it.last_known_email}{mailto address=$it.last_known_email}{/if}</td>
+ <td>{profile user=$it}</td>
+ <td>{if $it->lastKnownEmail()}{mailto address=$it->lastKnownEmail()}{/if}</td>
<td class="center">
- {if $it.dern_rel && $it.dern_rel != '0000-00-00'}
- Relance le: {$it.dern_rel}
- {elseif $it.email}
- En cours : {$it.email}
+ {if $it->pendingRegistrationDate() > $it->lastMarketingDate()}
+ En cours : {$it->pendingRegistrationEmail()}
+ {elseif $it->lastMarketingDate() && $it->lastMarketingDate() != '0000-00-00'}
+ Relance le : {$it->lastMarketingDate()}
{else}
-
{/if}
</td>
<td class="center">
- <a href="{rel}/marketing/private/{$it.user_id}">{*
- *}<img src="{rel}/images/admin.png" alt='Marketing' title="Marketing" /></a>
- <a href="http://www.polytechniciens.com/index.php?page=AX_FICHE_ANCIEN&anc_id={$it.matricule_ax}">{*
- *}<img src="{rel}/images/ax.png" alt='AX' title="fiche AX" /></a>
+ <a href="marketing/private/{$it->id()}">{icon name=wrench title="Marketing"}</a>
+ <a href="profile/ax/{$it->login()}">{icon name=user_gray title="fiche AX"}</a>
</td>
</tr>
- {/iterate}
+ {/foreach}
</table>
</form>
<p>
-{$nonins->total()} Polytechniciens de la promo {$promo} ne sont pas inscrits !
+{$nonins|@count} Polytechniciens de la promo {$promo} ne sont pas inscrits !
</p>
-{* vim:set et sw=2 sts=2 sws=2: *}
+{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}