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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 450 - (show annotations)
Wed Sep 26 08:49:40 2012 UTC (12 years, 4 months ago) by nhaye
File size: 1338 byte(s)
Régénération de la classe bloc note suite à la migration du core 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 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 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26