/[openfoncier]/trunk/obj/blocnote.class.php
ViewVC logotype

Contents of /trunk/obj/blocnote.class.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 431 - (show annotations)
Mon Sep 24 16:29:46 2012 UTC (12 years, 4 months ago) by nhaye
File size: 1543 byte(s)
Régénération suite à la migration d'OM 4.3.0

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
13 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 _('construction'),_('demolition'),_('contentieux'));
44 $contenu[1]=array(_('divers'),_('amenagement'),
45 _('construction'),_('demolition'),_('contentieux'));
46 $form->setSelect("categorie",$contenu);
47 }
48 }// fin classe
49 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26