From 5f6aeb2757aa39c43e3da944c61d156ac21afd32 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 28 Apr 2008 22:34:41 +0000 Subject: [PATCH] Look: Uniformisation style --- htdocs/projet/activity/index.php | 7 ++----- htdocs/projet/activity/myactivity.php | 22 ++++++++++------------ 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/htdocs/projet/activity/index.php b/htdocs/projet/activity/index.php index d1cfb42a394..b5685a92265 100644 --- a/htdocs/projet/activity/index.php +++ b/htdocs/projet/activity/index.php @@ -1,7 +1,7 @@ * Copyright (C) 2005-2006 Regis Houssin - * Copyright (C) 2006 Laurent Destailleur + * Copyright (C) 2006-2008 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,16 +16,13 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ - * $Source$ */ /** \file htdocs/projet/activity/index.php \ingroup projet \brief Page activite du module projet - \version $Revision$ + \version $Id$ */ require("./pre.inc.php"); diff --git a/htdocs/projet/activity/myactivity.php b/htdocs/projet/activity/myactivity.php index 4d2a83798bc..977b8adb15b 100644 --- a/htdocs/projet/activity/myactivity.php +++ b/htdocs/projet/activity/myactivity.php @@ -1,6 +1,6 @@ - * Copyright (C) 2006 Laurent Destailleur + * Copyright (C) 2006-2008 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,15 +15,13 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ */ /** \file htdocs/projet/activity/myactivity.php \ingroup projet \brief Page activite perso du module projet - \version $Revision$ + \version $Id$ */ require("./pre.inc.php"); @@ -125,12 +123,12 @@ if ( $resql ) { while ($row = $db->fetch_row($resql)) { + $var=!$var; print ""; print ''.$row[0].''; print ''.$row[2].''; print "\n"; $total += $row[2]; - $var=!$var; } $db->free($resql); @@ -139,7 +137,7 @@ else { dolibarr_print_error($db); } -print ""; +print ''; print ''.$langs->trans('Total').''; print ''.$total.''; print "\n"; @@ -169,12 +167,12 @@ if ( $resql ) { while ($row = $db->fetch_row($resql)) { - print ""; + $var=!$var; + print ""; print ''.$row[0].''; print ''.$row[2].''; print "\n"; $total += $row[2]; - $var=!$var; } $db->free($resql); @@ -183,7 +181,7 @@ else { dolibarr_print_error($db); } -print ""; +print ''; print ''.$langs->trans('Total').''; print ''.$total.''; print "\n"; @@ -214,12 +212,12 @@ if ( $resql ) { while ($row = $db->fetch_row( $resql)) { - print ""; + $var=!$var; + print ""; print ''.$row[0].''; print ''.$row[2].''; print "\n"; $total += $row[2]; - $var=!$var; } $db->free($resql); @@ -228,7 +226,7 @@ else { dolibarr_print_error($db); } -print ""; +print ''; print ''.$langs->trans('Total').''; print ''.$total.''; print "\n";