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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 799 - (hide annotations)
Wed Nov 21 17:34:18 2012 UTC (12 years, 2 months ago) by vpihour
File size: 3307 byte(s)
Action sur le champ qualite du demandeur

1 vpihour 632 <?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 vpihour 651
13 vpihour 799 /*
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 vpihour 635 function setVal(&$form, $maj, $validation, &$db) {
18     if($maj == 0) {
19     $form->setVal("date_demande",date('d/m/Y'));
20     }
21     }
22    
23 vpihour 799 /*
24     * Ajout du fielset
25     * Add fieldset
26     */
27 vpihour 635 function setLayout(&$form, $maj){
28     if ( $maj < 2 OR $maj == 3 ) {
29    
30     //Champs sur lequel s'ouvre le fieldset
31 vpihour 693 $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 vpihour 635 $form->setBloc('date_demande','F');
44    
45 vpihour 693 $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 vpihour 635 $form->setBloc('terrain_superficie','F');
49 vpihour 676
50 vpihour 693 $form->setBloc('nombre_lots','D',"","lots col_12");
51     $form->setFieldset('nombre_lots','D',_('Nombre de lots'));
52     $form->setFieldset('nombre_lots','F','');
53 vpihour 676 $form->setBloc('nombre_lots','F');
54 vpihour 635 }
55     }
56 vpihour 641
57 vpihour 799 /*
58     * Ajoute des actions sur les deux premiers select
59     * Add actions on the two first select
60     */
61 vpihour 641 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 vpihour 635
67 vpihour 799 /*
68     * Cache le champ terrain_references_cadastrales
69     * Hide the fiels terrain_references_cadastrales
70     */
71 vpihour 651 function setType(&$form,$maj) {
72     parent::setType($form,$maj);
73    
74 vpihour 689 $form->setType('dossier_instruction', 'hidden');
75     $form->setType('dossier_autorisation', 'hidden');
76 vpihour 651 }
77 vpihour 676
78 vpihour 799 /*
79     * Sous formulaire pour le pĂ©titionnaire
80     * Sub form for the 'petitionnaire'
81     */
82 vpihour 676 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 vpihour 632 }// fin classe
91     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26