70 |
// nature 2 caracteres |
// nature 2 caracteres |
71 |
// lettre R arles F vitrolles |
// lettre R arles F vitrolles |
72 |
// numero sur 6 caracteres |
// numero sur 6 caracteres |
73 |
if (file_exists ("../dyn/var.inc")) |
// om_parametre |
74 |
include ("../dyn/var.inc"); |
$lettre=$this->f->collectivite["lettre"]; |
75 |
|
$numero_unique = $this->f->collectivite["numero_unique"]; |
76 |
if($numero_unique==1){ |
if($numero_unique==1){ |
77 |
// numero unique (voir dyn/var.inc) |
// numero unique (voir dyn/var.inc) |
78 |
$temp=$db->nextId(DB_PREFIXE.$this->table); |
$temp=$db->nextId(DB_PREFIXE.$this->table); |
319 |
$this->maj=$maj; |
$this->maj=$maj; |
320 |
if ($validation==0) { |
if ($validation==0) { |
321 |
if ($maj == 0){ |
if ($maj == 0){ |
322 |
include ("../dyn/var.inc"); |
$dossier_cp = $this->f->collectivite["cp"]; |
323 |
|
$dossier_ville = $this->f->collectivite["ville"]; |
324 |
$form->setVal('nature', $this->nature); |
$form->setVal('nature', $this->nature); |
325 |
|
|
326 |
$form->setVal('annee', date('y')); |
$form->setVal('annee', date('y')); |
492 |
} |
} |
493 |
} |
} |
494 |
|
|
495 |
|
|
496 |
|
function setLib(&$form,$maj) { |
497 |
|
parent::setLib($form,$maj); |
498 |
|
$form->setLib('geom',''); |
499 |
|
} |
500 |
|
|
501 |
|
|
502 |
function setGroupe(&$form,$maj){ |
function setGroupe(&$form,$maj){ |
503 |
If ($maj==0){ |
If ($maj==0){ |
504 |
$form->setGroupe('date_demande','D'); |
$form->setGroupe('date_demande','D'); |
586 |
$form->setGroupe('parcelle','D'); |
$form->setGroupe('parcelle','D'); |
587 |
$form->setGroupe('pos','G'); |
$form->setGroupe('pos','G'); |
588 |
$form->setGroupe('sig','F'); |
$form->setGroupe('sig','F'); |
589 |
|
if($maj==1){ |
590 |
|
$form->setGroupe('sig','G'); |
591 |
|
$form->setGroupe('geom','F'); |
592 |
|
} |
593 |
|
|
594 |
// description |
// description |
595 |
$form->setGroupe('batiment_nombre','D'); |
$form->setGroupe('batiment_nombre','D'); |
596 |
$form->setGroupe('logement_nombre','G'); |
$form->setGroupe('logement_nombre','G'); |
696 |
$form->setRegroupe('parcelle','D',_('localisation'), $this->aff_localisation); |
$form->setRegroupe('parcelle','D',_('localisation'), $this->aff_localisation); |
697 |
$form->setRegroupe('pos','G',''); |
$form->setRegroupe('pos','G',''); |
698 |
$form->setRegroupe('sig','F',''); |
$form->setRegroupe('sig','F',''); |
699 |
|
if($maj==1){ |
700 |
|
$form->setRegroupe('sig','G',''); |
701 |
|
$form->setRegroupe('geom','F',''); |
702 |
|
} |
703 |
|
|
704 |
// description |
// description |
705 |
$form->setRegroupe('batiment_nombre','D',_('statistique'), $this->aff_description); |
$form->setRegroupe('batiment_nombre','D',_('statistique'), $this->aff_description); |