508 |
|
|
509 |
// ajout du message d'erreur |
// ajout du message d'erreur |
510 |
if ($error == true) { |
if ($error == true) { |
511 |
|
print_r($field); |
512 |
//$this->msg .= _('Le champ').' <span class="bold">'.($this->form->lib[$field]!=""?$this->form->lib[$field]:_($field)).'</span> '._('est obligatoire').".<br/>"; |
//$this->msg .= _('Le champ').' <span class="bold">'.($this->form->lib[$field]!=""?$this->form->lib[$field]:_($field)).'</span> '._('est obligatoire').".<br/>"; |
513 |
$this->addToMessage( _('Le champ').' <span class="bold">'.((!defined('REST_REQUEST')) ? $this->form->lib[$field] :_($field)).'</span> '._('est obligatoire').".<br/>"); // $this->REST |
$this->addToMessage( _('Le champ').' <span class="bold">'.((!defined('REST_REQUEST')) ? $this->form->lib[$field] :_($field)).'</span> '._('est obligatoire').".<br/>"); // $this->REST |
514 |
} |
} |
589 |
* Méthode pour convertir une date Y-m-d en d/m/Y |
* Méthode pour convertir une date Y-m-d en d/m/Y |
590 |
*/ |
*/ |
591 |
function dateDBToForm($date) { |
function dateDBToForm($date) { |
592 |
$date = new DateTime($this->valF['date_demande']); |
$dateFormat = new DateTime($date); |
593 |
return $date->format('d/m/Y'); |
return $dateFormat->format('d/m/Y'); |
594 |
} |
} |
595 |
|
|
596 |
|
|