70 |
) as \"infos_localisation_terrain\", |
) as \"infos_localisation_terrain\", |
71 |
to_char(depot_initial ,'DD/MM/YYYY') as \"depot_initial\", |
to_char(depot_initial ,'DD/MM/YYYY') as \"depot_initial\", |
72 |
to_char(date_decision ,'DD/MM/YYYY') as \"date_decision\", |
to_char(date_decision ,'DD/MM/YYYY') as \"date_decision\", |
73 |
to_char(date_decision ,'YYYY-MM-DD') as \"date_decision_formatee\", |
to_char(date_validite ,'DD/MM/YYYY') as \"date_validite\" |
|
dossier_autorisation_type_detaille.duree_validite as \"duree_validite\" |
|
74 |
FROM |
FROM |
75 |
".DB_PREFIXE."dossier_autorisation |
".DB_PREFIXE."dossier_autorisation |
|
LEFT JOIN |
|
|
".DB_PREFIXE."dossier_autorisation_type_detaille |
|
|
ON |
|
|
dossier_autorisation_type_detaille.dossier_autorisation_type_detaille = dossier_autorisation.dossier_autorisation_type_detaille |
|
76 |
LEFT JOIN |
LEFT JOIN |
77 |
".DB_PREFIXE."etat_dossier_autorisation as eda |
".DB_PREFIXE."etat_dossier_autorisation as eda |
78 |
ON |
ON |
406 |
//Le formualaire a un seul champ : dossier |
//Le formualaire a un seul champ : dossier |
407 |
$champs = array("dossier_autorisation","dossier_autorisation_libelle", |
$champs = array("dossier_autorisation","dossier_autorisation_libelle", |
408 |
"etat", "demandeur", "infos_localisation_terrain", |
"etat", "demandeur", "infos_localisation_terrain", |
409 |
"depot_initial", "date_decision", "date_limite", |
"depot_initial", "date_decision", "date_validite", |
410 |
"date_depot_DAACT", "date_depot_DOC", "description_projet", |
"date_depot_DAACT", "date_depot_DOC", "description_projet", |
411 |
"surface", "nombre_logement_crees_individuel", |
"surface", "nombre_logement_crees_individuel", |
412 |
"nombre_logement_crees_collectif", "donnees_techniques"); |
"nombre_logement_crees_collectif", "donnees_techniques"); |
430 |
$form->setLib("infos_localisation_terrain", _("infos_localisation_terrain")); |
$form->setLib("infos_localisation_terrain", _("infos_localisation_terrain")); |
431 |
$form->setLib("depot_initial", _("Depot initial")); |
$form->setLib("depot_initial", _("Depot initial")); |
432 |
$form->setLib("date_decision", _("Date de decision")); |
$form->setLib("date_decision", _("Date de decision")); |
433 |
$form->setLib("date_limite", _("Date de validite")); |
$form->setLib("date_validite", _("Date de validite")); |
434 |
$form->setLib("date_depot_DAACT", _("Date de depot de la DAACT")); |
$form->setLib("date_depot_DAACT", _("Date de depot de la DAACT")); |
435 |
$form->setLib("date_depot_DOC", _("Date de depot de la DOC")); |
$form->setLib("date_depot_DOC", _("Date de depot de la DOC")); |
436 |
$form->setLib("description_projet", _("description_projet")); |
$form->setLib("description_projet", _("description_projet")); |
476 |
$form->setVal("date_depot_DAACT", $val); |
$form->setVal("date_depot_DAACT", $val); |
477 |
} |
} |
478 |
} |
} |
479 |
//Valeur calculé |
$form->setVal("date_validite", ($rowDonneesDA["date_validite"]!=="")?$rowDonneesDA["date_validite"]:"-"); |
|
if ( $val === "" && strcmp($rowDonneesDA["etat"],'Accordé')==0){ |
|
|
$date = new DateTime($rowDonneesDA["date_decision_formatee"]); |
|
|
$date->add(new DateInterval('P'.$rowDonneesDA["duree_validite"].'M')); |
|
|
$val = $date->format('d/m/Y'); |
|
|
} |
|
|
else{ |
|
|
$val = '-'; |
|
|
} |
|
|
$form->setVal("date_limite", $val); |
|
480 |
|
|
481 |
// Fieldset des dossiers en cours de validité |
// Fieldset des dossiers en cours de validité |
482 |
$form->debutFieldset(array("1"=>"En cours de validite","2"=>"col_6"), $validation); |
$form->debutFieldset(array("1"=>"En cours de validite","2"=>"col_6"), $validation); |
502 |
$form->afficher(array("depot_initial",), $validation, false, false); |
$form->afficher(array("depot_initial",), $validation, false, false); |
503 |
$form->setBloc("date_decision", "DF", "", "alignForm col_12"); |
$form->setBloc("date_decision", "DF", "", "alignForm col_12"); |
504 |
$form->afficher(array("date_decision",), $validation, false, false); |
$form->afficher(array("date_decision",), $validation, false, false); |
505 |
$form->setBloc("date_limite", "DF", "", "alignForm col_12"); |
$form->setBloc("date_validite", "DF", "", "alignForm col_12"); |
506 |
$form->afficher(array("date_limite",), $validation, false, false); |
$form->afficher(array("date_validite",), $validation, false, false); |
507 |
$form->setBloc("date_depot_DAACT", "DF", "", "alignForm col_12"); |
$form->setBloc("date_depot_DAACT", "DF", "", "alignForm col_12"); |
508 |
$form->afficher(array("date_depot_DAACT",), $validation, false, false); |
$form->afficher(array("date_depot_DAACT",), $validation, false, false); |
509 |
$form->setBloc("date_depot_DOC", "DF", "", "alignForm col_12"); |
$form->setBloc("date_depot_DOC", "DF", "", "alignForm col_12"); |