Modif de style
This commit is contained in:
parent
9fb5f51b93
commit
43fb7df124
@ -113,67 +113,67 @@ if ($user->societe_id > 0)
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
*********************************************************************************/
|
*********************************************************************************/
|
||||||
if ($socid > 0)
|
if ($_GET["socid"] > 0)
|
||||||
{
|
{
|
||||||
// On recupere les donnees societes par l'objet
|
// On recupere les donnees societes par l'objet
|
||||||
$objsoc = new Societe($db);
|
$objsoc = new Societe($db);
|
||||||
$objsoc->id=$socid;
|
$objsoc->id=$_GET["socid"];
|
||||||
$objsoc->fetch($socid,$to);
|
$objsoc->fetch($_GET["socid"],$to);
|
||||||
|
|
||||||
$dac = strftime("%Y-%m-%d %H:%M", time());
|
$dac = strftime("%Y-%m-%d %H:%M", time());
|
||||||
if ($errmesg)
|
if ($errmesg)
|
||||||
{
|
{
|
||||||
print "<b>$errmesg</b><br>";
|
print "<b>$errmesg</b><br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Affichage onglets
|
* Affichage onglets
|
||||||
*/
|
*/
|
||||||
$h = 0;
|
$h = 0;
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/soc.php?socid='.$socid;
|
$head[$h][0] = DOL_URL_ROOT.'/soc.php?socid='.$objsoc->id;
|
||||||
$head[$h][1] = "Fiche société";
|
$head[$h][1] = "Fiche société";
|
||||||
|
$h++;
|
||||||
|
|
||||||
|
if ($objsoc->client==1)
|
||||||
|
{
|
||||||
|
$hselected=$h;
|
||||||
|
$head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$objsoc->id;
|
||||||
|
$head[$h][1] = 'Fiche client';
|
||||||
|
$h++;
|
||||||
|
}
|
||||||
|
if ($objsoc->client==2)
|
||||||
|
{
|
||||||
|
$hselected=$h;
|
||||||
|
$head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$obj->socid;
|
||||||
|
$head[$h][1] = 'Fiche prospect';
|
||||||
|
$h++;
|
||||||
|
}
|
||||||
|
if ($objsoc->fournisseur)
|
||||||
|
{
|
||||||
|
$head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$objsoc->id;
|
||||||
|
$head[$h][1] = 'Fiche fournisseur';
|
||||||
|
$h++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($conf->compta->enabled) {
|
||||||
|
$head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$objsoc->id;
|
||||||
|
$head[$h][1] = 'Fiche compta';
|
||||||
$h++;
|
$h++;
|
||||||
|
}
|
||||||
|
|
||||||
if ($objsoc->client==1)
|
$head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$objsoc->id;
|
||||||
{
|
|
||||||
$hselected=$h;
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$socid;
|
|
||||||
$head[$h][1] = 'Fiche client';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if ($objsoc->client==2)
|
|
||||||
{
|
|
||||||
$hselected=$h;
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$socid;
|
|
||||||
$head[$h][1] = 'Fiche prospect';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
if ($objsoc->fournisseur)
|
|
||||||
{
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$socid;
|
|
||||||
$head[$h][1] = 'Fiche fournisseur';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($conf->compta->enabled) {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$socid;
|
|
||||||
$head[$h][1] = 'Fiche compta';
|
|
||||||
$h++;
|
|
||||||
}
|
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/socnote.php?socid='.$socid;
|
|
||||||
$head[$h][1] = 'Note';
|
$head[$h][1] = 'Note';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
if ($user->societe_id == 0)
|
if ($user->societe_id == 0)
|
||||||
{
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$socid;
|
$head[$h][0] = DOL_URL_ROOT.'/docsoc.php?socid='.$objsoc->id;
|
||||||
$head[$h][1] = 'Documents';
|
$head[$h][1] = 'Documents';
|
||||||
$h++;
|
$h++;
|
||||||
}
|
}
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$socid;
|
$head[$h][0] = DOL_URL_ROOT.'/societe/notify/fiche.php?socid='.$objsoc->id;
|
||||||
$head[$h][1] = 'Notifications';
|
$head[$h][1] = 'Notifications';
|
||||||
|
|
||||||
if (file_exists(DOL_DOCUMENT_ROOT.'/sl/'))
|
if (file_exists(DOL_DOCUMENT_ROOT.'/sl/'))
|
||||||
@ -190,7 +190,7 @@ if ($socid > 0)
|
|||||||
$head[$h][2] = 'image';
|
$head[$h][2] = 'image';
|
||||||
}
|
}
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected);
|
dolibarr_fiche_head($head, $hselected, $objsoc->nom);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user