@@ -74,7 +74,7 @@ |
||
74 | 74 | |
75 | 75 | $result = restrictedArea($user, 'banque', $object->id, 'bank_account', '', ''); |
76 | 76 | |
77 | -$permissiontoadd = $user->rights->banque->modifier; // Used by the include of actions_dellink.inc.php |
|
77 | +$permissiontoadd = $user->rights->banque->modifier; // Used by the include of actions_dellink.inc.php |
|
78 | 78 | |
79 | 79 | |
80 | 80 | /* |
@@ -94,7 +94,7 @@ |
||
94 | 94 | } |
95 | 95 | } |
96 | 96 | |
97 | -$permissiontoadd = $user->rights->expensereport->creer; // Used by the include of actions_dellink.inc.php |
|
97 | +$permissiontoadd = $user->rights->expensereport->creer; // Used by the include of actions_dellink.inc.php |
|
98 | 98 | |
99 | 99 | |
100 | 100 | /* |
@@ -128,7 +128,7 @@ |
||
128 | 128 | |
129 | 129 | // Array to add new pages in new tabs |
130 | 130 | $this->tabs = array(); |
131 | - $this->tabs[] = array('data'=>'user:+skill_tab:Skills:hrm:1:/hrm/skill_tab.php?id=__ID__&objecttype=user'); // To add a new tab identified by code tabname1 |
|
131 | + $this->tabs[] = array('data'=>'user:+skill_tab:Skills:hrm:1:/hrm/skill_tab.php?id=__ID__&objecttype=user'); // To add a new tab identified by code tabname1 |
|
132 | 132 | //$this->tabs[] = array('data'=>'job:+tabname1:Poste:mylangfile@hrm:1:/hrm/poste_list.php?fk_job=__ID__'); // To add a new tab identified by code tabname1 |
133 | 133 | // Example: |
134 | 134 | // $this->tabs[] = array('data'=>'objecttype:+tabname1:Title1:mylangfile@hrm:$user->rights->hrm->read:/hrm/mynewtab1.php?id=__ID__'); // To add a new tab identified by code tabname1 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | case 'sellist': |
49 | 49 | $tmp = ''; |
50 | 50 | $tmpparam = jsonOrUnserialize($obj->param); // $tmp may be array 'options' => array 'c_currencies:code_iso:code_iso' => null |
51 | - if (is_array($tmpparam) && array_key_exists('options', $tmpparam) && $tmpparam['options'] && is_array($tmpparam['options'])) { |
|
51 | + if (is_array($tmpparam) && array_key_exists('options', $tmpparam) && $tmpparam['options'] && is_array($tmpparam['options'])) { |
|
52 | 52 | $tmpkeys = array_keys($tmpparam['options']); |
53 | 53 | $tmp = array_shift($tmpkeys); |
54 | 54 | } |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | */ |
139 | 139 | |
140 | 140 | // If we have a hash public (hashp), we guess the original_file. |
141 | -$ecmfile=''; |
|
141 | +$ecmfile = ''; |
|
142 | 142 | if (!empty($hashp)) { |
143 | 143 | include_once DOL_DOCUMENT_ROOT.'/ecm/class/ecmfiles.class.php'; |
144 | 144 | $ecmfile = new EcmFiles($db); |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | // Security: Delete string ../ or ..\ into $original_file |
199 | -$original_file = preg_replace('/\.\.+/', '..', $original_file); // Replace '... or more' with '..' |
|
199 | +$original_file = preg_replace('/\.\.+/', '..', $original_file); // Replace '... or more' with '..' |
|
200 | 200 | $original_file = str_replace('../', '/', $original_file); |
201 | 201 | $original_file = str_replace('..\\', '/', $original_file); |
202 | 202 |
@@ -81,7 +81,9 @@ |
||
81 | 81 | $TAllSkills = $static_skill->fetchAll(); |
82 | 82 | if (is_array($TAllSkills)) { |
83 | 83 | foreach ($TAllSkills as &$skill) { |
84 | - if (empty($skill->lines)) $skill->fetchLines(); |
|
84 | + if (empty($skill->lines)) { |
|
85 | + $skill->fetchLines(); |
|
86 | + } |
|
85 | 87 | if (count($skill->lines) < $conf->global->HRM_MAXRANK) { |
86 | 88 | $skill->createSkills(count($skill->lines) + 1); |
87 | 89 | } |
@@ -50,14 +50,14 @@ discard block |
||
50 | 50 | |
51 | 51 | $value = GETPOST('value', 'alpha'); |
52 | 52 | $label = GETPOST('label', 'alpha'); |
53 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
53 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
54 | 54 | |
55 | 55 | $scandir = GETPOST('scan_dir', 'alpha'); |
56 | 56 | $type = 'myobject'; |
57 | 57 | |
58 | 58 | $arrayofparameters = array( |
59 | - 'HRM_MAXRANK'=>array('type'=>'integer','enabled'=>1), |
|
60 | - 'HRM_DEFAULT_SKILL_DESCRIPTION'=>array('type'=>'varchar','enabled'=>1), |
|
59 | + 'HRM_MAXRANK'=>array('type'=>'integer', 'enabled'=>1), |
|
60 | + 'HRM_DEFAULT_SKILL_DESCRIPTION'=>array('type'=>'varchar', 'enabled'=>1), |
|
61 | 61 | ); |
62 | 62 | |
63 | 63 | $error = 0; |
@@ -484,27 +484,27 @@ discard block |
||
484 | 484 | print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td></tr>'; |
485 | 485 | |
486 | 486 | foreach ($arrayofparameters as $constname => $val) { |
487 | - if ($val['enabled']==1) { |
|
487 | + if ($val['enabled'] == 1) { |
|
488 | 488 | $setupnotempty++; |
489 | 489 | print '<tr class="oddeven"><td>'; |
490 | - $tooltiphelp = (($langs->trans($constname . 'Tooltip') != $constname . 'Tooltip') ? $langs->trans($constname . 'Tooltip') : ''); |
|
490 | + $tooltiphelp = (($langs->trans($constname.'Tooltip') != $constname.'Tooltip') ? $langs->trans($constname.'Tooltip') : ''); |
|
491 | 491 | print '<span id="helplink'.$constname.'" class="spanforparamtooltip">'.$form->textwithpicto($langs->trans($constname), $tooltiphelp, 1, 'info', '', 0, 3, 'tootips'.$constname).'</span>'; |
492 | 492 | print '</td><td>'; |
493 | 493 | |
494 | 494 | if ($val['type'] == 'textarea') { |
495 | - print '<textarea class="flat" name="' . $constname . '" id="' . $constname . '" cols="50" rows="5" wrap="soft">' . "\n"; |
|
495 | + print '<textarea class="flat" name="'.$constname.'" id="'.$constname.'" cols="50" rows="5" wrap="soft">'."\n"; |
|
496 | 496 | print $conf->global->{$constname}; |
497 | 497 | print "</textarea>\n"; |
498 | 498 | } elseif ($val['type'] == 'integer') { |
499 | - print '<input class="flat" name="' . $constname . '" id="' . $constname . '" value="' . $conf->global->$constname . '" type="number" step="1" min="0" max="50" >' . "\n"; |
|
499 | + print '<input class="flat" name="'.$constname.'" id="'.$constname.'" value="'.$conf->global->$constname.'" type="number" step="1" min="0" max="50" >'."\n"; |
|
500 | 500 | } elseif ($val['type'] == 'html') { |
501 | - require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php'; |
|
501 | + require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; |
|
502 | 502 | $doleditor = new DolEditor($constname, $conf->global->{$constname}, '', 160, 'dolibarr_notes', '', false, false, isModEnabled('fckeditor'), ROWS_5, '90%'); |
503 | 503 | $doleditor->Create(); |
504 | 504 | } elseif ($val['type'] == 'yesno') { |
505 | 505 | print $form->selectyesno($constname, $conf->global->{$constname}, 1); |
506 | 506 | } elseif (preg_match('/emailtemplate:/', $val['type'])) { |
507 | - include_once DOL_DOCUMENT_ROOT . '/core/class/html.formmail.class.php'; |
|
507 | + include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php'; |
|
508 | 508 | $formmail = new FormMail($db); |
509 | 509 | |
510 | 510 | $tmp = explode(':', $val['type']); |
@@ -516,10 +516,10 @@ discard block |
||
516 | 516 | //var_dump($modelmail); |
517 | 517 | $moreonlabel = ''; |
518 | 518 | if (!empty($arrayofmessagename[$modelmail->label])) { |
519 | - $moreonlabel = ' <span class="opacitymedium">(' . $langs->trans("SeveralLangugeVariatFound") . ')</span>'; |
|
519 | + $moreonlabel = ' <span class="opacitymedium">('.$langs->trans("SeveralLangugeVariatFound").')</span>'; |
|
520 | 520 | } |
521 | 521 | // The 'label' is the key that is unique if we exclude the language |
522 | - $arrayofmessagename[$modelmail->id] = $langs->trans(preg_replace('/\(|\)/', '', $modelmail->label)) . $moreonlabel; |
|
522 | + $arrayofmessagename[$modelmail->id] = $langs->trans(preg_replace('/\(|\)/', '', $modelmail->label)).$moreonlabel; |
|
523 | 523 | } |
524 | 524 | } |
525 | 525 | print $form->selectarray($constname, $arrayofmessagename, $conf->global->{$constname}, 'None', 0, 0, '', 0, 0, 0, '', '', 1); |
@@ -530,27 +530,27 @@ discard block |
||
530 | 530 | |
531 | 531 | $tmp = explode(':', $val['type']); |
532 | 532 | print img_picto('', 'category', 'class="pictofixedwidth"'); |
533 | - print $formother->select_categories($tmp[1], $conf->global->{$constname}, $constname, 0, $langs->trans('CustomersProspectsCategoriesShort')); |
|
533 | + print $formother->select_categories($tmp[1], $conf->global->{$constname}, $constname, 0, $langs->trans('CustomersProspectsCategoriesShort')); |
|
534 | 534 | } elseif (preg_match('/thirdparty_type/', $val['type'])) { |
535 | - require_once DOL_DOCUMENT_ROOT . '/core/class/html.formcompany.class.php'; |
|
535 | + require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php'; |
|
536 | 536 | $formcompany = new FormCompany($db); |
537 | 537 | print $formcompany->selectProspectCustomerType($conf->global->{$constname}, $constname); |
538 | 538 | } elseif ($val['type'] == 'securekey') { |
539 | - print '<input required="required" type="text" class="flat" id="' . $constname . '" name="' . $constname . '" value="' . (GETPOST($constname, 'alpha') ? GETPOST($constname, 'alpha') : $conf->global->{$constname}) . '" size="40">'; |
|
539 | + print '<input required="required" type="text" class="flat" id="'.$constname.'" name="'.$constname.'" value="'.(GETPOST($constname, 'alpha') ? GETPOST($constname, 'alpha') : $conf->global->{$constname}).'" size="40">'; |
|
540 | 540 | if (!empty($conf->use_javascript_ajax)) { |
541 | - print ' ' . img_picto($langs->trans('Generate'), 'refresh', 'id="generate_token' . $constname . '" class="linkobject"'); |
|
541 | + print ' '.img_picto($langs->trans('Generate'), 'refresh', 'id="generate_token'.$constname.'" class="linkobject"'); |
|
542 | 542 | } |
543 | 543 | |
544 | 544 | // Add button to autosuggest a key |
545 | - include_once DOL_DOCUMENT_ROOT . '/core/lib/security2.lib.php'; |
|
546 | - print dolJSToSetRandomPassword($constname, 'generate_token' . $constname); |
|
545 | + include_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php'; |
|
546 | + print dolJSToSetRandomPassword($constname, 'generate_token'.$constname); |
|
547 | 547 | } elseif ($val['type'] == 'product') { |
548 | 548 | if (isModEnabled('product') || isModEnabled('service')) { |
549 | 549 | $selected = (empty($conf->global->$constname) ? '' : $conf->global->$constname); |
550 | 550 | $form->select_produits($selected, $constname, '', 0); |
551 | 551 | } |
552 | 552 | } else { |
553 | - print '<input name="' . $constname . '" class="flat ' . (empty($val['css']) ? 'minwidth200' : $val['css']) . '" value="' . $conf->global->{$constname} . '">'; |
|
553 | + print '<input name="'.$constname.'" class="flat '.(empty($val['css']) ? 'minwidth200' : $val['css']).'" value="'.$conf->global->{$constname}.'">'; |
|
554 | 554 | } |
555 | 555 | print '</td></tr>'; |
556 | 556 | } |
@@ -569,27 +569,27 @@ discard block |
||
569 | 569 | print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td></tr>'; |
570 | 570 | |
571 | 571 | foreach ($arrayofparameters as $constname => $val) { |
572 | - if ($val['enabled']==1) { |
|
572 | + if ($val['enabled'] == 1) { |
|
573 | 573 | $setupnotempty++; |
574 | 574 | print '<tr class="oddeven"><td>'; |
575 | - $tooltiphelp = (($langs->trans($constname . 'Tooltip') != $constname . 'Tooltip') ? $langs->trans($constname . 'Tooltip') : ''); |
|
575 | + $tooltiphelp = (($langs->trans($constname.'Tooltip') != $constname.'Tooltip') ? $langs->trans($constname.'Tooltip') : ''); |
|
576 | 576 | print $form->textwithpicto($langs->trans($constname), $tooltiphelp); |
577 | 577 | print '</td><td>'; |
578 | 578 | |
579 | 579 | if ($val['type'] == 'textarea') { |
580 | 580 | print dol_nl2br($conf->global->{$constname}); |
581 | - } elseif ($val['type']== 'html') { |
|
581 | + } elseif ($val['type'] == 'html') { |
|
582 | 582 | print $conf->global->{$constname}; |
583 | 583 | } elseif ($val['type'] == 'yesno') { |
584 | 584 | print ajax_constantonoff($constname); |
585 | 585 | } elseif (preg_match('/emailtemplate:/', $val['type'])) { |
586 | - include_once DOL_DOCUMENT_ROOT . '/core/class/html.formmail.class.php'; |
|
586 | + include_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php'; |
|
587 | 587 | $formmail = new FormMail($db); |
588 | 588 | |
589 | 589 | $tmp = explode(':', $val['type']); |
590 | 590 | |
591 | 591 | $template = $formmail->getEMailTemplate($db, $tmp[1], $user, $langs, $conf->global->{$constname}); |
592 | - if ($template<0) { |
|
592 | + if ($template < 0) { |
|
593 | 593 | setEventMessages(null, $formmail->errors, 'errors'); |
594 | 594 | } |
595 | 595 | print $langs->trans($template->label); |
@@ -602,17 +602,17 @@ discard block |
||
602 | 602 | $ways = $c->print_all_ways(' >> ', 'none', 0, 1); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formated text |
603 | 603 | $toprint = array(); |
604 | 604 | foreach ($ways as $way) { |
605 | - $toprint[] = '<li class="select2-search-choice-dolibarr noborderoncategories"' . ($c->color ? ' style="background: #' . $c->color . ';"' : ' style="background: #bbb"') . '>' . $way . '</li>'; |
|
605 | + $toprint[] = '<li class="select2-search-choice-dolibarr noborderoncategories"'.($c->color ? ' style="background: #'.$c->color.';"' : ' style="background: #bbb"').'>'.$way.'</li>'; |
|
606 | 606 | } |
607 | - print '<div class="select2-container-multi-dolibarr" style="width: 90%;"><ul class="select2-choices-dolibarr">' . implode(' ', $toprint) . '</ul></div>'; |
|
607 | + print '<div class="select2-container-multi-dolibarr" style="width: 90%;"><ul class="select2-choices-dolibarr">'.implode(' ', $toprint).'</ul></div>'; |
|
608 | 608 | } elseif (preg_match('/thirdparty_type/', $val['type'])) { |
609 | - if ($conf->global->{$constname}==2) { |
|
609 | + if ($conf->global->{$constname} == 2) { |
|
610 | 610 | print $langs->trans("Prospect"); |
611 | - } elseif ($conf->global->{$constname}==3) { |
|
611 | + } elseif ($conf->global->{$constname} == 3) { |
|
612 | 612 | print $langs->trans("ProspectCustomer"); |
613 | - } elseif ($conf->global->{$constname}==1) { |
|
613 | + } elseif ($conf->global->{$constname} == 1) { |
|
614 | 614 | print $langs->trans("Customer"); |
615 | - } elseif ($conf->global->{$constname}==0) { |
|
615 | + } elseif ($conf->global->{$constname} == 0) { |
|
616 | 616 | print $langs->trans("NorProspectNorCustomer"); |
617 | 617 | } |
618 | 618 | } elseif ($val['type'] == 'product') { |
@@ -363,21 +363,30 @@ |
||
363 | 363 | |
364 | 364 | // Page |
365 | 365 | print '<td>'; |
366 | - if ($action != 'edit' || GETPOST('rowid', 'int') != $defaultvalue->id) print $defaultvalue->page; |
|
367 | - else print '<input type="text" name="urlpage" value="'.dol_escape_htmltag($defaultvalue->page).'">'; |
|
366 | + if ($action != 'edit' || GETPOST('rowid', 'int') != $defaultvalue->id) { |
|
367 | + print $defaultvalue->page; |
|
368 | + } else { |
|
369 | + print '<input type="text" name="urlpage" value="'.dol_escape_htmltag($defaultvalue->page).'">'; |
|
370 | + } |
|
368 | 371 | print '</td>'."\n"; |
369 | 372 | |
370 | 373 | // Field |
371 | 374 | print '<td>'; |
372 | - if ($action != 'edit' || GETPOST('rowid') != $defaultvalue->id) print $defaultvalue->param; |
|
373 | - else print '<input type="text" name="key" value="'.dol_escape_htmltag($defaultvalue->param).'">'; |
|
375 | + if ($action != 'edit' || GETPOST('rowid') != $defaultvalue->id) { |
|
376 | + print $defaultvalue->param; |
|
377 | + } else { |
|
378 | + print '<input type="text" name="key" value="'.dol_escape_htmltag($defaultvalue->param).'">'; |
|
379 | + } |
|
374 | 380 | print '</td>'."\n"; |
375 | 381 | |
376 | 382 | // Value |
377 | 383 | if ($mode != 'focus' && $mode != 'mandatory') { |
378 | 384 | print '<td>'; |
379 | - if ($action != 'edit' || GETPOST('rowid') != $defaultvalue->id) print dol_escape_htmltag($defaultvalue->value); |
|
380 | - else print '<input type="text" name="value" value="'.dol_escape_htmltag($defaultvalue->value).'">'; |
|
385 | + if ($action != 'edit' || GETPOST('rowid') != $defaultvalue->id) { |
|
386 | + print dol_escape_htmltag($defaultvalue->value); |
|
387 | + } else { |
|
388 | + print '<input type="text" name="value" value="'.dol_escape_htmltag($defaultvalue->value).'">'; |
|
389 | + } |
|
381 | 390 | print '</td>'; |
382 | 391 | } |
383 | 392 |
@@ -139,14 +139,14 @@ discard block |
||
139 | 139 | |
140 | 140 | if (!$error) { |
141 | 141 | if ($action == 'add' || (GETPOST('add') && $action != 'update')) { |
142 | - $object->type=$mode; |
|
143 | - $object->user_id=0; |
|
144 | - $object->page=$defaulturl; |
|
145 | - $object->param=$defaultkey; |
|
146 | - $object->value=$defaultvalue; |
|
147 | - $object->entity=$conf->entity; |
|
148 | - $result=$object->create($user); |
|
149 | - if ($result<0) { |
|
142 | + $object->type = $mode; |
|
143 | + $object->user_id = 0; |
|
144 | + $object->page = $defaulturl; |
|
145 | + $object->param = $defaultkey; |
|
146 | + $object->value = $defaultvalue; |
|
147 | + $object->entity = $conf->entity; |
|
148 | + $result = $object->create($user); |
|
149 | + if ($result < 0) { |
|
150 | 150 | $action = ''; |
151 | 151 | setEventMessages($object->error, $object->errors, 'errors'); |
152 | 152 | } else { |
@@ -158,14 +158,14 @@ discard block |
||
158 | 158 | } |
159 | 159 | } |
160 | 160 | if (GETPOST('actionmodify')) { |
161 | - $object->id=$id; |
|
162 | - $object->type=$mode; |
|
163 | - $object->page=$urlpage; |
|
164 | - $object->param=$key; |
|
165 | - $object->value=$value; |
|
166 | - $object->entity=$conf->entity; |
|
167 | - $result=$object->update($user); |
|
168 | - if ($result<0) { |
|
161 | + $object->id = $id; |
|
162 | + $object->type = $mode; |
|
163 | + $object->page = $urlpage; |
|
164 | + $object->param = $key; |
|
165 | + $object->value = $value; |
|
166 | + $object->entity = $conf->entity; |
|
167 | + $result = $object->update($user); |
|
168 | + if ($result < 0) { |
|
169 | 169 | $action = ''; |
170 | 170 | setEventMessages($object->error, $object->errors, 'errors'); |
171 | 171 | } else { |
@@ -181,9 +181,9 @@ discard block |
||
181 | 181 | |
182 | 182 | // Delete line from delete picto |
183 | 183 | if ($action == 'delete') { |
184 | - $object->id=$id; |
|
185 | - $result=$object->delete($user); |
|
186 | - if ($result<0) { |
|
184 | + $object->id = $id; |
|
185 | + $result = $object->delete($user); |
|
186 | + if ($result < 0) { |
|
187 | 187 | $action = ''; |
188 | 188 | setEventMessages($object->error, $object->errors, 'errors'); |
189 | 189 | } |
@@ -337,11 +337,11 @@ discard block |
||
337 | 337 | // Limit to superadmin |
338 | 338 | if (isModEnabled('multicompany') && !$user->entity) { |
339 | 339 | print '<td>'; |
340 | - print '<input type="text" class="flat" size="1" disabled name="entity" value="' . $conf->entity . '">'; // We see environment, but to change it we must switch on other entity |
|
340 | + print '<input type="text" class="flat" size="1" disabled name="entity" value="'.$conf->entity.'">'; // We see environment, but to change it we must switch on other entity |
|
341 | 341 | print '</td>'; |
342 | 342 | } else { |
343 | 343 | print '<td class="center">'; |
344 | - print '<input type="hidden" name="entity" value="' . $conf->entity . '">'; |
|
344 | + print '<input type="hidden" name="entity" value="'.$conf->entity.'">'; |
|
345 | 345 | print '</td>'; |
346 | 346 | } |
347 | 347 | print '<td class="center">'; |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | print '</td>'."\n"; |
354 | 354 | print '</tr>'."\n"; |
355 | 355 | |
356 | -$result = $object->fetchAll($sortorder, $sortfield, 0, 0, array('t.type'=>$mode,'t.entity'=>array($user->entity,$conf->entity))); |
|
356 | +$result = $object->fetchAll($sortorder, $sortfield, 0, 0, array('t.type'=>$mode, 't.entity'=>array($user->entity, $conf->entity))); |
|
357 | 357 | |
358 | 358 | if (!is_array($result) && $result < 0) { |
359 | 359 | setEventMessages($object->error, $object->errors, 'errors'); |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | |
386 | 386 | // Actions |
387 | 387 | print '<td class="center">'; |
388 | - if ($action != 'edit' || GETPOST('rowid') != $defaultvalue->id) { |
|
388 | + if ($action != 'edit' || GETPOST('rowid') != $defaultvalue->id) { |
|
389 | 389 | print '<a class="editfielda marginleftonly marginrightonly" href="'.$_SERVER['PHP_SELF'].'?rowid='.$defaultvalue->id.'&entity='.$defaultvalue->entity.'&mode='.$mode.'&action=edit&token='.newToken().'">'.img_edit().'</a>'; |
390 | 390 | print '<a class="marginleftonly marginrightonly" href="'.$_SERVER['PHP_SELF'].'?rowid='.$defaultvalue->id.'&entity='.$defaultvalue->entity.'&mode='.$mode.'&action=delete&token='.newToken().'">'.img_delete().'</a>'; |
391 | 391 | } else { |
@@ -172,7 +172,9 @@ |
||
172 | 172 | // extrafields filter key to make it works |
173 | 173 | $filter['ef.resource'] = $sql; |
174 | 174 | |
175 | -if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param .= '&contextpage='.urlencode($contextpage); |
|
175 | +if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) { |
|
176 | + $param .= '&contextpage='.urlencode($contextpage); |
|
177 | +} |
|
176 | 178 | |
177 | 179 | // Add $param from extra fields |
178 | 180 | include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php'; |
@@ -124,8 +124,8 @@ |
||
124 | 124 | $htmlname = 'activesynchro'; |
125 | 125 | } |
126 | 126 | |
127 | - $dolibarr2ldaplabel = $langs->trans("DolibarrToLDAP") . (($scriptonly == 1 || $scriptonly == 3) ? " (".$langs->trans("SupportedForLDAPExportScriptOnly").")" : ""); |
|
128 | - $ldap2dolibarrlabel = $langs->trans("LDAPToDolibarr") . (($scriptonly == 2 || $scriptonly == 3) ? " (".$langs->trans("SupportedForLDAPImportScriptOnly").")" : ""); |
|
127 | + $dolibarr2ldaplabel = $langs->trans("DolibarrToLDAP").(($scriptonly == 1 || $scriptonly == 3) ? " (".$langs->trans("SupportedForLDAPExportScriptOnly").")" : ""); |
|
128 | + $ldap2dolibarrlabel = $langs->trans("LDAPToDolibarr").(($scriptonly == 2 || $scriptonly == 3) ? " (".$langs->trans("SupportedForLDAPImportScriptOnly").")" : ""); |
|
129 | 129 | |
130 | 130 | $arraylist = array( |
131 | 131 | Ldap::SYNCHRO_NONE => $langs->trans("No"), |