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)) {
48 $head[$h][0] = DOL_URL_ROOT.
'/ecm/index_auto.php';
49 $head[$h][1] = $langs->trans(
"ECMSectionsAuto").$form->textwithpicto(
'', $helptext, 1,
'info',
'', 0, 3);
50 $head[$h][2] =
'index_auto';
76 global $langs, $conf, $user;
80 if ($module ==
'ecm') {
81 $head[$h][0] = DOL_URL_ROOT.
'/ecm/dir_card.php?section='.$object->id;
82 $head[$h][1] = $langs->trans(
"Directory");
83 $head[$h][2] =
'card';
86 $head[$h][0] = DOL_URL_ROOT.
'/ecm/dir_card.php?section='.$section.
'&module='.$module;
87 $head[$h][1] = $langs->trans(
"Directory");
88 $head[$h][2] =
'card';
103 global $langs, $conf, $user;
107 $head[$h][0] = DOL_URL_ROOT.
'/ecm/file_card.php?section='.$object->section_id.
'&urlfile='.urlencode($object->label);
108 $head[$h][1] = $langs->trans(
"File");
109 $head[$h][2] =
'card';
113 $head[$h][0] = DOL_URL_ROOT.
'/ecm/file_note.php?section='.$object->section_id.
'&urlfile='.urlencode($object->label);
114 $head[$h][1] = $langs->trans(
"Notes");
116 if (!empty($object->note_private)) {
119 if (!empty($object->note_public)) {
123 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbNote.
'</span>';
125 $head[$h][2] =
'note';
139 global $langs, $conf;
143 $head[$h][0] = DOL_URL_ROOT.
'/ecm/index.php?action=file_manager';
144 $head[$h][1] = $langs->trans(
'ECMFileManager');
145 $head[$h][2] =
'file_manager';
148 $head[$h][0] = DOL_URL_ROOT.
'/ecm/search.php';
149 $head[$h][1] = $langs->trans(
'Search');
150 $head[$h][2] =
'search_form';
163 global $langs, $conf;
169 $head[$h][0] = DOL_URL_ROOT.
"/admin/ecm.php";
170 $head[$h][1] = $langs->trans(
"Setup");
171 $head[$h][2] =
'ecm';
174 $head[$h][0] = DOL_URL_ROOT.
'/admin/ecm_files_extrafields.php';
175 $head[$h][1] = $langs->trans(
"ExtraFieldsEcmFiles");
176 $head[$h][2] =
'attributes_ecm_files';
179 $head[$h][0] = DOL_URL_ROOT.
'/admin/ecm_directories_extrafields.php';
180 $head[$h][1] = $langs->trans(
"ExtraFieldsEcmDirectories");
181 $head[$h][2] =
'attributes_ecm_directories';