From c095921439f023078050ec6800c9aeaf04bf3a18 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 2 Sep 2005 14:52:00 +0000 Subject: [PATCH] Modif permissions --- htdocs/telephonie/client/tarifs.php | 67 ++++++++++++++--------------- 1 file changed, 32 insertions(+), 35 deletions(-) diff --git a/htdocs/telephonie/client/tarifs.php b/htdocs/telephonie/client/tarifs.php index f218da654a7..e9684e06fb1 100644 --- a/htdocs/telephonie/client/tarifs.php +++ b/htdocs/telephonie/client/tarifs.php @@ -25,7 +25,7 @@ require("./pre.inc.php"); $message_erreur = ''; -if ($_POST["action"] == 'addtarif') +if ($_POST["action"] == 'addtarif' && $user->rights->telephonie->tarif->client_modifier) { $error = 0; $saisieok = 1; @@ -134,7 +134,7 @@ if ($_GET["special"] == 'done') } */ -if ($_GET["action"] == 'delete') +if ($_GET["action"] == 'delete' && $user->rights->telephonie->tarif->client_modifier) { if (strlen(trim($_GET["tid"])) > 0) @@ -208,16 +208,11 @@ if ($_GET["id"]) print ''.$langs->trans('Phone').''.dolibarr_print_phone($soc->tel).''; print ''.$langs->trans('Fax').''.dolibarr_print_phone($soc->fax).''; - print ''.img_edit() ." "; - print $langs->trans('RIB').''; - print $soc->display_rib(); - print ''; + print "\n
\n"; - print '
'; - print ''; print ''; - + print '
'; print ''; } - print ''; + print "\n"; + + print ''; + print ''; + print ''; + print "\n"; + } - print ''; - print ''; - print ''; - print ''; - /* Tarifs */ $sql = "SELECT t.rowid , t.libelle, tc.temporel, tc.fixe, u.code, tc.rowid, u.code"; @@ -287,7 +284,7 @@ if ($_GET["id"]) $obj = $db->fetch_object($i); $var=!$var; - print "\n"; @@ -310,7 +307,7 @@ if ($_GET["id"]) print $sql; } - print "
Tarif (coût en euros par minutes)'; @@ -229,37 +224,39 @@ if ($_GET["id"]) { print '
'.$message_erreur.'
'; - - print '
\n"; + print ' 
 
"; + print "
\n"; print $obj->libelle."
"; + print "\n\n"; } } }