This commit is contained in:
Aram HARUTYUNYAN 2013-04-25 12:14:23 +00:00
parent 69b603b3ce
commit 95ba6b7d80
2 changed files with 19 additions and 0 deletions

View File

@ -753,6 +753,10 @@ class DashboardController extends Zend_Controller_Action
require_once 'Scores/WsScores.php';
$ws = new WsScores();
//récupération la valeur de la langue de la bdd
$reponse = $ws->getInfosLogin($login, $_SERVER['REMOTE_ADDR']);
$this->view->assign('lang', $reponse->result->lang);
//Liste des catégories d'accès
$reponse = $ws->getCategory();

View File

@ -79,6 +79,21 @@ if ($this->action=='new') {
<input type="hidden" name="frmOptions[changepwd]" value="<?=$changePassword?>"/>
<?php } ?>
</div>
<div class="infoTitle StyleInfoLib">Langue de l'interface par défaut</div>
<div class="infoData">
<select name="frmOptions[lang]">
<?php
$lngOpts = array('fr' => 'Français', 'en' => 'English');
foreach($lngOpts as $lngKey => $lngVal)
{
$selected = '';
if($lngKey == $this->lang) $selected = 'selected';
?><option value="<?=$lngKey?>" <?=$selected?>><?=$lngVal?></option><?php
}
?>
</select>
</div>
</div>
<h2>Paramètres spécifiques</h2>