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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 142 - (show annotations)
Tue Sep 27 14:52:41 2011 UTC (13 years, 4 months ago) by fraynaud
File size: 2971 byte(s)
gestion des lotissements 


1 <?php
2 /* $Id: PC.class.php,v 1.19 2010-08-22 21:40:11 fraynaud Exp $
3 */
4 require_once ("dossier.class.php");
5
6 class PC extends dossier{
7
8 var $nature="PC";
9 // variables affichages de regroupe
10 var $aff_depot = "collapsible";
11 var $aff_travaux = "collapsible";
12 var $aff_instruction = "collapsible";
13 var $aff_demandeur = "startClosed";
14 var $aff_delegataire = "startClosed";
15 var $aff_terrain = "startClosed";
16 var $aff_localisation = "collapsible";
17 var $aff_description = "startClosed";
18 var $aff_amenagement = "collapsible";
19
20 // specific objet_dossier
21
22
23 function PC($id,&$db,$DEBUG) {
24 $this->constructeur($id,$db,$DEBUG);
25 } // fin constructeur
26
27 function setvalF($val){
28 parent::setvalF($val);
29 // compatibilite pgsql
30 }
31
32 function setType(&$form,$maj) {
33 parent::setType($form,$maj);
34 if($maj<2){
35 $form->setType('objet_dossier','select');
36 $form->setType('amenagement','select');
37 //$form->setType('parcelle_lot_lotissement','comboD');
38 $form->setType('parcelle_lot','hiddenstatic');
39 $form->setType('parcelle_lot_lotissement','comboG');
40 }
41 }
42
43
44 function setSelect(&$form, $maj,$db,$debug) {
45 parent::setSelect($form, $maj,$db,$debug);
46 if($maj<2){
47 $contenu=array();
48 $contenu[0]=array('A','B');
49 $contenu[1]=array(_('maison_individuelle'),
50 _('autre_construction'));
51 $form->setSelect("objet_dossier",$contenu);
52 // amenagement
53 if(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc"))
54 include ("../sql/".$db->phptype."/".$this->table.".form.inc");
55 $contenu=array();
56 $res = $db->query($sql_amenagement);
57 if (database::isError($res))
58 die($res->getMessage());
59 if ($debug == 1)
60 echo " la requete ".$sql_amenagement." est executee<br>";
61 $contenu[0][0]="";
62 $contenu[1][0]=_('choisir')." "._('amenagement');
63 $k=1;
64 while ($row=& $res->fetchRow()){
65 $contenu[0][$k]=$row[0];
66 $contenu[1][$k]=$row[1];
67 $k++;
68 }
69 $form->setSelect("amenagement",$contenu);
70 }
71 }
72
73
74 function setGroupe(&$form,$maj){
75 parent::setGroupe($form,$maj);
76 $form->setGroupe('objet_dossier','D');
77 $form->setGroupe('architecte','G');
78 $form->setGroupe('architecte_nom','G');
79 $form->setGroupe('travaux','F');
80 }
81
82 function setRegroupe(&$form,$maj){
83 parent::setRegroupe($form,$maj);
84 $form->setRegroupe('objet_dossier','D',_('travaux'), "collapsible");
85 $form->setRegroupe('architecte','G','');
86 $form->setRegroupe('architecte_nom','G','');
87 $form->setRegroupe('travaux','F','');
88 }
89
90 }// fin de classe
91 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26