30 require
'../main.inc.php';
32 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
33 require_once DOL_DOCUMENT_ROOT.
'/core/lib/date.lib.php';
34 require_once DOL_DOCUMENT_ROOT.
'/core/lib/company.lib.php';
37 require_once __DIR__.
'/class/evaluation.class.php';
43 $langs->loadLangs(array(
"hrm",
"other"));
45 $action =
GETPOST(
'action',
'aZ09') ?
GETPOST(
'action',
'aZ09') :
'view';
46 $massaction =
GETPOST(
'massaction',
'alpha');
47 $show_files =
GETPOST(
'show_files',
'int');
48 $confirm =
GETPOST(
'confirm',
'alpha');
49 $cancel =
GETPOST(
'cancel',
'alpha');
50 $toselect =
GETPOST(
'toselect',
'array');
51 $contextpage =
GETPOST(
'contextpage',
'aZ') ?
GETPOST(
'contextpage',
'aZ') :
'evaluationlist';
52 $backtopage =
GETPOST(
'backtopage',
'alpha');
53 $optioncss =
GETPOST(
'optioncss',
'aZ');
58 $limit =
GETPOST(
'limit',
'int') ?
GETPOST(
'limit',
'int') : $conf->liste_limit;
59 $sortfield =
GETPOST(
'sortfield',
'aZ09comma');
60 $sortorder =
GETPOST(
'sortorder',
'aZ09comma');
62 if (empty($page) || $page < 0 ||
GETPOST(
'button_search',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
66 $offset = $limit * $page;
67 $pageprev = $page - 1;
68 $pagenext = $page + 1;
73 $diroutputmassaction = $conf->hrm->dir_output.
'/temp/massgeneration/'.$user->id;
74 $hookmanager->initHooks(array(
'evaluationlist'));
77 $extrafields->fetch_name_optionals_label($object->table_element);
80 $search_array_options = $extrafields->getOptionalsFromPost($object->table_element,
'',
'search_');
84 reset($object->fields);
85 $sortfield =
"t.".key($object->fields);
92 $search_all =
GETPOST(
'search_all',
'alphanohtml') ?
GETPOST(
'search_all',
'alphanohtml') :
GETPOST(
'sall',
'alphanohtml');
94 foreach ($object->fields as $key => $val) {
95 if (
GETPOST(
'search_'.$key,
'alpha') !==
'') {
96 $search[$key] =
GETPOST(
'search_'.$key,
'alpha');
98 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
99 $search[$key.
'_dtstart'] =
dol_mktime(0, 0, 0,
GETPOST(
'search_'.$key.
'_dtstartmonth',
'int'),
GETPOST(
'search_'.$key.
'_dtstartday',
'int'),
GETPOST(
'search_'.$key.
'_dtstartyear',
'int'));
100 $search[$key.
'_dtend'] =
dol_mktime(23, 59, 59,
GETPOST(
'search_'.$key.
'_dtendmonth',
'int'),
GETPOST(
'search_'.$key.
'_dtendday',
'int'),
GETPOST(
'search_'.$key.
'_dtendyear',
'int'));
105 $fieldstosearchall = array();
106 foreach ($object->fields as $key => $val) {
107 if (!empty($val[
'searchall'])) {
108 $fieldstosearchall[
't.'.$key] = $val[
'label'];
113 $arrayfields = array();
114 foreach ($object->fields as $key => $val) {
116 if (!empty($val[
'visible'])) {
117 $visible = (int)
dol_eval($val[
'visible'], 1, 1,
'1');
118 $arrayfields[
't.'.$key] = array(
119 'label'=>$val[
'label'],
120 'checked'=>(($visible < 0) ? 0 : 1),
121 'enabled'=>($visible != 3 &&
dol_eval($val[
'enabled'], 1, 1,
'1')),
122 'position'=>$val[
'position'],
123 'help'=> isset($val[
'help']) ? $val[
'help'] :
''
128 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_array_fields.tpl.php';
133 $permissiontoread = $user->rights->hrm->evaluation->read;
134 $permissiontoadd = $user->rights->hrm->evaluation->write;
135 $permissiontodelete = $user->rights->hrm->evaluation->delete;
138 if (empty($conf->hrm->enabled)) {
157 if (
GETPOST(
'cancel',
'alpha')) {
161 if (!
GETPOST(
'confirmmassaction',
'alpha') && $massaction !=
'presend' && $massaction !=
'confirm_presend') {
165 $parameters = array();
166 $reshook = $hookmanager->executeHooks(
'doActions', $parameters, $object, $action);
171 if (empty($reshook)) {
173 include DOL_DOCUMENT_ROOT.
'/core/actions_changeselectedfields.inc.php';
176 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')) {
177 foreach ($object->fields as $key => $val) {
179 if (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
180 $search[$key.
'_dtstart'] =
'';
181 $search[$key.
'_dtend'] =
'';
185 $search_array_options = array();
187 if (
GETPOST(
'button_removefilter_x',
'alpha') ||
GETPOST(
'button_removefilter.x',
'alpha') ||
GETPOST(
'button_removefilter',
'alpha')
188 ||
GETPOST(
'button_search_x',
'alpha') ||
GETPOST(
'button_search.x',
'alpha') ||
GETPOST(
'button_search',
'alpha')) {
193 $objectclass =
'Evaluation';
194 $objectlabel =
'Evaluation';
195 $uploaddir = $conf->hrm->dir_output;
196 include DOL_DOCUMENT_ROOT.
'/core/actions_massactions.inc.php';
211 $title = $langs->trans(
'Evaluations');
219 $sql .= $object->getFieldList(
't');
221 if (!empty($extrafields->attributes[$object->table_element][
'label'])) {
222 foreach ($extrafields->attributes[$object->table_element][
'label'] as $key => $val) {
223 $sql .= ($extrafields->attributes[$object->table_element][
'type'][$key] !=
'separate' ?
", ef.".$key.
" as options_".$key :
'');
227 $parameters = array();
228 $reshook = $hookmanager->executeHooks(
'printFieldListSelect', $parameters, $object);
229 $sql .= preg_replace(
'/^,/',
'', $hookmanager->resPrint);
230 $sql = preg_replace(
'/,\s*$/',
'', $sql);
231 $sql .=
" FROM ".MAIN_DB_PREFIX.$object->table_element.
" as t";
232 if (isset($extrafields->attributes[$object->table_element][
'label']) && is_array($extrafields->attributes[$object->table_element][
'label']) && count($extrafields->attributes[$object->table_element][
'label'])) {
233 $sql .=
" LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element.
"_extrafields as ef on (t.rowid = ef.fk_object)";
236 $parameters = array();
237 $reshook = $hookmanager->executeHooks(
'printFieldListFrom', $parameters, $object);
238 $sql .= $hookmanager->resPrint;
239 if ($object->ismultientitymanaged == 1) {
240 $sql .=
" WHERE t.entity IN (".getEntity($object->element).
")";
242 $sql .=
" WHERE 1 = 1";
244 foreach ($search as $key => $val) {
245 if (array_key_exists($key, $object->fields)) {
246 if ($key ==
'status' && $search[$key] == -1) {
249 $mode_search = (($object->isInt($object->fields[$key]) || $object->isFloat($object->fields[$key])) ? 1 : 0);
250 if ((strpos($object->fields[$key][
'type'],
'integer:') === 0) || (strpos($object->fields[$key][
'type'],
'sellist:') === 0) || !empty($object->fields[$key][
'arrayofkeyval'])) {
251 if ($search[$key] ==
'-1' || ($search[$key] ===
'0' && (empty($object->fields[$key][
'arrayofkeyval']) || !array_key_exists(
'0', $object->fields[$key][
'arrayofkeyval'])))) {
256 if ($search[$key] !=
'') {
257 $sql .=
natural_search($key, $search[$key], (($key ==
'status') ? 2 : $mode_search));
260 if (preg_match(
'/(_dtstart|_dtend)$/', $key) && $search[$key] !=
'') {
261 $columnName=preg_replace(
'/(_dtstart|_dtend)$/',
'', $key);
262 if (preg_match(
'/^(date|timestamp|datetime)/', $object->fields[$columnName][
'type'])) {
263 if (preg_match(
'/_dtstart$/', $key)) {
264 $sql .=
" AND t." . $columnName .
" >= '" . $db->idate($search[$key]) .
"'";
266 if (preg_match(
'/_dtend$/', $key)) {
267 $sql .=
" AND t." . $columnName .
" <= '" . $db->idate($search[$key]) .
"'";
274 $sql .=
natural_search(array_keys($fieldstosearchall), $search_all);
278 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_sql.tpl.php';
280 $parameters = array();
281 $reshook = $hookmanager->executeHooks(
'printFieldListWhere', $parameters, $object);
282 $sql .= $hookmanager->resPrint;
302 $sql .= $db->order($sortfield, $sortorder);
305 $nbtotalofrecords =
'';
306 if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST)) {
307 $resql = $db->query($sql);
308 $nbtotalofrecords = $db->num_rows(
$resql);
309 if (($page * $limit) > $nbtotalofrecords) {
315 if (is_numeric($nbtotalofrecords) && ($limit > $nbtotalofrecords || empty($limit))) {
316 $num = $nbtotalofrecords;
319 $sql .= $db->plimit($limit + 1, $offset);
322 $resql = $db->query($sql);
328 $num = $db->num_rows(
$resql);
332 if ($num == 1 && !empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && $search_all && !$page) {
333 $obj = $db->fetch_object(
$resql);
335 header(
"Location: ".
dol_buildpath(
'/hrm/evaluation_card.php', 1).
'?id='.$id);
360 $arrayofselected = is_array($toselect) ? $toselect : array();
363 if (!empty($contextpage) && $contextpage != $_SERVER[
"PHP_SELF"]) {
364 $param .=
'&contextpage='.urlencode($contextpage);
366 if ($limit > 0 && $limit != $conf->liste_limit) {
367 $param .=
'&limit='.urlencode($limit);
369 foreach ($search as $key => $val) {
370 if (is_array($search[$key]) && count($search[$key])) {
371 foreach ($search[$key] as $skey) {
372 $param .=
'&search_'.$key.
'[]='.urlencode($skey);
375 $param .=
'&search_'.$key.
'='.urlencode($search[$key]);
378 if ($optioncss !=
'') {
379 $param .=
'&optioncss='.urlencode($optioncss);
382 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_param.tpl.php';
384 $parameters = array();
385 $reshook = $hookmanager->executeHooks(
'printFieldListSearchParam', $parameters, $object);
386 $param .= $hookmanager->resPrint;
389 $arrayofmassactions = array(
395 if ($permissiontodelete) {
396 $arrayofmassactions[
'predelete'] =
img_picto(
'',
'delete',
'class="pictofixedwidth"').$langs->trans(
"Delete");
398 if (
GETPOST(
'nomassaction',
'int') || in_array($massaction, array(
'presend',
'predelete'))) {
399 $arrayofmassactions = array();
401 $massactionbutton =
$form->selectMassAction(
'', $arrayofmassactions);
403 print
'<form method="POST" id="searchFormList" action="'.$_SERVER[
"PHP_SELF"].
'">'.
"\n";
404 if ($optioncss !=
'') {
405 print
'<input type="hidden" name="optioncss" value="'.$optioncss.
'">';
407 print
'<input type="hidden" name="token" value="'.newToken().
'">';
408 print
'<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
409 print
'<input type="hidden" name="action" value="list">';
410 print
'<input type="hidden" name="sortfield" value="'.$sortfield.
'">';
411 print
'<input type="hidden" name="sortorder" value="'.$sortorder.
'">';
412 print
'<input type="hidden" name="page" value="'.$page.
'">';
413 print
'<input type="hidden" name="contextpage" value="'.$contextpage.
'">';
415 $newcardbutton =
dolGetButtonTitle($langs->trans(
'New'),
'',
'fa fa-plus-circle',
dol_buildpath(
'/hrm/evaluation_card.php', 1).
'?action=create',
'', $permissiontoadd);
417 print_barre_liste($title, $page, $_SERVER[
"PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords,
'object_'.$object->picto, 0, $newcardbutton,
'', $limit, 0, 0, 1);
420 $topicmail =
"SendEvaluationRef";
421 $modelmail =
"evaluation";
423 $trackid =
'xxxx'.$object->id;
424 include DOL_DOCUMENT_ROOT.
'/core/tpl/massactions_pre.tpl.php';
427 foreach ($fieldstosearchall as $key => $val) {
428 $fieldstosearchall[$key] = $langs->trans($val);
430 print
'<div class="divsearchfieldfilter">'.$langs->trans(
"FilterOnInto", $search_all).join(
', ', $fieldstosearchall).
'</div>';
438 $parameters = array();
439 $reshook = $hookmanager->executeHooks(
'printFieldPreListTitle', $parameters, $object);
440 if (empty($reshook)) {
441 $moreforfilter .= $hookmanager->resPrint;
443 $moreforfilter = $hookmanager->resPrint;
446 if (!empty($moreforfilter)) {
447 print
'<div class="liste_titre liste_titre_bydiv centpercent">';
448 print $moreforfilter;
452 $varpage = empty($contextpage) ? $_SERVER[
"PHP_SELF"] : $contextpage;
453 $selectedfields =
$form->multiSelectArrayWithCheckbox(
'selectedfields', $arrayfields, $varpage);
454 $selectedfields .= (count($arrayofmassactions) ?
$form->showCheckAddButtons(
'checkforselect', 1) :
'');
456 print
'<div class="div-table-responsive">';
457 print
'<table class="tagtable nobottomiftotal liste'.($moreforfilter ?
" listwithfilterbefore" :
"").
'">'.
"\n";
462 print
'<tr class="liste_titre">';
463 foreach ($object->fields as $key => $val) {
464 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
465 if ($key ==
'status') {
466 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
467 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
468 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
469 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
470 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
471 } elseif (in_array($val[
'type'], array(
'double(24,8)',
'double(6,3)',
'integer',
'real',
'price')) && $val[
'label'] !=
'TechnicalID' && empty($val[
'arrayofkeyval'])) {
472 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
474 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
475 print
'<td class="liste_titre'.($cssforfield ?
' '.$cssforfield :
'').
'">';
476 if (!empty($val[
'arrayofkeyval']) && is_array($val[
'arrayofkeyval'])) {
477 print
$form->selectarray(
'search_'.$key, $val[
'arrayofkeyval'], (isset($search[$key]) ? $search[$key] :
''), $val[
'notnull'], 0, 0,
'', 1, 0, 0,
'',
'maxwidth100', 1);
478 } elseif ((strpos($val[
'type'],
'integer:') === 0) || (strpos($val[
'type'],
'sellist:') === 0)) {
479 print $object->showInputField($val, $key, (isset($search[$key]) ? $search[$key] :
''),
'',
'',
'search_',
'maxwidth125', 1);
480 } elseif (!preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
481 print
'<input type="text" class="flat maxwidth75" name="search_'.$key.
'" value="'.
dol_escape_htmltag(isset($search[$key]) ? $search[$key] :
'').
'">';
482 } elseif (preg_match(
'/^(date|timestamp|datetime)/', $val[
'type'])) {
483 print
'<div class="nowrap">';
484 print
$form->selectDate($search[$key.
'_dtstart'] ? $search[$key.
'_dtstart'] :
'',
"search_".$key.
"_dtstart", 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'From'));
486 print
'<div class="nowrap">';
487 print
$form->selectDate($search[$key.
'_dtend'] ? $search[$key.
'_dtend'] :
'',
"search_".$key.
"_dtend", 0, 0, 1,
'', 1, 0, 0,
'',
'',
'',
'', 1,
'', $langs->trans(
'to'));
494 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_input.tpl.php';
497 $parameters = array(
'arrayfields'=>$arrayfields);
498 $reshook = $hookmanager->executeHooks(
'printFieldListOption', $parameters, $object);
499 print $hookmanager->resPrint;
501 print
'<td class="liste_titre maxwidthsearch">';
502 $searchpicto =
$form->showFilterButtons();
510 print
'<tr class="liste_titre">';
511 foreach ($object->fields as $key => $val) {
512 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
513 if ($key ==
'status') {
514 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
515 } elseif (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
516 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
517 } elseif (in_array($val[
'type'], array(
'timestamp'))) {
518 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
519 } elseif (in_array($val[
'type'], array(
'double(24,8)',
'double(6,3)',
'integer',
'real',
'price')) && $val[
'label'] !=
'TechnicalID' && empty($val[
'arrayofkeyval'])) {
520 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
522 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
523 print
getTitleFieldOfList($arrayfields[
't.'.$key][
'label'], 0, $_SERVER[
'PHP_SELF'],
't.'.$key,
'', $param, ($cssforfield ?
'class="'.$cssforfield.
'"' :
''), $sortfield, $sortorder, ($cssforfield ? $cssforfield.
' ' :
'')).
"\n";
527 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_search_title.tpl.php';
529 $parameters = array(
'arrayfields'=>$arrayfields,
'param'=>$param,
'sortfield'=>$sortfield,
'sortorder'=>$sortorder);
530 $reshook = $hookmanager->executeHooks(
'printFieldListTitle', $parameters, $object);
531 print $hookmanager->resPrint;
533 print
getTitleFieldOfList($selectedfields, 0, $_SERVER[
"PHP_SELF"],
'',
'',
'',
'', $sortfield, $sortorder,
'center maxwidthsearch ').
"\n";
538 $needToFetchEachLine = 0;
539 if (isset($extrafields->attributes[$object->table_element][
'computed']) && is_array($extrafields->attributes[$object->table_element][
'computed']) && count($extrafields->attributes[$object->table_element][
'computed']) > 0) {
540 foreach ($extrafields->attributes[$object->table_element][
'computed'] as $key => $val) {
541 if (preg_match(
'/\$object/', $val)) {
542 $needToFetchEachLine++;
551 $totalarray = array();
552 $totalarray[
'nbfield'] = 0;
553 while ($i < ($limit ? min($num, $limit) : $num)) {
554 $obj = $db->fetch_object(
$resql);
560 $object->setVarsFromFetchObj($obj);
563 print
'<tr class="oddeven">';
564 foreach ($object->fields as $key => $val) {
565 $cssforfield = (empty($val[
'csslist']) ? (empty($val[
'css']) ?
'' : $val[
'css']) : $val[
'csslist']);
566 if (in_array($val[
'type'], array(
'date',
'datetime',
'timestamp'))) {
567 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
568 } elseif ($key ==
'status') {
569 $cssforfield .= ($cssforfield ?
' ' :
'').
'center';
572 if (in_array($val[
'type'], array(
'timestamp'))) {
573 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
574 } elseif ($key ==
'ref') {
575 $cssforfield .= ($cssforfield ?
' ' :
'').
'nowrap';
578 if (in_array($val[
'type'], array(
'double(24,8)',
'double(6,3)',
'integer',
'real',
'price')) && !in_array($key, array(
'rowid',
'status')) && empty($val[
'arrayofkeyval'])) {
579 $cssforfield .= ($cssforfield ?
' ' :
'').
'right';
583 if (!empty($arrayfields[
't.'.$key][
'checked'])) {
584 print
'<td'.($cssforfield ?
' class="'.$cssforfield.
'"' :
'').
'>';
585 if ($key ==
'status') {
586 print $object->getLibStatut(5);
587 } elseif ($key ==
'rowid') {
588 print $object->showOutputField($val, $key, $object->id,
'');
590 print $object->showOutputField($val, $key, $object->$key,
'');
594 $totalarray[
'nbfield']++;
596 if (!empty($val[
'isameasure']) && $val[
'isameasure'] == 1) {
598 $totalarray[
'pos'][$totalarray[
'nbfield']] =
't.'.$key;
600 if (!isset($totalarray[
'val'])) {
601 $totalarray[
'val'] = array();
603 if (!isset($totalarray[
'val'][
't.'.$key])) {
604 $totalarray[
'val'][
't.'.$key] = 0;
606 $totalarray[
'val'][
't.'.$key] += $object->$key;
611 include DOL_DOCUMENT_ROOT.
'/core/tpl/extrafields_list_print_fields.tpl.php';
613 $parameters = array(
'arrayfields'=>$arrayfields,
'object'=>$object,
'obj'=>$obj,
'i'=>$i,
'totalarray'=>&$totalarray);
614 $reshook = $hookmanager->executeHooks(
'printFieldListValue', $parameters, $object);
615 print $hookmanager->resPrint;
617 print
'<td class="nowrap center">';
618 if ($massactionbutton || $massaction) {
620 if (in_array($object->id, $arrayofselected)) {
623 print
'<input id="cb'.$object->id.
'" class="flat checkforselect" type="checkbox" name="toselect[]" value="'.$object->id.
'"'.($selected ?
' checked="checked"' :
'').
'>';
627 $totalarray[
'nbfield']++;
636 include DOL_DOCUMENT_ROOT.
'/core/tpl/list_print_total.tpl.php';
641 foreach ($arrayfields as $key => $val) {
642 if (!empty($val[
'checked'])) {
646 print
'<tr><td colspan="'.$colspan.
'" class="opacitymedium">'.$langs->trans(
"NoRecordFound").
'</td></tr>';
652 $parameters = array(
'arrayfields'=>$arrayfields,
'sql'=>$sql);
653 $reshook = $hookmanager->executeHooks(
'printFieldListFooter', $parameters, $object);
654 print $hookmanager->resPrint;
656 print
'</table>'.
"\n";
659 print
'</form>'.
"\n";
661 if (in_array(
'builddoc', $arrayofmassactions) && ($nbtotalofrecords ===
'' || $nbtotalofrecords)) {
662 $hidegeneratedfilelistifempty = 1;
663 if ($massaction ==
'builddoc' || $action ==
'remove_file' || $show_files) {
664 $hidegeneratedfilelistifempty = 0;
667 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formfile.class.php';
671 $urlsource = $_SERVER[
'PHP_SELF'].
'?sortfield='.$sortfield.
'&sortorder='.$sortorder;
672 $urlsource .= str_replace(
'&',
'&', $param);
674 $filedir = $diroutputmassaction;
675 $genallowed = $permissiontoread;
676 $delallowed = $permissiontoadd;
678 print $formfile->showdocuments(
'massfilesarea_hrm',
'', $filedir, $urlsource, 0, $delallowed,
'', 1, 1, 0, 48, 1, $param, $title,
'',
'',
'',
null, $hidegeneratedfilelistifempty);