Ejemplo n.º 1
0
print '<th class="liste_titre" align="right">' . $langs->trans("Late") . '</th>';
print '<th class="liste_titre">&nbsp;</th>';
print '<th class="liste_titre" width="20">&nbsp;</th>';
if ($showweather) {
    print '<th class="liste_titre hideonsmartphone" width="80">&nbsp;</th>';
}
print '</tr>' . "\n";
//
// Do not include sections without management permission
//
require DOL_DOCUMENT_ROOT . '/core/class/workboardresponse.class.php';
// Number of actions to do (late)
if (!empty($conf->agenda->enabled) && $user->rights->agenda->myactions->read) {
    include_once DOL_DOCUMENT_ROOT . '/comm/action/class/actioncomm.class.php';
    $board = new ActionComm($db);
    $dashboardlines[] = $board->load_board($user);
}
// Number of customer orders a deal
if (!empty($conf->commande->enabled) && $user->rights->commande->lire) {
    include_once DOL_DOCUMENT_ROOT . '/commande/class/commande.class.php';
    $board = new Commande($db);
    $dashboardlines[] = $board->load_board($user);
}
// Number of suppliers orders a deal
if (!empty($conf->fournisseur->enabled) && $user->rights->fournisseur->commande->lire) {
    include_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.commande.class.php';
    $board = new CommandeFournisseur($db);
    $dashboardlines[] = $board->load_board($user);
}
// Number of commercial proposals opened (expired)
if (!empty($conf->propal->enabled) && $user->rights->propale->lire) {
Ejemplo n.º 2
0
print '<th class="liste_titre"align="right">' . $langs->trans("Number") . '</th>';
print '<th class="liste_titre"align="right">' . $langs->trans("Late") . '</th>';
print '<th class="liste_titre">&nbsp;</th>';
print '<th class="liste_titre"width="20">&nbsp;</th>';
if ($showweather) {
    print '<th class="liste_titre hideonsmartphone" width="80">&nbsp;</th>';
}
print '</tr>';
//
// Do not include sections without management permission
//
// Number of actions to do (late)
if (!empty($conf->agenda->enabled) && $user->rights->agenda->myactions->read) {
    include_once DOL_DOCUMENT_ROOT . '/comm/action/class/actioncomm.class.php';
    $board = new ActionComm($db);
    $board->load_board($user);
    $board->warning_delay = $conf->actions->warning_delay / 60 / 60 / 24;
    $board->label = $langs->trans("ActionsToDo");
    $board->url = DOL_URL_ROOT . '/comm/action/listactions.php?status=todo&usertodo=-1&mainmenu=agenda';
    $board->img = img_object($langs->trans("Actions"), "action");
    $rowspan++;
    $dashboardlines[] = $board;
}
// Number of customer orders a deal
if (!empty($conf->commande->enabled) && $user->rights->commande->lire) {
    include_once DOL_DOCUMENT_ROOT . '/commande/class/commande.class.php';
    $board = new Commande($db);
    $board->load_board($user);
    $board->warning_delay = $conf->commande->client->warning_delay / 60 / 60 / 24;
    $board->label = $langs->trans("OrdersToProcess");
    $board->url = DOL_URL_ROOT . '/commande/list.php?viewstatut=-3';