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 |
fraynaud |
20 |
function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire){ |
13 |
|
|
if ($validation==0) { |
14 |
|
|
if ($maj == 0){ |
15 |
|
|
$form->setVal("dossier", $idxformulaire); |
16 |
|
|
} |
17 |
|
|
} |
18 |
|
|
} |
19 |
nhaye |
450 |
|
20 |
fraynaud |
20 |
function setType(&$form,$maj) { |
21 |
nhaye |
450 |
parent::setType($form,$maj); |
22 |
fraynaud |
20 |
if ($maj < 2) { |
23 |
|
|
$form->setType('categorie', 'select'); |
24 |
|
|
$form->setType('dossier', 'hiddenstatic'); |
25 |
|
|
}else{ |
26 |
|
|
$form->setType('blocnote', 'hiddenstatic'); |
27 |
|
|
$form->setType('destination', 'hiddenstatic'); |
28 |
|
|
$form->setType('dossier', 'hiddenstatic'); |
29 |
|
|
} |
30 |
|
|
} |
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
function setSelect(&$form, $maj,$db,$debug) { |
35 |
|
|
$contenu=array(); |
36 |
|
|
$contenu[0]=array(_('divers'),_('amenagement'), |
37 |
fraynaud |
273 |
_('construction'),_('demolition'),_('contentieux')); |
38 |
fraynaud |
20 |
$contenu[1]=array(_('divers'),_('amenagement'), |
39 |
fraynaud |
273 |
_('construction'),_('demolition'),_('contentieux')); |
40 |
fraynaud |
20 |
$form->setSelect("categorie",$contenu); |
41 |
|
|
} |
42 |
fraynaud |
3 |
}// fin classe |
43 |
fraynaud |
273 |
?> |