28 |
} |
} |
29 |
} |
} |
30 |
|
|
|
function verifier($val, &$db, $DEBUG) { |
|
|
parent::verifier($val, $db, $DEBUG); |
|
|
// Vérification que les dates de validités de cerfa ne se chevauchent pas |
|
|
$sql = "SELECT count(*) FROM ".DB_PREFIXE."cerfa |
|
|
WHERE dossier_instruction_type=".$this->valF['dossier_instruction_type']. |
|
|
" AND om_validite_fin >= '".$this->valF['om_validite_debut']."'". |
|
|
" AND om_validite_debut <= '".$this->valF['om_validite_fin']."'". |
|
|
" AND cerfa != '".$this->valF['cerfa']."'"; |
|
|
$count = $db->getOne($sql); |
|
|
$this->addToLog("db->getone(\"".$sql."\");", VERBOSE_MODE); |
|
|
$this->f->isDatabaseError($count); |
|
|
if($count>0) { |
|
|
$this->correct=false; |
|
|
$this->addToMessage(_("Un cerfa pour ce type de dossier d'instruction |
|
|
et sur l'interval de dates selectionnees existe deja.")); |
|
|
} |
|
|
} |
|
|
|
|
31 |
function setSelect(&$form, $maj,&$db,$debug) { |
function setSelect(&$form, $maj,&$db,$debug) { |
32 |
parent::setSelect($form, $maj,$db,$debug); |
parent::setSelect($form, $maj,$db,$debug); |
33 |
|
|
52 |
,_("Parametrage du cerfa")); |
,_("Parametrage du cerfa")); |
53 |
|
|
54 |
|
|
55 |
$form->setFieldset('dossier_instruction_type','F',''); |
$form->setFieldset('om_validite_fin','F',''); |
56 |
$form->setBloc('dossier_instruction_type','F'); |
$form->setBloc('om_validite_fin','F'); |
57 |
|
|
58 |
/*Fieldset n°4 Projet d'aménagement */ |
/*Fieldset n°4 Projet d'aménagement */ |
59 |
$form->setBloc('am_lotiss','D',"","col_12"); |
$form->setBloc('am_lotiss','D',"","col_12"); |