1 |
fraynaud |
3 |
<?php |
2 |
|
|
//$Id$ |
3 |
|
|
//gen openMairie le 10/02/2011 20:33 |
4 |
|
|
require_once ("../gen/obj/avis.class.php"); |
5 |
|
|
|
6 |
|
|
class avis extends avis_gen { |
7 |
|
|
|
8 |
fraynaud |
4 |
function avis($id,&$db,$debug) { |
9 |
|
|
$this->constructeur($id,$db,$debug); |
10 |
|
|
}// fin constructeur |
11 |
|
|
|
12 |
|
|
function setType(&$form,$maj) { |
13 |
|
|
parent::setType($form,$maj); |
14 |
|
|
if ($maj < 2) { |
15 |
|
|
$form->setType('typeavis', 'select'); |
16 |
|
|
$form->setType('sitadel', 'select'); |
17 |
|
|
$form->setType('sitadel_motif', 'select'); |
18 |
|
|
} |
19 |
|
|
} |
20 |
fraynaud |
3 |
|
21 |
fraynaud |
4 |
function setSelect(&$form, $maj,&$db,$debug) { |
22 |
|
|
parent::setSelect($form, $maj,$db,$debug); |
23 |
|
|
// typeavis |
24 |
|
|
$contenu=array(); |
25 |
|
|
$contenu[0]=array('','F','D','A'); |
26 |
|
|
$contenu[1]=array('sans','favorable','defavorable','annulation'); |
27 |
|
|
$form->setSelect("typeavis",$contenu); |
28 |
|
|
// sitadel |
29 |
|
|
$contenu=array(); |
30 |
|
|
$contenu[0]=array('','1','2','3','4','5','6','7','8'); |
31 |
|
|
$contenu[1]=array('sans','rejet tacite', |
32 |
|
|
'octroi tacite','refus tacite', |
33 |
|
|
'octroi','accord avec prescription', |
34 |
|
|
'refus','sursis a statuer','annulation'); |
35 |
|
|
$form->setSelect("sitadel",$contenu); |
36 |
|
|
// sitadel_ motif annulation |
37 |
|
|
$contenu=array(); |
38 |
|
|
$contenu[0]=array('','1','2'); |
39 |
|
|
$contenu[1]=array('sans','retrait a la demande du petitionnaire', |
40 |
|
|
'annulation par une juridiction administrative'); |
41 |
|
|
$form->setSelect("sitadel_motif",$contenu); |
42 |
|
|
} |
43 |
|
|
|
44 |
|
|
|
45 |
|
|
function setTaille(&$form, $maj) { |
46 |
|
|
$form->setTaille('avis',2); |
47 |
|
|
$form->setTaille('libelle',30); |
48 |
|
|
$form->setTaille('sitadel',1); |
49 |
|
|
$form->setTaille('sitadel_motif',1); |
50 |
|
|
} |
51 |
|
|
|
52 |
|
|
function setMax(&$form, $maj) { |
53 |
|
|
$form->setMax('avis',2); |
54 |
|
|
$form->setMax('libelle',30); |
55 |
|
|
$form->setMax('sitadel',1); |
56 |
|
|
$form->setMax('sitadel_motif',1); |
57 |
|
|
} |
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
fraynaud |
3 |
}// fin classe |
63 |
|
|
?> |