Look: Modifications ethtiques mineures

This commit is contained in:
Laurent Destailleur 2005-05-03 01:03:58 +00:00
parent 02591ee6dc
commit 3859615520
2 changed files with 10 additions and 14 deletions

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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
@ -21,7 +21,7 @@
*
*/
/*!
/**
\file htdocs/compta/charges/index.php
\ingroup compta
\brief Page liste des charges
@ -74,7 +74,8 @@ if ( $db->query($sql) )
{
$num = $db->num_rows();
$i = 0;
$var=true;
while ($i < $num) {
$obj = $db->fetch_object();
$var = !$var;
@ -90,7 +91,7 @@ if ( $db->query($sql) )
dolibarr_print_error($db);
}
/*
/**
* Factures fournisseurs
*/
$sql = "SELECT count(f.rowid) as nb, sum(total_ttc) as total, sum(IF(paye=1,total_ttc,0)) as totalpaye";

View File

@ -44,19 +44,13 @@ llxHeader();
$sortfield = isset($_GET["sortfield"])?$_GET["sortfield"]:$_POST["sortfield"];
$sortorder = isset($_GET["sortorder"])?$_GET["sortorder"]:$_POST["sortorder"];
$page = $_GET["page"];
if ($page < 0) {
$page = 0 ; }
if ($page < 0) $page = 0;
$limit = $conf->liste_limit;
$offset = $limit * $page ;
if ($sortfield == "") {
$sortfield="c.id"; }
if ($sortorder == "")
{
$sortorder="DESC";
}
if (! $sortfield) $sortfield="c.id";
if (! $sortorder) $sortorder="DESC";
/*
@ -121,7 +115,7 @@ print "<table class=\"noborder\" width=\"100%\">";
*
*/
if ($user->rights->compta->charges->creer) {
$var = !$var;
$var=false;
print "<tr class=\"liste_titre\">";
print '<td>';
@ -225,6 +219,7 @@ if ( $db->query($sql) )
{
$num = $db->num_rows();
$i = 0;
$var=true;
while ($i < $num)
{