Modif onglet tarifs

This commit is contained in:
Rodolphe Quiedeville 2005-10-31 10:01:27 +00:00
parent 4c5e11ccca
commit 7b7ed7737c
4 changed files with 50 additions and 12 deletions

View File

@ -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%">';

View File

@ -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)

View File

@ -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);

View File

@ -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%">';