mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Conditionnement de l'onglet clicktodial sur l'activation du module ou non
This commit is contained in:
parent
ed08ddade5
commit
5f2151d84c
|
|
@ -76,12 +76,9 @@ if ($_GET["id"])
|
|||
if ($_GET["action"] != 'perms') { $hselected=$h; }
|
||||
$h++;
|
||||
|
||||
if ($user->admin)
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT.'/user/fiche.php?action=perms&id='.$fuser->id;
|
||||
$head[$h][1] = $langs->trans("UserRights");
|
||||
$h++;
|
||||
}
|
||||
$head[$h][0] = DOL_URL_ROOT.'/user/perms.php?id='.$fuser->id;
|
||||
$head[$h][1] = $langs->trans("UserRights");
|
||||
$h++;
|
||||
|
||||
if ($conf->bookmark4u->enabled)
|
||||
{
|
||||
|
|
@ -98,7 +95,7 @@ if ($_GET["id"])
|
|||
$h++;
|
||||
}
|
||||
|
||||
dolibarr_fiche_head($head, $hselected, $langs->trans("User")." : ".$fuser->fullname);
|
||||
dolibarr_fiche_head($head, $hselected, $langs->trans("User").": ".$fuser->fullname);
|
||||
|
||||
/*
|
||||
* Fiche en mode visu
|
||||
|
|
|
|||
|
|
@ -307,6 +307,13 @@ else
|
|||
$h++;
|
||||
}
|
||||
|
||||
if ($conf->clicktodial->enabled)
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT.'/user/clicktodial.php?id='.$fuser->id;
|
||||
$head[$h][1] = $langs->trans("ClickToDial");
|
||||
$h++;
|
||||
}
|
||||
|
||||
dolibarr_fiche_head($head, $hselected, $langs->trans("User").": ".$fuser->fullname);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ if ($sortfield) { $sql.=" ORDER BY $sortfield $sortorder"; }
|
|||
$result = $db->query($sql);
|
||||
if ($result)
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
$num = $db->num_rows($result);
|
||||
$i = 0;
|
||||
|
||||
print "<br>";
|
||||
|
|
@ -75,7 +75,7 @@ if ($result)
|
|||
$var=True;
|
||||
while ($i < $num)
|
||||
{
|
||||
$obj = $db->fetch_object( $i);
|
||||
$obj = $db->fetch_object($result);
|
||||
$var=!$var;
|
||||
|
||||
print "<tr $bc[$var]>";
|
||||
|
|
@ -95,7 +95,7 @@ if ($result)
|
|||
$i++;
|
||||
}
|
||||
print "</table>";
|
||||
$db->free();
|
||||
$db->free($result);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -93,6 +93,13 @@ if ($_GET["id"])
|
|||
$h++;
|
||||
}
|
||||
|
||||
if ($conf->clicktodial->enabled)
|
||||
{
|
||||
$head[$h][0] = DOL_URL_ROOT.'/user/clicktodial.php?id='.$fuser->id;
|
||||
$head[$h][1] = $langs->trans("ClickToDial");
|
||||
$h++;
|
||||
}
|
||||
|
||||
dolibarr_fiche_head($head, $hselected, $langs->trans("User").": ".$fuser->fullname);
|
||||
|
||||
// Lecture des droits utilisateurs
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user