1,7 → 1,19 |
<?php |
// declare(encoding='UTF-8'); |
/** |
* Classe controleur pour l'application administration des administrateurs |
* classe Controleur, pour l'application d'administration des administrateurs |
* |
* PHP Version 5 |
* |
* @package Framework |
* @category Class |
* @author aurelien <aurelien@tela-botanica.org> |
* @copyright 2009 Tela-Botanica |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL |
* @version SVN: $$Id$$ |
* @link /doc/framework/ |
* |
*/ |
class AdminAdministrateur extends Controleur { |
|
45,7 → 57,7 |
* des détails d'un administrateurs. Elle modifie les détails dans la base |
* de données. S'il y a une erreur et rappelle la formulaire et notifie l'erreur, |
* sinon elle charge la liste des administrateurs |
* @param string l'identifiant de l'administrateur* |
* @param string l'identifiant de l'administrateur |
* @param string le nom |
* @param string le prénom |
* @param string le mail |
55,10 → 67,10 |
*/ |
public function modifAdminVa($id,$nom,$prenom,$mail,$lang,$pass,$pass_conf) { |
$this->chargerModele('ListeAdmin') ; |
$res = $this->ListeAdmin->modifDetailsAdmin($id,$nom,$prenom,$mail,$lang,$pass,$pass_conf) ; |
$res = $this->ListeAdmin->modifDetailsAdmin($id,$nom,$prenom,$mail,$lang,$pass,$pass_conf); |
|
if (count($res) == 0) { |
return $this->chargerAdmin() ; |
return $this->chargerAdmin(); |
} else { |
$admin['ga_id_administrateur'] = $id; |
$admin['ga_nom'] = $nom; |
121,7 → 133,7 |
*/ |
public function ajoutAdminVa($nom,$prenom,$mail,$lang,$pass,$pass_conf) { |
if (empty($nom) || empty($prenom) || empty($mail) || empty($pass) || empty($pass_conf)) { |
$res = array('champs' => 'Tous les champs sont obligatoires') ; |
$res = array('champs' => 'Tous les champs sont obligatoires'); |
$data['erreurs'] = $res; |
$admin['ga_nom'] = $nom; |
$admin['ga_prenom'] = $prenom; |