{
$page->changeTpl('admin/validation.tpl');
$page->setTitle('Administration - Valider une demande');
- $page->addCssLink('nl.css');
+ $page->addCssLink('nl.css');
$page->addJsLink('ajax.js');
- require_once("validations.inc.php");
+ require_once 'validations.inc.php';
-
- if ($action == 'edit' and !is_null($id)) {
+ if ($action == 'edit' && !is_null($id)) {
$page->assign('preview_id', $id);
+ } else {
+ $page->assign('preview_id', null);
}
if(Env::has('uid') && Env::has('type') && Env::has('stamp')) {
{iterate item=valid from=$vit}
{assign var=type value=$valid->type}
-{if !$hide_requests[$type]}
+{if !t($hide_requests[$type])}
<br />
<table class="bicol">
<tr>
<form action="admin/validate" method="post">
{foreach from=$categories item=type}
- <div style="float:left;width:33%"><input type="checkbox" name="{$type}" id="hide_{$type}"{if !$hide_requests[$type]} checked="checked"{/if}/>
+ <div style="float:left;width:33%"><input type="checkbox" name="{$type}" id="hide_{$type}"{if !t($hide_requests[$type])} checked="checked"{/if}/>
<label for="hide_{$type}">{$type}</label></div>
{/foreach}
<div class="center" style="clear:left"><input type="submit" name="hide" value="Valider" /></div>