diff --git a/htdocs/telephonie/tarifs/tarif.php b/htdocs/telephonie/tarifs/tarif.php index 63317c1e80a..423d97f8636 100644 --- a/htdocs/telephonie/tarifs/tarif.php +++ b/htdocs/telephonie/tarifs/tarif.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2005-2007 Rodolphe Quiedeville * * 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 @@ -23,8 +23,27 @@ require("./pre.inc.php"); llxHeader(); +require_once DOL_DOCUMENT_ROOT."/telephonie/telephonie.tarif.class.php"; +$ta = new TelephonieTarif($db,1,0); +$ta->fetch($_GET["id"]); + + +$h = 0; +$head = array(); + +$head[$h][0] = DOL_URL_ROOT.'tarif.php?id='.$ta->id; +$head[$h][1] = $ta->libelle; +$head[$h][2] = 'card'; +$h++; + +$head[$h][0] = DOL_URL_ROOT.'tarif-log.php?id='.$ta->id; +$head[$h][1] = $langs->trans("Historique"); +$head[$h][2] = 'history'; +$h++; + +dolibarr_fiche_head($head, 'card', $langs->trans("Tarif")); + /* - * Mode Liste * * * @@ -57,8 +76,8 @@ if ($resql) print ''; print ''; - print ''; - print ''; + print ''; + print ''; print ''; print ''; print ''; @@ -120,8 +139,8 @@ if ($resql) print '
TarifDestinationGrille venteTarifCout / minCout fixeType
'; print ''; - print ''; - print ''; + print ''; + print ''; print ''; print ''; print ''; @@ -193,11 +212,7 @@ else print $db->error() . ' ' . $sql; } -print '
TarifDestinationGrille achatTarifCout / minCout fixeType
'; - - - - +print ''; $db->close();