{ $outputlangs = new Translate("",$conf); $outputlangs->setDefaultLang($newlang); } fichinter_create($db, $object, $object->modelpdf, $outputlangs); Header ('Location: '.$_SERVER["PHP_SELF"].'?id='.$_POST['fichinterid']); exit; } } // Classify Billed if ($action == 'classifybilled') { $object = new Fichinter($db); $object->fetch($id); $result=$object->setBilled(); if ($result > 0) { Header ('Location: '.$_SERVER["PHP_SELF"].'?id='.$_POST['fichinterid']); exit; } else { $mesg='<div class="error">'.$object->error.'</div>'; } } /* * Mise a jour d'une ligne d'intervention */ if ($action == 'updateligne' && $user->rights->ficheinter->creer && $_POST["save"] == $langs->trans("Save"))