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
|
* 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;
|
if (MAIN_SHOW_WORKBOARD == 1)
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// 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)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
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");
|
include_once("./actioncomm.class.php");
|
||||||
$board=new ActionComm($db);
|
$board=new ActionComm($db);
|
||||||
$board->load_board($user);
|
$board->load_board($user);
|
||||||
@ -238,11 +240,11 @@ if (($conf->commercial->enabled || $conf->compta->enabled) && $user->rights->ac
|
|||||||
else print ' ';
|
else print ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nbre commandes clients à honorer
|
// Nbre commandes clients à honorer
|
||||||
if ($conf->commande->enabled && $user->rights->commande->lire)
|
if ($conf->commande->enabled && $user->rights->commande->lire)
|
||||||
{
|
{
|
||||||
include_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php");
|
include_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php");
|
||||||
$board=new Commande($db);
|
$board=new Commande($db);
|
||||||
$board->load_board($user);
|
$board->load_board($user);
|
||||||
@ -261,11 +263,11 @@ if ($conf->commande->enabled && $user->rights->commande->lire)
|
|||||||
else print ' ';
|
else print ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nbre propales ouvertes (expirées)
|
// Nbre propales ouvertes (expirées)
|
||||||
if ($conf->propal->enabled && $user->rights->propale->lire)
|
if ($conf->propal->enabled && $user->rights->propale->lire)
|
||||||
{
|
{
|
||||||
include_once(DOL_DOCUMENT_ROOT."/propal.class.php");
|
include_once(DOL_DOCUMENT_ROOT."/propal.class.php");
|
||||||
$board=new Propal($db);
|
$board=new Propal($db);
|
||||||
$board->load_board($user,"opened");
|
$board->load_board($user,"opened");
|
||||||
@ -284,11 +286,11 @@ if ($conf->propal->enabled && $user->rights->propale->lire)
|
|||||||
else print ' ';
|
else print ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nbre propales fermées signées (à facturer)
|
// Nbre propales fermées signées (à facturer)
|
||||||
if ($conf->propal->enabled && $user->rights->propale->lire)
|
if ($conf->propal->enabled && $user->rights->propale->lire)
|
||||||
{
|
{
|
||||||
include_once(DOL_DOCUMENT_ROOT."/propal.class.php");
|
include_once(DOL_DOCUMENT_ROOT."/propal.class.php");
|
||||||
$board=new Propal($db);
|
$board=new Propal($db);
|
||||||
$board->load_board($user,"signed");
|
$board->load_board($user,"signed");
|
||||||
@ -307,11 +309,11 @@ if ($conf->propal->enabled && $user->rights->propale->lire)
|
|||||||
else print ' ';
|
else print ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nbre services à activer (en retard)
|
// Nbre services à activer (en retard)
|
||||||
if ($conf->contrat->enabled && $user->rights->contrat->lire)
|
if ($conf->contrat->enabled && $user->rights->contrat->lire)
|
||||||
{
|
{
|
||||||
$langs->load("contracts");
|
$langs->load("contracts");
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
include_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
||||||
@ -332,11 +334,11 @@ if ($conf->contrat->enabled && $user->rights->contrat->lire)
|
|||||||
else print ' ';
|
else print ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nbre services actifs (à renouveler)
|
// Nbre services actifs (à renouveler)
|
||||||
if ($conf->contrat->enabled && $user->rights->contrat->lire)
|
if ($conf->contrat->enabled && $user->rights->contrat->lire)
|
||||||
{
|
{
|
||||||
$langs->load("contracts");
|
$langs->load("contracts");
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
include_once(DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
||||||
@ -357,11 +359,11 @@ if ($conf->contrat->enabled && $user->rights->contrat->lire)
|
|||||||
else print ' ';
|
else print ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nbre factures fournisseurs (à payer)
|
// Nbre factures fournisseurs (à payer)
|
||||||
if ($conf->fournisseur->enabled && $conf->facture->enabled && $user->rights->facture->lire)
|
if ($conf->fournisseur->enabled && $conf->facture->enabled && $user->rights->facture->lire)
|
||||||
{
|
{
|
||||||
$langs->load("bills");
|
$langs->load("bills");
|
||||||
|
|
||||||
include_once("./fourn/fournisseur.facture.class.php");
|
include_once("./fourn/fournisseur.facture.class.php");
|
||||||
@ -382,11 +384,11 @@ if ($conf->fournisseur->enabled && $conf->facture->enabled && $user->rights->fac
|
|||||||
else print ' ';
|
else print ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nbre factures clients (à payer)
|
// Nbre factures clients (à payer)
|
||||||
if ($conf->facture->enabled && $user->rights->facture->lire)
|
if ($conf->facture->enabled && $user->rights->facture->lire)
|
||||||
{
|
{
|
||||||
include_once(DOL_DOCUMENT_ROOT."/facture.class.php");
|
include_once(DOL_DOCUMENT_ROOT."/facture.class.php");
|
||||||
$board=new Facture($db);
|
$board=new Facture($db);
|
||||||
$board->load_board($user);
|
$board->load_board($user);
|
||||||
@ -405,11 +407,11 @@ if ($conf->facture->enabled && $user->rights->facture->lire)
|
|||||||
else print ' ';
|
else print ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nbre ecritures à rapprocher
|
// Nbre ecritures à rapprocher
|
||||||
if ($conf->banque->enabled && $user->rights->banque->lire && ! $user->societe_id)
|
if ($conf->banque->enabled && $user->rights->banque->lire && ! $user->societe_id)
|
||||||
{
|
{
|
||||||
$langs->load("banks");
|
$langs->load("banks");
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT."/compta/bank/account.class.php");
|
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 ' ';
|
else print ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nbre adhérent valides (attente cotisation)
|
// Nbre adhérent valides (attente cotisation)
|
||||||
if ($conf->adherent->enabled && $user->rights->adherent->lire && ! $user->societe_id)
|
if ($conf->adherent->enabled && $user->rights->adherent->lire && ! $user->societe_id)
|
||||||
{
|
{
|
||||||
$langs->load("members");
|
$langs->load("members");
|
||||||
|
|
||||||
include_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
|
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 ' ';
|
else print ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
print '</table>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</table>';
|
|
||||||
|
|
||||||
|
|
||||||
print '</td></tr></table>';
|
print '</td></tr></table>';
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user