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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20 - (show annotations)
Mon Jul 18 15:27:17 2011 UTC (13 years, 6 months ago) by fraynaud
File size: 2303 byte(s)
maj version 3.00


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 verifier(){
13 $this->correct=True;
14 $imgv="";
15 $f="&nbsp!&nbsp;&nbsp;&nbsp;&nbsp;";
16 $imgv="<img src='../img/punaise.png' style='vertical-align:middle' hspace='2' border='0'>";
17 if ($this->valF['note']==""){
18 $this->correct=false;
19 $this->msg= $this->msg.$imgv._("note")."&nbsp;"._("obligatoire").$f;
20 }
21 }
22
23 function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire){
24 if ($validation==0) {
25 if ($maj == 0){
26 $form->setVal("dossier", $idxformulaire);
27 }
28 }
29 }
30
31 function setType(&$form,$maj) {
32 if ($maj < 2) {
33 $form->setType('blocnote', 'hidden');
34 $form->setType('categorie', 'select');
35 $form->setType('note', 'textarea');
36 $form->setType('dossier', 'hiddenstatic');
37 if($maj==0)
38 $form->setType('blocnote', 'hidden');
39 else
40 $form->setType('blocnote', 'hiddenstatic');
41 }else{
42 $form->setType('blocnote', 'hiddenstatic');
43 $form->setType('destination', 'hiddenstatic');
44 $form->setType('dossier', 'hiddenstatic');
45 }
46 }
47
48
49
50 function setSelect(&$form, $maj,$db,$debug) {
51 $contenu=array();
52 $contenu[0]=array(_('divers'),_('amenagement'),
53 _('construction'),_('demolition'));
54 $contenu[1]=array(_('divers'),_('amenagement'),
55 _('construction'),_('demolition'));
56 $form->setSelect("categorie",$contenu);
57 }
58
59 function setTaille(&$form,$maj){
60 $form->setTaille('blocnote', 8);
61 $form->setTaille('categorie', 20);
62 $form->setTaille('note', 100);
63 $form->setTaille('dossier', 12);
64 }
65
66 function setMax(&$form,$maj){
67 $form->setMax('blocnote', 8);
68 $form->setMax('categorie', 20);
69 $form->setMax('dossier', 12);
70 $form->setMax('note', 10);
71 }
72 }// fin classe
73 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26