[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * 18 * $Id: box_energie_graph.php,v 1.1 2005/08/11 08:34:29 rodolphe Exp $ 19 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/includes/boxes/box_energie_graph.php,v $ 20 * 21 */ 22 23 include_once(DOL_DOCUMENT_ROOT."/includes/boxes/modules_boxes.php"); 24 25 class box_energie_graph extends ModeleBoxes { 26 27 var $boxcode="energie_graph"; 28 var $boximg="object_energie"; 29 var $boxlabel; 30 31 var $box_multiple = 1; 32 33 var $info_box_head = array(); 34 var $info_box_contents = array(); 35 36 /** 37 * \brief Constructeur de la classe 38 */ 39 function box_energie_graph() 40 { 41 global $langs; 42 $langs->load("boxes"); 43 44 $this->boxlabel=$langs->trans("EnergieGraph"); 45 } 46 47 /** 48 * \brief Charge les données en mémoire pour affichage ultérieur 49 * \param $max Nombre maximum d'enregistrements à charger 50 */ 51 function loadBox($max=5) 52 { 53 global $user, $langs, $db; 54 $langs->load("boxes"); 55 56 $text = '<a href="energie/">'.$langs->trans("Energie").'</a>'; 57 58 $this->info_box_head = array('text' => $text,$max); 59 60 61 $file = "small-all.1.png"; 62 $libelle = '<img border="0" src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=energie&file='.$file.'" alt="" title="">'; 63 64 65 $this->info_box_contents[0][0] = array('align' => 'left', 66 'logo' => $this->boximg, 67 'text' => $libelle, 68 'url' => DOL_URL_ROOT."/energie/compteur.php?id=".$objp->rowid); 69 70 71 } 72 73 function showBox() 74 { 75 parent::showBox($this->info_box_head, $this->info_box_contents); 76 } 77 } 78 79 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |