From 707bf5adcada07fd6f055330d37d634176289bab Mon Sep 17 00:00:00 2001
From: Anthony Berton <34568357+bb2a@users.noreply.github.com>
Date: Wed, 14 Apr 2021 10:20:34 +0200
Subject: [PATCH] picto_mass_actions
---
htdocs/adherents/list.php | 10 +++++-----
htdocs/bom/bom_list.php | 8 ++++----
htdocs/compta/bank/list.php | 8 ++++----
htdocs/compta/facture/list.php | 12 ++++++------
htdocs/contact/list.php | 8 ++++----
htdocs/contrat/list.php | 8 ++++----
htdocs/eventorganization/conferenceorbooth_list.php | 10 +++++-----
.../conferenceorboothattendee_list.php | 10 +++++-----
htdocs/expedition/list.php | 4 ++--
htdocs/expensereport/list.php | 8 ++++----
htdocs/fichinter/list.php | 6 +++---
htdocs/fourn/commande/list.php | 8 ++++----
htdocs/intracommreport/list.php | 4 ++--
htdocs/modulebuilder/template/myobject_list.php | 10 +++++-----
htdocs/mrp/mo_list.php | 10 +++++-----
htdocs/opensurvey/list.php | 6 +++---
htdocs/partnership/partnership_list.php | 10 +++++-----
htdocs/product/inventory/list.php | 10 +++++-----
htdocs/product/list.php | 10 +++++-----
htdocs/product/stock/list.php | 8 ++++----
htdocs/projet/list.php | 12 ++++++------
htdocs/projet/tasks/list.php | 6 +++---
htdocs/reception/list.php | 2 +-
htdocs/recruitment/recruitmentcandidature_list.php | 10 +++++-----
htdocs/recruitment/recruitmentjobposition_list.php | 10 +++++-----
htdocs/salaries/list.php | 6 +++---
htdocs/societe/list.php | 8 ++++----
htdocs/supplier_proposal/list.php | 8 ++++----
htdocs/ticket/list.php | 10 +++++-----
htdocs/user/list.php | 8 ++++----
htdocs/workstation/workstation_list.php | 10 +++++-----
31 files changed, 129 insertions(+), 129 deletions(-)
diff --git a/htdocs/adherents/list.php b/htdocs/adherents/list.php
index b06a7538aae..70c65b9b38b 100644
--- a/htdocs/adherents/list.php
+++ b/htdocs/adherents/list.php
@@ -543,17 +543,17 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array(
- //'presend'=>$langs->trans("SendByMail"),
- //'builddoc'=>$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
);
if ($user->rights->adherent->creer) {
- $arrayofmassactions['close'] = $langs->trans("Resiliate");
+ $arrayofmassactions['close'] = img_picto('', 'close_title').' '.$langs->trans("Resiliate");
}
if ($user->rights->adherent->supprimer) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if ($user->rights->societe->creer) {
- $arrayofmassactions['preaffecttag'] = ''.$langs->trans("AffectTag");
+ $arrayofmassactions['preaffecttag'] = img_picto('', 'label').' '.$langs->trans("AffectTag");
}
if (in_array($massaction, array('presend', 'predelete','preaffecttag'))) {
$arrayofmassactions = array();
diff --git a/htdocs/bom/bom_list.php b/htdocs/bom/bom_list.php
index 62fb6002760..b39111de3e1 100644
--- a/htdocs/bom/bom_list.php
+++ b/htdocs/bom/bom_list.php
@@ -421,12 +421,12 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array(
- //'presend'=>$langs->trans("SendByMail"),
- 'enable'=>$langs->trans("Enable"),
- 'disable'=>$langs->trans("Disable"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
+ 'enable'=>img_picto('', 'check').' '.$langs->trans("Enable"),
+ 'disable'=>img_picto('', 'close_title').' '.$langs->trans("Disable"),
);
if ($permissiontodelete) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/compta/bank/list.php b/htdocs/compta/bank/list.php
index a07fa968db1..cce2b9505ce 100644
--- a/htdocs/compta/bank/list.php
+++ b/htdocs/compta/bank/list.php
@@ -290,14 +290,14 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array(
-// 'presend'=>$langs->trans("SendByMail"),
-// 'builddoc'=>$langs->trans("PDFMerge"),
+// 'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
+// 'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
);
if ($user->rights->banque->supprimer) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if ($user->rights->banque->modifier) {
- $arrayofmassactions['preaffecttag'] = ''.$langs->trans("AffectTag");
+ $arrayofmassactions['preaffecttag'] = img_picto('', 'label').' '.$langs->trans("AffectTag");
}
if (in_array($massaction, array('presend', 'predelete','preaffecttag'))) {
$arrayofmassactions = array();
diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php
index 7b3c84c252f..84fc32b92e3 100644
--- a/htdocs/compta/facture/list.php
+++ b/htdocs/compta/facture/list.php
@@ -944,10 +944,10 @@ if ($resql) {
$param .= $hookmanager->resPrint;
$arrayofmassactions = array(
- 'validate'=>$langs->trans("Validate"),
- 'generate_doc'=>$langs->trans("ReGeneratePDF"),
- 'builddoc'=>$langs->trans("PDFMerge"),
- 'presend'=>$langs->trans("SendByMail"),
+ 'validate'=>img_picto('', 'check').' '.$langs->trans("Validate"),
+ 'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ 'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ 'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
//'makepayment'=>$langs->trans("InvoicePaymentsLimits"), TODO Blank page when using this
);
if ($conf->prelevement->enabled && !empty($user->rights->prelevement->bons->creer)) {
@@ -956,9 +956,9 @@ if ($resql) {
}
if ($user->rights->facture->supprimer) {
if (!empty($conf->global->INVOICE_CAN_REMOVE_DRAFT_ONLY)) {
- $arrayofmassactions['predeletedraft'] = $langs->trans("Deletedraft");
+ $arrayofmassactions['predeletedraft'] = img_picto('', 'delete').' '.$langs->trans("Deletedraft");
} elseif (!empty($conf->global->INVOICE_CAN_ALWAYS_BE_REMOVED)) { // mass deletion never possible on invoices on such situation
- $arrayofmassactions['predelete'] = $langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
}
if (in_array($massaction, array('presend', 'predelete'))) {
diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php
index 4535c0514e9..dbb9d679de1 100644
--- a/htdocs/contact/list.php
+++ b/htdocs/contact/list.php
@@ -653,15 +653,15 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array(
-// 'presend'=>$langs->trans("SendByMail"),
-// 'builddoc'=>$langs->trans("PDFMerge"),
+// 'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
+// 'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
);
//if($user->rights->societe->creer) $arrayofmassactions['createbills']=$langs->trans("CreateInvoiceForThisCustomer");
if ($user->rights->societe->supprimer) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if ($user->rights->societe->creer) {
- $arrayofmassactions['preaffecttag'] = ''.$langs->trans("AffectTag");
+ $arrayofmassactions['preaffecttag'] = img_picto('', 'label').' '.$langs->trans("AffectTag");
}
if (in_array($massaction, array('presend', 'predelete','preaffecttag'))) {
$arrayofmassactions = array();
diff --git a/htdocs/contrat/list.php b/htdocs/contrat/list.php
index 60215abb847..497dcc56f53 100644
--- a/htdocs/contrat/list.php
+++ b/htdocs/contrat/list.php
@@ -438,12 +438,12 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array(
- 'generate_doc'=>$langs->trans("ReGeneratePDF"),
- 'builddoc'=>$langs->trans("PDFMerge"),
- 'presend'=>$langs->trans("SendByMail"),
+ 'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ 'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ 'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($user->rights->contrat->supprimer) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/eventorganization/conferenceorbooth_list.php b/htdocs/eventorganization/conferenceorbooth_list.php
index 814a61ae894..2bc7af5abc1 100644
--- a/htdocs/eventorganization/conferenceorbooth_list.php
+++ b/htdocs/eventorganization/conferenceorbooth_list.php
@@ -573,13 +573,13 @@ $param .= $hookmanager->resPrint;
// List of mass actions available
$arrayofmassactions = array(
- //'validate'=>$langs->trans("Validate"),
- //'generate_doc'=>$langs->trans("ReGeneratePDF"),
- //'builddoc'=>$langs->trans("PDFMerge"),
- //'presend'=>$langs->trans("SendByMail"),
+ //'validate'=>img_picto('', 'check').' '.$langs->trans("Validate"),
+ //'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($permissiontodelete) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/eventorganization/conferenceorboothattendee_list.php b/htdocs/eventorganization/conferenceorboothattendee_list.php
index 0505f6c7461..c02860218ce 100644
--- a/htdocs/eventorganization/conferenceorboothattendee_list.php
+++ b/htdocs/eventorganization/conferenceorboothattendee_list.php
@@ -580,13 +580,13 @@ $param .= $hookmanager->resPrint;
// List of mass actions available
$arrayofmassactions = array(
- //'validate'=>$langs->trans("Validate"),
- //'generate_doc'=>$langs->trans("ReGeneratePDF"),
- //'builddoc'=>$langs->trans("PDFMerge"),
- //'presend'=>$langs->trans("SendByMail"),
+ //'validate'=>img_picto('', 'check').' '.$langs->trans("Validate"),
+ //'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($permissiontodelete) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/expedition/list.php b/htdocs/expedition/list.php
index 365964857a2..c79d7119b59 100644
--- a/htdocs/expedition/list.php
+++ b/htdocs/expedition/list.php
@@ -464,9 +464,9 @@ if ($optioncss != '') {
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
$arrayofmassactions = array(
- 'builddoc' => $langs->trans("PDFMerge"),
+ 'builddoc' => img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
//'classifyclose'=>$langs->trans("Close"), TODO massive close shipment ie: when truck is charged
- 'presend' => $langs->trans("SendByMail"),
+ 'presend' => img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if (in_array($massaction, array('presend'))) {
$arrayofmassactions = array();
diff --git a/htdocs/expensereport/list.php b/htdocs/expensereport/list.php
index 51022f8c40b..2695481eeb9 100644
--- a/htdocs/expensereport/list.php
+++ b/htdocs/expensereport/list.php
@@ -359,12 +359,12 @@ if ($resql) {
// List of mass actions available
$arrayofmassactions = array(
- 'generate_doc'=>$langs->trans("ReGeneratePDF"),
- 'builddoc'=>$langs->trans("PDFMerge"),
- 'presend'=>$langs->trans("SendByMail"),
+ 'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ 'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ 'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($user->rights->expensereport->supprimer) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php
index 8f0ae8e626f..a5231b20b73 100644
--- a/htdocs/fichinter/list.php
+++ b/htdocs/fichinter/list.php
@@ -359,12 +359,12 @@ if ($resql) {
// List of mass actions available
$arrayofmassactions = array(
- 'generate_doc'=>$langs->trans("ReGeneratePDF"),
- 'builddoc'=>$langs->trans("PDFMerge"),
+ 'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ 'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
//'presend'=>$langs->trans("SendByMail"),
);
if ($user->rights->ficheinter->supprimer) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/fourn/commande/list.php b/htdocs/fourn/commande/list.php
index 7588dda83f5..d3dc8ddb009 100644
--- a/htdocs/fourn/commande/list.php
+++ b/htdocs/fourn/commande/list.php
@@ -876,15 +876,15 @@ if ($resql) {
// List of mass actions available
$arrayofmassactions = array(
- 'generate_doc'=>$langs->trans("ReGeneratePDF"),
- 'builddoc'=>$langs->trans("PDFMerge"),
- 'presend'=>$langs->trans("SendByMail"),
+ 'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ 'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ 'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($user->rights->fournisseur->facture->creer || $user->rights->supplier_invoice->creer) {
$arrayofmassactions['createbills'] = $langs->trans("CreateInvoiceForThisSupplier");
}
if ($user->rights->fournisseur->commande->supprimer) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (in_array($massaction, array('presend', 'predelete', 'createbills'))) {
$arrayofmassactions = array();
diff --git a/htdocs/intracommreport/list.php b/htdocs/intracommreport/list.php
index d3fd0ff2fb1..c8f7415a6e8 100644
--- a/htdocs/intracommreport/list.php
+++ b/htdocs/intracommreport/list.php
@@ -316,12 +316,12 @@ if ($resql) {
// List of mass actions available
$arrayofmassactions = array(
- 'generate_doc'=>$langs->trans("ReGeneratePDF"),
+ 'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
//'builddoc'=>$langs->trans("PDFMerge"),
//'presend'=>$langs->trans("SendByMail"),
);
if ($user->rights->intracommreport->delete) {
- $arrayofmassactions['predelete'] = "".$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/modulebuilder/template/myobject_list.php b/htdocs/modulebuilder/template/myobject_list.php
index 47afaa55b55..47fa1c89fc3 100644
--- a/htdocs/modulebuilder/template/myobject_list.php
+++ b/htdocs/modulebuilder/template/myobject_list.php
@@ -427,13 +427,13 @@ $param .= $hookmanager->resPrint;
// List of mass actions available
$arrayofmassactions = array(
- //'validate'=>$langs->trans("Validate"),
- //'generate_doc'=>$langs->trans("ReGeneratePDF"),
- //'builddoc'=>$langs->trans("PDFMerge"),
- //'presend'=>$langs->trans("SendByMail"),
+ //'validate'=>img_picto('', 'check').' '.$langs->trans("Validate"),
+ //'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($permissiontodelete) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/mrp/mo_list.php b/htdocs/mrp/mo_list.php
index 30fe3e8d9fa..c792ab44632 100644
--- a/htdocs/mrp/mo_list.php
+++ b/htdocs/mrp/mo_list.php
@@ -344,13 +344,13 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array(
- //'validate'=>$langs->trans("Validate"),
- //'generate_doc'=>$langs->trans("ReGeneratePDF"),
- //'builddoc'=>$langs->trans("PDFMerge"),
- //'presend'=>$langs->trans("SendByMail"),
+ //'validate'=>img_picto('', 'check').' '.$langs->trans("Validate"),
+ //'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($permissiontodelete) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/opensurvey/list.php b/htdocs/opensurvey/list.php
index 56036b51aec..9f6e52b507a 100644
--- a/htdocs/opensurvey/list.php
+++ b/htdocs/opensurvey/list.php
@@ -252,11 +252,11 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array(
- //'presend'=>$langs->trans("SendByMail"),
- //'builddoc'=>$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
);
if ($permissiontodelete) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/partnership/partnership_list.php b/htdocs/partnership/partnership_list.php
index 408b7355ab1..ba089c7604c 100644
--- a/htdocs/partnership/partnership_list.php
+++ b/htdocs/partnership/partnership_list.php
@@ -431,13 +431,13 @@ $param .= $hookmanager->resPrint;
// List of mass actions available
$arrayofmassactions = array(
- 'cancel'=>$langs->trans("Cancel"),
- //'generate_doc'=>$langs->trans("ReGeneratePDF"),
- //'builddoc'=>$langs->trans("PDFMerge"),
- 'presend'=>$langs->trans("SendByMail"),
+ 'cancel'=>img_picto('', 'close_title').' '.$langs->trans("Cancel"),
+ //'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ 'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($permissiontodelete) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/product/inventory/list.php b/htdocs/product/inventory/list.php
index 3585b84547f..7557e5816c7 100644
--- a/htdocs/product/inventory/list.php
+++ b/htdocs/product/inventory/list.php
@@ -324,13 +324,13 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array(
- //'validate'=>$langs->trans("Validate"),
- //'generate_doc'=>$langs->trans("ReGeneratePDF"),
- //'builddoc'=>$langs->trans("PDFMerge"),
- //'presend'=>$langs->trans("SendByMail"),
+ //'validate'=>img_picto('', 'check').' '.$langs->trans("Validate"),
+ //'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($permissiontodelete) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/product/list.php b/htdocs/product/list.php
index 105e4408a68..9da61e1f97c 100644
--- a/htdocs/product/list.php
+++ b/htdocs/product/list.php
@@ -681,16 +681,16 @@ if ($resql) {
// List of mass actions available
$arrayofmassactions = array(
- 'generate_doc'=>$langs->trans("ReGeneratePDF"),
- //'builddoc'=>$langs->trans("PDFMerge"),
- //'presend'=>$langs->trans("SendByMail"),
+ 'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($user->rights->{$rightskey}->supprimer) {
- $arrayofmassactions['predelete'] = "".$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if ($user->rights->{$rightskey}->creer) {
- $arrayofmassactions['preaffecttag'] = ''.$langs->trans("AffectTag");
+ $arrayofmassactions['preaffecttag'] = img_picto('', 'label').' '.$langs->trans("AffectTag");
}
if (in_array($massaction, array('presend', 'predelete','preaffecttag'))) {
$arrayofmassactions = array();
diff --git a/htdocs/product/stock/list.php b/htdocs/product/stock/list.php
index c8054683e52..87d5e798c97 100644
--- a/htdocs/product/stock/list.php
+++ b/htdocs/product/stock/list.php
@@ -356,15 +356,15 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array(
- //'presend'=>$langs->trans("SendByMail"),
- //'builddoc'=>$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
);
-//if ($user->rights->stock->supprimer) $arrayofmassactions['predelete']=''.$langs->trans("Delete");
+//if ($user->rights->stock->supprimer) $arrayofmassactions['predelete']=img_picto('', 'delete').' '.$langs->trans("Delete");
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete','preaffecttag'))) {
$arrayofmassactions = array();
}
if ($user->rights->stock->creer) {
- $arrayofmassactions['preaffecttag'] = ''.$langs->trans("AffectTag");
+ $arrayofmassactions['preaffecttag'] = img_picto('', 'label').' '.$langs->trans("AffectTag");
}
$massactionbutton = $form->selectMassAction('', $arrayofmassactions);
diff --git a/htdocs/projet/list.php b/htdocs/projet/list.php
index 6ab17b6feee..6f7648d2f01 100644
--- a/htdocs/projet/list.php
+++ b/htdocs/projet/list.php
@@ -611,19 +611,19 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array(
- 'generate_doc'=>$langs->trans("ReGeneratePDF"),
- //'builddoc'=>$langs->trans("PDFMerge"),
- //'presend'=>$langs->trans("SendByMail"),
+ 'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
//if($user->rights->societe->creer) $arrayofmassactions['createbills']=$langs->trans("CreateInvoiceForThisCustomer");
if ($user->rights->projet->creer) {
- $arrayofmassactions['close'] = $langs->trans("Close");
+ $arrayofmassactions['close'] = img_picto('', 'close_title').' '.$langs->trans("Close");
}
if ($user->rights->projet->supprimer) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if ($user->rights->projet->creer) {
- $arrayofmassactions['preaffecttag'] = ''.$langs->trans("AffectTag");
+ $arrayofmassactions['preaffecttag'] = img_picto('', 'label').' '.$langs->trans("AffectTag");
}
if (in_array($massaction, array('presend', 'predelete', 'preaffecttag'))) {
$arrayofmassactions = array();
diff --git a/htdocs/projet/tasks/list.php b/htdocs/projet/tasks/list.php
index 7156d94ef21..92c4e7b03fd 100644
--- a/htdocs/projet/tasks/list.php
+++ b/htdocs/projet/tasks/list.php
@@ -529,12 +529,12 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array(
-// 'presend'=>$langs->trans("SendByMail"),
-// 'builddoc'=>$langs->trans("PDFMerge"),
+// 'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
+// 'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
);
//if($user->rights->societe->creer) $arrayofmassactions['createbills']=$langs->trans("CreateInvoiceForThisCustomer");
if ($user->rights->societe->supprimer) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/reception/list.php b/htdocs/reception/list.php
index a6891e38c79..3094ae70776 100644
--- a/htdocs/reception/list.php
+++ b/htdocs/reception/list.php
@@ -593,7 +593,7 @@ foreach ($search_array_options as $key => $val) {
$arrayofmassactions = array(
- // 'presend'=>$langs->trans("SendByMail"),
+ // 'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($user->rights->fournisseur->facture->creer || $user->rights->supplier_invoice->creer) {
diff --git a/htdocs/recruitment/recruitmentcandidature_list.php b/htdocs/recruitment/recruitmentcandidature_list.php
index 515ddfe80c0..9000ae7857e 100644
--- a/htdocs/recruitment/recruitmentcandidature_list.php
+++ b/htdocs/recruitment/recruitmentcandidature_list.php
@@ -397,13 +397,13 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array(
- 'validate'=>$langs->trans("Validate"),
- //'generate_doc'=>$langs->trans("ReGeneratePDF"),
- //'builddoc'=>$langs->trans("PDFMerge"),
- //'presend'=>$langs->trans("SendByMail"),
+ 'validate'=>img_picto('', 'check').' '.$langs->trans("Validate"),
+ //'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($permissiontodelete) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/recruitment/recruitmentjobposition_list.php b/htdocs/recruitment/recruitmentjobposition_list.php
index c28a55e0b2d..f0f5dfe2bea 100644
--- a/htdocs/recruitment/recruitmentjobposition_list.php
+++ b/htdocs/recruitment/recruitmentjobposition_list.php
@@ -400,13 +400,13 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array(
- //'validate'=>$langs->trans("Validate"),
- //'generate_doc'=>$langs->trans("ReGeneratePDF"),
- //'builddoc'=>$langs->trans("PDFMerge"),
- //'presend'=>$langs->trans("SendByMail"),
+ //'validate'=>img_picto('', 'check').' '.$langs->trans("Validate"),
+ //'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($permissiontodelete) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/salaries/list.php b/htdocs/salaries/list.php
index 7c4f0a2cec3..f4fee3388e4 100644
--- a/htdocs/salaries/list.php
+++ b/htdocs/salaries/list.php
@@ -364,10 +364,10 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array(
- //'presend'=>$langs->trans("SendByMail"),
- //'buildsepa'=>$langs->trans("BuildSepa"), // TODO
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
+ //'buildsepa'=>img_picto('', 'pdf').' '.$langs->trans("BuildSepa"), // TODO
);
-//if ($permissiontodelete) $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+//if ($permissiontodelete) $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
}
diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php
index a35e1c0e94c..acaf78bec96 100644
--- a/htdocs/societe/list.php
+++ b/htdocs/societe/list.php
@@ -847,15 +847,15 @@ if (GETPOST('delsoc')) {
// List of mass actions available
$arrayofmassactions = array(
- 'presend'=>$langs->trans("SendByMail"),
-// 'builddoc'=>$langs->trans("PDFMerge"),
+ 'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
+// 'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
);
//if($user->rights->societe->creer) $arrayofmassactions['createbills']=$langs->trans("CreateInvoiceForThisCustomer");
if ($user->rights->societe->supprimer) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if ($user->rights->societe->creer) {
- $arrayofmassactions['preaffecttag'] = ''.$langs->trans("AffectTag");
+ $arrayofmassactions['preaffecttag'] = img_picto('', 'label').' '.$langs->trans("AffectTag");
}
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete', 'preaffecttag'))) {
$arrayofmassactions = array();
diff --git a/htdocs/supplier_proposal/list.php b/htdocs/supplier_proposal/list.php
index 71540aa2f11..42a1bcf1891 100644
--- a/htdocs/supplier_proposal/list.php
+++ b/htdocs/supplier_proposal/list.php
@@ -508,12 +508,12 @@ if ($resql) {
// List of mass actions available
$arrayofmassactions = array(
- 'generate_doc'=>$langs->trans("ReGeneratePDF"),
- 'builddoc'=>$langs->trans("PDFMerge"),
- //'presend'=>$langs->trans("SendByMail"),
+ 'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ 'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($user->rights->supplier_proposal->supprimer) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/ticket/list.php b/htdocs/ticket/list.php
index 0c726db3f62..d5c8462e2fd 100644
--- a/htdocs/ticket/list.php
+++ b/htdocs/ticket/list.php
@@ -656,17 +656,17 @@ if ($search_dateclose_end) {
// List of mass actions available
$arrayofmassactions = array(
- //'presend'=>$langs->trans("SendByMail"),
- //'builddoc'=>$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
);
if ($user->rights->ticket->write) {
- $arrayofmassactions['close'] = $langs->trans("Close");
+ $arrayofmassactions['close'] = img_picto('', 'close_title').' '.$langs->trans("Close");
}
if ($user->rights->ticket->write) {
- $arrayofmassactions['reopen'] = $langs->trans("ReOpen");
+ $arrayofmassactions['reopen'] = img_picto('', 'folder-open').' '.$langs->trans("ReOpen");
}
if ($user->rights->ticket->delete) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();
diff --git a/htdocs/user/list.php b/htdocs/user/list.php
index eeb7118bb2e..f6afd8f06b7 100644
--- a/htdocs/user/list.php
+++ b/htdocs/user/list.php
@@ -525,15 +525,15 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
// List of mass actions available
$arrayofmassactions = array();
if ($permissiontoadd) {
- $arrayofmassactions['disable'] = $langs->trans("DisableUser");
+ $arrayofmassactions['disable'] = img_picto('', 'close_title').' '.$langs->trans("DisableUser");
}
if ($permissiontoadd) {
- $arrayofmassactions['reactivate'] = $langs->trans("Reactivate");
+ $arrayofmassactions['reactivate'] = img_picto('', 'check').' '.$langs->trans("Reactivate");
}
if ($permissiontoadd) {
- $arrayofmassactions['preaffecttag'] = ''.$langs->trans("AffectTag");
+ $arrayofmassactions['preaffecttag'] = img_picto('', 'label').' '.$langs->trans("AffectTag");
}
-//if ($permissiontodelete) $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+//if ($permissiontodelete) $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete', 'preaffecttag'))) {
$arrayofmassactions = array();
diff --git a/htdocs/workstation/workstation_list.php b/htdocs/workstation/workstation_list.php
index 40265496dbf..e75e6d35ed6 100755
--- a/htdocs/workstation/workstation_list.php
+++ b/htdocs/workstation/workstation_list.php
@@ -398,13 +398,13 @@ $param .= $hookmanager->resPrint;
// List of mass actions available
$arrayofmassactions = array(
- //'validate'=>$langs->trans("Validate"),
- //'generate_doc'=>$langs->trans("ReGeneratePDF"),
- //'builddoc'=>$langs->trans("PDFMerge"),
- //'presend'=>$langs->trans("SendByMail"),
+ //'validate'=>img_picto('', 'check').' '.$langs->trans("Validate"),
+ //'generate_doc'=>img_picto('', 'pdf').' '.$langs->trans("ReGeneratePDF"),
+ //'builddoc'=>img_picto('', 'pdf').' '.$langs->trans("PDFMerge"),
+ //'presend'=>img_picto('', 'email').' '.$langs->trans("SendByMail"),
);
if ($permissiontodelete) {
- $arrayofmassactions['predelete'] = ''.$langs->trans("Delete");
+ $arrayofmassactions['predelete'] = img_picto('', 'delete').' '.$langs->trans("Delete");
}
if (GETPOST('nomassaction', 'int') || in_array($massaction, array('presend', 'predelete'))) {
$arrayofmassactions = array();