Commit 78413066 authored by Ayolo's avatar Ayolo

bleh

parent ff0f0d1f
......@@ -73,8 +73,20 @@ if ( $_REQUEST["action"] == "logoperateur" )
$opErreur = "Etudiant inconnu / mauvais mot de passe";
// restons vague sur les details de l'erreur
else if ( !$site->comptoir->ajout_operateur($op) )
else
{
foreach($site->comptoir->operateurs as $_op)
{
if($_op->id == $op->id)
{
$op=null;
break;
}
}
if(!is_null($op))
if ( !$site->comptoir->ajout_operateur($op) )
$opErreur = "Refusé";
}
}
/*
......@@ -105,9 +117,9 @@ $frm = new form ("logoperateur","comptoir.php?id_comptoir=".$site->comptoir->id)
if ( $opErreur )
$frm->error($opErreur);
$frm->add_hidden("action","logoperateur");
$frm->add_password_field("password","Mot de passe");
$frm->add_text_field("code_bar_carte","Carte AE");
$frm->add_text_field("adresse_mail","Adresse email","prenom.nom@utbm.fr");
$frm->add_text_field("code_bar_carte","Carte AE");
$frm->add_password_field("password","Mot de passe");
$frm->add_submit("valid","valider");
$cts->add($frm);
......
......@@ -192,7 +192,7 @@ else
{
$etapes=array();
$etapes[]=$fville;
$etapes[]=$fville;
$etapes[]=$tville;
}
$map->add_geopoint_path('Chemin',$etapes);
$accueil->add($map);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment