diff --git a/htdocs/fichinter/fiche.php3 b/htdocs/fichinter/fiche.php3 index fe18a42c67e..48010b70625 100644 --- a/htdocs/fichinter/fiche.php3 +++ b/htdocs/fichinter/fiche.php3 @@ -102,22 +102,7 @@ if ($action == 'generate') { if ($id) { - print fichinter_pdf_create($db, $id); - - //$DBI = "dbi:mysql:dbname=lolixdev:host=espy:user=rodo"; - /* - $command = 'export LC_TIME=fr_FR ; export DBI_DSN="dbi:'.$conf->db->type.':dbname='.$conf->db->name.':host='.$conf->db->host.'"'; - - $command .= " ; ./tex-fichinter.pl --fichinter=".$id ; - $command .= " --pdf --ps -vv --html"; - $command .= " --output=" .$conf->fichinter->outputdir; - $command .= " --templates=" .$conf->fichinter->templatesdir; - - $output = system($command); - print $output; - print "
command : $command
";
- */
}
else
{
@@ -361,36 +346,6 @@ if ($id)
print nl2br($fichinter->note);
print '';
- print ' ';
-
- $file = $conf->fichinter->outputdir . "/$fichinter->ref/$fichinter->ref.pdf";
- if (file_exists($file))
- {
-
- print 'Documents liste... ';
- }
- $file = $conf->fichinter->outputdir . "/$fichinter->ref/$fichinter->ref.ps";
- if (file_exists($file))
- {
- print 'PDF '.$fichinter->ref.'.pdf ';
- print ''.filesize($file). ' bytes ';
- print ''.strftime("%d %b %Y %H:%M:%S",filemtime($file)).' ';
- print ' ';
- }
-
- $file = $conf->fichinter->outputdir . "/$fichinter->ref/$fichinter->ref.tex";
- if (file_exists($file)) {
- print 'PS '.$fichinter->ref.'.ps ';
- print ''.filesize($file).' bytes ';
- print ''.strftime("%d %b %Y %H:%M:%S",filemtime($file)).' ';
- print ' ';
- }
-
print '';
print "";
@@ -447,6 +402,21 @@ if ($id)
print '';
+ print "tex '.$fichinter->ref.'.tex';
- print ' [view]';
- print ' ';
- print ''.filesize($file).' bytes ';
- print ''.strftime("%d %b %Y %H:%M:%S",filemtime($file)).' ';
- print '
\n";
+
}
";
+ print_titre("Documents générés");
+ print " ";
+
+ $file = FICHEINTER_OUTPUTDIR . "/$fichinter->ref/$fichinter->ref.pdf";
+ if (file_exists($file))
+ {
+ print "
';
+ }
+
+ print "Ficheinter PDF ";
+ print ''.$fichinter->ref.'.pdf ';
+ print ''.filesize($file). ' bytes ';
+ print ''.strftime("%d %b %Y %H:%M:%S",filemtime($file)).'