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

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

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

revision 2804 by vpihour, Fri Mar 7 15:14:23 2014 UTC revision 2805 by nmeucci, Tue Mar 11 14:55:03 2014 UTC
# Line 347  class instruction extends instruction_ge Line 347  class instruction extends instruction_ge
347              $form->setType('date_retour_controle_legalite','datedisabled');              $form->setType('date_retour_controle_legalite','datedisabled');
348              $form->setType('date_finalisation_courrier','datedisabled');              $form->setType('date_finalisation_courrier','datedisabled');
349    
350              // l'administrateur peut modifier les champs de retour de date              
             if ($this->f->user_is_admin == true) {  
                 $form->setType('date_retour_signature','date');  
                 $form->setType('date_retour_rar','date');  
                 $form->setType('date_retour_controle_legalite','date');  
             }  
351    
352              if($maj==0){ // add              if($maj==0){ // add
353                  $form->setType('instruction', 'hiddenstatic');                  $form->setType('instruction', 'hidden');
354                    $form->setType('lettretype', 'hidden');
355                  $form->setType('evenement', 'select');                  $form->setType('evenement', 'select');
356                  $form->setType('date_evenement', 'date2');                  $form->setType('date_evenement', 'date2');
357              }else{ // modify              }else{ // modify
# Line 365  class instruction extends instruction_ge Line 361  class instruction extends instruction_ge
361                  $form->setType('date_evenement', 'date2');                  $form->setType('date_evenement', 'date2');
362                  // necessaire pour calcul de date en modification                  // necessaire pour calcul de date en modification
363                  //$form->setType('delai', 'hiddenstatic');                  //$form->setType('delai', 'hiddenstatic');
364                    // l'administrateur peut modifier les champs de retour de date
365                    if ($this->f->user_is_admin == true) {
366                        $form->setType('date_retour_signature','date');
367                        $form->setType('date_retour_rar','date');
368                        $form->setType('date_retour_controle_legalite','date');
369                    }
370              }              }
371          } elseif($maj==2){          } elseif($maj==2){
372              $form->setType('dossier', 'hidden');              $form->setType('dossier', 'hidden');

Legend:
Removed from v.2804  
changed lines
  Added in v.2805

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26