29require
'../main.inc.php';
34require_once DOL_DOCUMENT_ROOT.
"/core/lib/admin.lib.php";
35require_once DOL_DOCUMENT_ROOT.
'/hrm/lib/hrm.lib.php';
36require_once DOL_DOCUMENT_ROOT.
'/hrm/class/skill.class.php';
40$langs->loadLangs(array(
"admin",
"hrm"));
48$action =
GETPOST(
'action',
'aZ09');
49$backtopage =
GETPOST(
'backtopage',
'alpha');
51$value =
GETPOST(
'value',
'alpha');
52$label =
GETPOST(
'label',
'alpha');
53$modulepart =
GETPOST(
'modulepart',
'aZ09');
55$scandir =
GETPOST(
'scan_dir',
'alpha');
58$arrayofparameters = array(
59 'HRM_MAXRANK'=>array(
'type'=>
'integer',
'enabled'=>1),
60 'HRM_DEFAULT_SKILL_DESCRIPTION'=>array(
'type'=>
'varchar',
'enabled'=>1),
66$dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
73include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
75if ($action ==
'update') {
76 $max_rank =
GETPOST(
'HRM_MAXRANK',
'int');
79 if (!empty($max_rank)) {
80 $static_skill =
new Skill($db);
81 $TAllSkills = $static_skill->fetchAll();
82 if (is_array($TAllSkills)) {
83 foreach ($TAllSkills as &$skill) {
84 if (empty($skill->lines)) {
87 if (count($skill->lines) < $conf->global->HRM_MAXRANK) {
88 $skill->createSkills(count($skill->lines) + 1);
93} elseif ($action ==
'updateMask') {
94 $maskconst =
GETPOST(
'maskconstEvaluation',
'aZ09');
95 $maskvalue =
GETPOST(
'maskEvaluation',
'alpha');
97 if ($maskconst && preg_match(
'/_MASK$/', $maskconst)) {
98 $res =
dolibarr_set_const($db, $maskconst, $maskvalue,
'chaine', 0,
'', $conf->entity);
109} elseif ($action ==
'specimen') {
110 $modele =
GETPOST(
'module',
'alpha');
111 $tmpobjectkey =
GETPOST(
'object');
113 $tmpobject =
new $tmpobjectkey($db);
114 $tmpobject->initAsSpecimen();
120 $dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
121 foreach ($dirmodels as $reldir) {
122 $file =
dol_buildpath($reldir.
"core/modules/hrm/doc/pdf_".$modele.
"_".strtolower($tmpobjectkey).
".modules.php", 0);
123 if (file_exists($file)) {
125 $classname =
"pdf_".$modele;
133 $module =
new $classname($db);
135 if ($module->write_file($tmpobject, $langs) > 0) {
136 header(
"Location: ".DOL_URL_ROOT.
"/document.php?modulepart=".strtolower($tmpobjectkey).
"&file=SPECIMEN.pdf");
144 dol_syslog($langs->trans(
"ErrorModuleNotFound"), LOG_ERR);
146} elseif ($action ==
'setmod') {
148 $tmpobjectkey =
GETPOST(
'object');
149 if (!empty($tmpobjectkey)) {
150 $constforval =
'HRMTEST_'.strtoupper($tmpobjectkey).
"_ADDON";
153} elseif ($action ==
'set') {
156} elseif ($action ==
'del') {
159 $tmpobjectkey =
GETPOST(
'object');
160 if (!empty($tmpobjectkey)) {
161 $constforval =
'HRMTEST_'.strtoupper($tmpobjectkey).
'_ADDON_PDF';
167} elseif ($action ==
'setdoc') {
169 $tmpobjectkey =
GETPOST(
'object');
170 if (!empty($tmpobjectkey)) {
171 $constforval =
'HRMTEST_'.strtoupper($tmpobjectkey).
'_ADDON_PDF';
175 $conf->global->$constforval = $value;
184} elseif ($action ==
'unsetdoc') {
185 $tmpobjectkey =
GETPOST(
'object');
186 if (!empty($tmpobjectkey)) {
187 $constforval =
'HRMTEST_'.strtoupper($tmpobjectkey).
'_ADDON_PDF';
197$form =
new Form($db);
200$page_name =
"HRMSetup";
202llxHeader(
'', $langs->trans($page_name), $help_url);
205$linkback =
'<a href="'.($backtopage ? $backtopage : DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1').
'">'.$langs->trans(
"BackToModuleList").
'</a>';
214$myTmpObjects = array();
215$myTmpObjects[
'evaluation'] = array(
'label'=>
'Evaluation',
'includerefgeneration'=>1,
'includedocgeneration'=>0);
217foreach ($myTmpObjects as $myTmpObjectKey => $myTmpObjectArray) {
218 if ($myTmpObjectKey != $type) {
221 if ($myTmpObjectArray[
'includerefgeneration']) {
227 print
load_fiche_titre($langs->trans(
"NumberingModules").
' ('.$myTmpObjectArray[
'label'].
')',
'',
'');
229 print
'<table class="noborder centpercent">';
230 print
'<tr class="liste_titre">';
231 print
'<td>'.$langs->trans(
"Name").
'</td>';
232 print
'<td>'.$langs->trans(
"Description").
'</td>';
233 print
'<td class="nowrap">'.$langs->trans(
"Example").
'</td>';
234 print
'<td class="center" width="60">'.$langs->trans(
"Status").
'</td>';
235 print
'<td class="center" width="16">'.$langs->trans(
"ShortInfo").
'</td>';
240 foreach ($dirmodels as $reldir) {
244 $handle = opendir($dir);
245 if (is_resource($handle)) {
246 while (($file = readdir($handle)) !==
false) {
247 if (strpos($file,
'mod_'.strtolower($myTmpObjectKey).
'_') === 0 && substr($file,
dol_strlen($file) - 3, 3) ==
'php') {
248 $file = substr($file, 0,
dol_strlen($file) - 4);
250 require_once $dir.
'/'.$file.
'.php';
252 $module =
new $file($db);
255 if ($module->version ==
'development' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2) {
258 if ($module->version ==
'experimental' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1) {
262 if ($module->isEnabled()) {
263 dol_include_once(
'/'.$moduledir.
'/class/'.strtolower($myTmpObjectKey).
'.class.php');
265 print
'<tr class="oddeven"><td>'.$module->name.
"</td><td>\n";
266 print $module->info($langs);
270 print
'<td class="nowrap">';
271 $tmp = $module->getExample();
272 if (preg_match(
'/^Error/', $tmp)) {
273 $langs->load(
"errors");
274 print
'<div class="error">'.$langs->trans($tmp).
'</div>';
275 } elseif ($tmp ==
'NotConfigured') {
276 print $langs->trans($tmp);
282 print
'<td class="center">';
283 $constforvar =
'HRMTEST_'.strtoupper($myTmpObjectKey).
'_ADDON';
285 print
img_picto($langs->trans(
"Activated"),
'switch_on');
287 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=setmod&token='.newToken().
'&object='.strtolower($myTmpObjectKey).
'&value='.urlencode($file).
'">';
288 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
293 $nameofclass = ucfirst($myTmpObjectKey);
294 $mytmpinstance =
new $nameofclass($db);
295 $mytmpinstance->initAsSpecimen();
299 $htmltooltip .=
''.$langs->trans(
"Version").
': <b>'.$module->getVersion().
'</b><br>';
301 $nextval = $module->getNextValue($mytmpinstance);
302 if (
"$nextval" != $langs->trans(
"NotAvailable")) {
303 $htmltooltip .=
''.$langs->trans(
"NextValue").
': ';
305 if (preg_match(
'/^Error/', $nextval) || $nextval ==
'NotConfigured') {
306 $nextval = $langs->trans($nextval);
308 $htmltooltip .= $nextval.
'<br>';
310 $htmltooltip .= $langs->trans($module->error).
'<br>';
314 print
'<td class="center">';
315 print $form->textwithpicto(
'', $htmltooltip, 1, 0);
329 if ($myTmpObjectArray[
'includedocgeneration']) {
334 $type = strtolower($myTmpObjectKey);
336 print
load_fiche_titre($langs->trans(
"DocumentModules", $myTmpObjectKey),
'',
'');
341 $sql .=
" FROM ".MAIN_DB_PREFIX.
"document_model";
342 $sql .=
" WHERE type = '".$db->escape($type).
"'";
343 $sql .=
" AND entity = ".$conf->entity;
344 $resql = $db->query($sql);
347 $num_rows = $db->num_rows($resql);
348 while ($i < $num_rows) {
349 $array = $db->fetch_array($resql);
350 array_push($def, $array[0]);
357 print
"<table class=\"noborder\" width=\"100%\">\n";
358 print
"<tr class=\"liste_titre\">\n";
359 print
'<td>'.$langs->trans(
"Name").
'</td>';
360 print
'<td>'.$langs->trans(
"Description").
'</td>';
361 print
'<td class="center" width="60">'.$langs->trans(
"Status").
"</td>\n";
362 print
'<td class="center" width="60">'.$langs->trans(
"Default").
"</td>\n";
363 print
'<td class="center" width="38">'.$langs->trans(
"ShortInfo").
'</td>';
364 print
'<td class="center" width="38">'.$langs->trans(
"Preview").
'</td>';
369 foreach ($dirmodels as $reldir) {
370 foreach (array(
'',
'/doc') as $valdir) {
371 $realpath = $reldir.
"core/modules/".$moduledir.$valdir;
375 $handle = opendir($dir);
376 if (is_resource($handle)) {
377 while (($file = readdir($handle)) !==
false) {
383 foreach ($filelist as $file) {
384 if (preg_match(
'/\.modules\.php$/i', $file) && preg_match(
'/^(pdf_|doc_)/', $file)) {
385 if (file_exists($dir.
'/'.$file)) {
386 $name = substr($file, 4,
dol_strlen($file) - 16);
387 $classname = substr($file, 0,
dol_strlen($file) - 12);
389 require_once $dir.
'/'.$file;
390 $module =
new $classname($db);
392 $modulequalified = 1;
393 if ($module->version ==
'development' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2) {
394 $modulequalified = 0;
396 if ($module->version ==
'experimental' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1) {
397 $modulequalified = 0;
400 if ($modulequalified) {
401 print
'<tr class="oddeven"><td width="100">';
402 print(empty($module->name) ? $name : $module->
name);
404 if (method_exists($module,
'info')) {
405 print $module->info($langs);
407 print $module->description;
412 if (in_array($name, $def)) {
413 print
'<td class="center">'.
"\n";
414 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=del&token='.newToken().
'&value='.$name.
'">';
415 print
img_picto($langs->trans(
"Enabled"),
'switch_on');
419 print
'<td class="center">'.
"\n";
420 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=set&token='.newToken().
'&value='.$name.
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'">'.
img_picto($langs->trans(
"Disabled"),
'switch_off').
'</a>';
425 print
'<td class="center">';
426 $constforvar =
'HRMTEST_'.strtoupper($myTmpObjectKey).
'_ADDON';
430 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=unsetdoc&token='.newToken().
'&object='.urlencode(strtolower($myTmpObjectKey)).
'&value='.$name.
'&scan_dir='.$module->scandir.
'&label='.urlencode($module->name).
'&type='.urlencode($type).
'" alt="'.$langs->trans(
"Disable").
'">'.
img_picto($langs->trans(
"Enabled"),
'on').
'</a>';
432 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=setdoc&token='.newToken().
'&object='.urlencode(strtolower($myTmpObjectKey)).
'&value='.$name.
'&scan_dir='.urlencode($module->scandir).
'&label='.urlencode($module->name).
'" alt="'.$langs->trans(
"Default").
'">'.
img_picto($langs->trans(
"Disabled"),
'off').
'</a>';
437 $htmltooltip =
''.$langs->trans(
"Name").
': '.$module->name;
438 $htmltooltip .=
'<br>'.$langs->trans(
"Type").
': '.($module->type ? $module->type : $langs->trans(
"Unknown"));
439 if ($module->type ==
'pdf') {
440 $htmltooltip .=
'<br>'.$langs->trans(
"Width").
'/'.$langs->trans(
"Height").
': '.$module->page_largeur.
'/'.$module->page_hauteur;
442 $htmltooltip .=
'<br>'.$langs->trans(
"Path").
': '.preg_replace(
'/^\//',
'', $realpath).
'/'.$file;
444 $htmltooltip .=
'<br><br><u>'.$langs->trans(
"FeaturesSupported").
':</u>';
445 $htmltooltip .=
'<br>'.$langs->trans(
"Logo").
': '.
yn($module->option_logo, 1, 1);
446 $htmltooltip .=
'<br>'.$langs->trans(
"MultiLanguage").
': '.
yn($module->option_multilang, 1, 1);
448 print
'<td class="center">';
449 print $form->textwithpicto(
'', $htmltooltip, 1, 0);
453 print
'<td class="center">';
454 if ($module->type ==
'pdf') {
455 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=specimen&module='.$name.
'&object='.$myTmpObjectKey.
'">'.
img_object($langs->trans(
"Preview"),
'pdf').
'</a>';
457 print
img_object($langs->trans(
"PreviewNotAvailable"),
'generic');
478 $conf->global->HRM_MAXRANK = Skill::DEFAULT_MAX_RANK_PER_SKILL;
481if ($action ==
'edit') {
482 print
'<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
483 print
'<input type="hidden" name="token" value="'.newToken().
'">';
484 print
'<input type="hidden" name="action" value="update">';
486 print
'<table class="noborder centpercent">';
487 print
'<tr class="liste_titre"><td>'.$langs->trans(
"Parameter").
'</td><td>'.$langs->trans(
"Value").
'</td></tr>';
489 foreach ($arrayofparameters as $constname => $val) {
490 if ($val[
'enabled']==1) {
492 print
'<tr class="oddeven"><td>';
493 $tooltiphelp = (($langs->trans($constname .
'Tooltip') != $constname .
'Tooltip') ? $langs->trans($constname .
'Tooltip') :
'');
494 print
'<span id="helplink'.$constname.
'" class="spanforparamtooltip">'.$form->textwithpicto($langs->trans($constname), $tooltiphelp, 1,
'info',
'', 0, 3,
'tootips'.$constname).
'</span>';
497 if ($val[
'type'] ==
'textarea') {
498 print
'<textarea class="flat" name="' . $constname .
'" id="' . $constname .
'" cols="50" rows="5" wrap="soft">' .
"\n";
500 print
"</textarea>\n";
501 } elseif ($val[
'type'] ==
'integer') {
502 print
'<input class="flat" name="' . $constname .
'" id="' . $constname .
'" value="' .
getDolGlobalString($constname) .
'" type="number" step="1" min="0" max="50" >' .
"\n";
503 } elseif ($val[
'type'] ==
'html') {
504 require_once DOL_DOCUMENT_ROOT .
'/core/class/doleditor.class.php';
505 $doleditor =
new DolEditor($constname,
getDolGlobalString($constname),
'', 160,
'dolibarr_notes',
'',
false,
false, isModEnabled(
'fckeditor'), ROWS_5,
'90%');
506 $doleditor->Create();
507 } elseif ($val[
'type'] ==
'yesno') {
509 } elseif (preg_match(
'/emailtemplate:/', $val[
'type'])) {
510 include_once DOL_DOCUMENT_ROOT .
'/core/class/html.formmail.class.php';
513 $tmp = explode(
':', $val[
'type']);
514 $nboftemplates = $formmail->fetchAllEMailTemplate($tmp[1], $user,
null, 1);
516 $arrayofmessagename = array();
517 if (is_array($formmail->lines_model)) {
518 foreach ($formmail->lines_model as $modelmail) {
521 if (!empty($arrayofmessagename[$modelmail->label])) {
522 $moreonlabel =
' <span class="opacitymedium">(' . $langs->trans(
"SeveralLangugeVariatFound") .
')</span>';
525 $arrayofmessagename[$modelmail->id] = $langs->trans(preg_replace(
'/\(|\)/',
'', $modelmail->label)) . $moreonlabel;
528 print $form->selectarray($constname, $arrayofmessagename,
getDolGlobalString($constname),
'None', 0, 0,
'', 0, 0, 0,
'',
'', 1);
529 } elseif (preg_match(
'/category:/', $val[
'type'])) {
530 require_once DOL_DOCUMENT_ROOT.
'/categories/class/categorie.class.php';
531 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formother.class.php';
534 $tmp = explode(
':', $val[
'type']);
535 print
img_picto(
'',
'category',
'class="pictofixedwidth"');
536 print $formother->select_categories($tmp[1],
getDolGlobalString($constname), $constname, 0, $langs->trans(
'CustomersProspectsCategoriesShort'));
537 } elseif (preg_match(
'/thirdparty_type/', $val[
'type'])) {
538 require_once DOL_DOCUMENT_ROOT .
'/core/class/html.formcompany.class.php';
540 print $formcompany->selectProspectCustomerType(
getDolGlobalString($constname), $constname);
541 } elseif ($val[
'type'] ==
'securekey') {
542 print
'<input required="required" type="text" class="flat" id="' . $constname .
'" name="' . $constname .
'" value="' . (
GETPOST($constname,
'alpha') ?
GETPOST($constname,
'alpha') :
getDolGlobalString($constname)) .
'" size="40">';
543 if (!empty($conf->use_javascript_ajax)) {
544 print
' ' .
img_picto($langs->trans(
'Generate'),
'refresh',
'id="generate_token' . $constname .
'" class="linkobject"');
548 include_once DOL_DOCUMENT_ROOT .
'/core/lib/security2.lib.php';
550 } elseif ($val[
'type'] ==
'product') {
551 if (isModEnabled(
'product') || isModEnabled(
'service')) {
553 $form->select_produits($selected, $constname,
'', 0);
556 print
'<input name="' . $constname .
'" class="flat ' . (empty($val[
'css']) ?
'minwidth200' : $val[
'css']) .
'" value="' .
getDolGlobalString($constname) .
'">';
563 print
'<br><div class="center">';
564 print
'<input class="button button-save" type="submit" value="'.$langs->trans(
"Save").
'">';
570 if (!empty($arrayofparameters)) {
571 print
'<table class="noborder centpercent">';
572 print
'<tr class="liste_titre"><td>'.$langs->trans(
"Parameter").
'</td><td>'.$langs->trans(
"Value").
'</td></tr>';
574 foreach ($arrayofparameters as $constname => $val) {
575 if ($val[
'enabled']==1) {
577 print
'<tr class="oddeven"><td>';
578 $tooltiphelp = (($langs->trans($constname .
'Tooltip') != $constname .
'Tooltip') ? $langs->trans($constname .
'Tooltip') :
'');
579 print $form->textwithpicto($langs->trans($constname), $tooltiphelp);
582 if ($val[
'type'] ==
'textarea') {
584 } elseif ($val[
'type']==
'html') {
586 } elseif ($val[
'type'] ==
'yesno') {
587 print ajax_constantonoff($constname);
588 } elseif (preg_match(
'/emailtemplate:/', $val[
'type'])) {
589 include_once DOL_DOCUMENT_ROOT .
'/core/class/html.formmail.class.php';
592 $tmp = explode(
':', $val[
'type']);
594 $template = $formmail->getEMailTemplate($db, $tmp[1], $user, $langs,
getDolGlobalString($constname));
598 print $langs->trans($template->label);
599 } elseif (preg_match(
'/category:/', $val[
'type'])) {
605 $ways = $c->print_all_ways(
' >> ',
'none', 0, 1);
607 foreach ($ways as $way) {
608 $toprint[] =
'<li class="select2-search-choice-dolibarr noborderoncategories"' . ($c->color ?
' style="background: #' . $c->color .
';"' :
' style="background: #bbb"') .
'>' . $way .
'</li>';
610 print
'<div class="select2-container-multi-dolibarr" style="width: 90%;"><ul class="select2-choices-dolibarr">' . implode(
' ', $toprint) .
'</ul></div>';
611 } elseif (preg_match(
'/thirdparty_type/', $val[
'type'])) {
613 print $langs->trans(
"Prospect");
615 print $langs->trans(
"ProspectCustomer");
617 print $langs->trans(
"Customer");
619 print $langs->trans(
"NorProspectNorCustomer");
621 } elseif ($val[
'type'] ==
'product') {
626 } elseif ($resprod < 0) {
638 print
'<div class="tabsAction">';
639 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?action=edit">'.$langs->trans(
"Modify").
'</a>';
642 print
'<br>'.$langs->trans(
"NothingToSetup");
647if (empty($setupnotempty)) {
648 print
'<br>'.$langs->trans(
"NothingToSetup");
addDocumentModel($name, $type, $label='', $description='')
Add document model used by doc generator.
dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $note='', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
dolibarr_del_const($db, $name, $entity=1)
Delete a constant.
delDocumentModel($name, $type)
Delete document model used by doc generator.
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
Class to manage categories.
Class to manage a WYSIWYG editor.
Class to manage products or services.
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
yn($yesno, $case=1, $color=0)
Return yes or no in current language.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
img_object($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0)
Show a picto called object_picto (generic function)
dol_get_fiche_end($notab=0)
Return tab footer of a card.
dol_nl2br($stringtoencode, $nl2brmode=0, $forxml=false)
Replace CRLF in string with a HTML BR tag.
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
if(!function_exists( 'dol_getprefix')) dol_include_once($relpath, $classname='')
Make an include_once using default root and alternate root if it fails.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
hrmAdminPrepareHead()
Prepare admin pages header.
$conf db name
Only used if Module[ID]Name translation string is not found.
dolJSToSetRandomPassword($htmlname, $htmlnameofbutton='generate_token', $generic=1)
Ouput javacript to autoset a generated password using default module into a HTML element.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.