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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 613 - (show annotations)
Tue Nov 6 16:53:12 2012 UTC (12 years, 3 months ago) by mlimic
File size: 1140 byte(s)
save of the messages.class.php
1 <?php
2 //$Id$
3 //gen openMairie le 06/11/2012 11:41
4
5 require_once ("../gen/obj/messages.class.php");
6
7 class messages extends messages_gen {
8
9
10 var $required_field=array(
11 );
12
13 function messages($id,&$db,$debug) {
14 $this->constructeur($id,$db,$debug);
15 }// fin constructeur
16
17 function setType(&$form,$maj) {
18 //type
19 parent::setType($form, $maj);
20
21 if ($maj==1){ //modifier
22 $form->setType('message','hiddenstatic');
23 $form->setType('dossier','hiddenstatic');
24 $form->setType('type','hiddenstatic');
25 $form->setType('emetteur','hiddenstatic');
26 $form->setType('date_emission','hiddenstaticdate');
27 $form->setType('enjeu','hiddenstatic');
28 $form->setType('lu','checkbox');
29 }// fin modifier
30 if ($maj==3){ //consulter
31 $form->setType('message','hiddenstatic');
32 $form->setType('enjeu','hiddenstatic');
33 $form->setType('dossier','hiddenstatic');
34 $form->setType('date_envoi','hiddenstaticdate');
35 }//fin consulter
36 }
37
38
39 }// fin classe
40 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26