* * 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: index.php,v 1.1 2005/07/23 16:58:17 rodolphe Exp $ * $Source: /srv/cvs/sources/dolibarr/dolibarr/htdocs/energie/Attic/index.php,v $ * */ /** \file htdocs/commande/index.php \ingroup compta \brief Page acceuil zone comptabilité \version $Revision: 1.1 $ */ require("./pre.inc.php"); llxHeader($langs,"",$langs->trans("Energy"),$langs->trans("Energy")); print_titre($langs->trans("Energy")); print ''; print '
'; /* * Groupe */ $sql = "SELECT c.rowid, c.libelle"; $sql .= " FROM ".MAIN_DB_PREFIX."energie_groupe as c"; $sql .= " ORDER BY c.libelle DESC"; $resql = $db->query($sql); if ( $resql) { $num = $db->num_rows($resql); if ($num) { $i = 0; print ''; print ''; print ''; $var = True; while ($i < $num) { $var=!$var; $obj = $db->fetch_object($resql); print ""; print ''; $i++; } print "
'.$langs->trans("Groupes").'
rowid\">".$obj->libelle."

"; } } /* * Compteurs */ $sql = "SELECT c.rowid, c.libelle"; $sql .= " FROM ".MAIN_DB_PREFIX."energie_compteur as c"; $sql .= " ORDER BY c.libelle DESC"; $resql = $db->query($sql); if ( $resql) { $num = $db->num_rows($resql); if ($num) { $i = 0; print ''; print ''; print ''; $var = True; while ($i < $num) { $var=!$var; $obj = $db->fetch_object($resql); print ""; print ''; $i++; } print "
'.$langs->trans("Compteurs").'
rowid\">".$obj->libelle."

"; } } print '
'; print '

'."\n"; print '
'; $db->close(); llxFooter("Dernière modification $Date: 2005/07/23 16:58:17 $ révision $Revision: 1.1 $"); ?>