Rend l'affichage du tableau de bord paramétrable dans la partie admin/ihm
This commit is contained in:
parent
77029325b2
commit
486ef5685c
114
htdocs/index.php
114
htdocs/index.php
@ -199,25 +199,27 @@ print '</td><td width="65%" valign="top" class="notopnoleftnoright">';
|
||||
/*
|
||||
* Dolibarr Work Board
|
||||
*/
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td colspan="2">'.$langs->trans("DolibarrWorkBoard").'</td>';
|
||||
print '<td align="right">'.$langs->trans("Number").'</td>';
|
||||
print '<td align="right">'.$langs->trans("Late").'</td>';
|
||||
print '<td> </td>';
|
||||
print '<td width="20"> </td>';
|
||||
print '</tr>';
|
||||
|
||||
$var=true;
|
||||
|
||||
|
||||
//
|
||||
// Ne pas inclure de sections sans gestion de permissions
|
||||
//
|
||||
|
||||
// Nbre actions à faire (en retard)
|
||||
if (($conf->commercial->enabled || $conf->compta->enabled) && $user->rights->actions->lire)
|
||||
if (MAIN_SHOW_WORKBOARD == 1)
|
||||
{
|
||||
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td colspan="2">'.$langs->trans("DolibarrWorkBoard").'</td>';
|
||||
print '<td align="right">'.$langs->trans("Number").'</td>';
|
||||
print '<td align="right">'.$langs->trans("Late").'</td>';
|
||||
print '<td> </td>';
|
||||
print '<td width="20"> </td>';
|
||||
print '</tr>';
|
||||
|
||||
$var=true;
|
||||
//
|
||||
// Ne pas inclure de sections sans gestion de permissions
|
||||
//
|
||||
|
||||
// Nbre actions à faire (en retard)
|
||||
if (($conf->commercial->enabled || $conf->compta->enabled) && $user->rights->actions->lire)
|
||||
{
|
||||
include_once("./actioncomm.class.php");
|
||||
$board=new ActionComm($db);
|
||||
$board->load_board($user);
|
||||
@ -238,11 +240,11 @@ if (($conf->commercial->enabled || $conf->compta->enabled) && $user->rights->ac
|
||||
else print ' ';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
// Nbre commandes clients à honorer
|
||||
if ($conf->commande->enabled && $user->rights->commande->lire)
|
||||
{
|
||||
// Nbre commandes clients à honorer
|
||||
if ($conf->commande->enabled && $user->rights->commande->lire)
|
||||
{
|
||||
include_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php");
|
||||
$board=new Commande($db);
|
||||
$board->load_board($user);
|
||||
@ -261,11 +263,11 @@ if ($conf->commande->enabled && $user->rights->commande->lire)
|
||||
else print ' ';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
// Nbre propales ouvertes (expirées)
|
||||
if ($conf->propal->enabled && $user->rights->propale->lire)
|
||||
{
|
||||
// Nbre propales ouvertes (expirées)
|
||||
if ($conf->propal->enabled && $user->rights->propale->lire)
|
||||
{
|
||||
include_once(DOL_DOCUMENT_ROOT."/propal.class.php");
|
||||
$board=new Propal($db);
|
||||
$board->load_board($user,"opened");
|
||||
@ -284,11 +286,11 @@ if ($conf->propal->enabled && $user->rights->propale->lire)
|
||||
else print ' ';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
// Nbre propales fermées signées (à facturer)
|
||||
if ($conf->propal->enabled && $user->rights->propale->lire)
|
||||
{
|
||||
// Nbre propales fermées signées (à facturer)
|
||||
if ($conf->propal->enabled && $user->rights->propale->lire)
|
||||
{
|
||||
include_once(DOL_DOCUMENT_ROOT."/propal.class.php");
|
||||
$board=new Propal($db);
|
||||
$board->load_board($user,"signed");
|
||||
@ -307,11 +309,11 @@ if ($conf->propal->enabled && $user->rights->propale->lire)
|
||||
else print ' ';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
// Nbre services à activer (en retard)
|
||||
if ($conf->contrat->enabled && $user->rights->contrat->lire)
|
||||
{
|
||||
// Nbre services à activer (en retard)
|
||||
if ($conf->contrat->enabled && $user->rights->contrat->lire)
|
||||
{
|
||||
$langs->load("contracts");
|
||||
|
||||
include_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
||||
@ -332,11 +334,11 @@ if ($conf->contrat->enabled && $user->rights->contrat->lire)
|
||||
else print ' ';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
// Nbre services actifs (à renouveler)
|
||||
if ($conf->contrat->enabled && $user->rights->contrat->lire)
|
||||
{
|
||||
// Nbre services actifs (à renouveler)
|
||||
if ($conf->contrat->enabled && $user->rights->contrat->lire)
|
||||
{
|
||||
$langs->load("contracts");
|
||||
|
||||
include_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
||||
@ -357,11 +359,11 @@ if ($conf->contrat->enabled && $user->rights->contrat->lire)
|
||||
else print ' ';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
// Nbre factures fournisseurs (à payer)
|
||||
if ($conf->fournisseur->enabled && $conf->facture->enabled && $user->rights->facture->lire)
|
||||
{
|
||||
// Nbre factures fournisseurs (à payer)
|
||||
if ($conf->fournisseur->enabled && $conf->facture->enabled && $user->rights->facture->lire)
|
||||
{
|
||||
$langs->load("bills");
|
||||
|
||||
include_once("./fourn/fournisseur.facture.class.php");
|
||||
@ -382,11 +384,11 @@ if ($conf->fournisseur->enabled && $conf->facture->enabled && $user->rights->fac
|
||||
else print ' ';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
// Nbre factures clients (à payer)
|
||||
if ($conf->facture->enabled && $user->rights->facture->lire)
|
||||
{
|
||||
// Nbre factures clients (à payer)
|
||||
if ($conf->facture->enabled && $user->rights->facture->lire)
|
||||
{
|
||||
include_once(DOL_DOCUMENT_ROOT."/facture.class.php");
|
||||
$board=new Facture($db);
|
||||
$board->load_board($user);
|
||||
@ -405,11 +407,11 @@ if ($conf->facture->enabled && $user->rights->facture->lire)
|
||||
else print ' ';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
// Nbre ecritures à rapprocher
|
||||
if ($conf->banque->enabled && $user->rights->banque->lire && ! $user->societe_id)
|
||||
{
|
||||
// Nbre ecritures à rapprocher
|
||||
if ($conf->banque->enabled && $user->rights->banque->lire && ! $user->societe_id)
|
||||
{
|
||||
$langs->load("banks");
|
||||
|
||||
include_once(DOL_DOCUMENT_ROOT."/compta/bank/account.class.php");
|
||||
@ -430,11 +432,11 @@ if ($conf->banque->enabled && $user->rights->banque->lire && ! $user->societe_id
|
||||
else print ' ';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
// Nbre adhérent valides (attente cotisation)
|
||||
if ($conf->adherent->enabled && $user->rights->adherent->lire && ! $user->societe_id)
|
||||
{
|
||||
// Nbre adhérent valides (attente cotisation)
|
||||
if ($conf->adherent->enabled && $user->rights->adherent->lire && ! $user->societe_id)
|
||||
{
|
||||
$langs->load("members");
|
||||
|
||||
include_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
||||
@ -455,11 +457,11 @@ if ($conf->adherent->enabled && $user->rights->adherent->lire && ! $user->societ
|
||||
else print ' ';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
|
||||
print '</table>';
|
||||
}
|
||||
|
||||
print '</table>';
|
||||
|
||||
|
||||
print '</td></tr></table>';
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user