@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $sql .= " AND k.fk_soc= ".((int) $user->socid); |
119 | 119 | } |
120 | 120 | |
121 | - $sql.= " AND k.status > 0"; |
|
121 | + $sql .= " AND k.status > 0"; |
|
122 | 122 | |
123 | 123 | $sql .= " ORDER BY k.date_creation DESC, k.rowid DESC "; |
124 | 124 | $sql .= $this->db->plimit($max, 0); |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $labellang = ($objp->lang ? $langs->trans('Language_'.$objp->lang) : ''); |
164 | 164 | $this->info_box_contents[$i][$r] = array( |
165 | 165 | 'td' => 'class="tdoverflowmax100"', |
166 | - 'text' => picto_from_langcode($objp->lang, 'class="paddingrightonly saturatemedium opacitylow"') . $labellang, |
|
166 | + 'text' => picto_from_langcode($objp->lang, 'class="paddingrightonly saturatemedium opacitylow"').$labellang, |
|
167 | 167 | 'asis' => 1, |
168 | 168 | ); |
169 | 169 | $r++; |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | print $langs->trans("Text"); |
289 | 289 | print '</td><td>'; |
290 | 290 | require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; |
291 | - $extendededitor = 0; // We force no WYSIWYG editor |
|
291 | + $extendededitor = 0; // We force no WYSIWYG editor |
|
292 | 292 | $doleditor = new DolEditor('USER_PUBLIC_MORE', getDolUserString('USER_PUBLIC_MORE', '', $object), '', 160, 'dolibarr_notes', '', false, false, $extendededitor, ROWS_5, '90%'); |
293 | 293 | $doleditor->Create(); |
294 | 294 | print "</td></tr>\n"; |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | |
303 | 303 | print '<br>'; |
304 | 304 | |
305 | - print '</div>'; // End hide/show |
|
305 | + print '</div>'; // End hide/show |
|
306 | 306 | |
307 | 307 | print '<br>'; |
308 | 308 |
@@ -116,7 +116,7 @@ |
||
116 | 116 | setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("BarcodeValue")), null, 'errors'); |
117 | 117 | $error++; |
118 | 118 | } |
119 | - $MAXLENGTH = 51200; // Limit set to 50Ko |
|
119 | + $MAXLENGTH = 51200; // Limit set to 50Ko |
|
120 | 120 | if (dol_strlen($forbarcode) > $MAXLENGTH) { // barcode value |
121 | 121 | setEventMessages($langs->trans("ErrorFieldTooLong", $langs->transnoentitiesnoconv("BarcodeValue")).' ('.$langs->trans("RequireXStringMax", $MAXLENGTH).')', null, 'errors'); |
122 | 122 | $error++; |
@@ -39,8 +39,8 @@ |
||
39 | 39 | |
40 | 40 | $id = GETPOST('id', 'int'); |
41 | 41 | $ref = GETPOST('ref', 'alpha'); |
42 | -$batch = GETPOST('batch', 'alpha'); |
|
43 | -$objectid = GETPOST('productid', 'int'); |
|
42 | +$batch = GETPOST('batch', 'alpha'); |
|
43 | +$objectid = GETPOST('productid', 'int'); |
|
44 | 44 | |
45 | 45 | // Security check |
46 | 46 | $fieldvalue = (!empty($id) ? $id : (!empty($ref) ? $ref : '')); |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | |
260 | 260 | $motmp = new Mo($db); |
261 | 261 | |
262 | - $total_consumed=$total_produced=0; |
|
262 | + $total_consumed = $total_produced = 0; |
|
263 | 263 | |
264 | 264 | if ($num > 0) { |
265 | 265 | while ($i < min($num, $limit)) { |
@@ -269,8 +269,8 @@ discard block |
||
269 | 269 | $motmp->ref = $objp->ref; |
270 | 270 | $motmp->status = $objp->status; |
271 | 271 | |
272 | - $total_consumed+=$objp->nb_consumed; |
|
273 | - $total_produced+=$objp->nb_produced; |
|
272 | + $total_consumed += $objp->nb_consumed; |
|
273 | + $total_produced += $objp->nb_produced; |
|
274 | 274 | |
275 | 275 | print '<tr class="oddeven">'; |
276 | 276 | print '<td>'; |
@@ -29,11 +29,11 @@ discard block |
||
29 | 29 | // Load Dolibarr environment |
30 | 30 | require '../main.inc.php'; |
31 | 31 | |
32 | -require_once DOL_DOCUMENT_ROOT . '/contact/class/contact.class.php'; |
|
33 | -require_once DOL_DOCUMENT_ROOT . '/core/lib/company.lib.php'; |
|
34 | -require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php'; |
|
35 | -require_once DOL_DOCUMENT_ROOT . '/hrm/class/job.class.php'; |
|
36 | -require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm_job.lib.php'; |
|
32 | +require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php'; |
|
33 | +require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php'; |
|
34 | +require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; |
|
35 | +require_once DOL_DOCUMENT_ROOT.'/hrm/class/job.class.php'; |
|
36 | +require_once DOL_DOCUMENT_ROOT.'/hrm/lib/hrm_job.lib.php'; |
|
37 | 37 | |
38 | 38 | // Load translation files required by the page |
39 | 39 | $langs->loadLangs(array('hrm', 'other')); |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | $linkback = '<a href="'.dol_buildpath('/hrm/job_list.php', 1).'?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>'; |
152 | 152 | |
153 | 153 | $morehtmlref = '<div class="refid">'; |
154 | - $morehtmlref.= $object->label; |
|
154 | + $morehtmlref .= $object->label; |
|
155 | 155 | $morehtmlref .= '</div>'; |
156 | 156 | |
157 | 157 |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php'; |
35 | 35 | require_once DOL_DOCUMENT_ROOT.'/hrm/class/position.class.php'; |
36 | 36 | require_once DOL_DOCUMENT_ROOT.'/hrm/lib/hrm_position.lib.php'; |
37 | -require_once DOL_DOCUMENT_ROOT . '/hrm/class/job.class.php'; |
|
37 | +require_once DOL_DOCUMENT_ROOT.'/hrm/class/job.class.php'; |
|
38 | 38 | |
39 | 39 | |
40 | 40 | // Load translation files required by the page |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | $filters['search_agenda_label'] = $search_agenda_label; |
228 | 228 | $filters['search_rowid'] = $search_rowid; |
229 | 229 | |
230 | - $object->fields['label']=array(); // Usefull to get only agenda events linked to position (this object doesn't need label of ref field, but show_actions_done() needs it to work correctly) |
|
230 | + $object->fields['label'] = array(); // Usefull to get only agenda events linked to position (this object doesn't need label of ref field, but show_actions_done() needs it to work correctly) |
|
231 | 231 | |
232 | 232 | // TODO Replace this with same code than into list.php |
233 | 233 | show_actions_done($conf, $langs, $db, $object, null, 0, $actioncode, '', $filters, $sortfield, $sortorder, $object->module); |
@@ -38,9 +38,9 @@ discard block |
||
38 | 38 | $langs->loadLangs(array("mrp", "other")); |
39 | 39 | |
40 | 40 | // Get parameters |
41 | -$id = GETPOST('id', 'int'); |
|
41 | +$id = GETPOST('id', 'int'); |
|
42 | 42 | $ref = GETPOST('ref', 'alpha'); |
43 | -$action = GETPOST('action', 'aZ09'); |
|
43 | +$action = GETPOST('action', 'aZ09'); |
|
44 | 44 | $cancel = GETPOST('cancel', 'aZ09'); |
45 | 45 | $backtopage = GETPOST('backtopage', 'alpha'); |
46 | 46 | |
@@ -55,10 +55,10 @@ discard block |
||
55 | 55 | $search_rowid = GETPOST('search_rowid'); |
56 | 56 | $search_agenda_label = GETPOST('search_agenda_label'); |
57 | 57 | |
58 | -$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit; |
|
58 | +$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit; |
|
59 | 59 | $sortfield = GETPOST('sortfield', 'aZ09comma'); |
60 | 60 | $sortorder = GETPOST('sortorder', 'aZ09comma'); |
61 | -$page = GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOST("page", 'int'); |
|
61 | +$page = GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOST("page", 'int'); |
|
62 | 62 | if (empty($page) || $page == -1) { |
63 | 63 | $page = 0; |
64 | 64 | } // If $page is not defined, or '' or -1 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | $langs->load("bookmarks"); |
38 | 38 | |
39 | - $authorized_var=array('limit','optioncss','contextpage'); |
|
39 | + $authorized_var = array('limit', 'optioncss', 'contextpage'); |
|
40 | 40 | $url = $_SERVER["PHP_SELF"]; |
41 | 41 | $url_param = array(); |
42 | 42 | if (!empty($_SERVER["QUERY_STRING"])) { |