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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1140 by nhaye, Thu Jan 3 17:19:08 2013 UTC revision 1571 by nhaye, Thu Mar 28 12:22:00 2013 UTC
# Line 13  class demande extends demande_gen { Line 13  class demande extends demande_gen {
13                                  "delegataire" => "",                                  "delegataire" => "",
14                                  "petitionnaire" => array());                                  "petitionnaire" => array());
15    
16        var $autreDossierEnCour;
17    
18      function demande($id,&$db,$debug) {      function demande($id,&$db,$debug) {
19          $this->constructeur($id,$db,$debug);          $this->constructeur($id,$db,$debug);
20      }// fin constructeur      }// fin constructeur
# Line 57  class demande extends demande_gen { Line 59  class demande extends demande_gen {
59              }              }
60          }          }
61      }      }
62        function getDataSubmit() {
63    
64            $datasubmit = parent::getDataSubmit();
65            if($this->getParameter("idx_dossier") != "") {
66                $datasubmit .= "&idx_dossier=".$this->getParameter("idx_dossier");
67            }
68            return $datasubmit;
69        }
70            
71      /**      /**
72       * Méthode de verification du contenu       * Méthode de verification du contenu
# Line 69  class demande extends demande_gen { Line 79  class demande extends demande_gen {
79              $this->addToMessage("La saisie d'un petitionnaire principal est obligatoire.");              $this->addToMessage("La saisie d'un petitionnaire principal est obligatoire.");
80          }          }
81      }      }
82    
83        /**
84         * Méthode permettant de vérifier si un autre dossier d'instruction est en cour
85         * pour le même dossier d'autorisation.
86         */
87        function autreDossierEnCour() {
88    
89            $idx_dossier = $this->getParameter("idx_dossier");
90    
91            // Lorsqu'on se trouve sur un dossier existant
92            if(isset($idx_dossier) AND $idx_dossier != "") {
93    
94                // Si on a pas encore défini si un autre dossier est en cours
95                if(!isset($this->autreDossierEnCour)) {
96    
97                    if(file_exists ("../sql/".$this->db->phptype."/".$this->table.".form.inc.php"))
98                        include ("../sql/".$this->db->phptype."/".$this->table.".form.inc.php");
99                    elseif(file_exists ("../sql/".$this->db->phptype."/".$this->table.".form.inc"))
100                        include ("../sql/".$this->db->phptype."/".$this->table.".form.inc");
101                    $request = str_replace('<idx>', $idx_dossier,
102                                             $sql_autreDossierEnCour);
103    
104                    $nbDossier = $this->db->getOne($request);
105                    $this->f->addToLog("db->getone(\"".$request."\");", VERBOSE_MODE);
106                    $this->f->isDatabaseError($nbDossier);
107                    // Si un dossier est en cour return true
108                    if($nbDossier>0) {
109                        
110                        $this->autreDossierEnCour = true;
111                    } else {
112    
113                        $this->autreDossierEnCour = false;
114                    }
115    
116                }
117            } else {
118                $this->autreDossierEnCour = false;
119            }
120    
121            return $this->autreDossierEnCour;
122        }
123    
124        /**
125         * Configuration des select
126         */
127        function setSelect(&$form, $maj,&$db,$debug) {
128            parent::setSelect($form, $maj,$db,$debug);
129    
130            if(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc.php"))
131                include ("../sql/".$db->phptype."/".$this->table.".form.inc.php");
132            elseif(file_exists ("../sql/".$db->phptype."/".$this->table.".form.inc"))
133                include ("../sql/".$db->phptype."/".$this->table.".form.inc");
134    
135            //Récupération de paramètre pour le rechargement ajax du select
136            $idx_dossier = $this->getParameter("idx_dossier");
137            $datd = $this->getParameter("datd");
138    
139            $contenu = array();
140    
141            // Ajout de filtre sur la requête (initial)
142            if(isset($idx_dossier) AND $idx_dossier != "") {
143                $sql_demande_type .= " WHERE demande_nature = 2 ";
144            } else {
145                $sql_demande_type .= " WHERE demande_nature = 1 ";
146            }
147            if(isset($_POST["dossier_autorisation_type_detaille"]) AND $_POST["dossier_autorisation_type_detaille"] != "") {
148                $datd = $_POST["dossier_autorisation_type_detaille"];
149            }
150            // Ajout de filtre sur la requête (dossier_autorisation_type_detaille)
151            if(isset($datd) AND $datd != "") {
152                $sql_demande_type .= " AND dossier_autorisation_type_detaille = ".$datd;
153            } else {
154                $datd = $this->getVal("dossier_autorisation_type_detaille");
155                if ($datd != "") {
156                    $sql_demande_type .= " AND dossier_autorisation_type_detaille = ".$datd;
157                }
158            }
159    
160            $res = $db->query($sql_demande_type);
161    
162            // logger
163            $this->addToLog("setSelect()[gen/obj]: db->query(\"".$sql_demande_type."\");",
164                            VERBOSE_MODE);
165            $this->f->isDatabaseError($res);
166    
167            $contenu[0][0] = '';
168            $contenu[1][0] = _('choisir')."&nbsp;"._("demande_type");
169    
170            $k=1;
171            while($row =& $res->fetchRow()){
172                $display = true;
173    
174                // Vérification des contraintes
175                if($row[2] != "") {
176                    foreach(explode(";", $row[2]) as $meth) {
177                        if(method_exists($this, $row[2])) {
178                            // Si une des contrainte est validée on affiche pas l'option
179                            if($this->$row[2]() === true) {
180                                $display = false;
181                            }
182                       }
183                    }
184                }
185                // Affichage ou non de l'option
186                if($display) {
187                    $contenu[0][$k] = $row[0];
188                    $contenu[1][$k] = $row[1];
189                    $k++;
190                }
191            }
192    
193            $form->setSelect("demande_type", $contenu);
194    
195        }
196      /*      /*
197      * Ajout du fielset      * Ajout du fielset
198      * Add fieldset      * Add fieldset
# Line 101  class demande extends demande_gen { Line 225  class demande extends demande_gen {
225              $form->setBloc('terrain_superficie','F');              $form->setBloc('terrain_superficie','F');
226              /*Fin bloc 4*/              /*Fin bloc 4*/
227                            
             /*Champ sur lequel s'ouvre le bloc 4 */  
             $form->setBloc('nombre_lots','D',"","lots col_12 demande_hidden_bloc");  
                 $form->setFieldset('nombre_lots','D',_('Nombre de lots'));  
                 $form->setFieldset('nombre_lots','F','');  
             $form->setBloc('nombre_lots','F');  
             /*Fin bloc 5*/  
228          }          }
229      }      }
230    
# Line 119  class demande extends demande_gen { Line 237  class demande extends demande_gen {
237          $form->setOnchange("dossier_autorisation_type_detaille","changeDemandeType();");          $form->setOnchange("dossier_autorisation_type_detaille","changeDemandeType();");
238          $form->setOnchange("demande_type","showFormsDemande();");          $form->setOnchange("demande_type","showFormsDemande();");
239      }      }
240          
241        function setLib(&$form,$maj) {
242            parent::setLib($form,$maj);
243            //libelle des champs
244            
245            $form->setLib('complement',_('terrain_adresse'));
246        }
247      /*      /*
248      * Cache le champ terrain_references_cadastrales      * Cache le champ terrain_references_cadastrales
249      * Hide the fiels terrain_references_cadastrales      * Hide the fiels terrain_references_cadastrales
# Line 146  class demande extends demande_gen { Line 270  class demande extends demande_gen {
270              $form->setType('terrain_adresse_bp', 'hiddenstatic');              $form->setType('terrain_adresse_bp', 'hiddenstatic');
271              $form->setType('terrain_adresse_cedex', 'hiddenstatic');              $form->setType('terrain_adresse_cedex', 'hiddenstatic');
272              $form->setType('terrain_superficie', 'hiddenstatic');              $form->setType('terrain_superficie', 'hiddenstatic');
             $form->setType('nombre_lots', 'hiddenstatic');  
273          }          }
274          if($maj == 1) {          if($maj == 1) {
275              $form->setType('dossier_autorisation_type_detaille', 'selecthiddenstatic');              $form->setType('dossier_autorisation_type_detaille', 'selecthiddenstatic');
# Line 169  class demande extends demande_gen { Line 292  class demande extends demande_gen {
292              $valAuto[$value] = NULL;              $valAuto[$value] = NULL;
293          }          }
294          $valAuto['dossier_autorisation']=NULL;          $valAuto['dossier_autorisation']=NULL;
         $valAuto['nature']=NULL;  
295          $valAuto['exercice']=NULL;          $valAuto['exercice']=NULL;
296          $valAuto['insee']=NULL;          $valAuto['insee']=NULL;
297          $valAuto['arrondissement']=NULL;          $valAuto['arrondissement']=NULL;
298          $valAuto['etat']=NULL;          $valAuto['etat_dossier_autorisation']=1;
299          $valAuto['erp_numero_batiment']=NULL;          $valAuto['erp_numero_batiment']=NULL;
300          $valAuto['erp_ouvert']=NULL;          $valAuto['erp_ouvert']=NULL;
301          $valAuto['erp_arrete_decision']=NULL;          $valAuto['erp_arrete_decision']=NULL;
302          $valAuto['dossier_autorisation_type_detaille']=$this->valF['dossier_autorisation_type_detaille'];          $valAuto['dossier_autorisation_type_detaille']=$this->valF['dossier_autorisation_type_detaille'];
303          $valAuto['depot_initial']=$this->valF['date_demande'];          $valAuto['depot_initial']=$this->dateDBToForm($this->valF['date_demande']);
304          $valAuto['terrain_references_cadastrales']=$this->valF['terrain_references_cadastrales'];          $valAuto['terrain_references_cadastrales']=$this->valF['terrain_references_cadastrales'];
305          $valAuto['terrain_adresse_voie_numero']=$this->valF['terrain_adresse_voie_numero'];          $valAuto['terrain_adresse_voie_numero']=$this->valF['terrain_adresse_voie_numero'];
306          $valAuto['complement']=$this->valF['complement'];          $valAuto['complement']=$this->valF['complement'];
# Line 195  class demande extends demande_gen { Line 317  class demande extends demande_gen {
317          $this->valF['dossier_autorisation'] = $dossier_autorisation->valF['dossier_autorisation'];          $this->valF['dossier_autorisation'] = $dossier_autorisation->valF['dossier_autorisation'];
318      }      }
319    
320        function getCodeDemandeType($demande_type){
321            
322            $sql = "SELECT
323                        code
324                    FROM
325                        ".DB_PREFIXE."demande_type
326                    WHERE
327                        demande_type = ".$demande_type;
328            $codeDemandeType = $this->db->getOne($sql);
329            $this->addToLog("db->getone(\"".$sql."\");", VERBOSE_MODE);
330            
331            return $codeDemandeType;
332        }
333    
334      /**      /**
335       * Méthode permettant d'ajouter un dossier d'instruction       * Méthode permettant d'ajouter un dossier d'instruction
336       */       */
# Line 214  class demande extends demande_gen { Line 350  class demande extends demande_gen {
350          $dossier->setDossierInstructionType($dossier_instruction_type);          $dossier->setDossierInstructionType($dossier_instruction_type);
351                    
352          // Définition des valeurs à entrée dans la table          // Définition des valeurs à entrée dans la table
353          $valInstr['dossier_autorisation_type_detaille']=$this->valF['dossier_autorisation_type_detaille'];          $valInstr['dossier_instruction_type']=$dossier_instruction_type;
354          $valInstr['date_depot']=$this->dateDBToForm($this->valF['date_demande']);          $valInstr['date_depot']=$this->dateDBToForm($this->valF['date_demande']);
355            $valInstr['date_dernier_depot']=$this->dateDBToForm($this->valF['date_demande']);
356          $valInstr['date_demande']=$this->dateDBToForm($this->valF['date_demande']);          $valInstr['date_demande']=$this->dateDBToForm($this->valF['date_demande']);
357          $valInstr['depot_initial']=$this->dateDBToForm($this->valF['date_demande']);          $valInstr['depot_initial']=$this->dateDBToForm($this->valF['date_demande']);
358          $valInstr['terrain_references_cadastrales']=$this->valF['terrain_references_cadastrales'];          $valInstr['terrain_references_cadastrales']=$this->valF['terrain_references_cadastrales'];
# Line 229  class demande extends demande_gen { Line 366  class demande extends demande_gen {
366          $valInstr['terrain_superficie']=$this->valF['terrain_superficie'];          $valInstr['terrain_superficie']=$this->valF['terrain_superficie'];
367          $valInstr['description']="";          $valInstr['description']="";
368          $valInstr['dossier_autorisation']=$this->valF['dossier_autorisation'];          $valInstr['dossier_autorisation']=$this->valF['dossier_autorisation'];
369    
370            /*
371             * Gestion de la qualification
372             * */
373             //Récupérer le code du type de la demande
374             $codeDemandeType = $this->getCodeDemandeType($val['demande_type']);
375            
376            //Marque le dossier comme à qualifier selon le type de dossier d'instruction
377            if ( strcasecmp($codeDemandeType, "DI") == 0 ||
378                 strcasecmp($codeDemandeType, "DT") == 0 ||
379                 strcasecmp($codeDemandeType, "DM") == 0 ||
380                 strcasecmp($codeDemandeType, "DP") == 0 ||
381                 strcasecmp($codeDemandeType, "DTP") == 0 ||
382                 strcasecmp($codeDemandeType, "DAACT") == 0 ||
383                 strcasecmp($codeDemandeType, "DOC") == 0 ){
384                
385                $valInstr['a_qualifier'] = TRUE;
386            }
387    
388            // Récupération du cerfa pour le type d'instruction sélectionnée et valide
389            $sql = "SELECT
390                        dossier_instruction_type.cerfa
391                    FROM
392                        ".DB_PREFIXE."dossier_instruction_type
393                    JOIN
394                        ".DB_PREFIXE."cerfa
395                    ON
396                        dossier_instruction_type.cerfa = cerfa.cerfa
397                    WHERE
398                        now()<=om_validite_fin
399                        AND now()>=om_validite_debut
400                        AND dossier_instruction_type=".$dossier_instruction_type;
401            $valInstr['cerfa'] = $db->getOne($sql);
402            $this->addToLog("db->getone(\"".$sql."\");", VERBOSE_MODE);
403    
404          $dossier->ajouter($valInstr, $db, $DEBUG);          $dossier->ajouter($valInstr, $db, $DEBUG);
405          $this->f->isDatabaseError();          $this->f->isDatabaseError();
406          // Liaison du dossier ajouter à la demande          // Liaison du dossier ajouter à la demande
# Line 236  class demande extends demande_gen { Line 408  class demande extends demande_gen {
408      }      }
409    
410      /**      /**
411         * Méthode permettant d'ajouter les données techniques au dossier d'instruction
412         */
413        function ajoutDonneesTechniques($id, &$db, $val, $DEBUG){
414            
415            require_once '../obj/donnees_techniques.class.php';
416            $donnees_techniques = new donnees_techniques("]",$db,$DEBUG);
417            
418            // Champs tous à NULL car seul le champ concernant le dossier d'instruction sera rempli
419            foreach($donnees_techniques->champs as $value) {
420                $val[$value] = NULL;
421            }
422                    
423            // Ajout du numéro de dossier d'instruction
424            $val['dossier_instruction']=$this->valF['dossier_instruction'];
425    
426            // Ajout des données techniques    
427            $donnees_techniques->ajouter($val, $db, $DEBUG);
428            $this->f->isDatabaseError();
429        }
430    
431        /**
432       * Ajout des liens demandeurs / dossier d'autorisation       * Ajout des liens demandeurs / dossier d'autorisation
433       **/       **/
434      function ajoutLiensDossierAutorisation($id, &$db, $val, $DEBUG) {      function ajoutLiensDossierAutorisation($id, &$db, $val, $DEBUG) {
# Line 374  class demande extends demande_gen { Line 567  class demande extends demande_gen {
567              if($dossier_type['dossier_instruction_type'] != NULL) {              if($dossier_type['dossier_instruction_type'] != NULL) {
568                  $this->ajoutDossierInstruction($id, $db, $val, $DEBUG, $dossier_type['dossier_instruction_type']);                  $this->ajoutDossierInstruction($id, $db, $val, $DEBUG, $dossier_type['dossier_instruction_type']);
569                  $this -> addToMessage(_("Creation du dossier d'instruction no").$this->valF['dossier_instruction']);                  $this -> addToMessage(_("Creation du dossier d'instruction no").$this->valF['dossier_instruction']);
570                    
571                    //Ajout des données techniques au dossier d'instruction
572                    $this->ajoutDonneesTechniques($id, $db, $val, $DEBUG);
573              }              }
574                            
575              /*Création du lien de téléchargement de récépissé de demande*/              /*Création du lien de téléchargement de récépissé de demande*/
# Line 406  class demande extends demande_gen { Line 602  class demande extends demande_gen {
602                  $valInstr['delai_notification']="1";                  $valInstr['delai_notification']="1";
603                  $valInstr['archive_delai']="0";                  $valInstr['archive_delai']="0";
604                  $valInstr['archive_date_complet']=NULL;                  $valInstr['archive_date_complet']=NULL;
605                    $valInstr['archive_date_dernier_depot']=NULL;
606                  $valInstr['archive_date_rejet']=NULL;                  $valInstr['archive_date_rejet']=NULL;
607                  $valInstr['archive_date_limite']=NULL;                  $valInstr['archive_date_limite']=NULL;
608                  $valInstr['archive_date_notification_delai']=NULL;                  $valInstr['archive_date_notification_delai']=NULL;
# Line 438  class demande extends demande_gen { Line 635  class demande extends demande_gen {
635                  $valInstr['date_retour_rar']=NULL;                  $valInstr['date_retour_rar']=NULL;
636                  $valInstr['date_envoi_controle_legalite']=NULL;                  $valInstr['date_envoi_controle_legalite']=NULL;
637                  $valInstr['date_retour_controle_legalite']=NULL;                  $valInstr['date_retour_controle_legalite']=NULL;
638                    $valInstr['signataire_arrete']=NULL;
639                    $valInstr['numero_arrete']=NULL;
640                                                                    
641                  /*Fichier requis*/                  /*Fichier requis*/
642                  require_once '../obj/instruction.class.php';                  require_once '../obj/instruction.class.php';
# Line 454  class demande extends demande_gen { Line 653  class demande extends demande_gen {
653                      $this->valF['instruction_recepisse'] = $instruction->valF['instruction'];                      $this->valF['instruction_recepisse'] = $instruction->valF['instruction'];
654                      $this -> addToMessage("<br/><a                      $this -> addToMessage("<br/><a
655                          class='lien'                          class='lien'
656                          href='../pdf/pdflettretype.php?obj=".$lettretype."&amp;idx=".$this->valF['dossier_instruction']."'                          href='../pdf/pdflettretype.php?obj=".$lettretype."&amp;idx=".$instruction->valF['instruction']."'
657                          target='_blank'>                          target='_blank'>
658                              <span                              <span
659                              class=\"om-icon om-icon-16 om-icon-fix pdf-16\"                              class=\"om-icon om-icon-16 om-icon-fix pdf-16\"
# Line 494  class demande extends demande_gen { Line 693  class demande extends demande_gen {
693          if(!empty($this->valF['dossier_instruction'])) {          if(!empty($this->valF['dossier_instruction'])) {
694              $this->ajoutLiensDossierInstruction($id, $db, $val, $DEBUG);              $this->ajoutLiensDossierInstruction($id, $db, $val, $DEBUG);
695          }          }
696    
697            // Duplication des lots et liaison au nouveau dossier_d'instruction
698            if(!empty($this->valF['dossier_autorisation']) AND $val['dossier_autorisation'] != "" ) {
699                $this->lienLotDossierInstruction($id, $db, $val, $DEBUG);
700            }
701      }      }
702            
703      /*Ajout du lien demande / demandeur(s)*/      /*Ajout du lien demande / demandeur(s)*/
# Line 505  class demande extends demande_gen { Line 709  class demande extends demande_gen {
709      }      }
710    
711      /**      /**
712         * Gestion des liens entre les lots du DA et le nouveau dossier
713         **/
714        function lienLotDossierInstruction($id, $db, $val, $DEBUG) {
715            require_once ("../obj/lot.class.php");
716            $lot = new lot("]", $db, $DEBUG);
717            require_once ("../obj/lien_dossier_lot.class.php");
718            $ldl = new lien_dossier_lot("]", $db, $DEBUG);
719            require_once ("../obj/lien_lot_demandeur.class.php");
720            $lld = new lien_lot_demandeur("]", $db, $DEBUG);
721    
722    
723            $sqlLots = "SELECT * FROM ".DB_PREFIXE."lot
724            WHERE dossier_autorisation = '".$this->valF['dossier_autorisation']."'";
725            $resLot = $db -> query($sqlLots);
726            $this->f->addToLog("db->query(\"".$sqlLots."\");", VERBOSE_MODE);
727            $this->f->isDatabaseError($resLot);
728            while ($rowLot=& $resLot->fetchRow(DB_FETCHMODE_ASSOC)){
729                // Insertion du nouveau lot
730                $valLot['lot'] = "";
731                $valLot['libelle'] = $rowLot['libelle'];
732                $valLot['dossier_autorisation'] = NULL;
733                $lot -> ajouter($valLot, $db, $DEBUG);
734    
735                //Insertion du lien entre le lot et le dossier d'instruction
736                $valLdl['lien_dossier_lot'] = "";
737                $valLdl['dossier'] = $this->valF['dossier_instruction'];
738                $valLdl['lot'] = $lot->valF['lot'];
739                $ldl->ajouter($valLdl, $db, $DEBUG);
740    
741                //Insertion des liens entre dossier et les lots
742                $sqlDemandeurs = "SELECT * FROM ".DB_PREFIXE."lien_lot_demandeur
743                WHERE lot = ".$rowLot['lot'];
744                $res = $db -> query($sqlDemandeurs);
745                $this->f->addToLog("db->query(\"".$sqlDemandeurs."\");", VERBOSE_MODE);
746                $this->f->isDatabaseError($res);
747                
748                while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)){
749                    $valLld["lien_lot_demandeur"] = "";
750                    $valLld["lot"]=$lot->valF['lot'];
751                    $valLld["demandeur"] = $row['demandeur'];
752                    $valLld["petitionnaire_principal"] = $row['petitionnaire_principal'];
753                    $lld->ajouter($valLld, $db, $DEBUG);
754                }
755            }
756        }
757    
758        /**
759       * Gestion des liens entre la demande et les demandeurs recemment ajoutés       * Gestion des liens entre la demande et les demandeurs recemment ajoutés
760       **/       **/
761      function insertLinkDemandeDemandeur($db, $DEBUG) {      function insertLinkDemandeDemandeur($db, $DEBUG) {
# Line 633  class demande extends demande_gen { Line 884  class demande extends demande_gen {
884       **/       **/
885      function listeDemandeur($from, $id) {      function listeDemandeur($from, $id) {
886          // Récupération des demandeurs de la base          // Récupération des demandeurs de la base
887          $sql = "SELECT demandeur.demandeur,          if(isset($this->valF['demande_type']) AND $this->getCodeDemandeType($this->valF['demande_type']) != "DT") {
888                          demandeur.type_demandeur,              $sql = "SELECT demandeur.demandeur,
889                          lien_".$from."_demandeur.petitionnaire_principal                              demandeur.type_demandeur,
890              FROM ".DB_PREFIXE."lien_".$from."_demandeur                              lien_".$from."_demandeur.petitionnaire_principal
891              INNER JOIN ".DB_PREFIXE."demandeur                  FROM ".DB_PREFIXE."lien_".$from."_demandeur
892              ON demandeur.demandeur=lien_".$from."_demandeur.demandeur                  INNER JOIN ".DB_PREFIXE."demandeur
893              WHERE ".$from." = '".$id."'";                  ON demandeur.demandeur=lien_".$from."_demandeur.demandeur
894          $res = $this->f->db->query($sql);                  WHERE ".$from." = '".$id."'";
895          $this->f->addToLog("listeDemandeur() : ".$sql);              $res = $this->f->db->query($sql);
896          $this->f->isDatabaseError($res);              $this->f->addToLog("listeDemandeur() : ".$sql);
897          // Stoquage du résultat dans un tableau              $this->f->isDatabaseError($res);
898          while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)){              // Stoquage du résultat dans un tableau
899              if ($row['petitionnaire_principal'] == 't' AND              while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)){
900                  $row['type_demandeur']=="petitionnaire") {                  if ($row['petitionnaire_principal'] == 't' AND
901                  $this->valIdDemandeur['petitionnaire_principal']=$row['demandeur'];                      $row['type_demandeur']=="petitionnaire") {
902              } elseif ($row['petitionnaire_principal'] == 'f' AND                      $this->valIdDemandeur['petitionnaire_principal']=$row['demandeur'];
903                  $row['type_demandeur']=="petitionnaire"){                  } elseif ($row['petitionnaire_principal'] == 'f' AND
904                  $this->valIdDemandeur['petitionnaire'][]=$row['demandeur'];                      $row['type_demandeur']=="petitionnaire"){
905              } elseif ($row['type_demandeur']=="delegataire"){                      $this->valIdDemandeur['petitionnaire'][]=$row['demandeur'];
906                  $this->valIdDemandeur['delegataire']=$row['demandeur'];                  } elseif ($row['type_demandeur']=="delegataire"){
907                        $this->valIdDemandeur['delegataire']=$row['demandeur'];
908                    }
909              }              }
910          }          }
911      }      }

Legend:
Removed from v.1140  
changed lines
  Added in v.1571

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26