@@ -35,7 +35,7 @@ |
||
35 | 35 | require_once constant('DOL_DOCUMENT_ROOT') . '/partnership/lib/partnership.lib.php'; |
36 | 36 | |
37 | 37 | // Load translation files required by the page |
38 | -$langs->loadLangs(array("companies","members","partnership", "other")); |
|
38 | +$langs->loadLangs(array("companies", "members", "partnership", "other")); |
|
39 | 39 | |
40 | 40 | // Get parameters |
41 | 41 | $id = GETPOSTINT('rowid') ? GETPOSTINT('rowid') : GETPOSTINT('id'); |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php // BEGIN PHP |
2 | 2 | $websitekey = basename(__DIR__); |
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once __DIR__ . '/master.inc.php'; |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { require_once __DIR__ . '/master.inc.php'; |
|
4 | 4 | } // Load env if not already loaded |
5 | 5 | require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/website.lib.php'; |
6 | 6 | require_once constant('DOL_DOCUMENT_ROOT') . '/core/website.inc.php'; |
7 | 7 | ob_start(); |
8 | -if (! headers_sent()) { /* because file is included inline when in edit mode and we don't want warning */ |
|
8 | +if (!headers_sent()) { /* because file is included inline when in edit mode and we don't want warning */ |
|
9 | 9 | header('Cache-Control: max-age=3600, public, must-revalidate'); |
10 | 10 | header('Content-type: text/css'); |
11 | 11 | } |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php // BEGIN PHP |
2 | 2 | $websitekey = basename(__DIR__); |
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once __DIR__ . '/master.inc.php'; |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { require_once __DIR__ . '/master.inc.php'; |
|
4 | 4 | } // Load env if not already loaded |
5 | 5 | require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/website.lib.php'; |
6 | 6 | require_once constant('DOL_DOCUMENT_ROOT') . '/core/website.inc.php'; |
7 | 7 | ob_start(); |
8 | -if (! headers_sent()) { /* because file is included inline when in edit mode and we don't want warning */ |
|
8 | +if (!headers_sent()) { /* because file is included inline when in edit mode and we don't want warning */ |
|
9 | 9 | header('Cache-Control: max-age=3600, public, must-revalidate'); |
10 | 10 | header('Content-type: text/css'); |
11 | 11 | } |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php // BEGIN PHP |
2 | 2 | $websitekey = basename(__DIR__); |
3 | -if (! defined('USEDOLIBARRSERVER') && ! defined('USEDOLIBARREDITOR')) { require_once __DIR__ . '/master.inc.php'; |
|
3 | +if (!defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { require_once __DIR__ . '/master.inc.php'; |
|
4 | 4 | } // Load env if not already loaded |
5 | 5 | require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/website.lib.php'; |
6 | 6 | require_once constant('DOL_DOCUMENT_ROOT') . '/core/website.inc.php'; |
7 | 7 | ob_start(); |
8 | -if (! headers_sent()) { /* because file is included inline when in edit mode and we don't want warning */ |
|
8 | +if (!headers_sent()) { /* because file is included inline when in edit mode and we don't want warning */ |
|
9 | 9 | header('Cache-Control: max-age=3600, public, must-revalidate'); |
10 | 10 | header('Content-type: text/css'); |
11 | 11 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | // Default sort order (if not yet defined by previous GETPOST) |
77 | 77 | if (!$sortfield) { |
78 | - reset($object->fields); // Reset is required to avoid key() to return null. |
|
78 | + reset($object->fields); // Reset is required to avoid key() to return null. |
|
79 | 79 | $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition. |
80 | 80 | } |
81 | 81 | if (!$sortorder) { |
@@ -540,7 +540,7 @@ discard block |
||
540 | 540 | } |
541 | 541 | |
542 | 542 | $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage; |
543 | -$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
543 | +$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
544 | 544 | $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : ''); |
545 | 545 | $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : ''); |
546 | 546 | |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | } elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && !in_array($key, array('id', 'rowid', 'ref', 'status')) && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) { |
631 | 631 | $cssforfield .= ($cssforfield ? ' ' : '') . 'right'; |
632 | 632 | } |
633 | - $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
633 | + $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
634 | 634 | if (!empty($arrayfields['t.' . $key]['checked'])) { |
635 | 635 | print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n"; |
636 | 636 | $totalarray['nbfield']++; |
@@ -323,7 +323,7 @@ |
||
323 | 323 | } |
324 | 324 | |
325 | 325 | $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage; |
326 | -$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
326 | +$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
327 | 327 | $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : ''); |
328 | 328 | $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : ''); |
329 | 329 |
@@ -217,7 +217,7 @@ |
||
217 | 217 | { |
218 | 218 | $string = ""; |
219 | 219 | $chaine = "abcdefghijklmnopqrstuvwxyz123456789"; |
220 | - mt_srand((int)((float)microtime() * 1000000)); |
|
220 | + mt_srand((int) ((float) microtime() * 1000000)); |
|
221 | 221 | for ($i = 0; $i < $car; $i++) { |
222 | 222 | $string .= $chaine[mt_rand() % strlen($chaine)]; |
223 | 223 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | // For MultiCompany module. |
44 | 44 | // Do not use GETPOST here, function is not defined and this test must be done before including main.inc.php |
45 | 45 | // Because 2 entities can have the same ref. |
46 | -$entity = (!empty($_GET['e']) ? (int)$_GET['e'] : (!empty($_POST['e']) ? (int)$_POST['e'] : 1)); |
|
46 | +$entity = (!empty($_GET['e']) ? (int) $_GET['e'] : (!empty($_POST['e']) ? (int) $_POST['e'] : 1)); |
|
47 | 47 | if (is_numeric($entity)) { |
48 | 48 | define("DOLENTITY", $entity); |
49 | 49 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | // For MultiCompany module. |
46 | 46 | // Do not use GETPOST here, function is not defined and define must be done before including main.inc.php |
47 | 47 | // Because 2 entities can have the same ref. |
48 | -$entity = (!empty($_GET['e']) ? (int)$_GET['e'] : (!empty($_POST['e']) ? (int)$_POST['e'] : 1)); |
|
48 | +$entity = (!empty($_GET['e']) ? (int) $_GET['e'] : (!empty($_POST['e']) ? (int) $_POST['e'] : 1)); |
|
49 | 49 | if (is_numeric($entity)) { |
50 | 50 | define("DOLENTITY", $entity); |
51 | 51 | } |