162 |
}else{ // modify |
}else{ // modify |
163 |
$form->setType('instruction', 'hiddenstatic'); |
$form->setType('instruction', 'hiddenstatic'); |
164 |
$form->setType('evenement', 'hiddenstatic'); |
$form->setType('evenement', 'hiddenstatic'); |
165 |
$form->setType('datecourrier', 'hiddenstaticdate'); |
//$form->setType('datecourrier', 'hiddenstaticdate'); |
166 |
|
$form->setType('datecourrier', 'date2'); |
167 |
} |
} |
168 |
}else{ // supprimer [delete] |
}else{ // supprimer [delete] |
169 |
$form->setType('instruction', 'hiddenstatic'); |
$form->setType('instruction', 'hiddenstatic'); |
345 |
// mise a null au lieu de "" / voir compatibilite mysql |
// mise a null au lieu de "" / voir compatibilite mysql |
346 |
// voir parametrage CU en dur |
// voir parametrage CU en dur |
347 |
// voir parametrage des actions en dur |
// voir parametrage des actions en dur |
348 |
|
$param=0; |
349 |
|
|
350 |
|
if($param==1){ |
351 |
|
$sql="select * from action where action = '".$this->valF['action']."'"; |
352 |
|
$res = $db->query($sql); |
353 |
|
if (database::isError($res)) |
354 |
|
die($res->getMessage()); |
355 |
|
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)){ |
356 |
|
if($row['regle_etat']!=''){ |
357 |
|
$valF['etat']= $this->valF[$row['regle_etat']]; |
358 |
|
} |
359 |
|
if($row['regle_delai']!=''){ |
360 |
|
$valF['delai']= $this->valF[$row['regle_delai']]; |
361 |
|
} |
362 |
|
if($row['regle_accord_tacite']!=''){ |
363 |
|
$valF['accord_tacite']= $this->valF[$row['regle_accord_tacite']]; |
364 |
|
} |
365 |
|
if($row['regle_date_limite']!=''){ |
366 |
|
$temp = explode ("+",$row['regle_date_limite']); |
367 |
|
//if(substr($row['temp'],0,7)=='archive') |
368 |
|
if(isnumeric($temp[1])) |
369 |
|
$valF['date_limite']= $this->moisdate($this->valF[$temp[0]], |
370 |
|
$temp[1]); |
371 |
|
else |
372 |
|
$valF['date_limite']= $this->moisdate($this->valF[$temp[0]], |
373 |
|
$this->valF[$temp[1]]); |
374 |
|
} |
375 |
|
} |
376 |
|
}else{ |
377 |
|
|
378 |
switch ($this->valF['action']) { |
switch ($this->valF['action']) { |
379 |
case "initialisation" : |
case "initialisation" : |
381 |
$valF['etat']= $this->valF['etat']; |
$valF['etat']= $this->valF['etat']; |
382 |
$valF['accord_tacite']= $this->valF['accord_tacite']; |
$valF['accord_tacite']= $this->valF['accord_tacite']; |
383 |
// la date_complet est la date de depot |
// la date_complet est la date de depot |
384 |
$valF['date_complet']= $this->archive_date_depot; |
$valF['date_complet']= $this->archive_date_depot; // **** |
385 |
$valF['date_limite'] = $this->moisdate($valF['date_complet'],$valF['delai']); |
$valF['date_limite'] = $this->moisdate($valF['date_complet'],$valF['delai']); |
386 |
$valF['date_notification_delai'] = $this->moisdate($valF['date_complet'],1); |
$valF['date_notification_delai'] = $this->moisdate($valF['date_complet'],1); |
387 |
break; |
break; |
476 |
if ($this->valF['etat']!="") |
if ($this->valF['etat']!="") |
477 |
$valF['etat']= $this->valF['etat']; |
$valF['etat']= $this->valF['etat']; |
478 |
}// end switch |
}// end switch |
479 |
|
} // end param |
480 |
// mise à jour dossier [modify dossier] |
// mise à jour dossier [modify dossier] |
481 |
if($valF!=""){ |
if($valF!=""){ |
482 |
$cle= " dossier = '".$this->valF['dossier']."'"; |
$cle= " dossier = '".$this->valF['dossier']."'"; |