30 |
function dossier($id,&$db,$DEBUG) { |
function dossier($id,&$db,$DEBUG) { |
31 |
$this->constructeur($id,$db,$DEBUG); |
$this->constructeur($id,$db,$DEBUG); |
32 |
} // fin constructeur |
} // fin constructeur |
33 |
|
|
34 |
/*Mutateur pour ma variable dossier_instruction_type*/ |
/*Mutateur pour ma variable dossier_instruction_type*/ |
35 |
public function getDossierInstructionType(){ |
public function getDossierInstructionType(){ |
36 |
return $this->dossier_instruction_type; |
return $this->dossier_instruction_type; |
491 |
$form->setType('division', 'hidden'); |
$form->setType('division', 'hidden'); |
492 |
} |
} |
493 |
$form->setType('dossier_autorisation', 'hiddenstatic'); |
$form->setType('dossier_autorisation', 'hiddenstatic'); |
494 |
|
$form->setType('dossier_instruction_type', 'selectstatic'); |
495 |
// |
// |
496 |
if ($maj == 0) { |
if ($maj == 0) { |
497 |
$form->setType('dossier_autorisation', 'select'); |
$form->setType('dossier_autorisation', 'select'); |
509 |
if ($maj == 0){ |
if ($maj == 0){ |
510 |
//$dossier_cp = $this->f->collectivite["cp"]; |
//$dossier_cp = $this->f->collectivite["cp"]; |
511 |
//$dossier_ville = $this->f->collectivite["ville"]; |
//$dossier_ville = $this->f->collectivite["ville"]; |
|
//$form->setVal('nature', $this->nature); |
|
512 |
|
|
513 |
$form->setVal('annee', date('y')); |
$form->setVal('annee', date('y')); |
514 |
$form->setVal('date_demande', date('Y-m-d')); |
$form->setVal('date_demande', date('Y-m-d')); |
658 |
// $form->setGroupe('division','F'); |
// $form->setGroupe('division','F'); |
659 |
//}else{ |
//}else{ |
660 |
// $form->setGroupe('dossier','D'); |
// $form->setGroupe('dossier','D'); |
|
// $form->setGroupe('nature','G'); |
|
661 |
// $form->setGroupe('annee','G'); |
// $form->setGroupe('annee','G'); |
662 |
// $form->setGroupe('date_demande','G'); |
// $form->setGroupe('date_demande','G'); |
663 |
// $form->setGroupe('date_depot','G'); |
// $form->setGroupe('date_depot','G'); |
1225 |
INNER JOIN ".DB_PREFIXE."dossier_autorisation |
INNER JOIN ".DB_PREFIXE."dossier_autorisation |
1226 |
ON dossier_autorisation_type_detaille.dossier_autorisation_type_detaille = |
ON dossier_autorisation_type_detaille.dossier_autorisation_type_detaille = |
1227 |
dossier_autorisation.dossier_autorisation_type_detaille |
dossier_autorisation.dossier_autorisation_type_detaille |
1228 |
INNER JOIN ".DB_PREFIXE."dossier ON dossier.dossier_autorisation = dossier_autorisaiton.dossier_autorisation |
INNER JOIN ".DB_PREFIXE."dossier ON dossier.dossier_autorisation = dossier_autorisation.dossier_autorisation |
1229 |
WHERE dossier.dossier = ".$idxDossier; |
WHERE dossier.dossier = '".$idxDossier."'"; |
1230 |
$res = $db -> getOne($sql); |
$res = $this -> db -> getOne($sql); |
1231 |
$this->f->isDatabaseError(); |
$this->f->isDatabaseError(); |
1232 |
|
$this->addToLog($sql); |
1233 |
return $res; |
return $res; |
1234 |
} |
} |
1235 |
|
|