This commit is contained in:
Laurent Destailleur 2010-07-21 11:57:52 +00:00
parent 87ce3073d5
commit 9477257bfb
12 changed files with 44 additions and 222 deletions

View File

@ -1,5 +1,5 @@
<?php
/* Copyright (C) 2007-2008 Jéré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
* it under the terms of the GNU General Public License as published by
@ -15,6 +15,14 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/**
* \file htdocs/cashdesk/affPied.php
* \ingroup cashdesk
* \brief Bottom of main page of point of sale module
* \version $Id$
*/
?>
<div class="pied">

View File

@ -19,7 +19,7 @@
/**
* \file htdocs/includes/boxes/box_bookmarks.php
* \ingroup bookmark
* \brief Module de g<EFBFBD>n<EFBFBD>ration de l'affichage de la box bookmark
* \brief Module to generate box of bookmarks list
* \version $Id$
*/
include_once(DOL_DOCUMENT_ROOT."/includes/boxes/modules_boxes.php");

View File

@ -1,85 +0,0 @@
<?php
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
*
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/
include_once(DOL_DOCUMENT_ROOT."/includes/boxes/modules_boxes.php");
class box_energie_graph extends ModeleBoxes {
var $boxcode="energie_graph";
var $boximg="object_energie";
var $boxlabel;
var $depends = array("energie"); // Box active si module energie actif
var $db;
var $param;
var $box_multiple = 1;
var $info_box_head = array();
var $info_box_contents = array();
/**
* \brief Constructeur de la classe
*/
function box_energie_graph()
{
global $langs;
$langs->load("boxes");
$this->boxlabel=$langs->trans("EnergieGraph");
}
/**
* \brief Charge les donn<EFBFBD>es en m<EFBFBD>moire pour affichage ult<EFBFBD>rieur
* \param $max Nombre maximum d'enregistrements <EFBFBD> charger
*/
function loadBox($max=5)
{
global $user, $langs, $db;
$langs->load("boxes");
$this->max=$max;
$text = '<a href="energie/">'.$langs->trans("Energie").'</a>';
$this->info_box_head = array('text' => $text,$max);
$file = "small-all.1.png";
$libelle = '<img border="0" src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=energie&file='.$file.'" alt="" title="">';
$this->info_box_contents[0][0] = array('td' => 'align="left" width="16"',
'logo' => $this->boximg,
'url' => DOL_URL_ROOT."/energie/compteur.php?id=".$objp->rowid);
$this->info_box_contents[0][1] = array('td' => 'align="left"',
'text' => $libelle,
'url' => DOL_URL_ROOT."/energie/compteur.php?id=".$objp->rowid);
}
function showBox()
{
parent::showBox($this->info_box_head, $this->info_box_contents);
}
}
?>

View File

@ -1,101 +0,0 @@
<?php
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
*
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/
include_once(DOL_DOCUMENT_ROOT."/includes/boxes/modules_boxes.php");
class box_energie_releve extends ModeleBoxes {
var $boxcode="energie";
var $boximg="object_energie";
var $boxlabel;
var $depends = array("energie");
var $db;
var $param;
var $info_box_head = array();
var $info_box_contents = array();
/**
* \brief Constructeur de la classe
*/
function box_energie_releve()
{
global $langs;
$langs->load("boxes");
$this->boxlabel=$langs->trans("Energie");
}
/**
* \brief Charge les donn<EFBFBD>es en m<EFBFBD>moire pour affichage ult<EFBFBD>rieur
* \param $max Nombre maximum d'enregistrements <EFBFBD> charger
*/
function loadBox($max=5)
{
global $user, $langs, $db;
$langs->load("boxes");
$this->max=$max;
$text = '<a href="energie/">'.$langs->trans("Energie").'</a>';
$this->info_box_head = array('text' => $text,$max);
$sql = "SELECT ec.libelle, ecr.valeur, ec.rowid";
$sql .= " FROM ".MAIN_DB_PREFIX."energie_compteur_releve as ecr,";
$sql .= " ".MAIN_DB_PREFIX."energie_compteur as ec";
$sql .= " WHERE ecr.fk_compteur = ec.rowid";
$sql .= " ORDER BY ecr.date_releve DESC LIMIT 5";
$resql = $db->query($sql);
if ($resql)
{
$num = $db->num_rows($resql);
$i = 0;
$var=True;
while ($i < $num)
{
$objp = $db->fetch_object($resql);
$this->info_box_contents[$i][0] = array('td' => 'align="left" width="16"',
'logo' => $this->boximg,
'url' => DOL_URL_ROOT."/energie/compteur.php?id=".$objp->rowid);
$this->info_box_contents[$i][1] = array('td' => 'align="left"',
'text' => $objp->libelle,
'url' => DOL_URL_ROOT."/energie/compteur.php?id=".$objp->rowid);
$this->info_box_contents[$i][2] = array('td' => 'align="right"',
'text' => $objp->valeur);
$i++;
}
}
}
function showBox()
{
parent::showBox($this->info_box_head, $this->info_box_contents);
}
}
?>

