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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 693 - (show annotations)
Thu Nov 15 09:03:18 2012 UTC (12 years, 2 months ago) by vpihour
File size: 3779 byte(s)
Modification de la table civilite et correction du formulaire de demande

1 <?php
2 //$Id$
3 //gen openMairie le 08/11/2012 14:00
4
5 require_once ("../gen/obj/demande.class.php");
6
7 class demande extends demande_gen {
8
9 function demande($id,&$db,$debug) {
10 $this->constructeur($id,$db,$debug);
11 }// fin constructeur
12
13 // =============================================
14 // La date du jour par défaut dans le champs date_demande
15 // Put the date of the day by default into the field date_demande
16 // =============================================
17 function setVal(&$form, $maj, $validation, &$db) {
18 if($maj == 0) {
19 $form->setVal("date_demande",date('d/m/Y'));
20 }
21 }
22
23 // =============================================
24 // Ajout du fielset
25 // Add fieldset
26 // =============================================
27 function setLayout(&$form, $maj){
28 if ( $maj < 2 OR $maj == 3 ) {
29
30 //Champs sur lequel s'ouvre le fieldset
31 $form->setBloc('dossier_autorisation_type_detaille','D',"", "dossier_type_demande_date col_9");
32 $form->setBloc('dossier_autorisation_type_detaille','D',"","dossier_type col_9");
33
34 $form->setFieldset('dossier_autorisation_type_detaille','D',_('Type de dossier/demande'));
35 $form->setFieldset('demande_type','F','');
36
37 $form->setBloc('demande_type','F');
38
39 $form->setBloc('date_demande','D',"","col_3");
40 $form->setFieldset('date_demande','D',_('Date de la demande'));
41 $form->setFieldset('date_demande','F','');
42 $form->setBloc('date_demande','F');
43 $form->setBloc('date_demande','F');
44
45 $form->setBloc('terrain_references_cadastrales','D',"", "localisation col_12");
46 $form->setFieldset('terrain_references_cadastrales','D',_('Localisation du terrain'));
47 $form->setFieldset('terrain_superficie','F','');
48 $form->setBloc('terrain_superficie','F');
49
50 $form->setBloc('nombre_lots','D',"","lots col_12");
51 $form->setFieldset('nombre_lots','D',_('Nombre de lots'));
52 $form->setFieldset('nombre_lots','F','');
53 $form->setBloc('nombre_lots','F');
54 }
55 }
56
57 // =============================================
58 // Ajoute des actions sur les deux premiers select
59 // Add actions on the two first select
60 // =============================================
61 function setOnchange(&$form,$maj){
62 parent::setOnchange($form,$maj);
63 $form->setOnchange("dossier_autorisation_type_detaille","changeDemandeType();");
64 $form->setOnchange("demande_type","showFormsDemande();");
65 }
66
67 // =============================================
68 // Cache le champ terrain_references_cadastrales
69 // Hide the fiels terrain_references_cadastrales
70 // =============================================
71 function setType(&$form,$maj) {
72 parent::setType($form,$maj);
73
74 $form->setType('dossier_instruction', 'hidden');
75 $form->setType('dossier_autorisation', 'hidden');
76 }
77
78 // =============================================
79 // Sous formulaire pour le pétitionnaire
80 // Sub form for the 'petitionnaire'
81 // =============================================
82 function sousformulaire($enteteTab, $validation, $maj, &$db, $postVar, $premiersf,
83 $DEBUG, $idx, $idxformulaire, $retourformulaire, $typeformulaire,
84 $objsf, $tricolsf, $retour= "", $actions = array()){
85
86 parent::setType($form,$maj);
87
88 //$form->setType('terrain_references_cadastrales', 'hidden');
89 }
90 }// fin classe
91 ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26