1 |
<?php |
<?php |
2 |
//$Id$ |
//$Id$ |
3 |
//gen openMairie le 16/02/2015 10:30 |
//gen openMairie le 26/02/2015 09:54 |
4 |
|
|
5 |
require_once "../obj/om_dbform.class.php"; |
require_once "../obj/om_dbform.class.php"; |
6 |
|
|
67 |
if ($maj == 0) { |
if ($maj == 0) { |
68 |
$form->setType("om_droit", "hidden"); |
$form->setType("om_droit", "hidden"); |
69 |
$form->setType("libelle", "text"); |
$form->setType("libelle", "text"); |
70 |
if ($this->is_in_context_of_foreign_key("om_profil", $this->retourformulaire) |
if ($this->is_in_context_of_foreign_key("om_profil", $this->retourformulaire)) { |
|
&& $form->val["om_profil"] == $this->getParameter("idxformulaire")) { |
|
71 |
$form->setType("om_profil", "selecthiddenstatic"); |
$form->setType("om_profil", "selecthiddenstatic"); |
72 |
} else { |
} else { |
73 |
$form->setType("om_profil", "select"); |
$form->setType("om_profil", "select"); |
78 |
if ($maj == 1) { |
if ($maj == 1) { |
79 |
$form->setType("om_droit", "hiddenstatic"); |
$form->setType("om_droit", "hiddenstatic"); |
80 |
$form->setType("libelle", "text"); |
$form->setType("libelle", "text"); |
81 |
if ($this->is_in_context_of_foreign_key("om_profil", $this->retourformulaire) |
if ($this->is_in_context_of_foreign_key("om_profil", $this->retourformulaire)) { |
|
&& $form->val["om_profil"] == $this->getParameter("idxformulaire")) { |
|
82 |
$form->setType("om_profil", "selecthiddenstatic"); |
$form->setType("om_profil", "selecthiddenstatic"); |
83 |
} else { |
} else { |
84 |
$form->setType("om_profil", "select"); |
$form->setType("om_profil", "select"); |