diff --git a/htdocs/core/boxes/box_actions.php b/htdocs/core/boxes/box_actions.php
index 89b001117ad..c38be982756 100644
--- a/htdocs/core/boxes/box_actions.php
+++ b/htdocs/core/boxes/box_actions.php
@@ -41,7 +41,7 @@ class box_actions extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $info_box_head = array();
@@ -141,7 +141,7 @@ class box_actions extends ModeleBoxes
);
$this->info_box_contents[$line][] = array(
- 'td' => 'align="left" class="nowrap"',
+ 'td' => 'class="nowrap left"',
'text' => dol_print_date($datelimite, "dayhour"),
);
@@ -151,7 +151,7 @@ class box_actions extends ModeleBoxes
);
$this->info_box_contents[$line][] = array(
- 'td' => 'align="right" width="18"',
+ 'td' => 'class="right" width="18"',
'text' => $actionstatic->LibStatut($objp->percentage, 3),
);
@@ -160,7 +160,7 @@ class box_actions extends ModeleBoxes
if ($num==0)
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="center"',
+ 'td' => 'class="center"',
'text'=>$langs->trans("NoActionsToDo"),
);
@@ -174,7 +174,7 @@ class box_actions extends ModeleBoxes
}
} else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
@@ -183,7 +183,7 @@ class box_actions extends ModeleBoxes
/**
* Method to show box
*
- * @param array $head Array with properties of box title
+ * @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @param int $nooutput No print, only return string
* @return string
@@ -220,13 +220,13 @@ class box_actions extends ModeleBoxes
$dateligne=$contents[$line][4]['text'];
$percentage=$contents[$line][5]['text'];
$out.= '
';
- $out.= '| ';
+ $out.= ' | ';
$out.= img_object("", $logo);
$out.= ' | ';
- $out.= ''.$label.' | ';
- $out.= ''.img_object("", $logosoc)." ".$nomsoc.' | ';
- $out.= ''.$dateligne.' | ';
- $out.= ''.$percentage.' | ';
+ $out.= ''.$label.' | ';
+ $out.= ''.img_object("", $logosoc)." ".$nomsoc.' | ';
+ $out.= ''.$dateligne.' | ';
+ $out.= ''.$percentage.' | ';
$out.= '
';
}
}
diff --git a/htdocs/core/boxes/box_activity.php b/htdocs/core/boxes/box_activity.php
index 0b51d6bda38..44ca6cbf9e3 100644
--- a/htdocs/core/boxes/box_activity.php
+++ b/htdocs/core/boxes/box_activity.php
@@ -39,7 +39,7 @@ class box_activity extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $enabled = 1;
@@ -153,32 +153,32 @@ class box_activity extends ModeleBoxes
while ($j < count($data))
{
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="left" width="16"',
- '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),
- 'logo' => 'object_propal'
+ 'td' => 'class="left" width="16"',
+ '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),
+ 'logo' => 'object_propal'
);
$this->info_box_contents[$line][1] = array(
- 'td' => '',
- 'text' => $langs->trans("Proposals")." ".$propalstatic->LibStatut($data[$j]->fk_statut, 0),
+ 'td' => '',
+ 'text' => $langs->trans("Proposals")." ".$propalstatic->LibStatut($data[$j]->fk_statut, 0),
);
$this->info_box_contents[$line][2] = array(
- 'td' => 'class="right"',
- 'text' => $data[$j]->nb,
- 'tooltip' => $langs->trans("Proposals")." ".$propalstatic->LibStatut($data[$j]->fk_statut, 0),
- 'url' => DOL_URL_ROOT."/comm/propal/list.php?mainmenu=commercial&leftmenu=propals&viewstatut=".$data[$j]->fk_statut,
+ 'td' => 'class="right"',
+ 'text' => $data[$j]->nb,
+ 'tooltip' => $langs->trans("Proposals")." ".$propalstatic->LibStatut($data[$j]->fk_statut, 0),
+ 'url' => DOL_URL_ROOT."/comm/propal/list.php?mainmenu=commercial&leftmenu=propals&viewstatut=".$data[$j]->fk_statut,
);
$totalnb += $data[$j]->nb;
$this->info_box_contents[$line][3] = array(
- 'td' => 'class="right"',
- 'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency),
+ 'td' => 'class="right"',
+ 'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency),
);
$this->info_box_contents[$line][4] = array(
- 'td' => 'align="right" width="18"',
- 'text' => $propalstatic->LibStatut($data[$j]->fk_statut, 3),
+ 'td' => 'class="right" width="18"',
+ 'text' => $propalstatic->LibStatut($data[$j]->fk_statut, 3),
);
$line++;
@@ -236,7 +236,7 @@ class box_activity extends ModeleBoxes
$j=0;
while ($j < count($data)) {
$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,
'tooltip' => $langs->trans("Orders")." ".$commandestatic->LibStatut($data[$j]->fk_statut, 0, 0),
'logo' => 'object_order',
@@ -260,7 +260,7 @@ class box_activity extends ModeleBoxes
'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency),
);
$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),
);
@@ -321,43 +321,43 @@ class box_activity extends ModeleBoxes
while ($j < count($data)) {
$billurl="search_status=2&paye=1&year=".$data[$j]->annee;
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="left" width="16"',
- '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",
- 'logo' => 'bill',
+ 'td' => 'class="left" width="16"',
+ '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",
+ 'logo' => 'bill',
);
$this->info_box_contents[$line][1] = array(
- 'td' => '',
- 'text' => $langs->trans("Bills")." ".$facturestatic->LibStatut(1, $data[$j]->fk_statut, 0)." ".$data[$j]->annee,
+ 'td' => '',
+ 'text' => $langs->trans("Bills")." ".$facturestatic->LibStatut(1, $data[$j]->fk_statut, 0)." ".$data[$j]->annee,
);
$this->info_box_contents[$line][2] = array(
- 'td' => 'class="right"',
- 'tooltip' => $langs->trans('Bills').' '.$facturestatic->LibStatut(1, $data[$j]->fk_statut, 0),
- 'text' => $data[$j]->nb,
- 'url' => DOL_URL_ROOT."/compta/facture/list.php?".$billurl."&mainmenu=accountancy&leftmenu=customers_bills",
+ 'td' => 'class="right"',
+ 'tooltip' => $langs->trans('Bills').' '.$facturestatic->LibStatut(1, $data[$j]->fk_statut, 0),
+ 'text' => $data[$j]->nb,
+ 'url' => DOL_URL_ROOT."/compta/facture/list.php?".$billurl."&mainmenu=accountancy&leftmenu=customers_bills",
);
$this->info_box_contents[$line][3] = array(
- 'td' => 'class="right"',
- 'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency)
+ 'td' => 'class="right"',
+ 'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency)
);
// We add only for the current year
$totalnb += $data[$j]->nb;
$this->info_box_contents[$line][4] = array(
- 'td' => 'align="right" width="18"',
- 'text' => $facturestatic->LibStatut(1, $data[$j]->fk_statut, 3),
+ 'td' => 'class="right" width="18"',
+ 'text' => $facturestatic->LibStatut(1, $data[$j]->fk_statut, 3),
);
$line++;
$j++;
}
if (count($data)==0)
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="center"',
- 'text'=>$langs->trans("NoRecordedInvoices"),
+ 'td' => 'class="center"',
+ 'text'=>$langs->trans("NoRecordedInvoices"),
);
}
@@ -403,49 +403,50 @@ class box_activity extends ModeleBoxes
while ($j < count($data)) {
$billurl="search_status=".$data[$j]->fk_statut."&paye=0";
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="left" width="16"',
- '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",
- 'logo' => 'bill',
+ 'td' => 'class="left" width="16"',
+ '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",
+ 'logo' => 'bill',
);
$this->info_box_contents[$line][1] = array(
- 'td' => '',
- 'text' => $langs->trans("Bills")." ".$facturestatic->LibStatut(0, $data[$j]->fk_statut, 0),
+ 'td' => '',
+ 'text' => $langs->trans("Bills")." ".$facturestatic->LibStatut(0, $data[$j]->fk_statut, 0),
);
$this->info_box_contents[$line][2] = array(
- 'td' => 'class="right"',
- 'text' => $data[$j]->nb,
- '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",
+ 'td' => 'class="right"',
+ 'text' => $data[$j]->nb,
+ '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",
);
$totalnb += $data[$j]->nb;
$this->info_box_contents[$line][3] = array(
- 'td' => 'class="right"',
- 'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency),
+ 'td' => 'class="right"',
+ 'text' => price($data[$j]->Mnttot, 1, $langs, 0, 0, -1, $conf->currency),
);
$this->info_box_contents[$line][4] = array(
- 'td' => 'align="right" width="18"',
- 'text' => $facturestatic->LibStatut(0, $data[$j]->fk_statut, 3, $alreadypaid),
+ 'td' => 'class="right" width="18"',
+ 'text' => $facturestatic->LibStatut(0, $data[$j]->fk_statut, 3, $alreadypaid),
);
$line++;
$j++;
}
- if ($num==0)
+ if ($num==0) {
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="center"',
- 'text'=>$langs->trans("NoRecordedInvoices"),
- );
+ 'td' => 'class="center"',
+ 'text'=>$langs->trans("NoRecordedInvoices"),
+ );
+ }
}
}
// 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][1] = array('td' => 'align="left" class="liste_total" ', '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][3] = array('td' => 'align="right" class="liste_total" ', 'text' => '');
- $this->info_box_contents[$line][4] = array('td' => 'align="right" class="liste_total" ', 'text' => "");
+ $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' => 'class="liste_total right" ', 'text' => $totalnb);
+ $this->info_box_contents[$line][3] = array('td' => 'class="liste_total right" ', 'text' => '');
+ $this->info_box_contents[$line][4] = array('td' => 'class="liste_total right" ', 'text' => "");
}
diff --git a/htdocs/core/boxes/box_bookmarks.php b/htdocs/core/boxes/box_bookmarks.php
index b228780aff0..08d10e7c6d5 100644
--- a/htdocs/core/boxes/box_bookmarks.php
+++ b/htdocs/core/boxes/box_bookmarks.php
@@ -37,7 +37,7 @@ class box_bookmarks extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $info_box_head = array();
@@ -106,7 +106,7 @@ class box_bookmarks extends ModeleBoxes
$objp = $db->fetch_object($result);
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="left" width="16"',
+ 'td' => 'class="left" width="16"',
'logo' => $this->boximg,
'url' => $objp->url,
'tooltip' => $objp->title,
@@ -127,7 +127,7 @@ class box_bookmarks extends ModeleBoxes
$mytxt=$langs->trans("NoRecordedBookmarks");
if ($user->rights->bookmark->creer) $mytxt.=' '.$langs->trans("ClickToAdd");
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="center" colspan="2"',
+ 'td' => 'class="center" colspan="2"',
'tooltip' => $mytxt,
'url'=> DOL_URL_ROOT.'/bookmarks/list.php', 'text'=>$mytxt,
);
@@ -143,7 +143,7 @@ class box_bookmarks extends ModeleBoxes
}
} else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_clients.php b/htdocs/core/boxes/box_clients.php
index 873e81747e9..87378de74b3 100644
--- a/htdocs/core/boxes/box_clients.php
+++ b/htdocs/core/boxes/box_clients.php
@@ -41,7 +41,7 @@ class box_clients extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $enabled = 1;
var $info_box_head = array();
@@ -140,26 +140,28 @@ class box_clients extends ModeleBoxes
);
$this->info_box_contents[$line][] = array(
- 'td' => 'align="right" width="18"',
+ 'td' => 'class="right" width="18"',
'text' => $thirdpartystatic->LibStatut($objp->status, 3)
);
$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);
}
else {
- $this->info_box_contents[0][0] = array( 'td' => '',
- 'maxlength'=>500,
- 'text' => ($db->error().' sql='.$sql));
+ $this->info_box_contents[0][0] = array(
+ 'td' => '',
+ 'maxlength'=>500,
+ 'text' => ($db->error().' sql='.$sql)
+ );
}
}
else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_commandes.php b/htdocs/core/boxes/box_commandes.php
index 8b3e647942c..3769a39faaf 100644
--- a/htdocs/core/boxes/box_commandes.php
+++ b/htdocs/core/boxes/box_commandes.php
@@ -41,7 +41,7 @@ class box_commandes extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $info_box_head = array();
@@ -165,14 +165,14 @@ class box_commandes extends ModeleBoxes
);
$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),
);
$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);
} else {
@@ -184,7 +184,7 @@ class box_commandes extends ModeleBoxes
}
} else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_comptes.php b/htdocs/core/boxes/box_comptes.php
index c24fc6add1b..7fafcb3bd10 100644
--- a/htdocs/core/boxes/box_comptes.php
+++ b/htdocs/core/boxes/box_comptes.php
@@ -42,7 +42,7 @@ class box_comptes extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $enabled = 1;
@@ -145,16 +145,16 @@ class box_comptes extends ModeleBoxes
foreach ($solde_total as $key=>$solde) {
$this->info_box_contents[$line][] = array(
'tr' => 'class="liste_total"',
- 'td' => 'align="left" class="liste_total"',
+ 'td' => 'class="liste_total left"',
'text' => $langs->trans('Total').' '.$key,
);
$this->info_box_contents[$line][] = array(
- 'td' => 'align="right" class="liste_total"',
+ 'td' => 'class="liste_total right"',
'text' => ' '
);
$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)
);
$line++;
@@ -170,7 +170,7 @@ class box_comptes extends ModeleBoxes
}
} else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_contacts.php b/htdocs/core/boxes/box_contacts.php
index 578940576d9..8fdd5483975 100644
--- a/htdocs/core/boxes/box_contacts.php
+++ b/htdocs/core/boxes/box_contacts.php
@@ -43,7 +43,7 @@ class box_contacts extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $info_box_head = array();
@@ -147,7 +147,7 @@ class box_contacts extends ModeleBoxes
);
$this->info_box_contents[$line][] = array(
- 'td' => 'align="right" class="nowrap" width="18"',
+ 'td' => 'class="nowrap right" width="18"',
'text' => $contactstatic->getLibStatut(3),
'asis'=>1,
);
@@ -157,7 +157,7 @@ class box_contacts extends ModeleBoxes
if ($num==0)
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="center"',
+ 'td' => 'class="center"',
'text'=>$langs->trans("NoRecordedContacts"),
);
@@ -171,7 +171,7 @@ class box_contacts extends ModeleBoxes
}
} else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_contracts.php b/htdocs/core/boxes/box_contracts.php
index 6787203100f..a58081dffcf 100644
--- a/htdocs/core/boxes/box_contracts.php
+++ b/htdocs/core/boxes/box_contracts.php
@@ -161,7 +161,7 @@ class box_contracts extends ModeleBoxes
if ($num==0)
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="center opacitymedium"',
+ 'td' => 'class="center opacitymedium"',
'text'=>$langs->trans("NoRecordedContracts"),
);
@@ -175,7 +175,7 @@ class box_contracts extends ModeleBoxes
}
} else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_external_rss.php b/htdocs/core/boxes/box_external_rss.php
index 9d7b8d44b8a..38f865279e3 100644
--- a/htdocs/core/boxes/box_external_rss.php
+++ b/htdocs/core/boxes/box_external_rss.php
@@ -43,7 +43,7 @@ class box_external_rss extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $paramdef; // Params of box definition (not user params)
var $info_box_head = array();
@@ -111,7 +111,7 @@ class box_external_rss extends ModeleBoxes
'sublink' => $link,
'subtext'=>$langs->trans("LastRefreshDate").': '.($rssparser->getLastFetchDate()?dol_print_date($rssparser->getLastFetchDate(), "dayhourtext"):$langs->trans("Unknown")),
'subpicto'=>'help',
- 'target'=>'_blank',
+ 'target'=>'_blank',
);
}
@@ -163,7 +163,7 @@ class box_external_rss extends ModeleBoxes
$tooltip.= '
'.$description;
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="left" width="16"',
+ 'td' => 'class="left" width="16"',
'logo' => $this->boximg,
'url' => $href,
'tooltip' => $tooltip,
@@ -180,7 +180,7 @@ class box_external_rss extends ModeleBoxes
);
$this->info_box_contents[$line][2] = array(
- 'td' => 'align="right" nowrap="1"',
+ 'td' => 'class="right nowrap"',
'text' => $date,
);
}
diff --git a/htdocs/core/boxes/box_factures.php b/htdocs/core/boxes/box_factures.php
index 9a344dec2fc..c78837cc3ac 100644
--- a/htdocs/core/boxes/box_factures.php
+++ b/htdocs/core/boxes/box_factures.php
@@ -39,7 +39,7 @@ class box_factures extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $info_box_head = array();
@@ -83,8 +83,8 @@ class box_factures extends ModeleBoxes
$text = $langs->trans("BoxTitleLast".($conf->global->MAIN_LASTBOX_ON_OBJECT_DATE?"":"Modified")."CustomerBills", $max);
$this->info_box_head = array(
- 'text' => $text,
- 'limit'=> dol_strlen($text)
+ 'text' => $text,
+ 'limit'=> dol_strlen($text)
);
if ($user->rights->facture->lire) {
@@ -172,7 +172,7 @@ class box_factures extends ModeleBoxes
);
$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),
);
@@ -181,7 +181,7 @@ class box_factures extends ModeleBoxes
if ($num==0)
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="center"',
+ 'td' => 'class="center"',
'text'=>$langs->trans("NoRecordedInvoices"),
);
@@ -195,7 +195,7 @@ class box_factures extends ModeleBoxes
}
} else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_factures_fourn.php b/htdocs/core/boxes/box_factures_fourn.php
index 084cb6960b7..1f3c0a4c7df 100644
--- a/htdocs/core/boxes/box_factures_fourn.php
+++ b/htdocs/core/boxes/box_factures_fourn.php
@@ -40,7 +40,7 @@ class box_factures_fourn extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $info_box_head = array();
@@ -81,7 +81,7 @@ class box_factures_fourn extends ModeleBoxes
$thirdpartytmp = new Fournisseur($db);
$this->info_box_head = array(
- 'text' => $langs->trans("BoxTitleLast".($conf->global->MAIN_LASTBOX_ON_OBJECT_DATE?"":"Modified")."SupplierBills", $max)
+ 'text' => $langs->trans("BoxTitleLast".($conf->global->MAIN_LASTBOX_ON_OBJECT_DATE?"":"Modified")."SupplierBills", $max)
);
if ($user->rights->fournisseur->facture->lire)
@@ -177,7 +177,7 @@ class box_factures_fourn extends ModeleBoxes
$fac->fetch($objp->facid);
$alreadypaid=$fac->getSommePaiement();
$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),
);
@@ -186,7 +186,7 @@ class box_factures_fourn extends ModeleBoxes
if ($num==0)
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="center"',
+ 'td' => 'class="center"',
'text'=>$langs->trans("NoModifiedSupplierBills"),
);
@@ -200,7 +200,7 @@ class box_factures_fourn extends ModeleBoxes
}
} else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->transnoentities("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_factures_fourn_imp.php b/htdocs/core/boxes/box_factures_fourn_imp.php
index 031a495d714..b6fea0f450a 100644
--- a/htdocs/core/boxes/box_factures_fourn_imp.php
+++ b/htdocs/core/boxes/box_factures_fourn_imp.php
@@ -39,7 +39,7 @@ class box_factures_fourn_imp extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $info_box_head = array();
@@ -164,7 +164,7 @@ class box_factures_fourn_imp extends ModeleBoxes
$fac->fetch($objp->facid);
$alreadypaid=$fac->getSommePaiement();
$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),
);
@@ -173,7 +173,7 @@ class box_factures_fourn_imp extends ModeleBoxes
if ($num==0)
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="center"',
+ 'td' => 'class="center"',
'text'=>$langs->trans("NoUnpaidSupplierBills"),
);
@@ -187,7 +187,7 @@ class box_factures_fourn_imp extends ModeleBoxes
}
} else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
@@ -196,7 +196,7 @@ class box_factures_fourn_imp extends ModeleBoxes
/**
* Method to show box
*
- * @param array $head Array with properties of box title
+ * @param array $head Array with properties of box title
* @param array $contents Array with properties of box lines
* @param int $nooutput No print, only return string
* @return string
diff --git a/htdocs/core/boxes/box_factures_imp.php b/htdocs/core/boxes/box_factures_imp.php
index 168d10ad612..d76477dc356 100644
--- a/htdocs/core/boxes/box_factures_imp.php
+++ b/htdocs/core/boxes/box_factures_imp.php
@@ -42,7 +42,7 @@ class box_factures_imp extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $info_box_head = array();
@@ -171,14 +171,14 @@ class box_factures_imp extends ModeleBoxes
);
$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),
);
$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);
}
@@ -193,7 +193,7 @@ class box_factures_imp extends ModeleBoxes
}
else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_ficheinter.php b/htdocs/core/boxes/box_ficheinter.php
index 9eb7f56097f..8dcd81c1aab 100644
--- a/htdocs/core/boxes/box_ficheinter.php
+++ b/htdocs/core/boxes/box_ficheinter.php
@@ -40,7 +40,7 @@ class box_ficheinter extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $info_box_head = array();
@@ -114,45 +114,55 @@ class box_ficheinter extends ModeleBoxes
$ficheinterstatic->id=$objp->rowid;
$ficheinterstatic->ref=$objp->ref;
- $this->info_box_contents[$i][] = array('td' => '',
- 'text' => $ficheinterstatic->getNomUrl(1),
- 'asis' => 1
+ $this->info_box_contents[$i][] = array(
+ 'td' => '',
+ 'text' => $ficheinterstatic->getNomUrl(1),
+ 'asis' => 1,
);
- $this->info_box_contents[$i][] = array('td' => 'align="left" width="16"',
- 'logo' => 'company',
- 'url' => DOL_URL_ROOT."/comm/card.php?socid=".$objp->socid);
+ $this->info_box_contents[$i][] = array(
+ 'td' => 'class="left" width="16"',
+ 'logo' => 'company',
+ 'url' => DOL_URL_ROOT."/comm/card.php?socid=".$objp->socid,
+ );
- $this->info_box_contents[$i][] = array('td' => '',
- 'text' => dol_trunc($objp->name, 40),
- 'url' => DOL_URL_ROOT."/comm/card.php?socid=".$objp->socid);
+ $this->info_box_contents[$i][] = array(
+ 'td' => '',
+ 'text' => dol_trunc($objp->name, 40),
+ 'url' => DOL_URL_ROOT."/comm/card.php?socid=".$objp->socid,
+ );
- $this->info_box_contents[$i][] = array('td' => 'class="right"',
- 'text' => dol_print_date($datec, 'day'));
+ $this->info_box_contents[$i][] = array(
+ 'td' => 'class="right"',
+ 'text' => dol_print_date($datec, 'day'),
+ );
- $this->info_box_contents[$i][] = array('td' => 'align="right" class="nowrap"',
- 'text' => $ficheinterstatic->getLibStatut(6),
- 'asis'=>1
+ $this->info_box_contents[$i][] = array(
+ 'td' => 'class="nowrap right"',
+ 'text' => $ficheinterstatic->getLibStatut(6),
+ 'asis' => 1,
);
$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);
}
else
{
- $this->info_box_contents[0][] = array( 'td' => '',
- 'maxlength'=>500,
- 'text' => ($db->error().' sql='.$sql));
+ $this->info_box_contents[0][] = array(
+ 'td' => '',
+ 'maxlength'=>500,
+ 'text' => ($db->error().' sql='.$sql),
+ );
}
}
else
{
$this->info_box_contents[0][] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_fournisseurs.php b/htdocs/core/boxes/box_fournisseurs.php
index 2335bab9a10..7cbefce2e32 100644
--- a/htdocs/core/boxes/box_fournisseurs.php
+++ b/htdocs/core/boxes/box_fournisseurs.php
@@ -40,7 +40,7 @@ class box_fournisseurs extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $info_box_head = array();
@@ -124,7 +124,7 @@ class box_fournisseurs extends ModeleBoxes
);
$this->info_box_contents[$line][] = array(
- 'td' => 'align="right" width="18"',
+ 'td' => 'class="right" width="18"',
'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(
- 'td' => 'align="center"',
+ 'td' => 'class="center"',
'text'=>$langs->trans("NoRecordedSuppliers"),
);
@@ -146,7 +146,7 @@ class box_fournisseurs extends ModeleBoxes
}
} else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_goodcustomers.php b/htdocs/core/boxes/box_goodcustomers.php
index 6fad9ed8cb6..5d8b9f736f5 100644
--- a/htdocs/core/boxes/box_goodcustomers.php
+++ b/htdocs/core/boxes/box_goodcustomers.php
@@ -42,7 +42,7 @@ class box_goodcustomers extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $enabled = 1;
var $info_box_head = array();
@@ -136,26 +136,28 @@ class box_goodcustomers extends ModeleBoxes
);
$this->info_box_contents[$line][] = array(
- 'td' => 'align="right" width="18"',
+ 'td' => 'class="right" width="18"',
'text' => $thirdpartystatic->LibStatut($objp->status, 3)
);
$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);
}
else {
- $this->info_box_contents[0][0] = array( 'td' => '',
- 'maxlength'=>500,
- 'text' => ($db->error().' sql='.$sql));
+ $this->info_box_contents[0][0] = array(
+ 'td' => '',
+ 'maxlength'=>500,
+ 'text' => ($db->error().' sql='.$sql),
+ );
}
}
else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_graph_invoices_permonth.php b/htdocs/core/boxes/box_graph_invoices_permonth.php
index 39b806e3ee3..e663c408281 100644
--- a/htdocs/core/boxes/box_graph_invoices_permonth.php
+++ b/htdocs/core/boxes/box_graph_invoices_permonth.php
@@ -252,16 +252,16 @@ class box_graph_invoices_permonth extends ModeleBoxes
$stringtoshow.='';
$stringtoshow.='';
}
- $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
{
- $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 {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_graph_invoices_supplier_permonth.php b/htdocs/core/boxes/box_graph_invoices_supplier_permonth.php
index a97368b1b4c..b8f020b4db7 100644
--- a/htdocs/core/boxes/box_graph_invoices_supplier_permonth.php
+++ b/htdocs/core/boxes/box_graph_invoices_supplier_permonth.php
@@ -249,18 +249,21 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
$stringtoshow.='';
$stringtoshow.='';
}
- $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
{
- $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 {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_graph_orders_permonth.php b/htdocs/core/boxes/box_graph_orders_permonth.php
index 9a137765708..98329df8379 100644
--- a/htdocs/core/boxes/box_graph_orders_permonth.php
+++ b/htdocs/core/boxes/box_graph_orders_permonth.php
@@ -248,18 +248,25 @@ class box_graph_orders_permonth extends ModeleBoxes
$stringtoshow.='';
$stringtoshow.='';
}
- $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
{
- $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 {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_graph_orders_supplier_permonth.php b/htdocs/core/boxes/box_graph_orders_supplier_permonth.php
index 5528af35c2f..9f7a457e238 100644
--- a/htdocs/core/boxes/box_graph_orders_supplier_permonth.php
+++ b/htdocs/core/boxes/box_graph_orders_supplier_permonth.php
@@ -247,18 +247,25 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
$stringtoshow.='';
$stringtoshow.='';
}
- $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
{
- $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 {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_graph_product_distribution.php b/htdocs/core/boxes/box_graph_product_distribution.php
index 0f3138e7cd7..e5ecb232ac1 100644
--- a/htdocs/core/boxes/box_graph_product_distribution.php
+++ b/htdocs/core/boxes/box_graph_product_distribution.php
@@ -38,7 +38,7 @@ class box_graph_product_distribution extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $info_box_head = array();
@@ -392,12 +392,16 @@ class box_graph_product_distribution extends ModeleBoxes
$stringtoshow.=$px3->show();
$stringtoshow.='';
}
- $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
{
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'maxlength'=>500,
'text' => $mesg
);
diff --git a/htdocs/core/boxes/box_graph_propales_permonth.php b/htdocs/core/boxes/box_graph_propales_permonth.php
index 975775df7ce..b27229107e0 100644
--- a/htdocs/core/boxes/box_graph_propales_permonth.php
+++ b/htdocs/core/boxes/box_graph_propales_permonth.php
@@ -251,18 +251,25 @@ class box_graph_propales_permonth extends ModeleBoxes
$stringtoshow.='';
$stringtoshow.='';
}
- $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
{
- $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 {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_last_modified_ticket.php b/htdocs/core/boxes/box_last_modified_ticket.php
index 34281d13c82..a0e0d55ebb1 100644
--- a/htdocs/core/boxes/box_last_modified_ticket.php
+++ b/htdocs/core/boxes/box_last_modified_ticket.php
@@ -1,7 +1,8 @@
- * 2016 Christophe Battarel
+ * Copyright (C) 2013-2016 Jean-François FERRY
+ * 2016 Christophe Battarel
+ * Copyright (C) 2019 Frédéric France
*
* 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
@@ -34,12 +35,12 @@ class box_last_modified_ticket extends ModeleBoxes
public $boximg = "ticket";
public $boxlabel;
public $depends = array("ticket");
-
+
/**
* @var DoliDB Database handler.
*/
public $db;
-
+
public $param;
public $info_box_head = array();
public $info_box_contents = array();
@@ -75,8 +76,10 @@ class box_last_modified_ticket extends ModeleBoxes
'limit' => dol_strlen($text)
);
- $this->info_box_contents[0][0] = array('td' => 'align="left"',
- 'text' => $langs->trans("BoxLastModifiedTicketContent"));
+ $this->info_box_contents[0][0] = array(
+ 'td' => 'class="left"',
+ 'text' => $langs->trans("BoxLastModifiedTicketContent"),
+ );
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 ";
@@ -119,39 +122,42 @@ class box_last_modified_ticket extends ModeleBoxes
// Picto
$this->info_box_contents[$i][0] = array(
- 'td' => 'align="left" width="16"',
- 'logo' => $this->boximg,
- 'url' => dol_buildpath("/ticket/card.php?track_id=".$objp->track_id, 1));
+ 'td' => 'class="left" width="16"',
+ 'logo' => $this->boximg,
+ 'url' => dol_buildpath("/ticket/card.php?track_id=".$objp->track_id, 1),
+ );
$r++;
// Id
$this->info_box_contents[$i][$r] = array(
- 'td' => 'align="left"',
- 'text' => $objp->ref,
- 'url' => dol_buildpath("/ticket/card.php?track_id=".$objp->track_id, 1));
+ 'td' => 'class="left"',
+ 'text' => $objp->ref,
+ 'url' => dol_buildpath("/ticket/card.php?track_id=".$objp->track_id, 1),
+ );
$r++;
// Subject
$this->info_box_contents[$i][$r] = array(
- 'td' => 'align="left"',
- 'text' => $objp->subject, // Some event have no ref
- 'url' => dol_buildpath("/ticket/card.php?track_id=".$objp->track_id, 1));
+ 'td' => 'class="left"',
+ 'text' => $objp->subject, // Some event have no ref
+ 'url' => dol_buildpath("/ticket/card.php?track_id=".$objp->track_id, 1),
+ );
$r++;
// Customer
$this->info_box_contents[$i][$r] = array(
- 'td' => 'align="left"',
- 'logo' => ($objp->fk_soc>0?'company':''),
- '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:'')
+ 'td' => 'class="left"',
+ 'logo' => ($objp->fk_soc>0?'company':''),
+ '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:'')
);
$r++;
// Date creation
$this->info_box_contents[$i][$r] = array(
- 'td' => 'align="right"',
- 'text' => dol_print_date($db->idate($objp->datec), 'dayhour')
+ 'td' => 'class="right"',
+ 'text' => dol_print_date($db->idate($objp->datec), 'dayhour')
);
$r++;
@@ -159,8 +165,8 @@ class box_last_modified_ticket extends ModeleBoxes
$ticketstat = new Ticket($this->db);
$ticketstat->fk_statut = $objp->fk_statut;
$this->info_box_contents[$i][$r] = array(
- 'td' => 'align="right"',
- 'text' => $ticketstat->getLibStatut(3)
+ 'td' => 'class="right"',
+ 'text' => $ticketstat->getLibStatut(3)
);
$r++;
@@ -168,14 +174,16 @@ class box_last_modified_ticket extends ModeleBoxes
}
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 {
dol_print_error($db);
}
} else {
- $this->info_box_contents[0][0] = array('td' => 'align="left"',
- 'text' => $langs->trans("ReadPermissionNotAllowed"));
+ $this->info_box_contents[0][0] = array(
+ 'td' => 'class="left"',
+ 'text' => $langs->trans("ReadPermissionNotAllowed"),
+ );
}
}
diff --git a/htdocs/core/boxes/box_last_ticket.php b/htdocs/core/boxes/box_last_ticket.php
index a1a52c3070d..45a4b5e8f02 100644
--- a/htdocs/core/boxes/box_last_ticket.php
+++ b/htdocs/core/boxes/box_last_ticket.php
@@ -34,12 +34,12 @@ class box_last_ticket extends ModeleBoxes
public $boximg = "ticket";
public $boxlabel;
public $depends = array("ticket");
-
+
/**
* @var DoliDB Database handler.
*/
public $db;
-
+
public $param;
public $info_box_head = array();
public $info_box_contents = array();
@@ -75,8 +75,10 @@ class box_last_ticket extends ModeleBoxes
'limit' => dol_strlen($text),
);
- $this->info_box_contents[0][0] = array('td' => 'align="left"',
- 'text' => $langs->trans("BoxLastTicketContent"));
+ $this->info_box_contents[0][0] = array(
+ 'td' => 'class="left"',
+ 'text' => $langs->trans("BoxLastTicketContent"),
+ );
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 ";
@@ -120,28 +122,31 @@ class box_last_ticket extends ModeleBoxes
// Picto
$this->info_box_contents[$i][0] = array(
- 'td' => 'align="left" width="16"',
+ 'td' => 'class="left" width="16"',
'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++;
// Id
$this->info_box_contents[$i][$r] = array(
- 'td' => 'align="left"',
+ 'td' => 'class="left"',
'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++;
// Subject
$this->info_box_contents[$i][$r] = array(
- 'td' => 'align="left"',
+ 'td' => 'class="left"',
'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++;
// Customer
$this->info_box_contents[$i][$r] = array(
- 'td' => 'align="left"',
+ 'td' => 'class="left"',
'logo' => ($objp->fk_soc > 0 ? 'company' : ''),
'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 : ''),
@@ -150,7 +155,7 @@ class box_last_ticket extends ModeleBoxes
// Date creation
$this->info_box_contents[$i][$r] = array(
- 'td' => 'align="right"',
+ 'td' => 'class="right"',
'text' => dol_print_date($db->idate($objp->datec), 'dayhour'),
);
$r++;
@@ -159,7 +164,7 @@ class box_last_ticket extends ModeleBoxes
$ticketstat = new Ticket($this->db);
$ticketstat->fk_statut = $objp->fk_statut;
$this->info_box_contents[$i][$r] = array(
- 'td' => 'align="right"',
+ 'td' => 'class="right"',
'text' => $ticketstat->getLibStatut(3),
);
$r++;
@@ -168,13 +173,13 @@ class box_last_ticket extends ModeleBoxes
}
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 {
dol_print_error($db);
}
} 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"));
}
}
diff --git a/htdocs/core/boxes/box_members.php b/htdocs/core/boxes/box_members.php
index 9ec075c6d29..e6ddca4ac1e 100644
--- a/htdocs/core/boxes/box_members.php
+++ b/htdocs/core/boxes/box_members.php
@@ -41,7 +41,7 @@ class box_members extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $enabled = 1;
@@ -141,7 +141,7 @@ class box_members extends ModeleBoxes
);
$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),
);
@@ -150,7 +150,7 @@ class box_members extends ModeleBoxes
if ($num==0)
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="center"',
+ 'td' => 'class="center"',
'text'=>$langs->trans("NoRecordedCustomers"),
);
@@ -164,7 +164,7 @@ class box_members extends ModeleBoxes
}
} else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_produits.php b/htdocs/core/boxes/box_produits.php
index ba8843f51cd..a44992832d9 100644
--- a/htdocs/core/boxes/box_produits.php
+++ b/htdocs/core/boxes/box_produits.php
@@ -183,13 +183,13 @@ class box_produits extends ModeleBoxes
);
$this->info_box_contents[$line][] = array(
- 'td' => 'align="right" width="18"',
+ 'td' => 'class="right" width="18"',
'text' => ''.$productstatic->LibStatut($objp->tosell, 3, 0).'',
'asis' => 1
);
$this->info_box_contents[$line][] = array(
- 'td' => 'align="right" width="18"',
+ 'td' => 'class="right" width="18"',
'text' => ''.$productstatic->LibStatut($objp->tobuy, 3, 1).'',
'asis' => 1
);
@@ -198,7 +198,7 @@ class box_produits extends ModeleBoxes
}
if ($num==0)
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="center"',
+ 'td' => 'class="center"',
'text'=>$langs->trans("NoRecordedProducts"),
);
@@ -212,7 +212,7 @@ class box_produits extends ModeleBoxes
}
} else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_produits_alerte_stock.php b/htdocs/core/boxes/box_produits_alerte_stock.php
index cac4d20ed80..c8c3d9c94b6 100644
--- a/htdocs/core/boxes/box_produits_alerte_stock.php
+++ b/htdocs/core/boxes/box_produits_alerte_stock.php
@@ -44,7 +44,7 @@ class box_produits_alerte_stock extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $info_box_head = array();
@@ -187,18 +187,19 @@ class box_produits_alerte_stock extends ModeleBoxes
);
$this->info_box_contents[$line][] = array(
- 'td' => 'align="center"',
- 'text' => $objp->total_stock . ' / '.$objp->seuil_stock_alerte,
- 'text2'=>img_warning($langs->transnoentitiesnoconv("StockLowerThanLimit", $objp->seuil_stock_alerte)));
+ 'td' => 'class="center"',
+ 'text' => $objp->total_stock . ' / '.$objp->seuil_stock_alerte,
+ 'text2'=>img_warning($langs->transnoentitiesnoconv("StockLowerThanLimit", $objp->seuil_stock_alerte)),
+ );
$this->info_box_contents[$line][] = array(
- 'td' => 'align="right" width="18"',
+ 'td' => 'class="right" width="18"',
'text' => ''.$productstatic->LibStatut($objp->tosell, 3, 0).'',
'asis' => 1
);
$this->info_box_contents[$line][] = array(
- 'td' => 'align="right" width="18"',
+ 'td' => 'class="right" width="18"',
'text' => ''.$productstatic->LibStatut($objp->tobuy, 3, 0).'',
'asis' => 1
);
@@ -207,7 +208,7 @@ class box_produits_alerte_stock extends ModeleBoxes
}
if ($num==0)
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="center"',
+ 'td' => 'class="center"',
'text'=>$langs->trans("NoTooLowStockProducts"),
);
@@ -224,7 +225,7 @@ class box_produits_alerte_stock extends ModeleBoxes
}
else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_project.php b/htdocs/core/boxes/box_project.php
index 3d7fb62837a..7ab97832637 100644
--- a/htdocs/core/boxes/box_project.php
+++ b/htdocs/core/boxes/box_project.php
@@ -174,11 +174,11 @@ class box_project extends ModeleBoxes
'text' => " ",
);
$this->info_box_contents[$i][] = array(
- 'td' => 'align="right" ',
+ 'td' => 'class="right" ',
'text' => round($num, 0)." ".$langs->trans("Projects"),
);
$this->info_box_contents[$i][] = array(
- 'td' => 'align="right" ',
+ 'td' => 'class="right" ',
'text' => (($max < $num) ? '' : (round($totalnbTask, 0)." ".$langs->trans("Tasks"))),
);
$this->info_box_contents[$i][] = array(
diff --git a/htdocs/core/boxes/box_propales.php b/htdocs/core/boxes/box_propales.php
index 57c7f056572..9176cb9f013 100644
--- a/htdocs/core/boxes/box_propales.php
+++ b/htdocs/core/boxes/box_propales.php
@@ -41,7 +41,7 @@ class box_propales extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $info_box_head = array();
@@ -151,7 +151,7 @@ class box_propales extends ModeleBoxes
);
$this->info_box_contents[$line][] = array(
- 'td' => 'align="right" width="18"',
+ 'td' => 'class="right" width="18"',
'text' => $propalstatic->LibStatut($objp->fk_statut, 3),
);
@@ -160,7 +160,7 @@ class box_propales extends ModeleBoxes
if ($num==0)
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="center"',
+ 'td' => 'class="center"',
'text'=>$langs->trans("NoRecordedProposals"),
);
@@ -174,7 +174,7 @@ class box_propales extends ModeleBoxes
}
} else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_prospect.php b/htdocs/core/boxes/box_prospect.php
index a730a33f8b1..ab82dc7a490 100644
--- a/htdocs/core/boxes/box_prospect.php
+++ b/htdocs/core/boxes/box_prospect.php
@@ -43,7 +43,7 @@ class box_prospect extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $enabled = 1;
var $info_box_head = array();
@@ -134,35 +134,36 @@ class box_prospect extends ModeleBoxes
);
$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)),
);
$this->info_box_contents[$line][] = array(
- 'td' => 'align="right" width="18"',
+ 'td' => 'class="right" width="18"',
'text' => $thirdpartystatic->LibStatut($objp->status, 3),
);
$line++;
}
- if ($num==0)
+ if ($num==0) {
$this->info_box_contents[$line][0] = array(
- 'td' => 'align="center"',
+ 'td' => 'class="center"',
'text'=>$langs->trans("NoRecordedProspects"),
- );
+ );
+ }
$db->free($resql);
} else {
$this->info_box_contents[0][0] = array(
'td' => '',
- 'maxlength'=>500,
+ 'maxlength' => 500,
'text' => ($db->error().' sql='.$sql),
);
}
} else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_services_contracts.php b/htdocs/core/boxes/box_services_contracts.php
index 65ed4ca98a0..00193fc427e 100644
--- a/htdocs/core/boxes/box_services_contracts.php
+++ b/htdocs/core/boxes/box_services_contracts.php
@@ -190,44 +190,52 @@ class box_services_contracts extends ModeleBoxes
}
- $this->info_box_contents[$i][] = array('td' => 'class="tdoverflowmax100 maxwidth100onsmartphone"',
- 'text' => $s,
- 'asis' => 1
+ $this->info_box_contents[$i][] = array(
+ 'td' => 'class="tdoverflowmax100 maxwidth100onsmartphone"',
+ 'text' => $s,
+ 'asis' => 1
);
- $this->info_box_contents[$i][] = array('td' => '',
- 'text' => $contractstatic->getNomUrl(1),
- 'asis' => 1
+ $this->info_box_contents[$i][] = array(
+ 'td' => '',
+ 'text' => $contractstatic->getNomUrl(1),
+ 'asis' => 1
);
- $this->info_box_contents[$i][] = array('td' => 'class="tdoverflowmax100 maxwidth100onsmartphone"',
- 'text' => $thirdpartytmp->getNomUrl(1),
- 'asis' => 1
+ $this->info_box_contents[$i][] = array(
+ 'td' => 'class="tdoverflowmax100 maxwidth100onsmartphone"',
+ 'text' => $thirdpartytmp->getNomUrl(1),
+ 'asis' => 1
);
- $this->info_box_contents[$i][] = array('td' => '',
- 'text' => dol_print_date($datem, 'day'));
+ $this->info_box_contents[$i][] = array(
+ 'td' => '',
+ 'text' => dol_print_date($datem, 'day'),
+ );
- $this->info_box_contents[$i][] = array('td' => 'align="right" width="18"',
- 'text' => $contratlignestatic->LibStatut($objp->statut, 3)
+ $this->info_box_contents[$i][] = array(
+ 'td' => 'class="right" width="18"',
+ 'text' => $contratlignestatic->LibStatut($objp->statut, 3)
);
$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);
}
else
{
- $this->info_box_contents[0][0] = array( 'td' => '',
- 'maxlength'=>500,
- 'text' => ($db->error().' sql='.$sql));
+ $this->info_box_contents[0][0] = array(
+ 'td' => '',
+ 'maxlength' => 500,
+ 'text' => ($db->error().' sql='.$sql),
+ );
}
}
else {
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_services_expired.php b/htdocs/core/boxes/box_services_expired.php
index d93875fbd0c..0c5d1a01632 100644
--- a/htdocs/core/boxes/box_services_expired.php
+++ b/htdocs/core/boxes/box_services_expired.php
@@ -132,22 +132,28 @@ class box_services_expired extends ModeleBoxes
$dateline=$db->jdate($objp->date_line);
if (($dateline + $conf->contrat->services->expires->warning_delay) < $now) $late=img_warning($langs->trans("Late"));
- $this->info_box_contents[$i][] = array('td' => '',
- 'text' => $contract->getNomUrl(1),
- 'asis' => 1
+ $this->info_box_contents[$i][] = array(
+ 'td' => '',
+ 'text' => $contract->getNomUrl(1),
+ 'asis' => 1
);
- $this->info_box_contents[$i][] = array('td' => 'class="tdoverflowmax150 maxwidth150onsmartphone" align="left"',
- 'text' => $thirdpartytmp->getNomUrl(1, 'customer'),
- 'asis' => 1
+ $this->info_box_contents[$i][] = array(
+ 'td' => 'class="tdoverflowmax150 maxwidth150onsmartphone left"',
+ 'text' => $thirdpartytmp->getNomUrl(1, 'customer'),
+ 'asis' => 1
);
- $this->info_box_contents[$i][] = array('td' => 'align="center"',
- 'text' => dol_print_date($dateline, 'day'),
- 'text2'=> $late);
+ $this->info_box_contents[$i][] = array(
+ 'td' => 'class="center"',
+ 'text' => dol_print_date($dateline, 'day'),
+ 'text2'=> $late,
+ );
- $this->info_box_contents[$i][] = array('td' => 'class="right"',
- 'text' => $objp->nb_services);
+ $this->info_box_contents[$i][] = array(
+ 'td' => 'class="right"',
+ 'text' => $objp->nb_services,
+ );
$i++;
@@ -156,22 +162,27 @@ class box_services_expired extends ModeleBoxes
if ($num==0)
{
$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);
}
else
{
- $this->info_box_contents[0][] = array( 'td' => '',
- 'maxlength'=>500,
- 'text' => ($db->error().' sql='.$sql));
+ $this->info_box_contents[0][] = array(
+ 'td' => '',
+ 'maxlength'=>500,
+ 'text' => ($db->error().' sql='.$sql),
+ );
}
}
else
{
$this->info_box_contents[0][0] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_supplier_orders.php b/htdocs/core/boxes/box_supplier_orders.php
index 7a14d2ac1fe..f9a47fe8c83 100644
--- a/htdocs/core/boxes/box_supplier_orders.php
+++ b/htdocs/core/boxes/box_supplier_orders.php
@@ -40,7 +40,7 @@ class box_supplier_orders extends ModeleBoxes
* @var DoliDB Database handler.
*/
public $db;
-
+
var $param;
var $info_box_head = array();
var $info_box_contents = array();
@@ -145,7 +145,7 @@ class box_supplier_orders extends ModeleBoxes
);
$this->info_box_contents[$line][] = array(
- 'td' => 'align="right" width="18"',
+ 'td' => 'class="right" width="18"',
'text' => $supplierorderstatic->LibStatut($objp->fk_statut, 3),
);
@@ -154,7 +154,7 @@ class box_supplier_orders extends ModeleBoxes
if ($num == 0)
$this->info_box_contents[$line][] = array(
- 'td' => 'align="center"',
+ 'td' => 'class="center"',
'text' => $langs->trans("NoSupplierOrder"),
);
@@ -170,7 +170,7 @@ class box_supplier_orders extends ModeleBoxes
else
{
$this->info_box_contents[0][] = array(
- 'td' => 'align="left" class="nohover opacitymedium"',
+ 'td' => 'class="nohover opacitymedium left"',
'text' => $langs->trans("ReadPermissionNotAllowed")
);
}
diff --git a/htdocs/core/boxes/box_task.php b/htdocs/core/boxes/box_task.php
index b15380fed98..181de1f8696 100644
--- a/htdocs/core/boxes/box_task.php
+++ b/htdocs/core/boxes/box_task.php
@@ -84,7 +84,7 @@ class box_task extends ModeleBoxes
$totalDuree=0;
$totalplannedtot=0;
$totaldurationtot=0;
-
+
include_once DOL_DOCUMENT_ROOT."/projet/class/task.class.php";
$taskstatic=new Task($db);
@@ -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));
$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++;
}
@@ -136,9 +136,9 @@ class box_task extends ModeleBoxes
// 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('td' => 'align="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' => 'align="right" ', 'text' => ConvertSecondToTime($totaldurationtot, 'all', 25200, 5));
+ $this->info_box_contents[$i][] = array('td' => 'class="right" ', 'text' => number_format($totalnb, 0, ',', ' ')." ".$langs->trans("Tasks"));
+ $this->info_box_contents[$i][] = array('td' => 'class="right" ', 'text' => ConvertSecondToTime($totalplannedtot, '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' => "");
}
diff --git a/htdocs/modulebuilder/template/core/boxes/mymodulewidget1.php b/htdocs/modulebuilder/template/core/boxes/mymodulewidget1.php
index edd2f627bb5..66cf8ab05eb 100644
--- a/htdocs/modulebuilder/template/core/boxes/mymodulewidget1.php
+++ b/htdocs/modulebuilder/template/core/boxes/mymodulewidget1.php
@@ -1,6 +1,6 @@
- * Copyright (C) 2018 Frédéric France
+ * Copyright (C) 2018-2019 Frédéric France
* Copyright (C) ---Put here your own copyright and developer email---
*
* This program is free software: you can redistribute it and/or modify
@@ -140,54 +140,54 @@ class mymodulewidget1 extends ModeleBoxes
0 => array( // First line
0 => array( // 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
- 'td' => '',
+ 'td' => '',
// Main text for content of cell
- 'text' => 'First cell of first line',
+ 'text' => 'First cell of first line',
// Link on 'text' and 'logo' elements
- 'url' => 'http://example.com',
+ 'url' => 'http://example.com',
// Link's target HTML property
- 'target' => '_blank',
+ 'target' => '_blank',
// Fist line logo (deprecated. Include instead logo html code into text or text2, and set asis property to true to avoid HTML cleaning)
- //'logo' => 'monmodule@monmodule',
+ //'logo' => 'monmodule@monmodule',
// Unformatted text, added after text. Usefull to add/load javascript code
'textnoformat' => '',
// Main text for content of cell (other method)
- //'text2' => 'Another text
',
+ //'text2' => 'Another text
',
// Truncates 'text' element to the specified character length, 0 = disabled
- 'maxlength' => 0,
+ 'maxlength' => 0,
// Prevents HTML cleaning (and truncation)
- 'asis' => false,
+ 'asis' => false,
// Same for 'text2'
- 'asis2' => true
+ 'asis2' => true
),
1 => array( // Another column
// No TR for n≠0
- 'td' => '',
+ 'td' => '',
'text' => 'Second cell',
)
),
1 => array( // Another line
0 => array( // TR
- 'tr' => 'align="left"',
+ 'tr' => 'class="left"',
'text' => 'Another line'
),
1 => array( // TR
- 'tr' => 'align="left"',
+ 'tr' => 'class="left"',
'text' => ''
)
),
2 => array( // Another line
0 => array( // TR
- 'tr' => 'align="left"',
+ 'tr' => 'class="left"',
'text' => ''
),
0 => array( // TR
- 'tr' => 'align="left"',
+ 'tr' => 'class="left"',
'text' => ''
)
),