59 |
// n'existe pas deja dans la table |
// n'existe pas deja dans la table |
60 |
if ($this->correct == true) { |
if ($this->correct == true) { |
61 |
// Construction de la requete |
// Construction de la requete |
62 |
$sql = "select count(*) from ".$this->table." "; |
$sql = "select count(*) from ".DB_PREFIXE.$this->table." "; |
63 |
$sql .= "where login='".$val["login"]."'"; |
$sql .= "where login='".$val["login"]."'"; |
64 |
// Execution de la requete |
// Execution de la requete |
65 |
$nb = $db->getone($sql); |
$nb = $db->getone($sql); |
139 |
*/ |
*/ |
140 |
function rechercheLogin($id, &$db, $DEBUG) { |
function rechercheLogin($id, &$db, $DEBUG) { |
141 |
// |
// |
142 |
$sql = "select * from om_utilisateur where om_utilisateur='".$id."'"; |
$sql = "select * from ".DB_PREFIXE."om_utilisateur where om_utilisateur='".$id."'"; |
143 |
$res = $db->query($sql); |
$res = $db->query($sql); |
144 |
if (database::isError($res)) { |
if (database::isError($res)) { |
145 |
$this->erreur_db($res->getDebugInfo(), $res->getMessage(), ""); |
$this->erreur_db($res->getDebugInfo(), $res->getMessage(), ""); |
177 |
function setTaille(&$form,$maj) { |
function setTaille(&$form,$maj) { |
178 |
parent::setTaille($form,$maj); |
parent::setTaille($form,$maj); |
179 |
$form->setTaille('pwd',20); |
$form->setTaille('pwd',20); |
180 |
|
$form->setTaille('nom',30); |
181 |
|
$form->setTaille('email',40); |
182 |
|
$form->setTaille('login',30); |
183 |
|
$form->setTaille('instructeur',3); |
184 |
|
$form->setTaille('telephone',14); |
185 |
} |
} |
186 |
|
|
187 |
|
function setMax(&$form,$maj) { |
188 |
|
//longueur max en saisie (text) |
189 |
|
$form->setMax('nom',30); |
190 |
|
$form->setMax('email',40); |
191 |
|
$form->setMax('login',30); |
192 |
|
$form->setMax('instructeur',3); |
193 |
|
$form->setMax('telephone',14); |
194 |
|
} |
195 |
|
|
196 |
function setOnchange(&$form,$maj){ |
function setOnchange(&$form,$maj){ |
197 |
// * mise en majuscule |
// * mise en majuscule |
198 |
// * Put in capital letter |
// * Put in capital letter |
200 |
$form->setOnchange("nom","this.value=this.value.toUpperCase()"); |
$form->setOnchange("nom","this.value=this.value.toUpperCase()"); |
201 |
} |
} |
202 |
|
|
203 |
|
|
204 |
|
|
205 |
// si hors openelec |
// si hors openelec |
206 |
function setVal(&$form, $maj, $validation, &$db, $DEBUG=null){ |
function setVal(&$form, $maj, $validation, &$db, $DEBUG=null){ |
207 |
if ($maj == 1) |
if ($maj == 1) |