@@ -62,13 +62,13 @@ discard block |
||
62 | 62 | $ditTitle .= ' (0)'; |
63 | 63 | } |
64 | 64 | $divTab = [ |
65 | - 'start' => '<div class="tabbertab tabbertabdefault" id="tab_NoData" title="' . $ditTitle . '">', |
|
65 | + 'start' => '<div class="tabbertab tabbertabdefault" id="tab_NoData" title="'.$ditTitle.'">', |
|
66 | 66 | 'end' => '</div><!-- from tab_NoData -->', |
67 | 67 | ]; |
68 | 68 | if (!isset($ftrs['noGlobalTab'])) { |
69 | 69 | $divTab = [ |
70 | - 'start' => '<div class="tabber" id="tab">' . $divTab['start'], |
|
71 | - 'end' => $divTab['end'] . '</div><!-- from global Tab -->', |
|
70 | + 'start' => '<div class="tabber" id="tab">'.$divTab['start'], |
|
71 | + 'end' => $divTab['end'].'</div><!-- from global Tab -->', |
|
72 | 72 | ]; |
73 | 73 | } |
74 | 74 | } |
@@ -91,14 +91,14 @@ discard block |
||
91 | 91 | } |
92 | 92 | $checkboxFormId = ''; |
93 | 93 | if ((isset($ftrs['actions']['checkbox_inlineEdit'])) || (isset($ftrs['actions']['checkbox']))) { |
94 | - $checkboxFormId = 'frm' . date('YmdHis'); |
|
95 | - $sReturn .= '<form id="' . $checkboxFormId . '" name="' . $checkboxFormId |
|
96 | - . '" method="post" ' . ' action="' . $this->tCmnRequest->server->get('PHP_SELF') . '" >'; |
|
94 | + $checkboxFormId = 'frm'.date('YmdHis'); |
|
95 | + $sReturn .= '<form id="'.$checkboxFormId.'" name="'.$checkboxFormId |
|
96 | + . '" method="post" '.' action="'.$this->tCmnRequest->server->get('PHP_SELF').'" >'; |
|
97 | 97 | } |
98 | 98 | $tbl = []; |
99 | 99 | $tbl['Def'] = '<table' |
100 | - . (isset($ftrs['table_style']) ? ' style="' . $ftrs['table_style'] . '"' : '') |
|
101 | - . (isset($ftrs['table_class']) ? ' class="' . $ftrs['table_class'] . '"' : '') |
|
100 | + . (isset($ftrs['table_style']) ? ' style="'.$ftrs['table_style'].'"' : '') |
|
101 | + . (isset($ftrs['table_class']) ? ' class="'.$ftrs['table_class'].'"' : '') |
|
102 | 102 | . '>'; |
103 | 103 | if (!isset($ftrs['grouping_cell_type'])) { |
104 | 104 | $ftrs['grouping_cell_type'] = 'row'; |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | $sReturn .= $tbl['Head']; |
140 | 140 | } |
141 | 141 | if (isset($iStartingPageRecord)) { |
142 | - $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2], $bKpFlPge); |
|
142 | + $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2], $bKpFlPge); |
|
143 | 143 | $sReturn .= $this->setStringIntoTag($this->setStringIntoTag($pgn, 'th', [ |
144 | 144 | 'colspan' => $iTableColumns |
145 | 145 | ]), 'tr'); |
@@ -181,22 +181,22 @@ discard block |
||
181 | 181 | } |
182 | 182 | $remebered_value = $color_column_value; |
183 | 183 | } |
184 | - $color = ' style="background-color: ' . $ftrs['row_colored_alternated'][$color_no] . ';"'; |
|
184 | + $color = ' style="background-color: '.$ftrs['row_colored_alternated'][$color_no].';"'; |
|
185 | 185 | } else { |
186 | 186 | if (isset($ftrs['RowStyle'])) { |
187 | - $color = ' style="' . $aElements[$rCntr][$ftrs['RowStyle']] . '"'; |
|
187 | + $color = ' style="'.$aElements[$rCntr][$ftrs['RowStyle']].'"'; |
|
188 | 188 | } else { |
189 | 189 | $color = ''; |
190 | 190 | } |
191 | 191 | } |
192 | - $tbl['tr_Color'] = '<tr' . $color . '>'; |
|
192 | + $tbl['tr_Color'] = '<tr'.$color.'>'; |
|
193 | 193 | // Grouping column |
194 | 194 | if (isset($ftrs['grouping_cell'])) { |
195 | 195 | foreach ($aElements[$rCntr] as $key => $value) { |
196 | 196 | if (($ftrs['grouping_cell'] == $key) && ($remindGroupValue != $value)) { |
197 | 197 | switch ($ftrs['grouping_cell_type']) { |
198 | 198 | case 'row': |
199 | - $sReturn .= $tbl['tr_Color'] . '<td ' . 'colspan="' . $iTableColumns . '">' |
|
199 | + $sReturn .= $tbl['tr_Color'].'<td '.'colspan="'.$iTableColumns.'">' |
|
200 | 200 | . $this->setStringIntoTag($value, 'div', ['class' => 'rowGroup rounded']) |
201 | 201 | . '</td></tr>'; |
202 | 202 | break; |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | } else { |
209 | 209 | $sReturn .= '</tbody></table>'; |
210 | 210 | if (isset($ftrs['showGroupingCounter'])) { |
211 | - $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter); |
|
211 | + $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter); |
|
212 | 212 | $groupCounter = 0; |
213 | 213 | } |
214 | 214 | $sReturn .= '</div>'; |
@@ -217,9 +217,9 @@ discard block |
||
217 | 217 | if (isset($ftrs['grouping_default_tab'])) { |
218 | 218 | $sReturn .= ($ftrs['grouping_default_tab'] == $value ? ' tabbertabdefault' : ''); |
219 | 219 | } |
220 | - $sReturn .= '" id="tab_' . $this->cleanStringForId($value) . '" ' |
|
221 | - . 'title="' . $value . '">' |
|
222 | - . $tbl['Def'] . $tbl['Head'] . $tbl['Header']; |
|
220 | + $sReturn .= '" id="tab_'.$this->cleanStringForId($value).'" ' |
|
221 | + . 'title="'.$value.'">' |
|
222 | + . $tbl['Def'].$tbl['Head'].$tbl['Header']; |
|
223 | 223 | break; |
224 | 224 | } |
225 | 225 | $remindGroupValue = $value; |
@@ -233,12 +233,12 @@ discard block |
||
233 | 233 | } |
234 | 234 | } |
235 | 235 | } |
236 | - $sReturn .= $tbl['tr_Color']; |
|
236 | + $sReturn .= $tbl['tr_Color']; |
|
237 | 237 | // Action column |
238 | 238 | $checkboxName = ''; |
239 | 239 | $checkboxNameS = ''; |
240 | 240 | if (isset($ftrs['actions'])) { |
241 | - $sReturn .= '<td style="white-space:nowrap;">'; |
|
241 | + $sReturn .= '<td style="white-space:nowrap;">'; |
|
242 | 242 | $action_argument = 0; |
243 | 243 | if (isset($ftrs['actions']['key'])) { |
244 | 244 | $actionKey = $ftrs['actions']['key']; |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | $actionKey = 'view'; |
247 | 247 | } |
248 | 248 | if (isset($ftrs['action_prefix'])) { |
249 | - $actPrfx = $ftrs['action_prefix'] . '&'; |
|
249 | + $actPrfx = $ftrs['action_prefix'].'&'; |
|
250 | 250 | $actionKey = 'view2'; |
251 | 251 | } else { |
252 | 252 | $actPrfx = ''; |
@@ -257,11 +257,11 @@ discard block |
||
257 | 257 | } |
258 | 258 | switch ($key) { |
259 | 259 | case 'checkbox': |
260 | - $checkboxName = $value . '[]'; |
|
260 | + $checkboxName = $value.'[]'; |
|
261 | 261 | $checkboxNameS = $value; |
262 | - $sReturn .= ' <input type="checkbox" name="' . $checkboxName |
|
263 | - . '" id="n' . $aElements[$rCntr][$value] |
|
264 | - . '" value="' . $aElements[$rCntr][$value] . '" '; |
|
262 | + $sReturn .= ' <input type="checkbox" name="'.$checkboxName |
|
263 | + . '" id="n'.$aElements[$rCntr][$value] |
|
264 | + . '" value="'.$aElements[$rCntr][$value].'" '; |
|
265 | 265 | if (!is_null($this->tCmnSuperGlobals->get($checkboxNameS))) { |
266 | 266 | if (is_array($this->tCmnSuperGlobals->get($checkboxNameS))) { |
267 | 267 | if (in_array($aElements[$rCntr][$value], $this->tCmnSuperGlobals->get($checkboxNameS))) { |
@@ -276,29 +276,29 @@ discard block |
||
276 | 276 | if (strpos($this->tCmnSuperGlobals->get('view'), 'multiEdit') !== false) { |
277 | 277 | $sReturn .= 'disabled="disabled" '; |
278 | 278 | } |
279 | - $sReturn .= '/>'; |
|
279 | + $sReturn .= '/>'; |
|
280 | 280 | break; |
281 | 281 | case 'checkbox_inlineEdit': |
282 | - $checkboxName = $value . '[]'; |
|
282 | + $checkboxName = $value.'[]'; |
|
283 | 283 | $checkboxNameS = $value; |
284 | - $sReturn .= ' <input type="checkbox" name="' . $checkboxName |
|
285 | - . '" id="n' . $aElements[$rCntr][$value] . '" value="' |
|
286 | - . $aElements[$rCntr][$value] . '"/>'; |
|
284 | + $sReturn .= ' <input type="checkbox" name="'.$checkboxName |
|
285 | + . '" id="n'.$aElements[$rCntr][$value].'" value="' |
|
286 | + . $aElements[$rCntr][$value].'"/>'; |
|
287 | 287 | break; |
288 | 288 | case 'delete': |
289 | - $sReturn .= '<a href="#" onclick="javascript:setQuest(\'' . $value[0] . '\',\''; |
|
290 | - $iActArgs = count($value[1]); |
|
289 | + $sReturn .= '<a href="#" onclick="javascript:setQuest(\''.$value[0].'\',\''; |
|
290 | + $iActArgs = count($value[1]); |
|
291 | 291 | for ($cntr2 = 0; $cntr2 < $iActArgs; $cntr2++) { |
292 | - $sReturn .= $value[1][$cntr2] . '=' . $aElements[$rCntr][$value[1][$cntr2]]; |
|
292 | + $sReturn .= $value[1][$cntr2].'='.$aElements[$rCntr][$value[1][$cntr2]]; |
|
293 | 293 | } |
294 | - $sReturn .= '\');" id="' . $key . $rCntr . '"><i class="fa fa-times"> </i></a>'; |
|
294 | + $sReturn .= '\');" id="'.$key.$rCntr.'"><i class="fa fa-times"> </i></a>'; |
|
295 | 295 | break; |
296 | 296 | case 'edit': |
297 | 297 | case 'list2': |
298 | 298 | case 'schedule': |
299 | - $vIc = ($key == 'edit' ? 'pencil' : ($key == 'list2' ? 'list' : 'hourglass-half')); |
|
299 | + $vIc = ($key == 'edit' ? 'pencil' : ($key == 'list2' ? 'list' : 'hourglass-half')); |
|
300 | 300 | $sReturn .= $this->setDynamicActionToSpecialCell($value, $aElements, [ |
301 | - 'vIcon' => 'fa fa-' . $vIc, |
|
301 | + 'vIcon' => 'fa fa-'.$vIc, |
|
302 | 302 | 'aPrefix' => $actPrfx, |
303 | 303 | 'aKey' => $actionKey, |
304 | 304 | 'rCounter' => $rCntr, |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | switch ($value[1]) { |
327 | 327 | case '/': |
328 | 328 | // next variable is only to avoid a long line |
329 | - $shorter = [ |
|
329 | + $shorter = [ |
|
330 | 330 | $aElements[$rCntr][$value[3]], |
331 | 331 | $aElements[$rCntr][$value[4]], |
332 | 332 | ]; |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | break; |
335 | 335 | case '+': |
336 | 336 | // next variable is only to avoid a long line |
337 | - $iTemp = $this->setArrayValuesAsKey([ |
|
337 | + $iTemp = $this->setArrayValuesAsKey([ |
|
338 | 338 | $value[0], |
339 | 339 | $value[1], |
340 | 340 | $value[2] |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | } |
352 | 352 | if ($value[0] == '%') { |
353 | 353 | $rowComputed[$key] = ($aElements[$rCntr][$key] * 100); |
354 | - $dec -= 2; |
|
354 | + $dec -= 2; |
|
355 | 355 | } else { |
356 | 356 | $rowComputed[$key] = $aElements[$rCntr][$key]; |
357 | 357 | } |
@@ -363,59 +363,59 @@ discard block |
||
363 | 363 | $sReturn .= '</tr>'; |
364 | 364 | } |
365 | 365 | if (isset($iStartingPageRecord)) { |
366 | - $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2]); |
|
367 | - $sReturn .= '<tr>' . $this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]) . '</tr>'; |
|
366 | + $pgn = $this->setPagination($ftrs['limits'][0], $ftrs['limits'][1], $ftrs['limits'][2]); |
|
367 | + $sReturn .= '<tr>'.$this->setStringIntoTag($pgn, 'th', ['colspan' => $iTableColumns]).'</tr>'; |
|
368 | 368 | } |
369 | 369 | $sReturn .= '</tbody></table>'; |
370 | 370 | if ($ftrs['grouping_cell_type'] == 'tab') { |
371 | 371 | if (isset($ftrs['showGroupingCounter'])) { |
372 | 372 | $sReturn .= $this->updateDivTitleName($remindGroupValue, $groupCounter); |
373 | 373 | } |
374 | - $sReturn .= '</div><!-- from ' . $remindGroupValue . ' -->'; |
|
374 | + $sReturn .= '</div><!-- from '.$remindGroupValue.' -->'; |
|
375 | 375 | if (!isset($ftrs['noGlobalTab'])) { |
376 | 376 | $sReturn .= '</div><!-- from global tab -->'; |
377 | 377 | } |
378 | 378 | } |
379 | 379 | if (isset($ftrs['actions']['checkbox'])) { |
380 | 380 | if (strpos($this->tCmnSuperGlobals->get('view'), 'multiEdit') === false) { |
381 | - $sReturn .= '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
382 | - . '\',\'' . $checkboxName . '\',true);">Check All</a> ' |
|
383 | - . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
384 | - . '\',\'' . $checkboxName . '\',false);">Uncheck All</a> ' |
|
385 | - . '<input type="hidden" name="action" value="multiEdit_' . $checkboxNameS . '" />'; |
|
381 | + $sReturn .= '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
382 | + . '\',\''.$checkboxName.'\',true);">Check All</a> ' |
|
383 | + . '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
384 | + . '\',\''.$checkboxName.'\',false);">Uncheck All</a> ' |
|
385 | + . '<input type="hidden" name="action" value="multiEdit_'.$checkboxNameS.'" />'; |
|
386 | 386 | if (isset($ftrs['hiddenInput'])) { |
387 | 387 | if (is_array($ftrs['hiddenInput'])) { |
388 | 388 | foreach ($ftrs['hiddenInput'] as $valueF) { |
389 | - $sReturn .= '<input type="hidden" name="' . $valueF |
|
390 | - . '" value="' . $this->tCmnSuperGlobals->get($valueF) . '" />'; |
|
389 | + $sReturn .= '<input type="hidden" name="'.$valueF |
|
390 | + . '" value="'.$this->tCmnSuperGlobals->get($valueF).'" />'; |
|
391 | 391 | } |
392 | 392 | } else { |
393 | - $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput'] |
|
394 | - . '" value="' . $this->tCmnSuperGlobals->get($ftrs['hiddenInput']) . '" />'; |
|
393 | + $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput'] |
|
394 | + . '" value="'.$this->tCmnSuperGlobals->get($ftrs['hiddenInput']).'" />'; |
|
395 | 395 | } |
396 | 396 | } |
397 | - $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" ' . 'value="Edit selected" />'; |
|
397 | + $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" '.'value="Edit selected" />'; |
|
398 | 398 | } |
399 | 399 | $sReturn .= '</form>'; |
400 | 400 | } |
401 | 401 | if (isset($ftrs['actions']['checkbox_inlineEdit'])) { |
402 | - $sReturn .= '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
403 | - . '\',\'' . $checkboxName . '\',true);">Check All</a> ' |
|
404 | - . '<a href="#" onclick="javascript:checking(\'' . $checkboxFormId |
|
405 | - . '\',\'' . $checkboxName . '\',false);">Uncheck All</a> '; |
|
402 | + $sReturn .= '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
403 | + . '\',\''.$checkboxName.'\',true);">Check All</a> ' |
|
404 | + . '<a href="#" onclick="javascript:checking(\''.$checkboxFormId |
|
405 | + . '\',\''.$checkboxName.'\',false);">Uncheck All</a> '; |
|
406 | 406 | if (isset($ftrs['visibleInput'])) { |
407 | 407 | $sReturn .= $ftrs['visibleInput']; |
408 | 408 | } |
409 | - $sReturn .= '<input type="hidden" name="view" value="save_' . $checkboxNameS . '" />'; |
|
409 | + $sReturn .= '<input type="hidden" name="view" value="save_'.$checkboxNameS.'" />'; |
|
410 | 410 | if (isset($ftrs['hiddenInput'])) { |
411 | 411 | if (is_array($ftrs['hiddenInput'])) { |
412 | 412 | foreach ($ftrs['hiddenInput'] as $valueF) { |
413 | - $sReturn .= '<input type="hidden" name="' . $valueF . '" value="' |
|
414 | - . $this->tCmnSuperGlobals->get($valueF) . '" />'; |
|
413 | + $sReturn .= '<input type="hidden" name="'.$valueF.'" value="' |
|
414 | + . $this->tCmnSuperGlobals->get($valueF).'" />'; |
|
415 | 415 | } |
416 | 416 | } else { |
417 | - $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput'] |
|
418 | - . '" value="' . $this->tCmnSuperGlobals->get($ftrs['hiddenInput']) . '" />'; |
|
417 | + $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput'] |
|
418 | + . '" value="'.$this->tCmnSuperGlobals->get($ftrs['hiddenInput']).'" />'; |
|
419 | 419 | } |
420 | 420 | } |
421 | 421 | $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" value="Store the modification" />'; |
@@ -427,18 +427,18 @@ discard block |
||
427 | 427 | private function setDynamicActionToSpecialCell($val, $aElements, $inP) |
428 | 428 | { |
429 | 429 | $aArgumemts = []; |
430 | - $aArgumemts[] = $this->tCmnSuperGlobals->getScriptName() . '?' . $inP['aPrefix'] . $inP['aKey'] . '=' . $val[0]; |
|
430 | + $aArgumemts[] = $this->tCmnSuperGlobals->getScriptName().'?'.$inP['aPrefix'].$inP['aKey'].'='.$val[0]; |
|
431 | 431 | $iActArgs = count($val[1]); |
432 | 432 | for ($counter = 0; $counter < $iActArgs; $counter++) { |
433 | - $aArgumemts[] = $val[1][$counter] . '=' . $aElements[$inP['rCounter']][$val[1][$counter]]; |
|
433 | + $aArgumemts[] = $val[1][$counter].'='.$aElements[$inP['rCounter']][$val[1][$counter]]; |
|
434 | 434 | } |
435 | - $id = $inP['key'] . $inP['rCounter']; |
|
435 | + $id = $inP['key'].$inP['rCounter']; |
|
436 | 436 | if (isset($inP['Features']['NoAjaxEditing'])) { |
437 | - return '<a href="' . implode('&', $aArgumemts) . '" id="' . $id . '"><i class="' |
|
438 | - . $inP['vIcon'] . '"> </i></a>'; |
|
437 | + return '<a href="'.implode('&', $aArgumemts).'" id="'.$id.'"><i class="' |
|
438 | + . $inP['vIcon'].'"> </i></a>'; |
|
439 | 439 | } |
440 | - return '<a href="#" onclick="javascript:loadAE(\'' . implode('&', $aArgumemts) . '\');"' |
|
441 | - . ' id="' . $id . '"><i class="' . $inP['vIcon'] . '"> </i></a>'; |
|
440 | + return '<a href="#" onclick="javascript:loadAE(\''.implode('&', $aArgumemts).'\');"' |
|
441 | + . ' id="'.$id.'"><i class="'.$inP['vIcon'].'"> </i></a>'; |
|
442 | 442 | } |
443 | 443 | |
444 | 444 | /** |
@@ -460,10 +460,10 @@ discard block |
||
460 | 460 | if (isset($features['column_formatting'][$key])) { |
461 | 461 | switch ($features['column_formatting'][$key]) { |
462 | 462 | case '@': |
463 | - $sReturn .= 'style="text-align:left;">' . $value; |
|
463 | + $sReturn .= 'style="text-align:left;">'.$value; |
|
464 | 464 | break; |
465 | 465 | case 'right': |
466 | - $sReturn .= 'style="text-align:right;">' . $value; |
|
466 | + $sReturn .= 'style="text-align:right;">'.$value; |
|
467 | 467 | break; |
468 | 468 | default: |
469 | 469 | $sReturn .= '???'; |
@@ -477,12 +477,12 @@ discard block |
||
477 | 477 | if ((strpos($value, '-') !== false) && (strlen($value) == 10)) { |
478 | 478 | if (preg_match("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $value, $regs)) { |
479 | 479 | $outputet = true; |
480 | - $sReturn .= 'style="text-align:right;width: 10px;">' |
|
481 | - . $regs[3] . '.' . $regs[2] . '.' . $regs[1]; |
|
480 | + $sReturn .= 'style="text-align:right;width: 10px;">' |
|
481 | + . $regs[3].'.'.$regs[2].'.'.$regs[1]; |
|
482 | 482 | } |
483 | 483 | } |
484 | 484 | if (!$outputet) { |
485 | - $sReturn .= 'style="text-align:left;">' . $value; |
|
485 | + $sReturn .= 'style="text-align:left;">'.$value; |
|
486 | 486 | } |
487 | 487 | } |
488 | 488 | } |
@@ -508,11 +508,11 @@ discard block |
||
508 | 508 | { |
509 | 509 | $styleToReturn = 'style="text-align: right;">'; |
510 | 510 | if (substr($value, 0, 1) === '0') { |
511 | - return $styleToReturn . $value; |
|
511 | + return $styleToReturn.$value; |
|
512 | 512 | } |
513 | 513 | $decimals = $this->setTableCellDecimals($key, $features); |
514 | 514 | $nDc = ['MinFractionDigits' => $decimals, 'MaxFractionDigits' => $decimals]; |
515 | - return $styleToReturn . $this->setNumberFormat($value, $nDc); |
|
515 | + return $styleToReturn.$this->setNumberFormat($value, $nDc); |
|
516 | 516 | } |
517 | 517 | |
518 | 518 | /** |