Look: Modifications ethétiques mineures
This commit is contained in:
parent
02591ee6dc
commit
3859615520
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* 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
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -21,7 +21,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*!
|
/**
|
||||||
\file htdocs/compta/charges/index.php
|
\file htdocs/compta/charges/index.php
|
||||||
\ingroup compta
|
\ingroup compta
|
||||||
\brief Page liste des charges
|
\brief Page liste des charges
|
||||||
@ -74,7 +74,8 @@ if ( $db->query($sql) )
|
|||||||
{
|
{
|
||||||
$num = $db->num_rows();
|
$num = $db->num_rows();
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
$var=true;
|
||||||
|
|
||||||
while ($i < $num) {
|
while ($i < $num) {
|
||||||
$obj = $db->fetch_object();
|
$obj = $db->fetch_object();
|
||||||
$var = !$var;
|
$var = !$var;
|
||||||
@ -90,7 +91,7 @@ if ( $db->query($sql) )
|
|||||||
dolibarr_print_error($db);
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Factures fournisseurs
|
* Factures fournisseurs
|
||||||
*/
|
*/
|
||||||
$sql = "SELECT count(f.rowid) as nb, sum(total_ttc) as total, sum(IF(paye=1,total_ttc,0)) as totalpaye";
|
$sql = "SELECT count(f.rowid) as nb, sum(total_ttc) as total, sum(IF(paye=1,total_ttc,0)) as totalpaye";
|
||||||
|
|||||||
@ -44,19 +44,13 @@ llxHeader();
|
|||||||
$sortfield = isset($_GET["sortfield"])?$_GET["sortfield"]:$_POST["sortfield"];
|
$sortfield = isset($_GET["sortfield"])?$_GET["sortfield"]:$_POST["sortfield"];
|
||||||
$sortorder = isset($_GET["sortorder"])?$_GET["sortorder"]:$_POST["sortorder"];
|
$sortorder = isset($_GET["sortorder"])?$_GET["sortorder"]:$_POST["sortorder"];
|
||||||
$page = $_GET["page"];
|
$page = $_GET["page"];
|
||||||
if ($page < 0) {
|
if ($page < 0) $page = 0;
|
||||||
$page = 0 ; }
|
|
||||||
|
|
||||||
$limit = $conf->liste_limit;
|
$limit = $conf->liste_limit;
|
||||||
$offset = $limit * $page ;
|
$offset = $limit * $page ;
|
||||||
|
|
||||||
if ($sortfield == "") {
|
if (! $sortfield) $sortfield="c.id";
|
||||||
$sortfield="c.id"; }
|
if (! $sortorder) $sortorder="DESC";
|
||||||
|
|
||||||
if ($sortorder == "")
|
|
||||||
{
|
|
||||||
$sortorder="DESC";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -121,7 +115,7 @@ print "<table class=\"noborder\" width=\"100%\">";
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if ($user->rights->compta->charges->creer) {
|
if ($user->rights->compta->charges->creer) {
|
||||||
$var = !$var;
|
$var=false;
|
||||||
|
|
||||||
print "<tr class=\"liste_titre\">";
|
print "<tr class=\"liste_titre\">";
|
||||||
print '<td>';
|
print '<td>';
|
||||||
@ -225,6 +219,7 @@ if ( $db->query($sql) )
|
|||||||
{
|
{
|
||||||
$num = $db->num_rows();
|
$num = $db->num_rows();
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
$var=true;
|
||||||
|
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user