583 |
if ($this->msg != "") { |
if ($this->msg != "") { |
584 |
|
|
585 |
// |
// |
|
$m = new message(); |
|
|
|
|
|
// |
|
586 |
if ($this->correct) { |
if ($this->correct) { |
587 |
$class = "valid"; |
$class = "valid"; |
588 |
} else { |
} else { |
589 |
$class = "error"; |
$class = "error"; |
590 |
} |
} |
591 |
$m->displayMessage($class, $this->msg); |
$this->f->displayMessage($class, $this->msg); |
592 |
|
|
593 |
} |
} |
594 |
|
|
635 |
$this->errors[$key] = ''; |
$this->errors[$key] = ''; |
636 |
} |
} |
637 |
} |
} |
638 |
|
|
639 |
|
/** |
640 |
|
* Méthode pour convertir une date Y-m-d en d/m/Y |
641 |
|
*/ |
642 |
|
function dateDBToForm($date) { |
643 |
|
$date = new DateTime($this->valF['date_demande']); |
644 |
|
return $date->format('d/m/Y'); |
645 |
|
} |
646 |
|
|
647 |
} |
} |
648 |
|
|
649 |
?> |
?> |