Merge pull request #11786 from aspangaro/11.0_workboard
NEW Add constant MAIN_DISABLE_GLOBAL_WORKBOARD to disable workboard in home page
This commit is contained in:
commit
c90f780812
800
htdocs/index.php
800
htdocs/index.php
@ -366,484 +366,474 @@ if (empty($user->societe_id) && empty($conf->global->MAIN_DISABLE_GLOBAL_BOXSTAT
|
|||||||
/*
|
/*
|
||||||
* Dolibarr Working Board with weather
|
* Dolibarr Working Board with weather
|
||||||
*/
|
*/
|
||||||
$showweather=(empty($conf->global->MAIN_DISABLE_METEO) || $conf->global->MAIN_DISABLE_METEO == 2) ? 1 : 0;
|
if (empty($conf->global->MAIN_DISABLE_GLOBAL_WORKBOARD)) {
|
||||||
|
$showweather = (empty($conf->global->MAIN_DISABLE_METEO) || $conf->global->MAIN_DISABLE_METEO == 2) ? 1 : 0;
|
||||||
|
|
||||||
//Array that contains all WorkboardResponse classes to process them
|
//Array that contains all WorkboardResponse classes to process them
|
||||||
$dashboardlines=array();
|
$dashboardlines = array();
|
||||||
|
|
||||||
// Do not include sections without management permission
|
// Do not include sections without management permission
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/workboardresponse.class.php';
|
require_once DOL_DOCUMENT_ROOT . '/core/class/workboardresponse.class.php';
|
||||||
|
|
||||||
// Number of actions to do (late)
|
// Number of actions to do (late)
|
||||||
if (! empty($conf->agenda->enabled) && $user->rights->agenda->myactions->read)
|
if (!empty($conf->agenda->enabled) && $user->rights->agenda->myactions->read) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/comm/action/class/actioncomm.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/comm/action/class/actioncomm.class.php';
|
$board = new ActionComm($db);
|
||||||
$board=new ActionComm($db);
|
$dashboardlines[$board->element] = $board->load_board($user);
|
||||||
$dashboardlines[$board->element] = $board->load_board($user);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Number of project opened
|
// Number of project opened
|
||||||
if (! empty($conf->projet->enabled) && $user->rights->projet->lire)
|
if (!empty($conf->projet->enabled) && $user->rights->projet->lire) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/projet/class/project.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
|
$board = new Project($db);
|
||||||
$board=new Project($db);
|
$dashboardlines[$board->element] = $board->load_board($user);
|
||||||
$dashboardlines[$board->element] = $board->load_board($user);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Number of tasks to do (late)
|
// Number of tasks to do (late)
|
||||||
if (! empty($conf->projet->enabled) && empty($conf->global->PROJECT_HIDE_TASKS) && $user->rights->projet->lire)
|
if (!empty($conf->projet->enabled) && empty($conf->global->PROJECT_HIDE_TASKS) && $user->rights->projet->lire) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/projet/class/task.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/projet/class/task.class.php';
|
$board = new Task($db);
|
||||||
$board=new Task($db);
|
$dashboardlines[$board->element] = $board->load_board($user);
|
||||||
$dashboardlines[$board->element] = $board->load_board($user);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Number of commercial proposals opened (expired)
|
// Number of commercial proposals opened (expired)
|
||||||
if (! empty($conf->propal->enabled) && $user->rights->propale->lire)
|
if (!empty($conf->propal->enabled) && $user->rights->propale->lire) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/comm/propal/class/propal.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
|
$board = new Propal($db);
|
||||||
$board=new Propal($db);
|
$dashboardlines[$board->element . '_opened'] = $board->load_board($user, "opened");
|
||||||
$dashboardlines[$board->element.'_opened'] = $board->load_board($user, "opened");
|
// Number of commercial proposals CLOSED signed (billed)
|
||||||
// Number of commercial proposals CLOSED signed (billed)
|
$dashboardlines[$board->element . '_signed'] = $board->load_board($user, "signed");
|
||||||
$dashboardlines[$board->element.'_signed'] = $board->load_board($user, "signed");
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Number of commercial proposals opened (expired)
|
// Number of commercial proposals opened (expired)
|
||||||
if (! empty($conf->supplier_proposal->enabled) && $user->rights->supplier_proposal->lire)
|
if (!empty($conf->supplier_proposal->enabled) && $user->rights->supplier_proposal->lire) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/supplier_proposal/class/supplier_proposal.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/supplier_proposal/class/supplier_proposal.class.php';
|
$board = new SupplierProposal($db);
|
||||||
$board=new SupplierProposal($db);
|
$dashboardlines[$board->element . '_opened'] = $board->load_board($user, "opened");
|
||||||
$dashboardlines[$board->element.'_opened'] = $board->load_board($user, "opened");
|
// Number of commercial proposals CLOSED signed (billed)
|
||||||
// Number of commercial proposals CLOSED signed (billed)
|
$dashboardlines[$board->element . '_signed'] = $board->load_board($user, "signed");
|
||||||
$dashboardlines[$board->element.'_signed'] = $board->load_board($user, "signed");
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Number of customer orders a deal
|
// Number of customer orders a deal
|
||||||
if (! empty($conf->commande->enabled) && $user->rights->commande->lire)
|
if (!empty($conf->commande->enabled) && $user->rights->commande->lire) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/commande/class/commande.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/commande/class/commande.class.php';
|
$board = new Commande($db);
|
||||||
$board=new Commande($db);
|
$dashboardlines[$board->element] = $board->load_board($user);
|
||||||
$dashboardlines[$board->element] = $board->load_board($user);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Number of suppliers orders a deal
|
// Number of suppliers orders a deal
|
||||||
if (! empty($conf->supplier_order->enabled) && $user->rights->fournisseur->commande->lire)
|
if (!empty($conf->supplier_order->enabled) && $user->rights->fournisseur->commande->lire) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.commande.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.commande.class.php';
|
$board = new CommandeFournisseur($db);
|
||||||
$board=new CommandeFournisseur($db);
|
$dashboardlines[$board->element] = $board->load_board($user);
|
||||||
$dashboardlines[$board->element] = $board->load_board($user);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Number of services enabled (delayed)
|
// Number of services enabled (delayed)
|
||||||
if (! empty($conf->contrat->enabled) && $user->rights->contrat->lire)
|
if (!empty($conf->contrat->enabled) && $user->rights->contrat->lire) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/contrat/class/contrat.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/contrat/class/contrat.class.php';
|
$board = new Contrat($db);
|
||||||
$board=new Contrat($db);
|
$dashboardlines[$board->element . '_inactive'] = $board->load_board($user, "inactive");
|
||||||
$dashboardlines[$board->element.'_inactive'] = $board->load_board($user, "inactive");
|
// Number of active services (expired)
|
||||||
// Number of active services (expired)
|
$dashboardlines[$board->element . '_active'] = $board->load_board($user, "active");
|
||||||
$dashboardlines[$board->element.'_active'] = $board->load_board($user, "active");
|
}
|
||||||
}
|
|
||||||
// Number of invoices customers (has paid)
|
// Number of invoices customers (has paid)
|
||||||
if (! empty($conf->facture->enabled) && $user->rights->facture->lire)
|
if (!empty($conf->facture->enabled) && $user->rights->facture->lire) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
$board = new Facture($db);
|
||||||
$board=new Facture($db);
|
$dashboardlines[$board->element] = $board->load_board($user);
|
||||||
$dashboardlines[$board->element] = $board->load_board($user);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Number of supplier invoices (has paid)
|
// Number of supplier invoices (has paid)
|
||||||
if (! empty($conf->supplier_invoice->enabled) && ! empty($user->rights->fournisseur->facture->lire))
|
if (!empty($conf->supplier_invoice->enabled) && !empty($user->rights->fournisseur->facture->lire)) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.facture.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.facture.class.php';
|
$board = new FactureFournisseur($db);
|
||||||
$board=new FactureFournisseur($db);
|
$dashboardlines[$board->element] = $board->load_board($user);
|
||||||
$dashboardlines[$board->element] = $board->load_board($user);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Number of transactions to conciliate
|
// Number of transactions to conciliate
|
||||||
if (! empty($conf->banque->enabled) && $user->rights->banque->lire && ! $user->societe_id)
|
if (!empty($conf->banque->enabled) && $user->rights->banque->lire && !$user->societe_id) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/compta/bank/class/account.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
|
$board = new Account($db);
|
||||||
$board=new Account($db);
|
$nb = $board::countAccountToReconcile(); // Get nb of account to reconciliate
|
||||||
$nb = $board::countAccountToReconcile(); // Get nb of account to reconciliate
|
if ($nb > 0) {
|
||||||
if ($nb > 0)
|
$dashboardlines[$board->element] = $board->load_board($user);
|
||||||
{
|
}
|
||||||
$dashboardlines[$board->element] = $board->load_board($user);
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Number of cheque to send
|
// Number of cheque to send
|
||||||
if (! empty($conf->banque->enabled) && $user->rights->banque->lire && ! $user->societe_id && empty($conf->global->BANK_DISABLE_CHECK_DEPOSIT))
|
if (!empty($conf->banque->enabled) && $user->rights->banque->lire && !$user->societe_id && empty($conf->global->BANK_DISABLE_CHECK_DEPOSIT)) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/compta/paiement/cheque/class/remisecheque.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/compta/paiement/cheque/class/remisecheque.class.php';
|
$board = new RemiseCheque($db);
|
||||||
$board=new RemiseCheque($db);
|
$dashboardlines['RemiseCheque'] = $board->load_board($user);
|
||||||
$dashboardlines['RemiseCheque'] = $board->load_board($user);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Number of foundation members
|
// Number of foundation members
|
||||||
if (! empty($conf->adherent->enabled) && $user->rights->adherent->lire && ! $user->societe_id)
|
if (!empty($conf->adherent->enabled) && $user->rights->adherent->lire && !$user->societe_id) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
|
$board = new Adherent($db);
|
||||||
$board=new Adherent($db);
|
$dashboardlines['Adherent'] = $board->load_board($user);
|
||||||
$dashboardlines['Adherent'] = $board->load_board($user);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Number of expense reports to approve
|
// Number of expense reports to approve
|
||||||
if (! empty($conf->expensereport->enabled) && $user->rights->expensereport->approve)
|
if (!empty($conf->expensereport->enabled) && $user->rights->expensereport->approve) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/expensereport/class/expensereport.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport.class.php';
|
$board = new ExpenseReport($db);
|
||||||
$board=new ExpenseReport($db);
|
$dashboardlines['ExpenseReport'] = $board->load_board($user, 'toapprove');
|
||||||
$dashboardlines['ExpenseReport'] = $board->load_board($user, 'toapprove');
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Number of expense reports to pay
|
// Number of expense reports to pay
|
||||||
if (! empty($conf->expensereport->enabled) && $user->rights->expensereport->to_paid)
|
if (!empty($conf->expensereport->enabled) && $user->rights->expensereport->to_paid) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/expensereport/class/expensereport.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/expensereport/class/expensereport.class.php';
|
$board = new ExpenseReport($db);
|
||||||
$board=new ExpenseReport($db);
|
$dashboardlines['ExpenseReport'] = $board->load_board($user, 'topay');
|
||||||
$dashboardlines['ExpenseReport'] = $board->load_board($user, 'topay');
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Number of holidays to approve
|
// Number of holidays to approve
|
||||||
if (! empty($conf->holiday->enabled) && $user->rights->holiday->approve)
|
if (!empty($conf->holiday->enabled) && $user->rights->holiday->approve) {
|
||||||
{
|
include_once DOL_DOCUMENT_ROOT . '/holiday/class/holiday.class.php';
|
||||||
include_once DOL_DOCUMENT_ROOT.'/holiday/class/holiday.class.php';
|
$board = new Holiday($db);
|
||||||
$board=new Holiday($db);
|
$dashboardlines['Holiday'] = $board->load_board($user);
|
||||||
$dashboardlines['Holiday'] = $board->load_board($user);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$object=new stdClass();
|
$object = new stdClass();
|
||||||
$parameters=array();
|
$parameters = array();
|
||||||
$action='';
|
$action = '';
|
||||||
$reshook=$hookmanager->executeHooks('addOpenElementsDashboardLine', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
$reshook = $hookmanager->executeHooks('addOpenElementsDashboardLine', $parameters, $object,
|
||||||
if ($reshook == 0) {
|
$action); // Note that $action and $object may have been modified by some hooks
|
||||||
$dashboardlines = array_merge($dashboardlines, $hookmanager->resArray);
|
if ($reshook == 0) {
|
||||||
}
|
$dashboardlines = array_merge($dashboardlines, $hookmanager->resArray);
|
||||||
|
}
|
||||||
|
|
||||||
/* grouping dashboard stats */
|
/* grouping dashboard stats */
|
||||||
$dashboardgroup = array (
|
$dashboardgroup = array(
|
||||||
'action' =>
|
'action' =>
|
||||||
array (
|
array(
|
||||||
'groupName' => 'Agenda',
|
'groupName' => 'Agenda',
|
||||||
'stats' => array ('action'),
|
'stats' => array('action'),
|
||||||
),
|
),
|
||||||
'project' =>
|
'project' =>
|
||||||
array (
|
array(
|
||||||
'groupName' => 'Projects',
|
'groupName' => 'Projects',
|
||||||
'stats' => array ('project','project_task'),
|
'stats' => array('project', 'project_task'),
|
||||||
),
|
),
|
||||||
'propal' =>
|
'propal' =>
|
||||||
array (
|
array(
|
||||||
'groupName' => 'Proposals',
|
'groupName' => 'Proposals',
|
||||||
'stats' =>
|
'stats' =>
|
||||||
array ('propal_opened','propal_signed'),
|
array('propal_opened', 'propal_signed'),
|
||||||
),
|
),
|
||||||
'commande' =>
|
'commande' =>
|
||||||
array (
|
array(
|
||||||
'groupName' => 'Orders',
|
'groupName' => 'Orders',
|
||||||
'stats' =>
|
'stats' =>
|
||||||
array ('commande'),
|
array('commande'),
|
||||||
),
|
),
|
||||||
'facture' =>
|
'facture' =>
|
||||||
array (
|
array(
|
||||||
'groupName' => 'Invoices',
|
'groupName' => 'Invoices',
|
||||||
'stats' =>
|
'stats' =>
|
||||||
array ('facture'),
|
array('facture'),
|
||||||
),
|
),
|
||||||
'contrat' =>
|
'contrat' =>
|
||||||
array (
|
array(
|
||||||
'groupName' => 'Contracts',
|
'groupName' => 'Contracts',
|
||||||
'stats' =>
|
'stats' =>
|
||||||
array ('contrat_inactive','contrat_active'),
|
array('contrat_inactive', 'contrat_active'),
|
||||||
),
|
),
|
||||||
'supplier_proposal' =>
|
'supplier_proposal' =>
|
||||||
array (
|
array(
|
||||||
'groupName' => 'SupplierProposals',
|
'groupName' => 'SupplierProposals',
|
||||||
'stats' =>
|
'stats' =>
|
||||||
array ('supplier_proposal_opened','supplier_proposal_signed'),
|
array('supplier_proposal_opened', 'supplier_proposal_signed'),
|
||||||
),
|
),
|
||||||
'order_supplier' =>
|
'order_supplier' =>
|
||||||
array (
|
array(
|
||||||
'groupName' => 'SuppliersOrders',
|
'groupName' => 'SuppliersOrders',
|
||||||
'stats' =>
|
'stats' =>
|
||||||
array ('order_supplier'),
|
array('order_supplier'),
|
||||||
),
|
),
|
||||||
'invoice_supplier' =>
|
'invoice_supplier' =>
|
||||||
array (
|
array(
|
||||||
'groupName' => 'BillsSuppliers',
|
'groupName' => 'BillsSuppliers',
|
||||||
'stats' =>
|
'stats' =>
|
||||||
array ('invoice_supplier'),
|
array('invoice_supplier'),
|
||||||
),
|
),
|
||||||
'bank_account' =>
|
'bank_account' =>
|
||||||
array (
|
array(
|
||||||
'groupName' => 'BankAccount',
|
'groupName' => 'BankAccount',
|
||||||
'stats' =>
|
'stats' =>
|
||||||
array ('bank_account','RemiseCheque'),
|
array('bank_account', 'RemiseCheque'),
|
||||||
),
|
),
|
||||||
'Adherent' =>
|
'Adherent' =>
|
||||||
array (
|
array(
|
||||||
'groupName' => 'Members',
|
'groupName' => 'Members',
|
||||||
'stats' =>
|
'stats' =>
|
||||||
array ('Adherent'),
|
array('Adherent'),
|
||||||
),
|
),
|
||||||
'ExpenseReport' =>
|
'ExpenseReport' =>
|
||||||
array (
|
array(
|
||||||
'groupName' => 'ExpenseReport',
|
'groupName' => 'ExpenseReport',
|
||||||
'stats' =>
|
'stats' =>
|
||||||
array ('ExpenseReport'),
|
array('ExpenseReport'),
|
||||||
),
|
),
|
||||||
'Holiday' =>
|
'Holiday' =>
|
||||||
array (
|
array(
|
||||||
'groupName' => 'Holidays',
|
'groupName' => 'Holidays',
|
||||||
'stats' =>
|
'stats' =>
|
||||||
array ('Holiday'),
|
array('Holiday'),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
$object=new stdClass();
|
$object = new stdClass();
|
||||||
$parameters=array(
|
$parameters = array(
|
||||||
'dashboardgroup' => $dashboardgroup
|
'dashboardgroup' => $dashboardgroup
|
||||||
);
|
);
|
||||||
$reshook=$hookmanager->executeHooks('addOpenElementsDashboardGroup', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
$reshook = $hookmanager->executeHooks('addOpenElementsDashboardGroup', $parameters, $object,
|
||||||
if ($reshook == 0) {
|
$action); // Note that $action and $object may have been modified by some hooks
|
||||||
$dashboardgroup = array_merge($dashboardgroup, $hookmanager->resArray);
|
if ($reshook == 0) {
|
||||||
}
|
$dashboardgroup = array_merge($dashboardgroup, $hookmanager->resArray);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Calculate total nb of late
|
// Calculate total nb of late
|
||||||
$totallate=$totaltodo=0;
|
$totallate = $totaltodo = 0;
|
||||||
|
|
||||||
//Remove any invalid response
|
//Remove any invalid response
|
||||||
//load_board can return an integer if failed or WorkboardResponse if OK
|
//load_board can return an integer if failed or WorkboardResponse if OK
|
||||||
$valid_dashboardlines=array();
|
$valid_dashboardlines = array();
|
||||||
foreach($dashboardlines as $infoKey => $tmp)
|
foreach ($dashboardlines as $infoKey => $tmp) {
|
||||||
{
|
if ($tmp instanceof WorkboardResponse) {
|
||||||
if ($tmp instanceof WorkboardResponse) $valid_dashboardlines[$infoKey] = $tmp;
|
$valid_dashboardlines[$infoKey] = $tmp;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// We calculate $totallate. Must be defined before start of next loop because it is show in first fetch on next loop
|
// We calculate $totallate. Must be defined before start of next loop because it is show in first fetch on next loop
|
||||||
foreach($valid_dashboardlines as $board)
|
foreach ($valid_dashboardlines as $board) {
|
||||||
{
|
if ($board->nbtodolate > 0) {
|
||||||
if ($board->nbtodolate > 0) {
|
$totaltodo += $board->nbtodo;
|
||||||
$totaltodo += $board->nbtodo;
|
$totallate += $board->nbtodolate;
|
||||||
$totallate += $board->nbtodolate;
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$openedDashBoardSize = 'info-box-sm'; // use sm by default
|
$openedDashBoardSize = 'info-box-sm'; // use sm by default
|
||||||
foreach ($dashboardgroup as $dashbordelement){
|
foreach ($dashboardgroup as $dashbordelement) {
|
||||||
if (is_array($dashbordelement['stats']) && count($dashbordelement['stats'])>2){
|
if (is_array($dashbordelement['stats']) && count($dashbordelement['stats']) > 2) {
|
||||||
$openedDashBoardSize = ''; // use default info box size : big
|
$openedDashBoardSize = ''; // use default info box size : big
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$totalLateNumber = $totallate;
|
$totalLateNumber = $totallate;
|
||||||
$totallatePercentage = ((! empty($totaltodo)) ? round($totallate / $totaltodo * 100, 2) : 0);
|
$totallatePercentage = ((!empty($totaltodo)) ? round($totallate / $totaltodo * 100, 2) : 0);
|
||||||
if(! empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE)) $totallate = $totallatePercentage;
|
if (!empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE)) {
|
||||||
|
$totallate = $totallatePercentage;
|
||||||
|
}
|
||||||
|
|
||||||
$boxwork='';
|
$boxwork = '';
|
||||||
$boxwork.='<div class="box">';
|
$boxwork .= '<div class="box">';
|
||||||
$boxwork.='<table summary="'.dol_escape_htmltag($langs->trans("WorkingBoard")).'" class="noborder boxtable boxtablenobottom boxworkingboard" width="100%">'."\n";
|
$boxwork .= '<table summary="' . dol_escape_htmltag($langs->trans("WorkingBoard")) . '" class="noborder boxtable boxtablenobottom boxworkingboard" width="100%">' . "\n";
|
||||||
$boxwork.='<tr class="liste_titre">';
|
$boxwork .= '<tr class="liste_titre">';
|
||||||
$boxwork.='<th class="liste_titre"><div class="inline-block valignmiddle">'.$langs->trans("DolibarrWorkBoard").'</div>';
|
$boxwork .= '<th class="liste_titre"><div class="inline-block valignmiddle">' . $langs->trans("DolibarrWorkBoard") . '</div>';
|
||||||
if ($showweather)
|
if ($showweather) {
|
||||||
{
|
if ($totallate > 0) {
|
||||||
if ($totallate > 0) $text=$langs->transnoentitiesnoconv("WarningYouHaveAtLeastOneTaskLate").' ('.$langs->transnoentitiesnoconv("NActionsLate", $totallate.(!empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE) ? '%' : '')).')';
|
$text = $langs->transnoentitiesnoconv("WarningYouHaveAtLeastOneTaskLate") . ' (' . $langs->transnoentitiesnoconv("NActionsLate",
|
||||||
else $text=$langs->transnoentitiesnoconv("NoItemLate");
|
$totallate . (!empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE) ? '%' : '')) . ')';
|
||||||
$text.='. '.$langs->transnoentitiesnoconv("LateDesc");
|
} else {
|
||||||
//$text.=$form->textwithpicto('',$langs->trans("LateDesc"));
|
$text = $langs->transnoentitiesnoconv("NoItemLate");
|
||||||
$options='height="24px" style="float: right"';
|
}
|
||||||
$boxwork.=showWeather($totallate, $text, $options, 'inline-block valignmiddle');
|
$text .= '. ' . $langs->transnoentitiesnoconv("LateDesc");
|
||||||
}
|
//$text.=$form->textwithpicto('',$langs->trans("LateDesc"));
|
||||||
$boxwork.='</th>';
|
$options = 'height="24px" style="float: right"';
|
||||||
$boxwork.='</tr>'."\n";
|
$boxwork .= showWeather($totallate, $text, $options, 'inline-block valignmiddle');
|
||||||
|
}
|
||||||
|
$boxwork .= '</th>';
|
||||||
|
$boxwork .= '</tr>' . "\n";
|
||||||
|
|
||||||
// Show dashboard
|
// Show dashboard
|
||||||
$nbworkboardempty=0;
|
$nbworkboardempty = 0;
|
||||||
$isIntopOpenedDashBoard = array();
|
$isIntopOpenedDashBoard = array();
|
||||||
if (!empty($valid_dashboardlines))
|
if (!empty($valid_dashboardlines)) {
|
||||||
{
|
$openedDashBoard = '';
|
||||||
$openedDashBoard = '';
|
|
||||||
|
|
||||||
$boxwork.='<tr class="nobottom nohover"><td class="tdboxstats nohover flexcontainer centpercent"><div style="display: flex: flex-wrap: wrap">';
|
$boxwork .= '<tr class="nobottom nohover"><td class="tdboxstats nohover flexcontainer centpercent"><div style="display: flex: flex-wrap: wrap">';
|
||||||
|
|
||||||
foreach($dashboardgroup as $groupKey => $groupElement) {
|
foreach ($dashboardgroup as $groupKey => $groupElement) {
|
||||||
$boards = array();
|
$boards = array();
|
||||||
|
|
||||||
if(!empty($conf->global->MAIN_DISPLAY_NEW_OPENED_DASH_BOARD) || !empty($conf->global->MAIN_FEATURES_LEVEL))
|
if (!empty($conf->global->MAIN_DISPLAY_NEW_OPENED_DASH_BOARD) || !empty($conf->global->MAIN_FEATURES_LEVEL)) {
|
||||||
{
|
foreach ($groupElement['stats'] as $infoKey) {
|
||||||
foreach ($groupElement['stats'] as $infoKey)
|
if (!empty($valid_dashboardlines[$infoKey])) {
|
||||||
{
|
$boards[] = $valid_dashboardlines[$infoKey];
|
||||||
if(!empty($valid_dashboardlines[$infoKey]))
|
$isIntopOpenedDashBoard[] = $infoKey;
|
||||||
{
|
}
|
||||||
$boards[] = $valid_dashboardlines[$infoKey];
|
}
|
||||||
$isIntopOpenedDashBoard[]=$infoKey;
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!empty($boards))
|
if (!empty($boards)) {
|
||||||
{
|
$groupName = $langs->trans($groupElement['groupName']);
|
||||||
$groupName = $langs->trans($groupElement['groupName']);
|
$groupKeyLowerCase = strtolower($groupKey);
|
||||||
$groupKeyLowerCase = strtolower($groupKey);
|
|
||||||
|
|
||||||
$openedDashBoard.= '<div class="box-flex-item">'."\n";
|
$openedDashBoard .= '<div class="box-flex-item">' . "\n";
|
||||||
$openedDashBoard.= ' <div class="info-box '.$openedDashBoardSize.'">'."\n";
|
$openedDashBoard .= ' <div class="info-box ' . $openedDashBoardSize . '">' . "\n";
|
||||||
$openedDashBoard.= ' <span class="info-box-icon bg-infoxbox-'.$groupKeyLowerCase.'"><i class="fa fa-dol-'.$groupKeyLowerCase.'"></i></span>'."\n";
|
$openedDashBoard .= ' <span class="info-box-icon bg-infoxbox-' . $groupKeyLowerCase . '"><i class="fa fa-dol-' . $groupKeyLowerCase . '"></i></span>' . "\n";
|
||||||
$openedDashBoard.= ' <div class="info-box-content">'."\n";
|
$openedDashBoard .= ' <div class="info-box-content">' . "\n";
|
||||||
$openedDashBoard .= ' <span class="info-box-title" title="'.dol_escape_htmltag($groupName).'">'.$groupName.'</span>' . "\n";
|
$openedDashBoard .= ' <span class="info-box-title" title="' . dol_escape_htmltag($groupName) . '">' . $groupName . '</span>' . "\n";
|
||||||
|
|
||||||
foreach($boards as $board) {
|
foreach ($boards as $board) {
|
||||||
if(!empty($board->labelShort)){
|
if (!empty($board->labelShort)) {
|
||||||
$infoName = '<span title="'.$board->label.'">'.$board->labelShort.'</span>';
|
$infoName = '<span title="' . $board->label . '">' . $board->labelShort . '</span>';
|
||||||
}
|
} else {
|
||||||
else{
|
$infoName = $board->label;
|
||||||
$infoName = $board->label ;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$textLateTitle = $langs->trans("NActionsLate", $board->nbtodolate);
|
$textLateTitle = $langs->trans("NActionsLate", $board->nbtodolate);
|
||||||
$textLateTitle.= ' ('.$langs->trans("Late").' = '.$langs->trans("DateReference").' > '.$langs->trans("DateToday").' '.(ceil($board->warning_delay) >= 0 ? '+' : '').ceil($board->warning_delay).' '.$langs->trans("days").')';
|
$textLateTitle .= ' (' . $langs->trans("Late") . ' = ' . $langs->trans("DateReference") . ' > ' . $langs->trans("DateToday") . ' ' . (ceil($board->warning_delay) >= 0 ? '+' : '') . ceil($board->warning_delay) . ' ' . $langs->trans("days") . ')';
|
||||||
|
|
||||||
$textLate = '';
|
$textLate = '';
|
||||||
if($board->nbtodolate>0)
|
if ($board->nbtodolate > 0) {
|
||||||
{
|
$textLate .= ' <span title="' . dol_htmlentities($textLateTitle) . '" class="classfortooltip badge badge-danger">';
|
||||||
$textLate .= ' <span title="'.dol_htmlentities($textLateTitle).'" class="classfortooltip badge badge-danger">';
|
$textLate .= '<i class="fa fa-exclamation-triangle"></i> ' . $board->nbtodolate;
|
||||||
$textLate .= '<i class="fa fa-exclamation-triangle"></i> '.$board->nbtodolate;
|
$textLate .= '</span>';
|
||||||
$textLate .= '</span>';
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$nbtodClass = '';
|
$nbtodClass = '';
|
||||||
if($board->nbtodo>0){
|
if ($board->nbtodo > 0) {
|
||||||
$nbtodClass = 'badge badge-info';
|
$nbtodClass = 'badge badge-info';
|
||||||
}
|
}
|
||||||
|
|
||||||
$openedDashBoard .= ' <a href="'.$board->url.'" class="info-box-text">'.$infoName.' : <span class="'.$nbtodClass.' classfortooltip" title="'.$board->label.'" >'.$board->nbtodo.'</span>'.$textLate.'</a>' . "\n";
|
$openedDashBoard .= ' <a href="' . $board->url . '" class="info-box-text">' . $infoName . ' : <span class="' . $nbtodClass . ' classfortooltip" title="' . $board->label . '" >' . $board->nbtodo . '</span>' . $textLate . '</a>' . "\n";
|
||||||
|
|
||||||
if ($board->total > 0 && ! empty($conf->global->MAIN_WORKBOARD_SHOW_TOTAL_WO_TAX)){
|
if ($board->total > 0 && !empty($conf->global->MAIN_WORKBOARD_SHOW_TOTAL_WO_TAX)) {
|
||||||
$openedDashBoard .= '<a href="'.$board->url.'" class="info-box-text">'.$langs->trans('Total').' : '.price($board->total) .'</a>';
|
$openedDashBoard .= '<a href="' . $board->url . '" class="info-box-text">' . $langs->trans('Total') . ' : ' . price($board->total) . '</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$openedDashBoard.= ' </div><!-- /.info-box-content -->'."\n";
|
$openedDashBoard .= ' </div><!-- /.info-box-content -->' . "\n";
|
||||||
$openedDashBoard.= ' </div><!-- /.info-box -->'."\n";
|
$openedDashBoard .= ' </div><!-- /.info-box -->' . "\n";
|
||||||
$openedDashBoard.= '</div><!-- /.box-flex-item -->'."\n";
|
$openedDashBoard .= '</div><!-- /.box-flex-item -->' . "\n";
|
||||||
$openedDashBoard.="\n";
|
$openedDashBoard .= "\n";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ($showweather && !empty($isIntopOpenedDashBoard))
|
|
||||||
{
|
|
||||||
$appendClass = $conf->global->MAIN_DISABLE_METEO == 2 ?' hideonsmartphone' : '';
|
|
||||||
$weather = getWeatherStatus($totallate);
|
|
||||||
|
|
||||||
$text='';
|
|
||||||
if ($totallate > 0) $text=$langs->transnoentitiesnoconv("WarningYouHaveAtLeastOneTaskLate").' ('.$langs->transnoentitiesnoconv("NActionsLate", $totallate.(!empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE) ? '%' : '')).')';
|
|
||||||
else $text=$langs->transnoentitiesnoconv("NoItemLate");
|
|
||||||
$text.='. '.$langs->transnoentitiesnoconv("LateDesc");
|
|
||||||
|
|
||||||
$weatherDashBoard= '<div class="box-flex-item '.$appendClass.'">'."\n";
|
|
||||||
$weatherDashBoard.= ' <div class="info-box '.$openedDashBoardSize.' info-box-weather info-box-weather-level'.$weather->level.'">'."\n";
|
|
||||||
$weatherDashBoard.= ' <span class="info-box-icon">';
|
|
||||||
$weatherDashBoard.= img_weather('', $weather->level, '', 0, 'valignmiddle width50');
|
|
||||||
$weatherDashBoard.= ' </span>'."\n";
|
|
||||||
$weatherDashBoard.= ' <div class="info-box-content">'."\n";
|
|
||||||
$weatherDashBoard.= ' <span class="info-box-title">'.$langs->trans('GlobalOpenedElemView').'</span>' . "\n";
|
|
||||||
|
|
||||||
if($totallatePercentage>0 && !empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE)) {
|
|
||||||
$weatherDashBoard.= ' <span class="info-box-number">'.$langs->transnoentitiesnoconv("NActionsLate", price($totallatePercentage).'%').'</span>' . "\n";
|
|
||||||
$weatherDashBoard.= ' <span class="progress-description">'.$langs->trans('NActionsLate', $totalLateNumber).'</span>' . "\n";
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
$weatherDashBoard.= ' <span class="info-box-number">'.$langs->transnoentitiesnoconv("NActionsLate", $totalLateNumber).'</span>' . "\n";
|
|
||||||
if($totallatePercentage>0) {
|
|
||||||
$weatherDashBoard.= ' <span class="progress-description">'.$langs->trans('NActionsLate', price($totallatePercentage).'%').'</span>' . "\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$weatherDashBoard.= ' </div><!-- /.info-box-content -->'."\n";
|
|
||||||
$weatherDashBoard.= ' </div><!-- /.info-box -->'."\n";
|
|
||||||
$weatherDashBoard.= '</div><!-- /.box-flex-item -->'."\n";
|
|
||||||
$weatherDashBoard.="\n";
|
|
||||||
|
|
||||||
$openedDashBoard=$weatherDashBoard.$openedDashBoard;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!empty($isIntopOpenedDashBoard))
|
|
||||||
{
|
|
||||||
for ($i = 1; $i <= 10; $i++) {
|
|
||||||
$openedDashBoard .= '<div class="box-flex-item filler"></div>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$nbworkboardcount=0;
|
|
||||||
foreach($valid_dashboardlines as $infoKey => $board)
|
|
||||||
{
|
|
||||||
if(in_array($infoKey, $isIntopOpenedDashBoard)) {
|
|
||||||
// skip if info is present on top
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (empty($board->nbtodo)) $nbworkboardempty++;
|
|
||||||
$nbworkboardcount++;
|
|
||||||
|
|
||||||
|
|
||||||
$textlate = $langs->trans("NActionsLate", $board->nbtodolate);
|
|
||||||
$textlate.= ' ('.$langs->trans("Late").' = '.$langs->trans("DateReference").' > '.$langs->trans("DateToday").' '.(ceil($board->warning_delay) >= 0 ? '+' : '').ceil($board->warning_delay).' '.$langs->trans("days").')';
|
|
||||||
|
|
||||||
|
|
||||||
$boxwork .='<div class="boxstatsindicator thumbstat150 nobold nounderline"><div class="boxstats130 boxstatsborder">';
|
|
||||||
$boxwork .= '<div class="boxstatscontent">';
|
|
||||||
$boxwork .= '<span class="boxstatstext" title="'.dol_escape_htmltag($board->label).'">'.$board->img.' '.$board->label.'</span><br>';
|
|
||||||
$boxwork .= '<a class="valignmiddle dashboardlineindicator" href="'.$board->url.'"><span class="dashboardlineindicator'.(($board->nbtodo == 0)?' dashboardlineok':'').'">'.$board->nbtodo.'</span></a>';
|
|
||||||
if ($board->total > 0 && !empty($conf->global->MAIN_WORKBOARD_SHOW_TOTAL_WO_TAX))
|
|
||||||
{
|
|
||||||
$boxwork .= ' / <a class="valignmiddle dashboardlineindicator" href="'.$board->url.'"><span class="dashboardlineindicator'.(($board->nbtodo == 0)?' dashboardlineok':'').'">'.price($board->total) .'</span></a>';
|
|
||||||
}
|
}
|
||||||
$boxwork .= '</div>';
|
|
||||||
if ($board->nbtodolate > 0)
|
if ($showweather && !empty($isIntopOpenedDashBoard)) {
|
||||||
{
|
$appendClass = $conf->global->MAIN_DISABLE_METEO == 2 ? ' hideonsmartphone' : '';
|
||||||
$boxwork .= '<div class="dashboardlinelatecoin nowrap">';
|
$weather = getWeatherStatus($totallate);
|
||||||
$boxwork .= '<a title="'.dol_escape_htmltag($textlate).'" class="valignmiddle dashboardlineindicatorlate'.($board->nbtodolate>0?' dashboardlineko':' dashboardlineok').'" href="'.((!$board->url_late) ? $board->url : $board->url_late ).'">';
|
|
||||||
//$boxwork .= img_picto($textlate, "warning_white", 'class="valigntextbottom"').'';
|
$text = '';
|
||||||
$boxwork .= img_picto($textlate, "warning_white", 'class="inline-block hideonsmartphone valigntextbottom"').'';
|
if ($totallate > 0) {
|
||||||
$boxwork .= '<span class="dashboardlineindicatorlate'.($board->nbtodolate>0?' dashboardlineko':' dashboardlineok').'">';
|
$text = $langs->transnoentitiesnoconv("WarningYouHaveAtLeastOneTaskLate") . ' (' . $langs->transnoentitiesnoconv("NActionsLate",
|
||||||
$boxwork .= $board->nbtodolate;
|
$totallate . (!empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE) ? '%' : '')) . ')';
|
||||||
$boxwork .= '</span>';
|
} else {
|
||||||
$boxwork .= '</a>';
|
$text = $langs->transnoentitiesnoconv("NoItemLate");
|
||||||
|
}
|
||||||
|
$text .= '. ' . $langs->transnoentitiesnoconv("LateDesc");
|
||||||
|
|
||||||
|
$weatherDashBoard = '<div class="box-flex-item ' . $appendClass . '">' . "\n";
|
||||||
|
$weatherDashBoard .= ' <div class="info-box ' . $openedDashBoardSize . ' info-box-weather info-box-weather-level' . $weather->level . '">' . "\n";
|
||||||
|
$weatherDashBoard .= ' <span class="info-box-icon">';
|
||||||
|
$weatherDashBoard .= img_weather('', $weather->level, '', 0, 'valignmiddle width50');
|
||||||
|
$weatherDashBoard .= ' </span>' . "\n";
|
||||||
|
$weatherDashBoard .= ' <div class="info-box-content">' . "\n";
|
||||||
|
$weatherDashBoard .= ' <span class="info-box-title">' . $langs->trans('GlobalOpenedElemView') . '</span>' . "\n";
|
||||||
|
|
||||||
|
if ($totallatePercentage > 0 && !empty($conf->global->MAIN_USE_METEO_WITH_PERCENTAGE)) {
|
||||||
|
$weatherDashBoard .= ' <span class="info-box-number">' . $langs->transnoentitiesnoconv("NActionsLate",
|
||||||
|
price($totallatePercentage) . '%') . '</span>' . "\n";
|
||||||
|
$weatherDashBoard .= ' <span class="progress-description">' . $langs->trans('NActionsLate',
|
||||||
|
$totalLateNumber) . '</span>' . "\n";
|
||||||
|
} else {
|
||||||
|
$weatherDashBoard .= ' <span class="info-box-number">' . $langs->transnoentitiesnoconv("NActionsLate",
|
||||||
|
$totalLateNumber) . '</span>' . "\n";
|
||||||
|
if ($totallatePercentage > 0) {
|
||||||
|
$weatherDashBoard .= ' <span class="progress-description">' . $langs->trans('NActionsLate',
|
||||||
|
price($totallatePercentage) . '%') . '</span>' . "\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$weatherDashBoard .= ' </div><!-- /.info-box-content -->' . "\n";
|
||||||
|
$weatherDashBoard .= ' </div><!-- /.info-box -->' . "\n";
|
||||||
|
$weatherDashBoard .= '</div><!-- /.box-flex-item -->' . "\n";
|
||||||
|
$weatherDashBoard .= "\n";
|
||||||
|
|
||||||
|
$openedDashBoard = $weatherDashBoard . $openedDashBoard;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!empty($isIntopOpenedDashBoard)) {
|
||||||
|
for ($i = 1; $i <= 10; $i++) {
|
||||||
|
$openedDashBoard .= '<div class="box-flex-item filler"></div>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$nbworkboardcount = 0;
|
||||||
|
foreach ($valid_dashboardlines as $infoKey => $board) {
|
||||||
|
if (in_array($infoKey, $isIntopOpenedDashBoard)) {
|
||||||
|
// skip if info is present on top
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($board->nbtodo)) {
|
||||||
|
$nbworkboardempty++;
|
||||||
|
}
|
||||||
|
$nbworkboardcount++;
|
||||||
|
|
||||||
|
|
||||||
|
$textlate = $langs->trans("NActionsLate", $board->nbtodolate);
|
||||||
|
$textlate .= ' (' . $langs->trans("Late") . ' = ' . $langs->trans("DateReference") . ' > ' . $langs->trans("DateToday") . ' ' . (ceil($board->warning_delay) >= 0 ? '+' : '') . ceil($board->warning_delay) . ' ' . $langs->trans("days") . ')';
|
||||||
|
|
||||||
|
|
||||||
|
$boxwork .= '<div class="boxstatsindicator thumbstat150 nobold nounderline"><div class="boxstats130 boxstatsborder">';
|
||||||
|
$boxwork .= '<div class="boxstatscontent">';
|
||||||
|
$boxwork .= '<span class="boxstatstext" title="' . dol_escape_htmltag($board->label) . '">' . $board->img . ' ' . $board->label . '</span><br>';
|
||||||
|
$boxwork .= '<a class="valignmiddle dashboardlineindicator" href="' . $board->url . '"><span class="dashboardlineindicator' . (($board->nbtodo == 0) ? ' dashboardlineok' : '') . '">' . $board->nbtodo . '</span></a>';
|
||||||
|
if ($board->total > 0 && !empty($conf->global->MAIN_WORKBOARD_SHOW_TOTAL_WO_TAX)) {
|
||||||
|
$boxwork .= ' / <a class="valignmiddle dashboardlineindicator" href="' . $board->url . '"><span class="dashboardlineindicator' . (($board->nbtodo == 0) ? ' dashboardlineok' : '') . '">' . price($board->total) . '</span></a>';
|
||||||
|
}
|
||||||
$boxwork .= '</div>';
|
$boxwork .= '</div>';
|
||||||
|
if ($board->nbtodolate > 0) {
|
||||||
|
$boxwork .= '<div class="dashboardlinelatecoin nowrap">';
|
||||||
|
$boxwork .= '<a title="' . dol_escape_htmltag($textlate) . '" class="valignmiddle dashboardlineindicatorlate' . ($board->nbtodolate > 0 ? ' dashboardlineko' : ' dashboardlineok') . '" href="' . ((!$board->url_late) ? $board->url : $board->url_late) . '">';
|
||||||
|
//$boxwork .= img_picto($textlate, "warning_white", 'class="valigntextbottom"').'';
|
||||||
|
$boxwork .= img_picto($textlate, "warning_white",
|
||||||
|
'class="inline-block hideonsmartphone valigntextbottom"') . '';
|
||||||
|
$boxwork .= '<span class="dashboardlineindicatorlate' . ($board->nbtodolate > 0 ? ' dashboardlineko' : ' dashboardlineok') . '">';
|
||||||
|
$boxwork .= $board->nbtodolate;
|
||||||
|
$boxwork .= '</span>';
|
||||||
|
$boxwork .= '</a>';
|
||||||
|
$boxwork .= '</div>';
|
||||||
|
}
|
||||||
|
$boxwork .= '</div></div>';
|
||||||
|
$boxwork .= "\n";
|
||||||
}
|
}
|
||||||
$boxwork.='</div></div>';
|
|
||||||
$boxwork .="\n";
|
$boxwork .= '<div class="boxstatsindicator thumbstat150 nobold nounderline"><div class="boxstats150empty"></div></div>';
|
||||||
|
$boxwork .= '<div class="boxstatsindicator thumbstat150 nobold nounderline"><div class="boxstats150empty"></div></div>';
|
||||||
|
$boxwork .= '<div class="boxstatsindicator thumbstat150 nobold nounderline"><div class="boxstats150empty"></div></div>';
|
||||||
|
$boxwork .= '<div class="boxstatsindicator thumbstat150 nobold nounderline"><div class="boxstats150empty"></div></div>';
|
||||||
|
|
||||||
|
$boxwork .= '</div>';
|
||||||
|
$boxwork .= '</td></tr>';
|
||||||
|
} else {
|
||||||
|
$boxwork .= '<tr class="nohover">';
|
||||||
|
$boxwork .= '<td class="nohover valignmiddle opacitymedium">';
|
||||||
|
$boxwork .= $langs->trans("NoOpenedElementToProcess");
|
||||||
|
$boxwork .= '</td>';
|
||||||
|
$boxwork .= '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$boxwork .='<div class="boxstatsindicator thumbstat150 nobold nounderline"><div class="boxstats150empty"></div></div>';
|
$boxwork .= '</td></tr>';
|
||||||
$boxwork .='<div class="boxstatsindicator thumbstat150 nobold nounderline"><div class="boxstats150empty"></div></div>';
|
|
||||||
$boxwork .='<div class="boxstatsindicator thumbstat150 nobold nounderline"><div class="boxstats150empty"></div></div>';
|
$boxwork .= '</table>'; // End table array of working board
|
||||||
$boxwork .='<div class="boxstatsindicator thumbstat150 nobold nounderline"><div class="boxstats150empty"></div></div>';
|
$boxwork .= '</div>';
|
||||||
|
|
||||||
|
|
||||||
|
if (!empty($isIntopOpenedDashBoard)) {
|
||||||
|
print '<div class="fichecenter">';
|
||||||
|
print '<div class="opened-dash-board-wrap"><div class="box-flex-container">' . $openedDashBoard . '</div></div>';
|
||||||
|
print '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
$boxwork .='</div>';
|
|
||||||
$boxwork .='</td></tr>';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$boxwork.='<tr class="nohover">';
|
|
||||||
$boxwork.='<td class="nohover valignmiddle opacitymedium">';
|
|
||||||
$boxwork.=$langs->trans("NoOpenedElementToProcess");
|
|
||||||
$boxwork.='</td>';
|
|
||||||
$boxwork.='</tr>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$boxwork.='</td></tr>';
|
|
||||||
|
|
||||||
$boxwork.='</table>'; // End table array of working board
|
|
||||||
$boxwork.='</div>';
|
|
||||||
|
|
||||||
|
|
||||||
if(!empty($isIntopOpenedDashBoard)) {
|
|
||||||
print '<div class="fichecenter">';
|
|
||||||
print '<div class="opened-dash-board-wrap"><div class="box-flex-container">' . $openedDashBoard . '</div></div>';
|
|
||||||
print '</div>';
|
|
||||||
}
|
|
||||||
|
|
||||||
print '<div class="clearboth"></div>';
|
print '<div class="clearboth"></div>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user