1 |
fraynaud |
3 |
<?php |
2 |
|
|
//$Id$ |
3 |
|
|
//gen openMairie le 10/02/2011 20:31 |
4 |
|
|
require_once ("../gen/obj/blocnote.class.php"); |
5 |
|
|
|
6 |
|
|
class blocnote extends blocnote_gen { |
7 |
|
|
|
8 |
fraynaud |
20 |
function blocnote($id,&$db,$debug) { |
9 |
|
|
$this->constructeur($id,$db,$debug); |
10 |
|
|
}// fin constructeur |
11 |
fraynaud |
3 |
|
12 |
nhaye |
431 |
|
13 |
fraynaud |
20 |
function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire){ |
14 |
|
|
if ($validation==0) { |
15 |
|
|
if ($maj == 0){ |
16 |
|
|
$form->setVal("dossier", $idxformulaire); |
17 |
|
|
} |
18 |
|
|
} |
19 |
|
|
} |
20 |
|
|
|
21 |
|
|
function setType(&$form,$maj) { |
22 |
|
|
if ($maj < 2) { |
23 |
|
|
$form->setType('blocnote', 'hidden'); |
24 |
|
|
$form->setType('categorie', 'select'); |
25 |
|
|
$form->setType('note', 'textarea'); |
26 |
|
|
$form->setType('dossier', 'hiddenstatic'); |
27 |
|
|
if($maj==0) |
28 |
|
|
$form->setType('blocnote', 'hidden'); |
29 |
|
|
else |
30 |
|
|
$form->setType('blocnote', 'hiddenstatic'); |
31 |
|
|
}else{ |
32 |
|
|
$form->setType('blocnote', 'hiddenstatic'); |
33 |
|
|
$form->setType('destination', 'hiddenstatic'); |
34 |
|
|
$form->setType('dossier', 'hiddenstatic'); |
35 |
|
|
} |
36 |
|
|
} |
37 |
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
|
|
function setSelect(&$form, $maj,$db,$debug) { |
41 |
|
|
$contenu=array(); |
42 |
|
|
$contenu[0]=array(_('divers'),_('amenagement'), |
43 |
fraynaud |
273 |
_('construction'),_('demolition'),_('contentieux')); |
44 |
fraynaud |
20 |
$contenu[1]=array(_('divers'),_('amenagement'), |
45 |
fraynaud |
273 |
_('construction'),_('demolition'),_('contentieux')); |
46 |
fraynaud |
20 |
$form->setSelect("categorie",$contenu); |
47 |
|
|
} |
48 |
fraynaud |
3 |
}// fin classe |
49 |
fraynaud |
273 |
?> |