62 |
&& $this->val[array_search("lu", $this->champs)]== "t") { |
&& $this->val[array_search("lu", $this->champs)]== "t") { |
63 |
unset($this->actions_sup["lu"]); |
unset($this->actions_sup["lu"]); |
64 |
} |
} |
65 |
|
|
66 |
|
//Si le document est déjà finalisé, on affiche uniquement le lien de |
67 |
|
//dé-finalisation |
68 |
|
if ( isset($this->actions_sup["finalisation"]) && |
69 |
|
isset($this->val[array_search("om_final_instruction", $this->champs)]) |
70 |
|
&& $this->val[array_search("om_final_instruction", $this->champs)]== "t" ){ |
71 |
|
unset($this->actions_sup["finalisation"]); |
72 |
|
} |
73 |
|
//Si le document n'est pas finalisé, on affiche uniquement le lien de |
74 |
|
//finalisation |
75 |
|
if ( isset($this->actions_sup["definalisation"]) && |
76 |
|
isset($this->val[array_search("om_final_instruction", $this->champs)]) |
77 |
|
&& $this->val[array_search("om_final_instruction", $this->champs)]!= "t" ){ |
78 |
|
unset($this->actions_sup["definalisation"]); |
79 |
|
} |
80 |
} |
} |
81 |
|
|
82 |
/** |
/** |
242 |
$form->setType('bible', 'hidden'); |
$form->setType('bible', 'hidden'); |
243 |
$form->setType('bible2', 'hidden'); |
$form->setType('bible2', 'hidden'); |
244 |
} |
} |
245 |
|
|
246 |
|
//Cache les champs pour la finalisation |
247 |
|
$form->setType('om_fichier_instruction', 'hidden'); |
248 |
|
$form->setType('om_final_instruction', 'hidden'); |
249 |
} |
} |
250 |
|
|
251 |
function setSelect(&$form, $maj,&$db,$debug) { |
function setSelect(&$form, $maj,&$db,$debug) { |