diff --git a/htdocs/telephonie/facturation/index.php b/htdocs/telephonie/facturation/index.php index da2c4307e92..58a6544e438 100644 --- a/htdocs/telephonie/facturation/index.php +++ b/htdocs/telephonie/facturation/index.php @@ -118,8 +118,15 @@ $nb = $obj->nbfac; print ""; print 'Lignes de facture'.$nb.''; print 'Emettre'; +print '
'; + +print ''; +print ''; +print ""; +print ''; print '
Statistiques
GenerationGenerer
'; + print ''; print '
'; diff --git a/htdocs/telephonie/facturation/stats.php b/htdocs/telephonie/facturation/stats.php new file mode 100644 index 00000000000..135fb45a260 --- /dev/null +++ b/htdocs/telephonie/facturation/stats.php @@ -0,0 +1,69 @@ + + * + * 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$ + * $Source$ + * + */ +require("./pre.inc.php"); + +if (!$user->rights->telephonie->facture->ecrire) accessforbidden(); + + +llxHeader(); +require_once (DOL_DOCUMENT_ROOT."/telephonie/stats/ProcessGraphLignes.class.php"); +$obj = new ProcessGraphLignes($db); +$obj->GenerateAll(); + + +/* + * Sécurité accés client + */ + +print_barre_liste("Generation des statistiques", $page, "stats.php", "", $sortfield, $sortorder, '', $num); + +print ''; +print ''; +print ''; + +print "\n"; + +$var=True; + +foreach ($obj->messages as $message) +{ + $var=!$var; + print ""; + + if (is_array($message)) + { + $func = 'img_'.$message[0]; + print ''; + print ''; + } + else + { + print ''; + print ''; + } +} +print "
Messages
'.$func().''.$message[1].'
'.img_info().''.$message.'
"; + +$db->close(); + +llxFooter("Dernière modification $Date$ révision $Revision$"); +?>