View File

@ -20,7 +20,7 @@
/**
\file htdocs/includes/boxes/box_fournisseurs.php
\ingroup fournisseurs
\brief Module de génération de l'affichage de la box fournisseurs
\brief Module to generate box of suppliers
\version $Id$
*/
@ -52,8 +52,8 @@ class box_fournisseurs extends ModeleBoxes {
}
/**
* \brief Charge les données en mémoire pour affichage ultérieur
* \param $max Nombre maximum d'enregistrements à charger
* \brief Charge les donn<EFBFBD>es en m<EFBFBD>moire pour affichage ult<EFBFBD>rieur
* \param $max Nombre maximum d'enregistrements <EFBFBD> charger
*/
function loadBox($max=5)
{

View File

@ -20,7 +20,7 @@
/**
\file htdocs/includes/boxes/box_osc_client.php
\ingroup osc
\brief Module de génération de l'affichage de la box osc client
\brief Module to generate box of shop customers
\version $Id$
*/
@ -52,8 +52,8 @@ class box_osc_clients extends ModeleBoxes {
}
/**
* \brief Charge les données en mémoire pour affichage ultérieur
* \param $max Nombre maximum d'enregistrements à charger
* \brief Charge les donn<EFBFBD>es en m<EFBFBD>moire pour affichage ult<EFBFBD>rieur
* \param $max Nombre maximum d'enregistrements <EFBFBD> charger
*/
function loadBox($max=5)
{

View File

@ -1,6 +1,6 @@
<?PHP
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2007 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
@ -18,11 +18,11 @@
*/
/**
\file htdocs/theme/eldy/graph-color.php
\brief Fichier de déclaration des couleurs pour les graphiques
\ingroup core
\version $Id$
*/
* \file htdocs/theme/auguria/graph-color.php
* \brief File to declare colors to use to build graphics with theme Auguria
* \ingroup core
* \version $Id$
*/
global $theme_bordercolor, $theme_datacolor, $theme_bgcolor, $theme_bgcoloronglet;
$theme_bordercolor = array(235,235,224);

View File

@ -1,6 +1,6 @@
<?PHP
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2007 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
@ -18,11 +18,11 @@
*/
/**
\file htdocs/theme/eldy/graph-color.php
\brief Fichier de déclaration des couleurs pour les graphiques
\ingroup core
\version $Id$
*/
* \file htdocs/theme/eldy/graph-color.php
* \brief File to declare colors to use to build graphics with theme Eldy
* \ingroup core
* \version $Id$
*/
global $theme_bordercolor, $theme_datacolor, $theme_bgcolor, $theme_bgcoloronglet;
$theme_bordercolor = array(235,235,224);

View File

@ -18,11 +18,11 @@
*/
/**
\file htdocs/theme/freelug/graph-color.php
\brief Fichier de declaration des couleurs pour les graphiques
\ingroup core
\version $Id$
*/
* \file htdocs/theme/freelug/graph-color.php
* \brief File to declare colors to use to build graphics with theme Freelug
* \ingroup core
* \version $Id$
*/
global $theme_bordercolor, $theme_datacolor, $theme_bgcolor, $theme_bgcoloronglet;
$theme_bordercolor = array(235,235,224);

View File

@ -1,6 +1,6 @@
<?PHP
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2008 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
@ -18,11 +18,11 @@
*/
/**
\file htdocs/theme/yellow/graph-color.php
\brief Fichier de déclaration des couleurs pour les graphiques
\ingroup core
\version $Id$
*/
* \file htdocs/theme/yellow/graph-color.php
* \brief File to declare colors to use to build graphics with theme Yellow
* \ingroup core
* \version $Id$
*/
global $theme_bordercolor, $theme_datacolor, $theme_bgcolor, $theme_bgcoloronglet;
$theme_bordercolor = array(235,235,224);

View File

@ -19,7 +19,7 @@
/**
* \file scripts/members/sync_members_dolibarr2ldap.php
* \ingroup ldap adherent
* \ingroup ldap member
* \brief Script de mise a jour des adherents dans LDAP depuis base Dolibarr
* \version $Id$
*/

View File

@ -19,7 +19,7 @@
/**
* \file scripts/members/sync_members_ldap2dolibarr.php
* \ingroup ldap adherent
* \ingroup ldap member
* \brief Script de mise a jour des adherents dans Dolibarr depuis LDAP
* \version $Id$
*/