From 987d94636d2d12c1ef2cf4516947a0798dc9006e Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 24 Feb 2005 12:10:44 +0000 Subject: [PATCH] Nouveau fichier --- htdocs/telephonie/stats/contrats/index.php | 52 +++++++++++++++++++ htdocs/telephonie/stats/contrats/onglets.php | 34 +++++++++++++ htdocs/telephonie/stats/contrats/pre.inc.php | 42 ++++++++++++++++ htdocs/telephonie/stats/menus.php | 53 ++++++++++++++++++++ 4 files changed, 181 insertions(+) create mode 100644 htdocs/telephonie/stats/contrats/index.php create mode 100644 htdocs/telephonie/stats/contrats/onglets.php create mode 100644 htdocs/telephonie/stats/contrats/pre.inc.php create mode 100644 htdocs/telephonie/stats/menus.php diff --git a/htdocs/telephonie/stats/contrats/index.php b/htdocs/telephonie/stats/contrats/index.php new file mode 100644 index 00000000000..68a6fcd74d3 --- /dev/null +++ b/htdocs/telephonie/stats/contrats/index.php @@ -0,0 +1,52 @@ + + * + * 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->lire) accessforbidden(); + +llxHeader('','Telephonie - Statistiques - Contrats'); + +/* + * + * + */ + +include "./onglets.php"; +dolibarr_fiche_head($head, $hselected, "Contrats"); + +print ''; + +print ''; +print '
'; + +print 'Lignes Actives

'."\n"; + +print '
'; + + + +print '
'; + +$db->close(); + +llxFooter("Dernière modification $Date$ révision $Revision$"); +?> diff --git a/htdocs/telephonie/stats/contrats/onglets.php b/htdocs/telephonie/stats/contrats/onglets.php new file mode 100644 index 00000000000..d3c84a33df6 --- /dev/null +++ b/htdocs/telephonie/stats/contrats/onglets.php @@ -0,0 +1,34 @@ + + * + * 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$ + * + */ +$h = 0; +$head[$h][0] = DOL_URL_ROOT.'/telephonie/stats/lignes/index.php'; +$head[$h][1] = "Global"; +$h++; + +for ($hii = 0 ; $hii < sizeof($head) ; $hii++) +{ + if ($_SERVER["PHP_SELF"] == $head[$hii][0]) + { + $hselected = $hii; + } +} +?> diff --git a/htdocs/telephonie/stats/contrats/pre.inc.php b/htdocs/telephonie/stats/contrats/pre.inc.php new file mode 100644 index 00000000000..89ee8dfe60a --- /dev/null +++ b/htdocs/telephonie/stats/contrats/pre.inc.php @@ -0,0 +1,42 @@ + + * + * 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("../../../main.inc.php"); + +$user->getrights('telephonie'); + +function llxHeader($head = "", $title="") { + global $user; + + /* + * + * + */ + top_menu($head, $title); + + $menu = new Menu(); + + include "../menus.php"; + + left_menu($menu->liste); +} + +?> diff --git a/htdocs/telephonie/stats/menus.php b/htdocs/telephonie/stats/menus.php new file mode 100644 index 00000000000..b0998f006a9 --- /dev/null +++ b/htdocs/telephonie/stats/menus.php @@ -0,0 +1,53 @@ + + * + * 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$ + * + */ + + +$menu->add(DOL_URL_ROOT."/telephonie/index.php", "Telephonie"); + +$menu->add(DOL_URL_ROOT."/telephonie/client/index.php", "Clients"); + +$menu->add(DOL_URL_ROOT."/telephonie/contrat/index.php", "Contrats"); + +$menu->add(DOL_URL_ROOT."/telephonie/ligne/index.php", "Lignes"); + +$menu->add(DOL_URL_ROOT."/telephonie/ligne/commande/", "Commandes"); + +$menu->add(DOL_URL_ROOT."/telephonie/stats/", "Statistiques"); + +$menu->add_submenu(DOL_URL_ROOT."/telephonie/stats/clients/", "Clients"); +$menu->add_submenu(DOL_URL_ROOT."/telephonie/stats/contrats/", "Contrats"); +$menu->add_submenu(DOL_URL_ROOT."/telephonie/stats/lignes/", "Lignes"); +$menu->add_submenu(DOL_URL_ROOT."/telephonie/stats/commerciaux/", "Commerciaux"); +$menu->add_submenu(DOL_URL_ROOT."/telephonie/stats/communications/", "Communications"); +$menu->add_submenu(DOL_URL_ROOT."/telephonie/stats/factures/", "Factures"); + +$menu->add(DOL_URL_ROOT."/telephonie/facture/", "Factures"); + +$menu->add(DOL_URL_ROOT."/telephonie/tarifs/", "Tarifs"); + +$menu->add(DOL_URL_ROOT."/telephonie/fournisseur/", "Fournisseurs"); + +$menu->add(DOL_URL_ROOT."/telephonie/statca/", "Chiffre d'affaire"); + + + +?>