issue #0001547 : Select language in profil

This commit is contained in:
Michael RICOIS 2013-04-25 12:25:34 +00:00
parent e195cb959d
commit f7461f7e6d
2 changed files with 1 additions and 7 deletions

View File

@ -111,10 +111,6 @@ class UserController extends Zend_Controller_Action
}
}
//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 des accès
$reponse = $ws->getCategory();
$wscategory = $reponse->item;

View File

@ -10,9 +10,7 @@
<div class="paragraph">
<?php $referer = isset($_REQUEST['referer'])?$_REQUEST['referer']:''; ?>
<form id="moncompte" name="moncompte" action="/user" method="post">
<input type="hidden" name="referer" value="<?=$referer; ?>"/>
<input type="hidden" name="login" value="<?=$this->loginVu?>"/>
<input type="hidden" name="frmOptions[idClient]" value="<?=$this->options->idClient?>"/>
<input type="hidden" name="frmOptions[action]" value="<?=$this->action?>"/>
@ -96,7 +94,7 @@ $lngOpts = array('fr' => 'Français', 'en' => 'English');
foreach($lngOpts as $lngKey => $lngVal)
{
$selected = '';
if($lngKey == $this->lang) $selected = 'selected';
if($lngKey == $this->options->lang) $selected = 'selected';
?><option value="<?=$lngKey?>" <?=$selected?>><?=$lngVal?></option><?php
}
?>