584 |
$form->setType('shob', 'hidden'); |
$form->setType('shob', 'hidden'); |
585 |
$form->setType('lot', 'hidden'); |
$form->setType('lot', 'hidden'); |
586 |
} |
} |
587 |
|
|
588 |
|
// Le profil Qualificateur ne peut modifier seulement les champs |
589 |
|
// autorite_competente, a_qualifier et erp |
590 |
|
if ($this->f->isUserQualificateur()) { |
591 |
|
|
592 |
|
// En modification |
593 |
|
if ($maj == 1) { |
594 |
|
|
595 |
|
$form->setType('enjeu_urba', 'checkboxstatic'); |
596 |
|
$form->setType('enjeu_erp', 'checkboxstatic'); |
597 |
|
$form->setType('description','textareastatic'); |
598 |
|
$form->setType('terrain_references_cadastrales','referencescadastralesstatic'); |
599 |
|
$form->setType('terrain_adresse_voie_numero','static'); |
600 |
|
$form->setType('terrain_adresse_voie','static'); |
601 |
|
$form->setType('terrain_adresse_lieu_dit','static'); |
602 |
|
$form->setType('terrain_adresse_localite','static'); |
603 |
|
$form->setType('terrain_adresse_code_postal','static'); |
604 |
|
$form->setType('terrain_adresse_bp','static'); |
605 |
|
$form->setType('terrain_adresse_cedex','static'); |
606 |
|
$form->setType('terrain_superficie','static'); |
607 |
|
} |
608 |
|
} |
609 |
|
|
610 |
// |
// |
611 |
if(!$this->f->getParameter('afficher_division') === 'true') { |
if(!$this->f->getParameter('afficher_division') === 'true') { |
612 |
$form->setType('division', 'hidden'); |
$form->setType('division', 'hidden'); |
1479 |
|
|
1480 |
$this->listeDemandeur("dossier", $this->getVal('dossier')); |
$this->listeDemandeur("dossier", $this->getVal('dossier')); |
1481 |
|
|
1482 |
if($maj < 2 AND !$this->correct) { |
if($maj < 2 AND !$this->correct AND !$this->f->isUserQualificateur()) { |
1483 |
$linkable = true; |
$linkable = true; |
1484 |
} else { |
} else { |
1485 |
$linkable = false; |
$linkable = false; |
1667 |
} else { |
} else { |
1668 |
echo "tab.php?"; |
echo "tab.php?"; |
1669 |
} |
} |
1670 |
echo "obj=".get_class($this); |
// Permet de retourner sur la bonne page |
1671 |
|
if (isset($_GET['retourformulaire']) && $_GET['retourformulaire'] != '') { |
1672 |
|
echo "obj=".$_GET['retourformulaire']; |
1673 |
|
} else { |
1674 |
|
echo "obj=".get_class($this); |
1675 |
|
} |
1676 |
if($this->getParameter("retour")=="form") { |
if($this->getParameter("retour")=="form") { |
1677 |
echo "&idx=".$this->getParameter("idx"); |
echo "&idx=".$this->getParameter("idx"); |
1678 |
echo "&idz=".$this->getParameter("idz"); |
echo "&idz=".$this->getParameter("idz"); |