From c57d71e3ec5583bc6d4ae382fc8791731bc133e3 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 28 Jun 2003 20:03:30 +0000 Subject: [PATCH] Mise en forme html --- htdocs/fichinter/fiche.php3 | 60 ++++++++++--------------------------- 1 file changed, 15 insertions(+), 45 deletions(-) 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 'Documentsliste...'; - - $file = $conf->fichinter->outputdir . "/$fichinter->ref/$fichinter->ref.pdf"; - 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.ps"; - if (file_exists($file)) - { - print 'PS'.$fichinter->ref.'.ps'; - 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 'tex'.$fichinter->ref.'.tex'; - print ' [view]'; - print ''; - 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 "
"; + print_titre("Documents générés"); + print ""; + + $file = FICHEINTER_OUTPUTDIR . "/$fichinter->ref/$fichinter->ref.pdf"; + if (file_exists($file)) + { + print ""; + print ''; + print ''; + print ''; + } + + print "
Ficheinter PDF'.$fichinter->ref.'.pdf'.filesize($file). ' bytes'.strftime("%d %b %Y %H:%M:%S",filemtime($file)).'
\n"; + }