@@ -41,7 +41,7 @@ |
||
41 | 41 | $action = GETPOST('action', 'aZ09'); |
42 | 42 | $backtopage = GETPOST('backtopage', 'alpha'); |
43 | 43 | $value = GETPOST('value', 'alpha'); |
44 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
44 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
45 | 45 | |
46 | 46 | $label = GETPOST('label', 'alpha'); |
47 | 47 | $scandir = GETPOST('scan_dir', 'alpha'); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $title = $langs->trans("Search"); |
104 | 104 | |
105 | 105 | // URL http://mydolibarr/core/search_page?dol_use_jmobile=1 can be used for tests |
106 | -$head = '<!-- Quick access -->' . "\n"; // This is used by DoliDroid to know page is a search page |
|
106 | +$head = '<!-- Quick access -->' . "\n"; // This is used by DoliDroid to know page is a search page |
|
107 | 107 | $arrayofjs = array(); |
108 | 108 | $arrayofcss = array(); |
109 | 109 | top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | |
144 | 144 | $accesskey = ''; |
145 | 145 | if (empty($accesskeyalreadyassigned[$val['label'][0]])) { |
146 | - $accesskey = $val['label'][0]; // First char of string |
|
146 | + $accesskey = $val['label'][0]; // First char of string |
|
147 | 147 | $accesskeyalreadyassigned[$accesskey] = $accesskey; |
148 | 148 | } |
149 | 149 |
@@ -97,7 +97,7 @@ |
||
97 | 97 | $title = $langs->trans("Menu"); |
98 | 98 | |
99 | 99 | // URL http://mydolibarr/core/get_menudiv.php?dol_use_jmobile=1 can be used for tests |
100 | -$head = '<!-- Menu -->' . "\n"; // This is used by DoliDroid to know page is a menu page |
|
100 | +$head = '<!-- Menu -->' . "\n"; // This is used by DoliDroid to know page is a menu page |
|
101 | 101 | $arrayofjs = array(); |
102 | 102 | $arrayofcss = array(); |
103 | 103 | top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss); |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | } |
407 | 407 | |
408 | 408 | $res = $line->fetch_product(); |
409 | - if ($res > 0) { |
|
409 | + if ($res > 0) { |
|
410 | 410 | if ($line->product->isMandatoryPeriod() && $line->product->isService()) { |
411 | 411 | print 'jQuery("#date_start").addClass("error");'; |
412 | 412 | } |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | |
423 | 423 | $res = $line->fetch_product(); |
424 | 424 | // on doit fetch le product là !!! pour connaître le type |
425 | - if ($res > 0) { |
|
425 | + if ($res > 0) { |
|
426 | 426 | if ($line->product->isMandatoryperiod() && $line->product->isService()) { |
427 | 427 | print 'jQuery("#date_end").addClass("error");'; |
428 | 428 | } |
@@ -399,7 +399,7 @@ |
||
399 | 399 | ?> |
400 | 400 | <div class="center login_main_message"> |
401 | 401 | <?php |
402 | - $message = $_SESSION['dol_loginmesg']; // By default this is an error message |
|
402 | + $message = $_SESSION['dol_loginmesg']; // By default this is an error message |
|
403 | 403 | if (preg_match('/<!-- warning -->/', $message)) { // if it contains this comment, this is a warning message |
404 | 404 | $message = str_replace('<!-- warning -->', '', $message); |
405 | 405 | print '<div class="warning" role="alert">'; |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | $result = $objecttmp->fetch($toselectid); |
186 | 186 | if ($result > 0) { |
187 | 187 | $listofselectedid[$toselectid] = $toselectid; |
188 | - $thirdpartyid = ($objecttmp->fk_soc ? $objecttmp->fk_soc : $objecttmp->socid); // For proposal, order, invoice, conferenceorbooth, ... |
|
188 | + $thirdpartyid = ($objecttmp->fk_soc ? $objecttmp->fk_soc : $objecttmp->socid); // For proposal, order, invoice, conferenceorbooth, ... |
|
189 | 189 | if (in_array($objecttmp->element, array('societe', 'conferenceorboothattendee'))) { |
190 | 190 | $thirdpartyid = $objecttmp->id; |
191 | 191 | } elseif ($objecttmp->element == 'contact') { |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | $formmail->withfile = 0; |
267 | 267 | $formmail->withmaindocfile = 0; // Add a checkbox "Attach also main document" |
268 | 268 | } else { |
269 | - $formmail->withfile = 1; // $formmail->withfile = 2 to allow to upload files is not yet supported in mass action |
|
269 | + $formmail->withfile = 1; // $formmail->withfile = 2 to allow to upload files is not yet supported in mass action |
|
270 | 270 | // Add a checkbox "Attach also main document" |
271 | 271 | if (isset($withmaindocfilemail)) { |
272 | 272 | $formmail->withmaindocfile = $withmaindocfilemail; |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | |
304 | 304 | // Tableau des parameters complementaires du post |
305 | 305 | $formmail->param['action'] = $action; |
306 | - $formmail->param['models'] = $modelmail; // the filter to know which kind of template emails to show. 'none' means no template suggested. |
|
306 | + $formmail->param['models'] = $modelmail; // the filter to know which kind of template emails to show. 'none' means no template suggested. |
|
307 | 307 | $formmail->param['models_id'] = GETPOSTINT('modelmailselected') ? GETPOSTINT('modelmailselected') : '-1'; |
308 | 308 | $formmail->param['id'] = implode(',', $arrayofselected); |
309 | 309 | // $formmail->param['returnurl']=$_SERVER['PHP_SELF'].'?id='.$object->id; |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $module = $object->element; |
41 | 41 | |
42 | 42 | // Special cases |
43 | -if (isset($permissiontoadd) && ! isset($permission)) { |
|
43 | +if (isset($permissiontoadd) && !isset($permission)) { |
|
44 | 44 | $permission = $permissiontoadd; |
45 | 45 | } |
46 | 46 | // TODO Remove this section. We already got $permissiontoadd. |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | <div class="tagtd nowrap noborderbottom"> |
165 | 165 | <?php |
166 | 166 | $selectedCompany = GETPOSTISSET("newcompany") ? GETPOSTINT("newcompany") : (empty($object->socid) ? 0 : $object->socid); |
167 | - $selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0, '', 'minwidth300imp'); // This also print the select component?> |
|
167 | + $selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0, '', 'minwidth300imp'); // This also print the select component?> |
|
168 | 168 | </div> |
169 | 169 | <div class="tagtd noborderbottom minwidth500imp"> |
170 | 170 | <?php |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $mode_search = 2; // Search on a foreign key int |
58 | 58 | } |
59 | 59 | if (in_array($typ, array('sellist')) && !is_numeric($crit)) { |
60 | - $mode_search = 0;// Search on a foreign key string |
|
60 | + $mode_search = 0; // Search on a foreign key string |
|
61 | 61 | } |
62 | 62 | if (in_array($typ, array('chkbxlst', 'checkbox', 'select'))) { |
63 | 63 | $mode_search = 4; // Search on a multiselect field with sql type = text |
@@ -45,7 +45,7 @@ |
||
45 | 45 | $valuetoshow = $extrafields->showOutputField($key, $value, '', $extrafieldsobjectkey); |
46 | 46 | $title = dol_string_nohtmltag($valuetoshow); |
47 | 47 | |
48 | - print '<td' . ($cssclass ? ' class="' . $cssclass . '"' : ''); // TODO Add 'css' and 'cssview' and 'csslist' for extrafields and use here 'csslist' |
|
48 | + print '<td' . ($cssclass ? ' class="' . $cssclass . '"' : ''); // TODO Add 'css' and 'cssview' and 'csslist' for extrafields and use here 'csslist' |
|
49 | 49 | print ' data-key="' . $extrafieldsobjectkey . '.' . $key . '"'; |
50 | 50 | print($title ? ' title="' . dol_escape_htmltag($title) . '"' : ''); |
51 | 51 | print '>'; |