2
0
forked from Wavyzz/dolibarr

Update ecm.lib.php

This commit is contained in:
Frédéric FRANCE
2014-11-26 18:35:16 +01:00
parent 2a25f990ac
commit 2ee55a39fd

View File

@@ -31,19 +31,21 @@
*/ */
function ecm_prepare_dasboard_head($object) function ecm_prepare_dasboard_head($object)
{ {
global $langs, $conf, $user; global $langs, $conf, $user, $form;
$h = 0; $h = 0;
$head = array(); $head = array();
$helptext =$langs->trans("ECMAreaDesc").'<br>';
$helptext.=$langs->trans("ECMAreaDesc2");
$head[$h][0] = DOL_URL_ROOT.'/ecm/index.php'; $head[$h][0] = DOL_URL_ROOT.'/ecm/index.php';
$head[$h][1] = $langs->trans("ECMSectionsManual").img_help(1,$helptext1); $head[$h][1] = $langs->trans("ECMSectionsManual").$form->textwithpicto('', $helptext, 1, 'info', '', 0, 3);
$head[$h][2] = 'index'; $head[$h][2] = 'index';
$h++; $h++;
if (! empty($conf->global->ECM_AUTO_TREE_ENABLED)) if (! empty($conf->global->ECM_AUTO_TREE_ENABLED))
{ {
$head[$h][0] = DOL_URL_ROOT.'/ecm/index_auto.php'; $head[$h][0] = DOL_URL_ROOT.'/ecm/index_auto.php';
$head[$h][1] = $langs->trans("ECMSectionsAuto").img_help(1,$helptext2); $head[$h][1] = $langs->trans("ECMSectionsAuto").$form->textwithpicto('', $helptext, 1, 'info', '', 0, 3);
$head[$h][2] = 'index_auto'; $head[$h][2] = 'index_auto';
$h++; $h++;
} }