34 global $langs, $conf, $user, $form;
35 global $helptext1, $helptext2;
39 $helptext = $langs->trans(
"ECMAreaDesc").
'<br>';
40 $helptext .= $langs->trans(
"ECMAreaDesc2");
42 $head[$h][0] = DOL_URL_ROOT.
'/ecm/index.php';
43 $head[$h][1] = $langs->trans(
"ECMSectionsManual").$form->textwithpicto(
'', $helptext, 1,
'info',
'', 0, 3);
44 $head[$h][2] =
'index';
47 if (!empty($conf->global->ECM_AUTO_TREE_ENABLED))
49 $head[$h][0] = DOL_URL_ROOT.
'/ecm/index_auto.php';
50 $head[$h][1] = $langs->trans(
"ECMSectionsAuto").$form->textwithpicto(
'', $helptext, 1,
'info',
'', 0, 3);
51 $head[$h][2] =
'index_auto';
77 global $langs, $conf, $user;
83 $head[$h][0] = DOL_URL_ROOT.
'/ecm/dir_card.php?section='.$object->id;
84 $head[$h][1] = $langs->trans(
"Directory");
85 $head[$h][2] =
'card';
88 $head[$h][0] = DOL_URL_ROOT.
'/ecm/dir_card.php?section='.$section.
'&module='.$module;
89 $head[$h][1] = $langs->trans(
"Directory");
90 $head[$h][2] =
'card';
105 global $langs, $conf, $user;
109 $head[$h][0] = DOL_URL_ROOT.
'/ecm/file_card.php?section='.$object->section_id.
'&urlfile='.urlencode($object->label);
110 $head[$h][1] = $langs->trans(
"File");
111 $head[$h][2] =
'card';
125 global $langs, $conf;
129 $head[$h][0] = DOL_URL_ROOT.
'/ecm/index.php?action=file_manager';
130 $head[$h][1] = $langs->trans(
'ECMFileManager');
131 $head[$h][2] =
'file_manager';
134 $head[$h][0] = DOL_URL_ROOT.
'/ecm/search.php';
135 $head[$h][1] = $langs->trans(
'Search');
136 $head[$h][2] =
'search_form';
149 global $langs, $conf;
155 $head[$h][0] = DOL_URL_ROOT.
"/admin/ecm.php";
156 $head[$h][1] = $langs->trans(
"Setup");
157 $head[$h][2] =
'ecm';
160 $head[$h][0] = DOL_URL_ROOT.
'/admin/ecm_files_extrafields.php';
161 $head[$h][1] = $langs->trans(
"ExtraFieldsEcmFiles");
162 $head[$h][2] =
'attributes_ecm_files';
165 $head[$h][0] = DOL_URL_ROOT.
'/admin/ecm_directories_extrafields.php';
166 $head[$h][1] = $langs->trans(
"ExtraFieldsEcmDirectories");
167 $head[$h][2] =
'attributes_ecm_directories';
ecm_prepare_dasboard_head($object)
Prepare array with list of different ecm main dashboard.
ecm_file_prepare_head($object)
Prepare array with list of tabs.
ecm_admin_prepare_head()
Return array head with list of tabs to view object informations.
ecm_prepare_head_fm($object)
Prepare array with list of tabs.
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode= 'add')
Complete or removed entries into a head array (used to build tabs).
ecm_prepare_head($object, $module= 'ecm', $section= '')
Prepare array with list of tabs.