Qual: Removed warnings

This commit is contained in:
Laurent Destailleur 2011-10-13 20:32:03 +02:00
parent f671df6634
commit 8ab4ec804f
13 changed files with 60 additions and 84 deletions

View File

@ -44,7 +44,12 @@ else
} }
print '<div class="liste_articles">'; print '<div class="liste_articles">';
include('liste_articles.php');
require ('tpl/liste_articles.tpl.php');
$obj_facturation->prix_total_ht($lst_total_ht);
$obj_facturation->prix_total_ttc($lst_total_ttc);
print '</div>'; print '</div>';
print '<div class="principal">'; print '<div class="principal">';

View File

@ -34,51 +34,46 @@ class Auth
/** /**
* Enter description here ... * Enter description here ...
* *
* @param unknown_type $DB * @param DoliDB $DB Database handler
* @return void
*/ */
function Auth($DB) function Auth($DB)
{ {
$this->db = $DB; $this->db = $DB;
$this->reponse(null); $this->reponse(null);
} }
/** /**
* Enter description here ... * Enter description here ...
* *
* @param unknown_type $aLogin * @param string $aLogin Login
* @return void
*/ */
function login($aLogin) function login($aLogin)
{ {
$this->login = $aLogin; $this->login = $aLogin;
} }
/** /**
* Enter description here ... * Enter description here ...
* *
* @param unknown_type $aPasswd * @param string $aPasswd Password
* @return void
*/ */
function passwd($aPasswd) function passwd($aPasswd)
{ {
$this->passwd = $aPasswd; $this->passwd = $aPasswd;
} }
/** /**
* Enter description here ... * Enter description here ...
* *
* @param unknown_type $aReponse * @param string $aReponse Response
* @return void
*/ */
function reponse($aReponse) function reponse($aReponse)
{ {
$this->reponse = $aReponse; $this->reponse = $aReponse;
} }
/** /**
@ -86,6 +81,7 @@ class Auth
* *
* @param string $aLogin Login * @param string $aLogin Login
* @param string $aPasswd Password * @param string $aPasswd Password
* @return int 0 or 1
*/ */
function verif($aLogin, $aPasswd) function verif($aLogin, $aPasswd)
{ {

View File

@ -95,26 +95,25 @@ if ( $_GET['filtre'] ) {
$nbr_enreg = count($tab_designations); $nbr_enreg = count($tab_designations);
if ( $nbr_enreg > 1 ) { if ( $nbr_enreg > 1 )
{
if ( $nbr_enreg > $conf_taille_listes ) { if ( $nbr_enreg > $conf_taille_listes )
{
$top_liste_produits = '----- '.$conf_taille_listes.' '.$langs->transnoentitiesnoconv("CashDeskProducts").' '.$langs->trans("CashDeskOn").' '.$nbr_enreg.' -----'; $top_liste_produits = '----- '.$conf_taille_listes.' '.$langs->transnoentitiesnoconv("CashDeskProducts").' '.$langs->trans("CashDeskOn").' '.$nbr_enreg.' -----';
}
} else { else
{
$top_liste_produits = '----- '.$nbr_enreg.' '.$langs->transnoentitiesnoconv("CashDeskProducts").' '.$langs->trans("CashDeskOn").' '.$nbr_enreg.' -----'; $top_liste_produits = '----- '.$nbr_enreg.' '.$langs->transnoentitiesnoconv("CashDeskProducts").' '.$langs->trans("CashDeskOn").' '.$nbr_enreg.' -----';
} }
} else if ( $nbr_enreg == 1 ) { }
else if ( $nbr_enreg == 1 )
{
$top_liste_produits = '----- 1 '.$langs->transnoentitiesnoconv("ProductFound"). ' -----'; $top_liste_produits = '----- 1 '.$langs->transnoentitiesnoconv("ProductFound"). ' -----';
}
} else { else
{
$top_liste_produits = '----- '.$langs->transnoentitiesnoconv("NoProductFound"). ' -----'; $top_liste_produits = '----- '.$langs->transnoentitiesnoconv("NoProductFound"). ' -----';
} }

View File

@ -1,24 +0,0 @@
<?php
/* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net>
* Copyright (C) 2008 Laurent Destailleur <eldy@uers.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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
require ('tpl/liste_articles.tpl.php');
$obj_facturation->prix_total_ht ($lst_total_ht);
$obj_facturation->prix_total_ttc ($lst_total_ttc);
?>

View File

@ -1,5 +1,5 @@
<?php <?php
/* Copyright (C) 2007-2008 J<EFBFBD>r<EFBFBD>mie Ollivier <jeremie.o@laposte.net> /* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.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