function Platal()
{
- $this->path = Get::_get('p', null);
+ $this->path = trim(Get::_get('p', null), '/');
$this->__mods = array();
$this->__hooks = array();
return PL_NOT_FOUND;
}
- $args = array_merge(array(&$page),
- explode('/', substr($this->path, strlen($p) + 1)));
+ $args = explode('/', substr($this->path, strlen($p) + 1));
+ if ($args[0] != '') {
+ array_unshift($args, &$page);
+ } else {
+ $args = array(&$page);
+ }
if ($hook['auth'] > Session::get('auth', AUTH_PUBLIC)) {
$_SESSION['session']->doAuth($page);
if (list($nom, $prenom, $promo, $matricule) = $res->fetchOneRow()) {
require_once('register.inc.php');
$matricule_X = get_X_mat($matricule);
- $page->gassign('nom');
- $page->gassign('prenom');
- $page->gassign('promo');
- $page->gassign('matricule');
+ $page->assign('nom', $nom);
+ $page->assign('prenom', $prenom);
+ $page->assign('promo', $promo);
+ $page->assign('matricule', $matricule);
$page->assign('matricule_X',$matricule_X);
} else {
$page->kill('uid invalide');
$res = $globals->xdb->query("SELECT date, relance FROM register_pending
WHERE uid = {?}", $uid);
if (list($pending, $relance) = $res->fetchOneCell()) {
- $page->gassign('pending');
- $page->gassign('relance');
+ $page->assign('pending', $pending);
+ $page->assign('relance', $relance);
}
return PL_OK;
$page->changeTpl('marketing/promo.tpl');
- if (!$promo) {
- $promo = Env::has('promo') ? Env::getInt('promo') : Session::getInt('promo');
+ if (is_null($promo)) {
+ $promo = Session::getInt('promo');
}
$page->assign('promo', $promo);
</form>
{if $rel_to}
-<form action="{rel}/{$smarty.reqeust.p}" method="post">
+<form action="{rel}/{$smarty.request.p}" method="post">
<table class="bicol">
<tr class="pair">
<th colspan="2">Edition du mail de relance</th>
{* *}
{**************************************************************************}
-<table style="margin-left: auto; margin-right: auto">
- <tr>
- <td>
- <form action="{rel}/marketing/promo" method="get">
- <div>
- <input type="hidden" name="promo" value="{$promo-10}" />
- <input type="submit" value="<<" />
- </div>
- </form>
- </td>
- <td>
- <form action="{rel}/marketing/promo" method="get">
- <div>
- <input type="hidden" name="promo" value="{$promo-1}" />
- <input type="submit" value="<" />
- </div>
- </form>
- </td>
- <td>
- <form action="{rel}/marketing/promo" method="get">
- <div>
- Promotion : <input type="text" name="promo" value="{$promo}" size="4" maxlength="4" />
- <input type="submit" value="GO" />
- </div>
- </form>
- </td>
- <td>
- <form action="{rel}/marketing/promo" method="get">
- <div>
- <input type="hidden" name="promo" value="{$promo+1}" />
- <input type="submit" value=">" />
- </div>
- </form>
- </td>
- <td>
- <form action="{rel}/marketing/promo" method="get">
- <div>
- <input type="hidden" name="promo" value="{$promo+10}" />
- <input type="submit" value=">>" />
- </div>
- </form>
- </td>
- </tr>
-</table>
+<form action="{rel}/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>
+ </div>
+</form>
<br />
</a>
</div>
+<br />
+
<form action="{rel}/marketing/promo" method="post">
<table class="bicol" summary="liste des inscriptions non confirmées">
<tr>