1 |
<?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 |
function blocnote($id,&$db,$debug) { |
9 |
$this->constructeur($id,$db,$debug); |
10 |
}// fin constructeur |
11 |
|
12 |
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 |
|
20 |
function setType(&$form,$maj) { |
21 |
parent::setType($form,$maj); |
22 |
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 |
_('construction'),_('demolition'),_('contentieux')); |
38 |
$contenu[1]=array(_('divers'),_('amenagement'), |
39 |
_('construction'),_('demolition'),_('contentieux')); |
40 |
$form->setSelect("categorie",$contenu); |
41 |
} |
42 |
}// fin classe |
43 |
?> |