From f764c5da68cc15d7f02eec529df1e1765af6b9e1 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 6 Dec 2004 14:51:54 +0000 Subject: [PATCH] Mise au propres --- htdocs/compta/ventilation/index.php | 71 +-------------------------- htdocs/compta/ventilation/liste.php | 7 +-- htdocs/compta/ventilation/pre.inc.php | 1 + 3 files changed, 4 insertions(+), 75 deletions(-) diff --git a/htdocs/compta/ventilation/index.php b/htdocs/compta/ventilation/index.php index a569a62a6ae..d9e7ed4cc3d 100644 --- a/htdocs/compta/ventilation/index.php +++ b/htdocs/compta/ventilation/index.php @@ -30,76 +30,7 @@ require("./pre.inc.php"); -$user->getrights('banque'); +Header("Location: liste.php"); -$langs->load("compta"); - -/* - * Sécurité accés client - */ -if ($user->societe_id > 0) -{ - $action = ''; - $socidp = $user->societe_id; -} - -llxHeader("","Accueil Compta"); - - -/* - * Actions - */ - -if ($action == 'add_bookmark') -{ - $sql = "DELETE FROM ".MAIN_DB_PREFIX."bookmark WHERE fk_soc = ".$socidp." AND fk_user=".$user->id; - if (! $db->query($sql) ) - { - dolibarr_print_error($db); - } - $sql = "INSERT INTO ".MAIN_DB_PREFIX."bookmark (fk_soc, dateb, fk_user) VALUES ($socidp, now(),".$user->id.");"; - if (! $db->query($sql) ) - { - dolibarr_print_error($db); - } -} - -if ($action == 'del_bookmark') -{ - $sql = "DELETE FROM ".MAIN_DB_PREFIX."bookmark WHERE rowid=$bid"; - $result = $db->query($sql); -} - - - -/* - * Affichage page - * - */ -print_titre("Espace ventilation"); - -print ''; - -print ''; - -print '
'; - -/* - * Zone recherche facture - */ -print '
'; -print ''; -print ""; -print ''; -print "'; -print "
Rechercher une facture
"; -print $langs->trans("Ref").' :  

"; - -print '
 '; - -print '
'; - -$db->close(); - llxFooter("Dernière modification $Date$ révision $Revision$"); ?> diff --git a/htdocs/compta/ventilation/liste.php b/htdocs/compta/ventilation/liste.php index c201388d046..6493bcaaf72 100644 --- a/htdocs/compta/ventilation/liste.php +++ b/htdocs/compta/ventilation/liste.php @@ -84,7 +84,7 @@ if ($result) echo ''; print ""; print ''; - print ''; + print ''; print "\n"; } $var=True; @@ -96,14 +96,11 @@ if ($result) print ''; - - print ''; - + print ''; print ''; - print ""; $i++; } diff --git a/htdocs/compta/ventilation/pre.inc.php b/htdocs/compta/ventilation/pre.inc.php index 757b5377e87..5091418f73e 100644 --- a/htdocs/compta/ventilation/pre.inc.php +++ b/htdocs/compta/ventilation/pre.inc.php @@ -91,6 +91,7 @@ function llxHeader($head = "", $title="", $help_url='') $menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation")); $menu->add_submenu(DOL_URL_ROOT."/compta/ventilation/liste.php",$langs->trans("A ventiler")); + $menu->add_submenu(DOL_URL_ROOT."/compta/ventilation/lignes.php",$langs->trans("Ventilées")); if ($user->rights->compta->ventilation->param) $menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param"));
Facture'.$langs->trans("Description").''.$langs->trans("VAT").' 
'.$objp->facnumber.''.stripslashes(nl2br($objp->description)).''.stripslashes(nl2br($objp->description)).''; print img_edit(); print '