Merge pull request #10538 from frederic34/html5boxes
replace html align by class in boxes
This commit is contained in:
commit
e8fc72ecf4
@ -141,7 +141,7 @@ class box_actions extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="left" class="nowrap"',
|
'td' => 'class="nowrap left"',
|
||||||
'text' => dol_print_date($datelimite, "dayhour"),
|
'text' => dol_print_date($datelimite, "dayhour"),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -151,7 +151,7 @@ class box_actions extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $actionstatic->LibStatut($objp->percentage, 3),
|
'text' => $actionstatic->LibStatut($objp->percentage, 3),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -160,7 +160,7 @@ class box_actions extends ModeleBoxes
|
|||||||
|
|
||||||
if ($num==0)
|
if ($num==0)
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text'=>$langs->trans("NoActionsToDo"),
|
'text'=>$langs->trans("NoActionsToDo"),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -174,7 +174,7 @@ class box_actions extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -220,13 +220,13 @@ class box_actions extends ModeleBoxes
|
|||||||
$dateligne=$contents[$line][4]['text'];
|
$dateligne=$contents[$line][4]['text'];
|
||||||
$percentage=$contents[$line][5]['text'];
|
$percentage=$contents[$line][5]['text'];
|
||||||
$out.= '<tr class="oddeven">';
|
$out.= '<tr class="oddeven">';
|
||||||
$out.= '<td align=center>';
|
$out.= '<td class="center">';
|
||||||
$out.= img_object("", $logo);
|
$out.= img_object("", $logo);
|
||||||
$out.= '</td>';
|
$out.= '</td>';
|
||||||
$out.= '<td align=center><a href="'.$urlevent.'">'.$label.'</a></td>';
|
$out.= '<td class="center"><a href="'.$urlevent.'">'.$label.'</a></td>';
|
||||||
$out.= '<td align=center><a href="'.$urlsoc.'">'.img_object("", $logosoc)." ".$nomsoc.'</a></td>';
|
$out.= '<td class="center"><a href="'.$urlsoc.'">'.img_object("", $logosoc)." ".$nomsoc.'</a></td>';
|
||||||
$out.= '<td align=center>'.$dateligne.'</td>';
|
$out.= '<td class="center">'.$dateligne.'</td>';
|
||||||
$out.= '<td align=center>'.$percentage.'</td>';
|
$out.= '<td class="center">'.$percentage.'</td>';
|
||||||
$out.= '</tr>';
|
$out.= '</tr>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -153,7 +153,7 @@ class box_activity extends ModeleBoxes
|
|||||||
while ($j < count($data))
|
while ($j < count($data))
|
||||||
{
|
{
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="left" width="16"',
|
'td' => 'class="left" width="16"',
|
||||||
'url' => DOL_URL_ROOT."/comm/propal/list.php?mainmenu=commercial&leftmenu=propals&viewstatut=".$data[$j]->fk_statut,
|
'url' => DOL_URL_ROOT."/comm/propal/list.php?mainmenu=commercial&leftmenu=propals&viewstatut=".$data[$j]->fk_statut,
|
||||||
'tooltip' => $langs->trans("Proposals")." ".$propalstatic->LibStatut($data[$j]->fk_statut, 0),
|
'tooltip' => $langs->trans("Proposals")." ".$propalstatic->LibStatut($data[$j]->fk_statut, 0),
|
||||||
'logo' => 'object_propal'
|
'logo' => 'object_propal'
|
||||||
@ -177,7 +177,7 @@ class box_activity extends ModeleBoxes
|
|||||||
'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency),
|
'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency),
|
||||||
);
|
);
|
||||||
$this->info_box_contents[$line][4] = array(
|
$this->info_box_contents[$line][4] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $propalstatic->LibStatut($data[$j]->fk_statut, 3),
|
'text' => $propalstatic->LibStatut($data[$j]->fk_statut, 3),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -236,7 +236,7 @@ class box_activity extends ModeleBoxes
|
|||||||
$j=0;
|
$j=0;
|
||||||
while ($j < count($data)) {
|
while ($j < count($data)) {
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="left" width="16"',
|
'td' => 'class="left" width="16"',
|
||||||
'url' => DOL_URL_ROOT."/commande/list.php?mainmenu=commercial&leftmenu=orders&viewstatut=".$data[$j]->fk_statut,
|
'url' => DOL_URL_ROOT."/commande/list.php?mainmenu=commercial&leftmenu=orders&viewstatut=".$data[$j]->fk_statut,
|
||||||
'tooltip' => $langs->trans("Orders")." ".$commandestatic->LibStatut($data[$j]->fk_statut, 0, 0),
|
'tooltip' => $langs->trans("Orders")." ".$commandestatic->LibStatut($data[$j]->fk_statut, 0, 0),
|
||||||
'logo' => 'object_order',
|
'logo' => 'object_order',
|
||||||
@ -260,7 +260,7 @@ class box_activity extends ModeleBoxes
|
|||||||
'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency),
|
'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency),
|
||||||
);
|
);
|
||||||
$this->info_box_contents[$line][4] = array(
|
$this->info_box_contents[$line][4] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $commandestatic->LibStatut($data[$j]->fk_statut, 0, 3),
|
'text' => $commandestatic->LibStatut($data[$j]->fk_statut, 0, 3),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -321,7 +321,7 @@ class box_activity extends ModeleBoxes
|
|||||||
while ($j < count($data)) {
|
while ($j < count($data)) {
|
||||||
$billurl="search_status=2&paye=1&year=".$data[$j]->annee;
|
$billurl="search_status=2&paye=1&year=".$data[$j]->annee;
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="left" width="16"',
|
'td' => 'class="left" width="16"',
|
||||||
'tooltip' => $langs->trans('Bills').' '.$facturestatic->LibStatut(1, $data[$j]->fk_statut, 0),
|
'tooltip' => $langs->trans('Bills').' '.$facturestatic->LibStatut(1, $data[$j]->fk_statut, 0),
|
||||||
'url' => DOL_URL_ROOT."/compta/facture/list.php?".$billurl."&mainmenu=accountancy&leftmenu=customers_bills",
|
'url' => DOL_URL_ROOT."/compta/facture/list.php?".$billurl."&mainmenu=accountancy&leftmenu=customers_bills",
|
||||||
'logo' => 'bill',
|
'logo' => 'bill',
|
||||||
@ -348,7 +348,7 @@ class box_activity extends ModeleBoxes
|
|||||||
$totalnb += $data[$j]->nb;
|
$totalnb += $data[$j]->nb;
|
||||||
|
|
||||||
$this->info_box_contents[$line][4] = array(
|
$this->info_box_contents[$line][4] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $facturestatic->LibStatut(1, $data[$j]->fk_statut, 3),
|
'text' => $facturestatic->LibStatut(1, $data[$j]->fk_statut, 3),
|
||||||
);
|
);
|
||||||
$line++;
|
$line++;
|
||||||
@ -356,7 +356,7 @@ class box_activity extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
if (count($data)==0)
|
if (count($data)==0)
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text'=>$langs->trans("NoRecordedInvoices"),
|
'text'=>$langs->trans("NoRecordedInvoices"),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -403,7 +403,7 @@ class box_activity extends ModeleBoxes
|
|||||||
while ($j < count($data)) {
|
while ($j < count($data)) {
|
||||||
$billurl="search_status=".$data[$j]->fk_statut."&paye=0";
|
$billurl="search_status=".$data[$j]->fk_statut."&paye=0";
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="left" width="16"',
|
'td' => 'class="left" width="16"',
|
||||||
'tooltip' => $langs->trans('Bills').' '.$facturestatic->LibStatut(0, $data[$j]->fk_statut, 0),
|
'tooltip' => $langs->trans('Bills').' '.$facturestatic->LibStatut(0, $data[$j]->fk_statut, 0),
|
||||||
'url' => DOL_URL_ROOT."/compta/facture/list.php?".$billurl."&mainmenu=accountancy&leftmenu=customers_bills",
|
'url' => DOL_URL_ROOT."/compta/facture/list.php?".$billurl."&mainmenu=accountancy&leftmenu=customers_bills",
|
||||||
'logo' => 'bill',
|
'logo' => 'bill',
|
||||||
@ -426,26 +426,27 @@ class box_activity extends ModeleBoxes
|
|||||||
'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency),
|
'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency),
|
||||||
);
|
);
|
||||||
$this->info_box_contents[$line][4] = array(
|
$this->info_box_contents[$line][4] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $facturestatic->LibStatut(0, $data[$j]->fk_statut, 3, $alreadypaid),
|
'text' => $facturestatic->LibStatut(0, $data[$j]->fk_statut, 3, $alreadypaid),
|
||||||
);
|
);
|
||||||
$line++;
|
$line++;
|
||||||
$j++;
|
$j++;
|
||||||
}
|
}
|
||||||
if ($num==0)
|
if ($num==0) {
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text'=>$langs->trans("NoRecordedInvoices"),
|
'text'=>$langs->trans("NoRecordedInvoices"),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Add the sum in the bottom of the boxes
|
// Add the sum in the bottom of the boxes
|
||||||
$this->info_box_contents[$line][0] = array('tr' => 'class="liste_total_wrap"');
|
$this->info_box_contents[$line][0] = array('tr' => 'class="liste_total_wrap"');
|
||||||
$this->info_box_contents[$line][1] = array('td' => 'align="left" class="liste_total" ', 'text' => $langs->trans("Total")." ".$textHead);
|
$this->info_box_contents[$line][1] = array('td' => 'class="liste_total left" ', 'text' => $langs->trans("Total")." ".$textHead);
|
||||||
$this->info_box_contents[$line][2] = array('td' => 'align="right" class="liste_total" ', 'text' => $totalnb);
|
$this->info_box_contents[$line][2] = array('td' => 'class="liste_total right" ', 'text' => $totalnb);
|
||||||
$this->info_box_contents[$line][3] = array('td' => 'align="right" class="liste_total" ', 'text' => '');
|
$this->info_box_contents[$line][3] = array('td' => 'class="liste_total right" ', 'text' => '');
|
||||||
$this->info_box_contents[$line][4] = array('td' => 'align="right" class="liste_total" ', 'text' => "");
|
$this->info_box_contents[$line][4] = array('td' => 'class="liste_total right" ', 'text' => "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -106,7 +106,7 @@ class box_bookmarks extends ModeleBoxes
|
|||||||
$objp = $db->fetch_object($result);
|
$objp = $db->fetch_object($result);
|
||||||
|
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="left" width="16"',
|
'td' => 'class="left" width="16"',
|
||||||
'logo' => $this->boximg,
|
'logo' => $this->boximg,
|
||||||
'url' => $objp->url,
|
'url' => $objp->url,
|
||||||
'tooltip' => $objp->title,
|
'tooltip' => $objp->title,
|
||||||
@ -127,7 +127,7 @@ class box_bookmarks extends ModeleBoxes
|
|||||||
$mytxt=$langs->trans("NoRecordedBookmarks");
|
$mytxt=$langs->trans("NoRecordedBookmarks");
|
||||||
if ($user->rights->bookmark->creer) $mytxt.=' '.$langs->trans("ClickToAdd");
|
if ($user->rights->bookmark->creer) $mytxt.=' '.$langs->trans("ClickToAdd");
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center" colspan="2"',
|
'td' => 'class="center" colspan="2"',
|
||||||
'tooltip' => $mytxt,
|
'tooltip' => $mytxt,
|
||||||
'url'=> DOL_URL_ROOT.'/bookmarks/list.php', 'text'=>$mytxt,
|
'url'=> DOL_URL_ROOT.'/bookmarks/list.php', 'text'=>$mytxt,
|
||||||
);
|
);
|
||||||
@ -143,7 +143,7 @@ class box_bookmarks extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -140,26 +140,28 @@ class box_clients extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $thirdpartystatic->LibStatut($objp->status, 3)
|
'text' => $thirdpartystatic->LibStatut($objp->status, 3)
|
||||||
);
|
);
|
||||||
|
|
||||||
$line++;
|
$line++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($num==0) $this->info_box_contents[$line][0] = array('td' => 'align="center"','text'=>$langs->trans("NoRecordedCustomers"));
|
if ($num==0) $this->info_box_contents[$line][0] = array('td' => 'class="center"','text'=>$langs->trans("NoRecordedCustomers"));
|
||||||
|
|
||||||
$db->free($result);
|
$db->free($result);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array( 'td' => '',
|
$this->info_box_contents[0][0] = array(
|
||||||
|
'td' => '',
|
||||||
'maxlength'=>500,
|
'maxlength'=>500,
|
||||||
'text' => ($db->error().' sql='.$sql));
|
'text' => ($db->error().' sql='.$sql)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -165,14 +165,14 @@ class box_commandes extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $commandestatic->LibStatut($objp->fk_statut, $objp->facture, 3),
|
'text' => $commandestatic->LibStatut($objp->fk_statut, $objp->facture, 3),
|
||||||
);
|
);
|
||||||
|
|
||||||
$line++;
|
$line++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($num==0) $this->info_box_contents[$line][0] = array('td' => 'align="center"','text'=>$langs->trans("NoRecordedOrders"));
|
if ($num==0) $this->info_box_contents[$line][0] = array('td' => 'class="center"','text'=>$langs->trans("NoRecordedOrders"));
|
||||||
|
|
||||||
$db->free($result);
|
$db->free($result);
|
||||||
} else {
|
} else {
|
||||||
@ -184,7 +184,7 @@ class box_commandes extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,16 +145,16 @@ class box_comptes extends ModeleBoxes
|
|||||||
foreach ($solde_total as $key=>$solde) {
|
foreach ($solde_total as $key=>$solde) {
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'tr' => 'class="liste_total"',
|
'tr' => 'class="liste_total"',
|
||||||
'td' => 'align="left" class="liste_total"',
|
'td' => 'class="liste_total left"',
|
||||||
'text' => $langs->trans('Total').' '.$key,
|
'text' => $langs->trans('Total').' '.$key,
|
||||||
);
|
);
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" class="liste_total"',
|
'td' => 'class="liste_total right"',
|
||||||
'text' => ' '
|
'text' => ' '
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" class="liste_total"',
|
'td' => 'class="liste_total right"',
|
||||||
'text' => price($solde, 0, $langs, 0, -1, -1, $key)
|
'text' => price($solde, 0, $langs, 0, -1, -1, $key)
|
||||||
);
|
);
|
||||||
$line++;
|
$line++;
|
||||||
@ -170,7 +170,7 @@ class box_comptes extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -147,7 +147,7 @@ class box_contacts extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" class="nowrap" width="18"',
|
'td' => 'class="nowrap right" width="18"',
|
||||||
'text' => $contactstatic->getLibStatut(3),
|
'text' => $contactstatic->getLibStatut(3),
|
||||||
'asis'=>1,
|
'asis'=>1,
|
||||||
);
|
);
|
||||||
@ -157,7 +157,7 @@ class box_contacts extends ModeleBoxes
|
|||||||
|
|
||||||
if ($num==0)
|
if ($num==0)
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text'=>$langs->trans("NoRecordedContacts"),
|
'text'=>$langs->trans("NoRecordedContacts"),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ class box_contacts extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -161,7 +161,7 @@ class box_contracts extends ModeleBoxes
|
|||||||
|
|
||||||
if ($num==0)
|
if ($num==0)
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center opacitymedium"',
|
'td' => 'class="center opacitymedium"',
|
||||||
'text'=>$langs->trans("NoRecordedContracts"),
|
'text'=>$langs->trans("NoRecordedContracts"),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -175,7 +175,7 @@ class box_contracts extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -163,7 +163,7 @@ class box_external_rss extends ModeleBoxes
|
|||||||
$tooltip.= '<br>'.$description;
|
$tooltip.= '<br>'.$description;
|
||||||
|
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="left" width="16"',
|
'td' => 'class="left" width="16"',
|
||||||
'logo' => $this->boximg,
|
'logo' => $this->boximg,
|
||||||
'url' => $href,
|
'url' => $href,
|
||||||
'tooltip' => $tooltip,
|
'tooltip' => $tooltip,
|
||||||
@ -180,7 +180,7 @@ class box_external_rss extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][2] = array(
|
$this->info_box_contents[$line][2] = array(
|
||||||
'td' => 'align="right" nowrap="1"',
|
'td' => 'class="right nowrap"',
|
||||||
'text' => $date,
|
'text' => $date,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -172,7 +172,7 @@ class box_factures extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $facturestatic->LibStatut($objp->paye, $objp->fk_statut, 3),
|
'text' => $facturestatic->LibStatut($objp->paye, $objp->fk_statut, 3),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -181,7 +181,7 @@ class box_factures extends ModeleBoxes
|
|||||||
|
|
||||||
if ($num==0)
|
if ($num==0)
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text'=>$langs->trans("NoRecordedInvoices"),
|
'text'=>$langs->trans("NoRecordedInvoices"),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -195,7 +195,7 @@ class box_factures extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -177,7 +177,7 @@ class box_factures_fourn extends ModeleBoxes
|
|||||||
$fac->fetch($objp->facid);
|
$fac->fetch($objp->facid);
|
||||||
$alreadypaid=$fac->getSommePaiement();
|
$alreadypaid=$fac->getSommePaiement();
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $facturestatic->LibStatut($objp->paye, $objp->fk_statut, 3, $alreadypaid, $objp->type),
|
'text' => $facturestatic->LibStatut($objp->paye, $objp->fk_statut, 3, $alreadypaid, $objp->type),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -186,7 +186,7 @@ class box_factures_fourn extends ModeleBoxes
|
|||||||
|
|
||||||
if ($num==0)
|
if ($num==0)
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text'=>$langs->trans("NoModifiedSupplierBills"),
|
'text'=>$langs->trans("NoModifiedSupplierBills"),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ class box_factures_fourn extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->transnoentities("ReadPermissionNotAllowed")
|
'text' => $langs->transnoentities("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -164,7 +164,7 @@ class box_factures_fourn_imp extends ModeleBoxes
|
|||||||
$fac->fetch($objp->facid);
|
$fac->fetch($objp->facid);
|
||||||
$alreadypaid=$fac->getSommePaiement();
|
$alreadypaid=$fac->getSommePaiement();
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $facturestatic->LibStatut($objp->paye, $objp->fk_statut, 3, $alreadypaid, $objp->type),
|
'text' => $facturestatic->LibStatut($objp->paye, $objp->fk_statut, 3, $alreadypaid, $objp->type),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -173,7 +173,7 @@ class box_factures_fourn_imp extends ModeleBoxes
|
|||||||
|
|
||||||
if ($num==0)
|
if ($num==0)
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text'=>$langs->trans("NoUnpaidSupplierBills"),
|
'text'=>$langs->trans("NoUnpaidSupplierBills"),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ class box_factures_fourn_imp extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -171,14 +171,14 @@ class box_factures_imp extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $facturestatic->LibStatut($objp->paye, $objp->fk_statut, 3, $objp->am),
|
'text' => $facturestatic->LibStatut($objp->paye, $objp->fk_statut, 3, $objp->am),
|
||||||
);
|
);
|
||||||
|
|
||||||
$line++;
|
$line++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($num==0) $this->info_box_contents[$line][0] = array('td' => 'align="center"','text'=>$langs->trans("NoUnpaidCustomerBills"));
|
if ($num==0) $this->info_box_contents[$line][0] = array('td' => 'class="center"','text'=>$langs->trans("NoUnpaidCustomerBills"));
|
||||||
|
|
||||||
$db->free($result);
|
$db->free($result);
|
||||||
}
|
}
|
||||||
@ -193,7 +193,7 @@ class box_factures_imp extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -114,45 +114,55 @@ class box_ficheinter extends ModeleBoxes
|
|||||||
$ficheinterstatic->id=$objp->rowid;
|
$ficheinterstatic->id=$objp->rowid;
|
||||||
$ficheinterstatic->ref=$objp->ref;
|
$ficheinterstatic->ref=$objp->ref;
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => '',
|
$this->info_box_contents[$i][] = array(
|
||||||
|
'td' => '',
|
||||||
'text' => $ficheinterstatic->getNomUrl(1),
|
'text' => $ficheinterstatic->getNomUrl(1),
|
||||||
'asis' => 1
|
'asis' => 1,
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => 'align="left" width="16"',
|
$this->info_box_contents[$i][] = array(
|
||||||
|
'td' => 'class="left" width="16"',
|
||||||
'logo' => 'company',
|
'logo' => 'company',
|
||||||
'url' => DOL_URL_ROOT."/comm/card.php?socid=".$objp->socid);
|
'url' => DOL_URL_ROOT."/comm/card.php?socid=".$objp->socid,
|
||||||
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => '',
|
$this->info_box_contents[$i][] = array(
|
||||||
|
'td' => '',
|
||||||
'text' => dol_trunc($objp->name, 40),
|
'text' => dol_trunc($objp->name, 40),
|
||||||
'url' => DOL_URL_ROOT."/comm/card.php?socid=".$objp->socid);
|
'url' => DOL_URL_ROOT."/comm/card.php?socid=".$objp->socid,
|
||||||
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => 'class="right"',
|
$this->info_box_contents[$i][] = array(
|
||||||
'text' => dol_print_date($datec, 'day'));
|
'td' => 'class="right"',
|
||||||
|
'text' => dol_print_date($datec, 'day'),
|
||||||
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => 'align="right" class="nowrap"',
|
$this->info_box_contents[$i][] = array(
|
||||||
|
'td' => 'class="nowrap right"',
|
||||||
'text' => $ficheinterstatic->getLibStatut(6),
|
'text' => $ficheinterstatic->getLibStatut(6),
|
||||||
'asis'=>1
|
'asis' => 1,
|
||||||
);
|
);
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($num==0) $this->info_box_contents[$i][] = array('td' => 'align="center"','text'=>$langs->trans("NoRecordedInterventions"));
|
if ($num==0) $this->info_box_contents[$i][] = array('td' => 'class="center"','text'=>$langs->trans("NoRecordedInterventions"));
|
||||||
|
|
||||||
$db->free($resql);
|
$db->free($resql);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][] = array( 'td' => '',
|
$this->info_box_contents[0][] = array(
|
||||||
|
'td' => '',
|
||||||
'maxlength'=>500,
|
'maxlength'=>500,
|
||||||
'text' => ($db->error().' sql='.$sql));
|
'text' => ($db->error().' sql='.$sql),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][] = array(
|
$this->info_box_contents[0][] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -124,7 +124,7 @@ class box_fournisseurs extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $thirdpartystatic->LibStatut($objp->status, 3),
|
'text' => $thirdpartystatic->LibStatut($objp->status, 3),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ class box_fournisseurs extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($num==0) $this->info_box_contents[$line][0] = array(
|
if ($num==0) $this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text'=>$langs->trans("NoRecordedSuppliers"),
|
'text'=>$langs->trans("NoRecordedSuppliers"),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ class box_fournisseurs extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -136,26 +136,28 @@ class box_goodcustomers extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $thirdpartystatic->LibStatut($objp->status, 3)
|
'text' => $thirdpartystatic->LibStatut($objp->status, 3)
|
||||||
);
|
);
|
||||||
|
|
||||||
$line++;
|
$line++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($num==0) $this->info_box_contents[$line][0] = array('td' => 'align="center"','text'=>$langs->trans("NoRecordedCustomers"));
|
if ($num==0) $this->info_box_contents[$line][0] = array('td' => 'class="center"','text'=>$langs->trans("NoRecordedCustomers"));
|
||||||
|
|
||||||
$db->free($result);
|
$db->free($result);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array( 'td' => '',
|
$this->info_box_contents[0][0] = array(
|
||||||
|
'td' => '',
|
||||||
'maxlength'=>500,
|
'maxlength'=>500,
|
||||||
'text' => ($db->error().' sql='.$sql));
|
'text' => ($db->error().' sql='.$sql),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -252,16 +252,16 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
|||||||
$stringtoshow.='</div>';
|
$stringtoshow.='</div>';
|
||||||
$stringtoshow.='</div>';
|
$stringtoshow.='</div>';
|
||||||
}
|
}
|
||||||
$this->info_box_contents[0][0] = array('tr'=>'class="oddeven nohover"', 'td' => 'align="center" class="nohover"','textnoformat'=>$stringtoshow);
|
$this->info_box_contents[0][0] = array('tr'=>'class="oddeven nohover"', 'td' => 'class="nohover center"','textnoformat'=>$stringtoshow);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][0] = array('tr'=>'class="oddeven nohover"', 'td' => 'align="left" class="nohover"', 'maxlength'=>500, 'text' => $mesg);
|
$this->info_box_contents[0][0] = array('tr'=>'class="oddeven nohover"', 'td' => 'class="nohover left"', 'maxlength'=>500, 'text' => $mesg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -249,18 +249,21 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
|||||||
$stringtoshow.='</div>';
|
$stringtoshow.='</div>';
|
||||||
$stringtoshow.='</div>';
|
$stringtoshow.='</div>';
|
||||||
}
|
}
|
||||||
$this->info_box_contents[0][0] = array('tr'=>'class="oddeven nohover"','td' => 'align="center" class="nohover"','textnoformat'=>$stringtoshow);
|
$this->info_box_contents[0][0] = array('tr'=>'class="oddeven nohover"','td' => 'class="nohover center"','textnoformat'=>$stringtoshow);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][0] = array('tr'=>'class="oddeven nohover"', 'td' => 'align="left" class="nohover"',
|
$this->info_box_contents[0][0] = array(
|
||||||
|
'tr'=>'class="oddeven nohover"',
|
||||||
|
'td' => 'class="nohover left"',
|
||||||
'maxlength'=>500,
|
'maxlength'=>500,
|
||||||
'text' => $mesg);
|
'text' => $mesg,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -248,18 +248,25 @@ class box_graph_orders_permonth extends ModeleBoxes
|
|||||||
$stringtoshow.='</div>';
|
$stringtoshow.='</div>';
|
||||||
$stringtoshow.='</div>';
|
$stringtoshow.='</div>';
|
||||||
}
|
}
|
||||||
$this->info_box_contents[0][0] = array('tr'=>'class="oddeven nohover"', 'td' => 'align="center" class="nohover"','textnoformat'=>$stringtoshow);
|
$this->info_box_contents[0][0] = array(
|
||||||
|
'tr'=>'class="oddeven nohover"',
|
||||||
|
'td' => 'class="nohover center"',
|
||||||
|
'textnoformat'=>$stringtoshow,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][0] = array('tr'=>'class="oddeven nohover"', 'td' => 'align="left" class="nohover"',
|
$this->info_box_contents[0][0] = array(
|
||||||
|
'tr'=>'class="oddeven nohover"',
|
||||||
|
'td' => 'class="nohover left"',
|
||||||
'maxlength'=>500,
|
'maxlength'=>500,
|
||||||
'text' => $mesg);
|
'text' => $mesg,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -247,18 +247,25 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
|||||||
$stringtoshow.='</div>';
|
$stringtoshow.='</div>';
|
||||||
$stringtoshow.='</div>';
|
$stringtoshow.='</div>';
|
||||||
}
|
}
|
||||||
$this->info_box_contents[0][0] = array('tr'=>'class="oddeven nohover"', 'td' => 'align="center" class="nohover"','textnoformat'=>$stringtoshow);
|
$this->info_box_contents[0][0] = array(
|
||||||
|
'tr'=>'class="oddeven nohover"',
|
||||||
|
'td' => 'class="nohover center"',
|
||||||
|
'textnoformat'=>$stringtoshow,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][0] = array('tr'=>'class="oddeven nohover"', 'td' => 'align="left" class="nohover"',
|
$this->info_box_contents[0][0] = array(
|
||||||
|
'tr'=>'class="oddeven nohover"',
|
||||||
|
'td' => 'class="nohover left"',
|
||||||
'maxlength'=>500,
|
'maxlength'=>500,
|
||||||
'text' => $mesg);
|
'text' => $mesg,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -392,12 +392,16 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
$stringtoshow.=$px3->show();
|
$stringtoshow.=$px3->show();
|
||||||
$stringtoshow.='</div></div>';
|
$stringtoshow.='</div></div>';
|
||||||
}
|
}
|
||||||
$this->info_box_contents[0][0] = array('tr'=>'class="oddeven nohover"', 'td' => 'align="center" class="nohover"','textnoformat'=>$stringtoshow);
|
$this->info_box_contents[0][0] = array(
|
||||||
|
'tr'=>'class="oddeven nohover"',
|
||||||
|
'td' => 'class="nohover center"',
|
||||||
|
'textnoformat'=>$stringtoshow,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'maxlength'=>500,
|
'maxlength'=>500,
|
||||||
'text' => $mesg
|
'text' => $mesg
|
||||||
);
|
);
|
||||||
|
|||||||
@ -251,18 +251,25 @@ class box_graph_propales_permonth extends ModeleBoxes
|
|||||||
$stringtoshow.='</div>';
|
$stringtoshow.='</div>';
|
||||||
$stringtoshow.='</div>';
|
$stringtoshow.='</div>';
|
||||||
}
|
}
|
||||||
$this->info_box_contents[0][0] = array('tr'=>'class="oddeven nohover"', 'td' => 'align="center" class="nohover"','textnoformat'=>$stringtoshow);
|
$this->info_box_contents[0][0] = array(
|
||||||
|
'tr'=>'class="oddeven nohover"',
|
||||||
|
'td' => 'class="nohover center"',
|
||||||
|
'textnoformat'=>$stringtoshow,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][0] = array('tr'=>'class="oddeven nohover"', 'td' => 'align="left" class="nohover"',
|
$this->info_box_contents[0][0] = array(
|
||||||
|
'tr'=>'class="oddeven nohover"',
|
||||||
|
'td' => 'class="nohover left"',
|
||||||
'maxlength' => 500,
|
'maxlength' => 500,
|
||||||
'text' => $mesg);
|
'text' => $mesg,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Module descriptor for ticket system
|
/* Module descriptor for ticket system
|
||||||
* Copyright (C) - 2013-2016 Jean-François FERRY <hello@librethic.io>
|
* Copyright (C) 2013-2016 Jean-François FERRY <hello@librethic.io>
|
||||||
* 2016 Christophe Battarel <christophe@altairis.fr>
|
* 2016 Christophe Battarel <christophe@altairis.fr>
|
||||||
|
* Copyright (C) 2019 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -75,8 +76,10 @@ class box_last_modified_ticket extends ModeleBoxes
|
|||||||
'limit' => dol_strlen($text)
|
'limit' => dol_strlen($text)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[0][0] = array('td' => 'align="left"',
|
$this->info_box_contents[0][0] = array(
|
||||||
'text' => $langs->trans("BoxLastModifiedTicketContent"));
|
'td' => 'class="left"',
|
||||||
|
'text' => $langs->trans("BoxLastModifiedTicketContent"),
|
||||||
|
);
|
||||||
|
|
||||||
if ($user->rights->ticket->read) {
|
if ($user->rights->ticket->read) {
|
||||||
$sql = "SELECT t.rowid as id, t.ref, t.track_id, t.fk_soc, t.fk_user_create, t.fk_user_assign, t.subject, t.message, t.fk_statut, t.type_code, t.category_code, t.severity_code, t.datec, t.date_read, t.date_close, t.origin_email ";
|
$sql = "SELECT t.rowid as id, t.ref, t.track_id, t.fk_soc, t.fk_user_create, t.fk_user_assign, t.subject, t.message, t.fk_statut, t.type_code, t.category_code, t.severity_code, t.datec, t.date_read, t.date_close, t.origin_email ";
|
||||||
@ -119,28 +122,31 @@ class box_last_modified_ticket extends ModeleBoxes
|
|||||||
|
|
||||||
// Picto
|
// Picto
|
||||||
$this->info_box_contents[$i][0] = array(
|
$this->info_box_contents[$i][0] = array(
|
||||||
'td' => 'align="left" width="16"',
|
'td' => 'class="left" width="16"',
|
||||||
'logo' => $this->boximg,
|
'logo' => $this->boximg,
|
||||||
'url' => dol_buildpath("/ticket/card.php?track_id=".$objp->track_id, 1));
|
'url' => dol_buildpath("/ticket/card.php?track_id=".$objp->track_id, 1),
|
||||||
|
);
|
||||||
$r++;
|
$r++;
|
||||||
|
|
||||||
// Id
|
// Id
|
||||||
$this->info_box_contents[$i][$r] = array(
|
$this->info_box_contents[$i][$r] = array(
|
||||||
'td' => 'align="left"',
|
'td' => 'class="left"',
|
||||||
'text' => $objp->ref,
|
'text' => $objp->ref,
|
||||||
'url' => dol_buildpath("/ticket/card.php?track_id=".$objp->track_id, 1));
|
'url' => dol_buildpath("/ticket/card.php?track_id=".$objp->track_id, 1),
|
||||||
|
);
|
||||||
$r++;
|
$r++;
|
||||||
|
|
||||||
// Subject
|
// Subject
|
||||||
$this->info_box_contents[$i][$r] = array(
|
$this->info_box_contents[$i][$r] = array(
|
||||||
'td' => 'align="left"',
|
'td' => 'class="left"',
|
||||||
'text' => $objp->subject, // Some event have no ref
|
'text' => $objp->subject, // Some event have no ref
|
||||||
'url' => dol_buildpath("/ticket/card.php?track_id=".$objp->track_id, 1));
|
'url' => dol_buildpath("/ticket/card.php?track_id=".$objp->track_id, 1),
|
||||||
|
);
|
||||||
$r++;
|
$r++;
|
||||||
|
|
||||||
// Customer
|
// Customer
|
||||||
$this->info_box_contents[$i][$r] = array(
|
$this->info_box_contents[$i][$r] = array(
|
||||||
'td' => 'align="left"',
|
'td' => 'class="left"',
|
||||||
'logo' => ($objp->fk_soc>0?'company':''),
|
'logo' => ($objp->fk_soc>0?'company':''),
|
||||||
'text' => ($objp->company_name?$objp->company_name:$objp->origin_email),
|
'text' => ($objp->company_name?$objp->company_name:$objp->origin_email),
|
||||||
'url' => ($objp->fk_soc>0?DOL_URL_ROOT."/comm/card.php?socid=".$objp->fk_soc:'')
|
'url' => ($objp->fk_soc>0?DOL_URL_ROOT."/comm/card.php?socid=".$objp->fk_soc:'')
|
||||||
@ -150,7 +156,7 @@ class box_last_modified_ticket extends ModeleBoxes
|
|||||||
|
|
||||||
// Date creation
|
// Date creation
|
||||||
$this->info_box_contents[$i][$r] = array(
|
$this->info_box_contents[$i][$r] = array(
|
||||||
'td' => 'align="right"',
|
'td' => 'class="right"',
|
||||||
'text' => dol_print_date($db->idate($objp->datec), 'dayhour')
|
'text' => dol_print_date($db->idate($objp->datec), 'dayhour')
|
||||||
);
|
);
|
||||||
$r++;
|
$r++;
|
||||||
@ -159,7 +165,7 @@ class box_last_modified_ticket extends ModeleBoxes
|
|||||||
$ticketstat = new Ticket($this->db);
|
$ticketstat = new Ticket($this->db);
|
||||||
$ticketstat->fk_statut = $objp->fk_statut;
|
$ticketstat->fk_statut = $objp->fk_statut;
|
||||||
$this->info_box_contents[$i][$r] = array(
|
$this->info_box_contents[$i][$r] = array(
|
||||||
'td' => 'align="right"',
|
'td' => 'class="right"',
|
||||||
'text' => $ticketstat->getLibStatut(3)
|
'text' => $ticketstat->getLibStatut(3)
|
||||||
);
|
);
|
||||||
$r++;
|
$r++;
|
||||||
@ -168,14 +174,16 @@ class box_last_modified_ticket extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($num==0) {
|
if ($num==0) {
|
||||||
$this->info_box_contents[$i][0] = array('td' => 'align="center"','text'=>$langs->trans("BoxLastModifiedTicketNoRecordedTickets"));
|
$this->info_box_contents[$i][0] = array('td' => 'class="center"','text'=>$langs->trans("BoxLastModifiedTicketNoRecordedTickets"));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array('td' => 'align="left"',
|
$this->info_box_contents[0][0] = array(
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"));
|
'td' => 'class="left"',
|
||||||
|
'text' => $langs->trans("ReadPermissionNotAllowed"),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -75,8 +75,10 @@ class box_last_ticket extends ModeleBoxes
|
|||||||
'limit' => dol_strlen($text),
|
'limit' => dol_strlen($text),
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[0][0] = array('td' => 'align="left"',
|
$this->info_box_contents[0][0] = array(
|
||||||
'text' => $langs->trans("BoxLastTicketContent"));
|
'td' => 'class="left"',
|
||||||
|
'text' => $langs->trans("BoxLastTicketContent"),
|
||||||
|
);
|
||||||
|
|
||||||
if ($user->rights->ticket->read) {
|
if ($user->rights->ticket->read) {
|
||||||
$sql = "SELECT t.rowid as id, t.ref, t.track_id, t.fk_soc, t.fk_user_create, t.fk_user_assign, t.subject, t.message, t.fk_statut, t.type_code, t.category_code, t.severity_code, t.datec, t.date_read, t.date_close, t.origin_email ";
|
$sql = "SELECT t.rowid as id, t.ref, t.track_id, t.fk_soc, t.fk_user_create, t.fk_user_assign, t.subject, t.message, t.fk_statut, t.type_code, t.category_code, t.severity_code, t.datec, t.date_read, t.date_close, t.origin_email ";
|
||||||
@ -120,28 +122,31 @@ class box_last_ticket extends ModeleBoxes
|
|||||||
|
|
||||||
// Picto
|
// Picto
|
||||||
$this->info_box_contents[$i][0] = array(
|
$this->info_box_contents[$i][0] = array(
|
||||||
'td' => 'align="left" width="16"',
|
'td' => 'class="left" width="16"',
|
||||||
'logo' => $this->boximg,
|
'logo' => $this->boximg,
|
||||||
'url' => dol_buildpath("/ticket/card.php?track_id=" . $objp->track_id, 1));
|
'url' => dol_buildpath("/ticket/card.php?track_id=" . $objp->track_id, 1),
|
||||||
|
);
|
||||||
$r++;
|
$r++;
|
||||||
|
|
||||||
// Id
|
// Id
|
||||||
$this->info_box_contents[$i][$r] = array(
|
$this->info_box_contents[$i][$r] = array(
|
||||||
'td' => 'align="left"',
|
'td' => 'class="left"',
|
||||||
'text' => $objp->ref,
|
'text' => $objp->ref,
|
||||||
'url' => dol_buildpath("/ticket/card.php?track_id=" . $objp->track_id, 1));
|
'url' => dol_buildpath("/ticket/card.php?track_id=" . $objp->track_id, 1),
|
||||||
|
);
|
||||||
$r++;
|
$r++;
|
||||||
|
|
||||||
// Subject
|
// Subject
|
||||||
$this->info_box_contents[$i][$r] = array(
|
$this->info_box_contents[$i][$r] = array(
|
||||||
'td' => 'align="left"',
|
'td' => 'class="left"',
|
||||||
'text' => $objp->subject, // Some event have no ref
|
'text' => $objp->subject, // Some event have no ref
|
||||||
'url' => dol_buildpath("/ticket/card.php?track_id=" . $objp->track_id, 1));
|
'url' => dol_buildpath("/ticket/card.php?track_id=" . $objp->track_id, 1),
|
||||||
|
);
|
||||||
$r++;
|
$r++;
|
||||||
|
|
||||||
// Customer
|
// Customer
|
||||||
$this->info_box_contents[$i][$r] = array(
|
$this->info_box_contents[$i][$r] = array(
|
||||||
'td' => 'align="left"',
|
'td' => 'class="left"',
|
||||||
'logo' => ($objp->fk_soc > 0 ? 'company' : ''),
|
'logo' => ($objp->fk_soc > 0 ? 'company' : ''),
|
||||||
'text' => ($objp->company_name ? $objp->company_name : $objp->origin_email),
|
'text' => ($objp->company_name ? $objp->company_name : $objp->origin_email),
|
||||||
'url' => ($objp->fk_soc > 0 ? DOL_URL_ROOT . "/comm/card.php?socid=" . $objp->fk_soc : ''),
|
'url' => ($objp->fk_soc > 0 ? DOL_URL_ROOT . "/comm/card.php?socid=" . $objp->fk_soc : ''),
|
||||||
@ -150,7 +155,7 @@ class box_last_ticket extends ModeleBoxes
|
|||||||
|
|
||||||
// Date creation
|
// Date creation
|
||||||
$this->info_box_contents[$i][$r] = array(
|
$this->info_box_contents[$i][$r] = array(
|
||||||
'td' => 'align="right"',
|
'td' => 'class="right"',
|
||||||
'text' => dol_print_date($db->idate($objp->datec), 'dayhour'),
|
'text' => dol_print_date($db->idate($objp->datec), 'dayhour'),
|
||||||
);
|
);
|
||||||
$r++;
|
$r++;
|
||||||
@ -159,7 +164,7 @@ class box_last_ticket extends ModeleBoxes
|
|||||||
$ticketstat = new Ticket($this->db);
|
$ticketstat = new Ticket($this->db);
|
||||||
$ticketstat->fk_statut = $objp->fk_statut;
|
$ticketstat->fk_statut = $objp->fk_statut;
|
||||||
$this->info_box_contents[$i][$r] = array(
|
$this->info_box_contents[$i][$r] = array(
|
||||||
'td' => 'align="right"',
|
'td' => 'class="right"',
|
||||||
'text' => $ticketstat->getLibStatut(3),
|
'text' => $ticketstat->getLibStatut(3),
|
||||||
);
|
);
|
||||||
$r++;
|
$r++;
|
||||||
@ -168,13 +173,13 @@ class box_last_ticket extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($num == 0) {
|
if ($num == 0) {
|
||||||
$this->info_box_contents[$i][0] = array('td' => 'align="center"', 'text' => $langs->trans("BoxLastTicketNoRecordedTickets"));
|
$this->info_box_contents[$i][0] = array('td' => 'class="center"', 'text' => $langs->trans("BoxLastTicketNoRecordedTickets"));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array('td' => 'align="left"',
|
$this->info_box_contents[0][0] = array('td' => 'class="left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed"));
|
'text' => $langs->trans("ReadPermissionNotAllowed"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -141,7 +141,7 @@ class box_members extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $memberstatic->LibStatut($objp->status, $objp->subscription, $db->jdate($objp->date_end_subscription), 3),
|
'text' => $memberstatic->LibStatut($objp->status, $objp->subscription, $db->jdate($objp->date_end_subscription), 3),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -150,7 +150,7 @@ class box_members extends ModeleBoxes
|
|||||||
|
|
||||||
if ($num==0)
|
if ($num==0)
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text'=>$langs->trans("NoRecordedCustomers"),
|
'text'=>$langs->trans("NoRecordedCustomers"),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ class box_members extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -183,13 +183,13 @@ class box_produits extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => '<span class="statusrefsell">'.$productstatic->LibStatut($objp->tosell, 3, 0).'<span>',
|
'text' => '<span class="statusrefsell">'.$productstatic->LibStatut($objp->tosell, 3, 0).'<span>',
|
||||||
'asis' => 1
|
'asis' => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => '<span class="statusrefbuy">'.$productstatic->LibStatut($objp->tobuy, 3, 1).'</span>',
|
'text' => '<span class="statusrefbuy">'.$productstatic->LibStatut($objp->tobuy, 3, 1).'</span>',
|
||||||
'asis' => 1
|
'asis' => 1
|
||||||
);
|
);
|
||||||
@ -198,7 +198,7 @@ class box_produits extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
if ($num==0)
|
if ($num==0)
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text'=>$langs->trans("NoRecordedProducts"),
|
'text'=>$langs->trans("NoRecordedProducts"),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -212,7 +212,7 @@ class box_produits extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -187,18 +187,19 @@ class box_produits_alerte_stock extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text' => $objp->total_stock . ' / '.$objp->seuil_stock_alerte,
|
'text' => $objp->total_stock . ' / '.$objp->seuil_stock_alerte,
|
||||||
'text2'=>img_warning($langs->transnoentitiesnoconv("StockLowerThanLimit", $objp->seuil_stock_alerte)));
|
'text2'=>img_warning($langs->transnoentitiesnoconv("StockLowerThanLimit", $objp->seuil_stock_alerte)),
|
||||||
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => '<span class="statusrefsell">'.$productstatic->LibStatut($objp->tosell, 3, 0).'<span>',
|
'text' => '<span class="statusrefsell">'.$productstatic->LibStatut($objp->tosell, 3, 0).'<span>',
|
||||||
'asis' => 1
|
'asis' => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => '<span class="statusrefbuy">'.$productstatic->LibStatut($objp->tobuy, 3, 0).'<span>',
|
'text' => '<span class="statusrefbuy">'.$productstatic->LibStatut($objp->tobuy, 3, 0).'<span>',
|
||||||
'asis' => 1
|
'asis' => 1
|
||||||
);
|
);
|
||||||
@ -207,7 +208,7 @@ class box_produits_alerte_stock extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
if ($num==0)
|
if ($num==0)
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text'=>$langs->trans("NoTooLowStockProducts"),
|
'text'=>$langs->trans("NoTooLowStockProducts"),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -224,7 +225,7 @@ class box_produits_alerte_stock extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -174,11 +174,11 @@ class box_project extends ModeleBoxes
|
|||||||
'text' => " ",
|
'text' => " ",
|
||||||
);
|
);
|
||||||
$this->info_box_contents[$i][] = array(
|
$this->info_box_contents[$i][] = array(
|
||||||
'td' => 'align="right" ',
|
'td' => 'class="right" ',
|
||||||
'text' => round($num, 0)." ".$langs->trans("Projects"),
|
'text' => round($num, 0)." ".$langs->trans("Projects"),
|
||||||
);
|
);
|
||||||
$this->info_box_contents[$i][] = array(
|
$this->info_box_contents[$i][] = array(
|
||||||
'td' => 'align="right" ',
|
'td' => 'class="right" ',
|
||||||
'text' => (($max < $num) ? '' : (round($totalnbTask, 0)." ".$langs->trans("Tasks"))),
|
'text' => (($max < $num) ? '' : (round($totalnbTask, 0)." ".$langs->trans("Tasks"))),
|
||||||
);
|
);
|
||||||
$this->info_box_contents[$i][] = array(
|
$this->info_box_contents[$i][] = array(
|
||||||
|
|||||||
@ -151,7 +151,7 @@ class box_propales extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $propalstatic->LibStatut($objp->fk_statut, 3),
|
'text' => $propalstatic->LibStatut($objp->fk_statut, 3),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -160,7 +160,7 @@ class box_propales extends ModeleBoxes
|
|||||||
|
|
||||||
if ($num==0)
|
if ($num==0)
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text'=>$langs->trans("NoRecordedProposals"),
|
'text'=>$langs->trans("NoRecordedProposals"),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -174,7 +174,7 @@ class box_propales extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -134,23 +134,24 @@ class box_prospect extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => str_replace('img ', 'img height="14" ', $thirdpartystatic->LibProspCommStatut($objp->fk_stcomm, 3)),
|
'text' => str_replace('img ', 'img height="14" ', $thirdpartystatic->LibProspCommStatut($objp->fk_stcomm, 3)),
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $thirdpartystatic->LibStatut($objp->status, 3),
|
'text' => $thirdpartystatic->LibStatut($objp->status, 3),
|
||||||
);
|
);
|
||||||
|
|
||||||
$line++;
|
$line++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($num==0)
|
if ($num==0) {
|
||||||
$this->info_box_contents[$line][0] = array(
|
$this->info_box_contents[$line][0] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text'=>$langs->trans("NoRecordedProspects"),
|
'text'=>$langs->trans("NoRecordedProspects"),
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$db->free($resql);
|
$db->free($resql);
|
||||||
} else {
|
} else {
|
||||||
@ -162,7 +163,7 @@ class box_prospect extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -190,44 +190,52 @@ class box_services_contracts extends ModeleBoxes
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => 'class="tdoverflowmax100 maxwidth100onsmartphone"',
|
$this->info_box_contents[$i][] = array(
|
||||||
|
'td' => 'class="tdoverflowmax100 maxwidth100onsmartphone"',
|
||||||
'text' => $s,
|
'text' => $s,
|
||||||
'asis' => 1
|
'asis' => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => '',
|
$this->info_box_contents[$i][] = array(
|
||||||
|
'td' => '',
|
||||||
'text' => $contractstatic->getNomUrl(1),
|
'text' => $contractstatic->getNomUrl(1),
|
||||||
'asis' => 1
|
'asis' => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => 'class="tdoverflowmax100 maxwidth100onsmartphone"',
|
$this->info_box_contents[$i][] = array(
|
||||||
|
'td' => 'class="tdoverflowmax100 maxwidth100onsmartphone"',
|
||||||
'text' => $thirdpartytmp->getNomUrl(1),
|
'text' => $thirdpartytmp->getNomUrl(1),
|
||||||
'asis' => 1
|
'asis' => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => '',
|
$this->info_box_contents[$i][] = array(
|
||||||
'text' => dol_print_date($datem, 'day'));
|
'td' => '',
|
||||||
|
'text' => dol_print_date($datem, 'day'),
|
||||||
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => 'align="right" width="18"',
|
$this->info_box_contents[$i][] = array(
|
||||||
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $contratlignestatic->LibStatut($objp->statut, 3)
|
'text' => $contratlignestatic->LibStatut($objp->statut, 3)
|
||||||
);
|
);
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
if ($num==0) $this->info_box_contents[$i][0] = array('td' => 'align="center"','text'=>$langs->trans("NoContractedProducts"));
|
if ($num==0) $this->info_box_contents[$i][0] = array('td' => 'class="center"','text'=>$langs->trans("NoContractedProducts"));
|
||||||
|
|
||||||
$db->free($result);
|
$db->free($result);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][0] = array( 'td' => '',
|
$this->info_box_contents[0][0] = array(
|
||||||
|
'td' => '',
|
||||||
'maxlength' => 500,
|
'maxlength' => 500,
|
||||||
'text' => ($db->error().' sql='.$sql));
|
'text' => ($db->error().' sql='.$sql),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -132,22 +132,28 @@ class box_services_expired extends ModeleBoxes
|
|||||||
$dateline=$db->jdate($objp->date_line);
|
$dateline=$db->jdate($objp->date_line);
|
||||||
if (($dateline + $conf->contrat->services->expires->warning_delay) < $now) $late=img_warning($langs->trans("Late"));
|
if (($dateline + $conf->contrat->services->expires->warning_delay) < $now) $late=img_warning($langs->trans("Late"));
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => '',
|
$this->info_box_contents[$i][] = array(
|
||||||
|
'td' => '',
|
||||||
'text' => $contract->getNomUrl(1),
|
'text' => $contract->getNomUrl(1),
|
||||||
'asis' => 1
|
'asis' => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => 'class="tdoverflowmax150 maxwidth150onsmartphone" align="left"',
|
$this->info_box_contents[$i][] = array(
|
||||||
|
'td' => 'class="tdoverflowmax150 maxwidth150onsmartphone left"',
|
||||||
'text' => $thirdpartytmp->getNomUrl(1, 'customer'),
|
'text' => $thirdpartytmp->getNomUrl(1, 'customer'),
|
||||||
'asis' => 1
|
'asis' => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => 'align="center"',
|
$this->info_box_contents[$i][] = array(
|
||||||
|
'td' => 'class="center"',
|
||||||
'text' => dol_print_date($dateline, 'day'),
|
'text' => dol_print_date($dateline, 'day'),
|
||||||
'text2'=> $late);
|
'text2'=> $late,
|
||||||
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => 'class="right"',
|
$this->info_box_contents[$i][] = array(
|
||||||
'text' => $objp->nb_services);
|
'td' => 'class="right"',
|
||||||
|
'text' => $objp->nb_services,
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
@ -156,22 +162,27 @@ class box_services_expired extends ModeleBoxes
|
|||||||
if ($num==0)
|
if ($num==0)
|
||||||
{
|
{
|
||||||
$langs->load("contracts");
|
$langs->load("contracts");
|
||||||
$this->info_box_contents[$i][] = array('td' => 'align="center" class="nohover opacitymedium"','text'=>$langs->trans("NoExpiredServices"));
|
$this->info_box_contents[$i][] = array(
|
||||||
|
'td' => 'class="nohover opacitymedium center"',
|
||||||
|
'text' => $langs->trans("NoExpiredServices"),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$db->free($resql);
|
$db->free($resql);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][] = array( 'td' => '',
|
$this->info_box_contents[0][] = array(
|
||||||
|
'td' => '',
|
||||||
'maxlength'=>500,
|
'maxlength'=>500,
|
||||||
'text' => ($db->error().' sql='.$sql));
|
'text' => ($db->error().' sql='.$sql),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][0] = array(
|
$this->info_box_contents[0][0] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,7 +145,7 @@ class box_supplier_orders extends ModeleBoxes
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="right" width="18"',
|
'td' => 'class="right" width="18"',
|
||||||
'text' => $supplierorderstatic->LibStatut($objp->fk_statut, 3),
|
'text' => $supplierorderstatic->LibStatut($objp->fk_statut, 3),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -154,7 +154,7 @@ class box_supplier_orders extends ModeleBoxes
|
|||||||
|
|
||||||
if ($num == 0)
|
if ($num == 0)
|
||||||
$this->info_box_contents[$line][] = array(
|
$this->info_box_contents[$line][] = array(
|
||||||
'td' => 'align="center"',
|
'td' => 'class="center"',
|
||||||
'text' => $langs->trans("NoSupplierOrder"),
|
'text' => $langs->trans("NoSupplierOrder"),
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -170,7 +170,7 @@ class box_supplier_orders extends ModeleBoxes
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->info_box_contents[0][] = array(
|
$this->info_box_contents[0][] = array(
|
||||||
'td' => 'align="left" class="nohover opacitymedium"',
|
'td' => 'class="nohover opacitymedium left"',
|
||||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -125,7 +125,7 @@ class box_task extends ModeleBoxes
|
|||||||
$this->info_box_contents[$i][] = array('td' => 'class="right"', 'text' => ConvertSecondToTime($objp->durationtot, 'all', 25200, 5));
|
$this->info_box_contents[$i][] = array('td' => 'class="right"', 'text' => ConvertSecondToTime($objp->durationtot, 'all', 25200, 5));
|
||||||
$totaldurationtot += $objp->durationtot;
|
$totaldurationtot += $objp->durationtot;
|
||||||
|
|
||||||
$this->info_box_contents[$i][] = array('td' => 'align="right" width="18"', 'text' => $taskstatic->LibStatut($objp->fk_statut, 3));
|
$this->info_box_contents[$i][] = array('td' => 'class="right" width="18"', 'text' => $taskstatic->LibStatut($objp->fk_statut, 3));
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
@ -136,9 +136,9 @@ class box_task extends ModeleBoxes
|
|||||||
|
|
||||||
// Add the sum at the bottom of the boxes
|
// Add the sum at the bottom of the boxes
|
||||||
$this->info_box_contents[$i][] = array('tr' => 'class="liste_total"', 'td' => '', 'text' => $langs->trans("Total")." ".$textHead);
|
$this->info_box_contents[$i][] = array('tr' => 'class="liste_total"', 'td' => '', 'text' => $langs->trans("Total")." ".$textHead);
|
||||||
$this->info_box_contents[$i][] = array('td' => 'align="right" ', 'text' => number_format($totalnb, 0, ',', ' ')." ".$langs->trans("Tasks"));
|
$this->info_box_contents[$i][] = array('td' => 'class="right" ', 'text' => number_format($totalnb, 0, ',', ' ')." ".$langs->trans("Tasks"));
|
||||||
$this->info_box_contents[$i][] = array('td' => 'align="right" ', 'text' => ConvertSecondToTime($totalplannedtot, 'all', 25200, 5));
|
$this->info_box_contents[$i][] = array('td' => 'class="right" ', 'text' => ConvertSecondToTime($totalplannedtot, 'all', 25200, 5));
|
||||||
$this->info_box_contents[$i][] = array('td' => 'align="right" ', 'text' => ConvertSecondToTime($totaldurationtot, 'all', 25200, 5));
|
$this->info_box_contents[$i][] = array('td' => 'class="right" ', 'text' => ConvertSecondToTime($totaldurationtot, 'all', 25200, 5));
|
||||||
$this->info_box_contents[$i][] = array('td' => '', 'text' => "");
|
$this->info_box_contents[$i][] = array('td' => '', 'text' => "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
* Copyright (C) 2018-2019 Frédéric France <frederic.france@netlogic.fr>
|
||||||
* Copyright (C) ---Put here your own copyright and developer email---
|
* Copyright (C) ---Put here your own copyright and developer email---
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
@ -140,7 +140,7 @@ class mymodulewidget1 extends ModeleBoxes
|
|||||||
0 => array( // First line
|
0 => array( // First line
|
||||||
0 => array( // First Column
|
0 => array( // First Column
|
||||||
// HTML properties of the TR element. Only available on the first column.
|
// HTML properties of the TR element. Only available on the first column.
|
||||||
'tr' => 'align="left"',
|
'tr' => 'class="left"',
|
||||||
// HTML properties of the TD element
|
// HTML properties of the TD element
|
||||||
'td' => '',
|
'td' => '',
|
||||||
|
|
||||||
@ -173,21 +173,21 @@ class mymodulewidget1 extends ModeleBoxes
|
|||||||
),
|
),
|
||||||
1 => array( // Another line
|
1 => array( // Another line
|
||||||
0 => array( // TR
|
0 => array( // TR
|
||||||
'tr' => 'align="left"',
|
'tr' => 'class="left"',
|
||||||
'text' => 'Another line'
|
'text' => 'Another line'
|
||||||
),
|
),
|
||||||
1 => array( // TR
|
1 => array( // TR
|
||||||
'tr' => 'align="left"',
|
'tr' => 'class="left"',
|
||||||
'text' => ''
|
'text' => ''
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
2 => array( // Another line
|
2 => array( // Another line
|
||||||
0 => array( // TR
|
0 => array( // TR
|
||||||
'tr' => 'align="left"',
|
'tr' => 'class="left"',
|
||||||
'text' => ''
|
'text' => ''
|
||||||
),
|
),
|
||||||
0 => array( // TR
|
0 => array( // TR
|
||||||
'tr' => 'align="left"',
|
'tr' => 'class="left"',
|
||||||
'text' => ''
|
'text' => ''
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user