Modif onglet tarifs
This commit is contained in:
parent
4c5e11ccca
commit
7b7ed7737c
@ -64,12 +64,21 @@ if ($_GET["id"])
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/stats.php?id=".$soc->id;
|
||||
$head[$h][1] = $langs->trans("Stats");
|
||||
$h++;
|
||||
|
||||
|
||||
$sql = "SELECT count(*) FROM ".MAIN_DB_PREFIX."telephonie_tarif_client";
|
||||
$sql .= " WHERE fk_client = '".$soc->id."';";
|
||||
$resql = $db->query($sql);
|
||||
|
||||
if ($resql)
|
||||
{
|
||||
$row = $db->fetch_row($resql);
|
||||
$db->free($resql);
|
||||
}
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/tarifs.php?id=".$soc->id;
|
||||
$head[$h][1] = $langs->trans("Tarifs");
|
||||
$head[$h][1] = $langs->trans("Tarifs (".$row[0].")");
|
||||
$h++;
|
||||
|
||||
|
||||
|
||||
dolibarr_fiche_head($head, $hselected, 'Client : '.$soc->nom);
|
||||
|
||||
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
|
||||
|
||||
@ -66,9 +66,19 @@ if ($_GET["id"])
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/stats.php?id=".$soc->id;
|
||||
$head[$h][1] = $langs->trans("Stats");
|
||||
$h++;
|
||||
|
||||
|
||||
$sql = "SELECT count(*) FROM ".MAIN_DB_PREFIX."telephonie_tarif_client";
|
||||
$sql .= " WHERE fk_client = '".$soc->id."';";
|
||||
$resql = $db->query($sql);
|
||||
|
||||
if ($resql)
|
||||
{
|
||||
$row = $db->fetch_row($resql);
|
||||
$db->free($resql);
|
||||
}
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/tarifs.php?id=".$soc->id;
|
||||
$head[$h][1] = $langs->trans("Tarifs");
|
||||
$head[$h][1] = $langs->trans("Tarifs (".$row[0].")");
|
||||
$h++;
|
||||
|
||||
if ($soc->perm_perms)
|
||||
|
||||
@ -68,9 +68,19 @@ if ($_GET["id"])
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/stats.php?id=".$soc->id;
|
||||
$head[$h][1] = $langs->trans("Stats");
|
||||
$h++;
|
||||
|
||||
|
||||
$sql = "SELECT count(*) FROM ".MAIN_DB_PREFIX."telephonie_tarif_client";
|
||||
$sql .= " WHERE fk_client = '".$soc->id."';";
|
||||
$resql = $db->query($sql);
|
||||
|
||||
if ($resql)
|
||||
{
|
||||
$row = $db->fetch_row($resql);
|
||||
$db->free($resql);
|
||||
}
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/tarifs.php?id=".$soc->id;
|
||||
$head[$h][1] = $langs->trans("Tarifs");
|
||||
$head[$h][1] = $langs->trans("Tarifs (".$row[0].")");
|
||||
$h++;
|
||||
|
||||
dolibarr_fiche_head($head, $hselected, 'Client : '.$soc->nom);
|
||||
|
||||
@ -66,12 +66,21 @@ if ($_GET["id"])
|
||||
$head[$h][1] = $langs->trans("Stats");
|
||||
$hselected = $h;
|
||||
$h++;
|
||||
|
||||
|
||||
$sql = "SELECT count(*) FROM ".MAIN_DB_PREFIX."telephonie_tarif_client";
|
||||
$sql .= " WHERE fk_client = '".$soc->id."';";
|
||||
$resql = $db->query($sql);
|
||||
|
||||
if ($resql)
|
||||
{
|
||||
$row = $db->fetch_row($resql);
|
||||
$db->free($resql);
|
||||
}
|
||||
|
||||
$head[$h][0] = DOL_URL_ROOT."/telephonie/client/tarifs.php?id=".$soc->id;
|
||||
$head[$h][1] = $langs->trans("Tarifs");
|
||||
$head[$h][1] = $langs->trans("Tarifs (".$row[0].")");
|
||||
$h++;
|
||||
|
||||
|
||||
|
||||
dolibarr_fiche_head($head, $hselected, 'Client : '.$soc->nom);
|
||||
|
||||
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user