@@ -75,8 +75,8 @@ discard block |
||
75 | 75 | } |
76 | 76 | } |
77 | 77 | } |
78 | - return '<style type="text/css" media="' . $attr['media'] . '">' |
|
79 | - . $cssContent . '</style>'; |
|
78 | + return '<style type="text/css" media="'.$attr['media'].'">' |
|
79 | + . $cssContent.'</style>'; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
@@ -92,11 +92,11 @@ discard block |
||
92 | 92 | } |
93 | 93 | if (in_array($this->getClientRealIpAddress(), $hostsWithoutCDNrq)) { |
94 | 94 | return '<link rel="stylesheet" type="text/css" href="' |
95 | - . filter_var($cssFileName, FILTER_SANITIZE_STRING) . '" />'; |
|
95 | + . filter_var($cssFileName, FILTER_SANITIZE_STRING).'" />'; |
|
96 | 96 | } |
97 | 97 | $patternFound = $this->setCssFileCDN($cssFileName); |
98 | 98 | return '<link rel="stylesheet" type="text/css" href="' |
99 | - . filter_var($patternFound[1], FILTER_SANITIZE_STRING) . '" />'; |
|
99 | + . filter_var($patternFound[1], FILTER_SANITIZE_STRING).'" />'; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | /** |
@@ -109,19 +109,19 @@ discard block |
||
109 | 109 | { |
110 | 110 | $cnt = implode(PHP_EOL, [ |
111 | 111 | '$(document).ready(function(){', |
112 | - '$("form#' . $frmId . '").submit(function(){', |
|
113 | - '$("form#' . $frmId . ' input[type=checkbox]").attr("readonly", true);', |
|
114 | - '$("form#' . $frmId . ' input[type=password]").attr("readonly", true);', |
|
115 | - '$("form#' . $frmId . ' input[type=radio]").attr("readonly", true);', |
|
116 | - '$("form#' . $frmId . ' input[type=text]").attr("readonly", true);', |
|
117 | - '$("form#' . $frmId . ' textarea").attr("readonly", true);', |
|
118 | - '$("form#' . $frmId . ' select").attr("readonly", true);', |
|
112 | + '$("form#'.$frmId.'").submit(function(){', |
|
113 | + '$("form#'.$frmId.' input[type=checkbox]").attr("readonly", true);', |
|
114 | + '$("form#'.$frmId.' input[type=password]").attr("readonly", true);', |
|
115 | + '$("form#'.$frmId.' input[type=radio]").attr("readonly", true);', |
|
116 | + '$("form#'.$frmId.' input[type=text]").attr("readonly", true);', |
|
117 | + '$("form#'.$frmId.' textarea").attr("readonly", true);', |
|
118 | + '$("form#'.$frmId.' select").attr("readonly", true);', |
|
119 | 119 | '$("input[type=submit]").attr("disabled", "disabled");', |
120 | - '$("input[type=submit]").attr("value", "' . $this->lclMsgCmn('i18n_Form_ButtonSaving') . '");', |
|
120 | + '$("input[type=submit]").attr("value", "'.$this->lclMsgCmn('i18n_Form_ButtonSaving').'");', |
|
121 | 121 | '});', |
122 | 122 | '});', |
123 | 123 | ]); |
124 | - return $this->setJavascriptContent(PHP_EOL . $cnt . PHP_EOL); |
|
124 | + return $this->setJavascriptContent(PHP_EOL.$cnt.PHP_EOL); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | { |
134 | 134 | return $this->setJavascriptContent(implode('', [ |
135 | 135 | 'function loadAE(action) {', |
136 | - 'document.getElementById("' . $tabName . '").tabber.tabShow(1);', |
|
136 | + 'document.getElementById("'.$tabName.'").tabber.tabShow(1);', |
|
137 | 137 | '$("#DynamicAddEditSpacer").load(action', |
138 | 138 | '+"&specialHook[]=noHeader"', |
139 | 139 | '+"&specialHook[]=noMenu"', |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | */ |
153 | 153 | protected function setJavascriptContent($javascriptContent) |
154 | 154 | { |
155 | - return '<script type="text/javascript">' . $javascriptContent . '</script>'; |
|
155 | + return '<script type="text/javascript">'.$javascriptContent.'</script>'; |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | /** |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | return $this->setJavascriptContent('function setQuest(a, b) { ' |
166 | 166 | . 'c = a.indexOf("_"); switch(a.slice(0, c)) { ' |
167 | 167 | . 'case \'delete\': ' |
168 | - . 'if (confirm(\'' . $this->lclMsgCmn('i18n_ActionDelete_ConfirmationQuestion') . '\')) { ' |
|
168 | + . 'if (confirm(\''.$this->lclMsgCmn('i18n_ActionDelete_ConfirmationQuestion').'\')) { ' |
|
169 | 169 | . 'window.location = document.location.protocol + "//" + ' |
170 | 170 | . 'document.location.host + document.location.pathname + ' |
171 | 171 | . '"?view=" + a + "&" + b; } break; } }'); |
@@ -183,11 +183,11 @@ discard block |
||
183 | 183 | $hostsWithoutCDNrq = []; |
184 | 184 | } |
185 | 185 | if (in_array($this->getClientRealIpAddress(), $hostsWithoutCDNrq)) { |
186 | - return '<script type="text/javascript" src="' . filter_var($jsFileName, FILTER_SANITIZE_STRING) |
|
186 | + return '<script type="text/javascript" src="'.filter_var($jsFileName, FILTER_SANITIZE_STRING) |
|
187 | 187 | . '"></script>'; |
188 | 188 | } |
189 | 189 | $patternFound = $this->setJavascriptFileCDN($jsFileName); |
190 | - return '<script type="text/javascript" src="' . $patternFound[1] . '"></script>' . $patternFound[2]; |
|
190 | + return '<script type="text/javascript" src="'.$patternFound[1].'"></script>'.$patternFound[2]; |
|
191 | 191 | } |
192 | 192 | |
193 | 193 | /** |
@@ -198,14 +198,14 @@ discard block |
||
198 | 198 | */ |
199 | 199 | protected function setJavascriptFileContent($jsFileName) |
200 | 200 | { |
201 | - return '<script type="text/javascript">' . file_get_contents($jsFileName, true) . '</script>'; |
|
201 | + return '<script type="text/javascript">'.file_get_contents($jsFileName, true).'</script>'; |
|
202 | 202 | } |
203 | 203 | |
204 | 204 | protected function updateDivTitleName($rememberGroupVal, $groupCounter) |
205 | 205 | { |
206 | 206 | $jsContent = '$(document).ready(function() { $("#tab_' |
207 | - . $this->cleanStringForId($rememberGroupVal) . '").attr("title", "' |
|
208 | - . $rememberGroupVal . ' (' . $groupCounter . ')"); });'; |
|
207 | + . $this->cleanStringForId($rememberGroupVal).'").attr("title", "' |
|
208 | + . $rememberGroupVal.' ('.$groupCounter.')"); });'; |
|
209 | 209 | return $this->setJavascriptContent($jsContent); |
210 | 210 | } |
211 | 211 |
@@ -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 (isset($_REQUEST[$checkboxNameS])) { |
266 | 266 | if (is_array($_REQUEST[$checkboxNameS])) { |
267 | 267 | if (in_array($aElements[$rCntr][$value], $_REQUEST[$checkboxNameS])) { |
@@ -276,29 +276,29 @@ discard block |
||
276 | 276 | if (strpos($_REQUEST['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,58 +363,58 @@ 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($_REQUEST['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="' . $_REQUEST[$valueF] . '" />'; |
|
389 | + $sReturn .= '<input type="hidden" name="'.$valueF |
|
390 | + . '" value="'.$_REQUEST[$valueF].'" />'; |
|
391 | 391 | } |
392 | 392 | } else { |
393 | - $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput'] |
|
394 | - . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />'; |
|
393 | + $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput'] |
|
394 | + . '" value="'.$_REQUEST[$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="' . $_REQUEST[$valueF] . '" />'; |
|
413 | + $sReturn .= '<input type="hidden" name="'.$valueF.'" value="'.$_REQUEST[$valueF].'" />'; |
|
414 | 414 | } |
415 | 415 | } else { |
416 | - $sReturn .= '<input type="hidden" name="' . $ftrs['hiddenInput'] |
|
417 | - . '" value="' . $_REQUEST[$ftrs['hiddenInput']] . '" />'; |
|
416 | + $sReturn .= '<input type="hidden" name="'.$ftrs['hiddenInput'] |
|
417 | + . '" value="'.$_REQUEST[$ftrs['hiddenInput']].'" />'; |
|
418 | 418 | } |
419 | 419 | } |
420 | 420 | $sReturn .= '<input style="margin: 0 3em 0 3em;" type="submit" value="Store the modification" />'; |
@@ -426,18 +426,18 @@ discard block |
||
426 | 426 | private function setDynamicActionToSpecialCell($val, $aElements, $inP) |
427 | 427 | { |
428 | 428 | $aArgumemts = []; |
429 | - $aArgumemts[] = $this->tCmnSuperGlobals->getScriptName() . '?' . $inP['aPrefix'] . $inP['aKey'] . '=' . $val[0]; |
|
429 | + $aArgumemts[] = $this->tCmnSuperGlobals->getScriptName().'?'.$inP['aPrefix'].$inP['aKey'].'='.$val[0]; |
|
430 | 430 | $iActArgs = count($val[1]); |
431 | 431 | for ($counter = 0; $counter < $iActArgs; $counter++) { |
432 | - $aArgumemts[] = $val[1][$counter] . '=' . $aElements[$inP['rCounter']][$val[1][$counter]]; |
|
432 | + $aArgumemts[] = $val[1][$counter].'='.$aElements[$inP['rCounter']][$val[1][$counter]]; |
|
433 | 433 | } |
434 | - $id = $inP['key'] . $inP['rCounter']; |
|
434 | + $id = $inP['key'].$inP['rCounter']; |
|
435 | 435 | if (isset($inP['Features']['NoAjaxEditing'])) { |
436 | - return '<a href="' . implode('&', $aArgumemts) . '" id="' . $id . '"><i class="' |
|
437 | - . $inP['vIcon'] . '"> </i></a>'; |
|
436 | + return '<a href="'.implode('&', $aArgumemts).'" id="'.$id.'"><i class="' |
|
437 | + . $inP['vIcon'].'"> </i></a>'; |
|
438 | 438 | } |
439 | - return '<a href="#" onclick="javascript:loadAE(\'' . implode('&', $aArgumemts) . '\');"' |
|
440 | - . ' id="' . $id . '"><i class="' . $inP['vIcon'] . '"> </i></a>'; |
|
439 | + return '<a href="#" onclick="javascript:loadAE(\''.implode('&', $aArgumemts).'\');"' |
|
440 | + . ' id="'.$id.'"><i class="'.$inP['vIcon'].'"> </i></a>'; |
|
441 | 441 | } |
442 | 442 | |
443 | 443 | /** |
@@ -459,10 +459,10 @@ discard block |
||
459 | 459 | if (isset($features['column_formatting'][$key])) { |
460 | 460 | switch ($features['column_formatting'][$key]) { |
461 | 461 | case '@': |
462 | - $sReturn .= 'style="text-align:left;">' . $value; |
|
462 | + $sReturn .= 'style="text-align:left;">'.$value; |
|
463 | 463 | break; |
464 | 464 | case 'right': |
465 | - $sReturn .= 'style="text-align:right;">' . $value; |
|
465 | + $sReturn .= 'style="text-align:right;">'.$value; |
|
466 | 466 | break; |
467 | 467 | default: |
468 | 468 | $sReturn .= '???'; |
@@ -476,12 +476,12 @@ discard block |
||
476 | 476 | if ((strpos($value, '-') !== false) && (strlen($value) == 10)) { |
477 | 477 | if (preg_match("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $value, $regs)) { |
478 | 478 | $outputet = true; |
479 | - $sReturn .= 'style="text-align:right;width: 10px;">' |
|
480 | - . $regs[3] . '.' . $regs[2] . '.' . $regs[1]; |
|
479 | + $sReturn .= 'style="text-align:right;width: 10px;">' |
|
480 | + . $regs[3].'.'.$regs[2].'.'.$regs[1]; |
|
481 | 481 | } |
482 | 482 | } |
483 | 483 | if (!$outputet) { |
484 | - $sReturn .= 'style="text-align:left;">' . $value; |
|
484 | + $sReturn .= 'style="text-align:left;">'.$value; |
|
485 | 485 | } |
486 | 486 | } |
487 | 487 | } |
@@ -507,11 +507,11 @@ discard block |
||
507 | 507 | { |
508 | 508 | $styleToReturn = 'style="text-align: right;">'; |
509 | 509 | if (substr($value, 0, 1) === '0') { |
510 | - return $styleToReturn . $value; |
|
510 | + return $styleToReturn.$value; |
|
511 | 511 | } |
512 | 512 | $decimals = $this->setTableCellDecimals($key, $features); |
513 | 513 | $nDc = ['MinFractionDigits' => $decimals, 'MaxFractionDigits' => $decimals]; |
514 | - return $styleToReturn . $this->setNumberFormat($value, $nDc); |
|
514 | + return $styleToReturn.$this->setNumberFormat($value, $nDc); |
|
515 | 515 | } |
516 | 516 | |
517 | 517 | /** |
@@ -41,10 +41,10 @@ discard block |
||
41 | 41 | public function setCalendarControl($controlName, $additionalStyle = '') |
42 | 42 | { |
43 | 43 | return $this->setStringIntoTag(' ', 'span', [ |
44 | - 'onclick' => 'javascript:NewCssCal(\'' . $controlName . '\',\'yyyyMMdd\',\'dropdown\',false,\'24\',false);', |
|
44 | + 'onclick' => 'javascript:NewCssCal(\''.$controlName.'\',\'yyyyMMdd\',\'dropdown\',false,\'24\',false);', |
|
45 | 45 | 'class' => 'fa fa-calendar', |
46 | - 'id' => $controlName . '_picker', |
|
47 | - 'style' => 'cursor:pointer;' . $additionalStyle, |
|
46 | + 'id' => $controlName.'_picker', |
|
47 | + 'style' => 'cursor:pointer;'.$additionalStyle, |
|
48 | 48 | ]); |
49 | 49 | } |
50 | 50 | |
@@ -58,10 +58,10 @@ discard block |
||
58 | 58 | public function setCalendarControlWithTime($controlName, $additionalStyle = '') |
59 | 59 | { |
60 | 60 | return $this->setStringIntoTag(' ', 'span', [ |
61 | - 'onclick' => 'javascript:NewCssCal(\'' . $controlName . '\',\'yyyyMMdd\',\'dropdown\',true,\'24\',true);', |
|
61 | + 'onclick' => 'javascript:NewCssCal(\''.$controlName.'\',\'yyyyMMdd\',\'dropdown\',true,\'24\',true);', |
|
62 | 62 | 'class' => 'fa fa-calendar', |
63 | - 'id' => $controlName . '_picker', |
|
64 | - 'style' => 'cursor:pointer;' . $additionalStyle, |
|
63 | + 'id' => $controlName.'_picker', |
|
64 | + 'style' => 'cursor:pointer;'.$additionalStyle, |
|
65 | 65 | ]); |
66 | 66 | } |
67 | 67 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | if (!is_null($sHK) && (in_array('noHeader', $sHK))) { |
78 | 78 | return ''; |
79 | 79 | } |
80 | - return $this->setFooterCommonInjected($footerInjected) . '</body></html>'; |
|
80 | + return $this->setFooterCommonInjected($footerInjected).'</body></html>'; |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | protected function setFooterCommonInjected($footerInjected = null) |
@@ -117,11 +117,11 @@ discard block |
||
117 | 117 | foreach ($headerFeatures as $key => $value) { |
118 | 118 | $aFeatures[] = $this->setHeaderFeatures($key, $value); |
119 | 119 | } |
120 | - return implode('', $fixedHeaderElements) . implode('', $aFeatures) . '</head>' . '<body>'; |
|
120 | + return implode('', $fixedHeaderElements).implode('', $aFeatures).'</head>'.'<body>'; |
|
121 | 121 | } |
122 | - $sReturn[] = implode('', $fixedHeaderElements) . '</head>' . '<body>' |
|
122 | + $sReturn[] = implode('', $fixedHeaderElements).'</head>'.'<body>' |
|
123 | 123 | . '<p style="background-color:red;color:#FFF;">The parameter sent to ' |
124 | - . __FUNCTION__ . ' must be a non-empty array</p>' . $this->setFooterCommon(); |
|
124 | + . __FUNCTION__.' must be a non-empty array</p>'.$this->setFooterCommon(); |
|
125 | 125 | throw new \Exception(implode('', $sReturn)); |
126 | 126 | } |
127 | 127 | |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | */ |
134 | 134 | private function setHeaderCssOrJavascript($value, $sCssOrJavascript) |
135 | 135 | { |
136 | - $strFunctionToCall = (string) 'set' . ucwords($sCssOrJavascript) . 'File'; |
|
136 | + $strFunctionToCall = (string) 'set'.ucwords($sCssOrJavascript).'File'; |
|
137 | 137 | if (is_array($value)) { |
138 | 138 | $aFeatures = []; |
139 | 139 | foreach ($value as $value2) { |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | if (in_array($key, ['css', 'javascript'])) { |
158 | 158 | $sReturn = $this->setHeaderCssOrJavascript($value, $key); |
159 | 159 | } elseif ($key == 'title') { |
160 | - $sReturn = '<title>' . filter_var($value, FILTER_SANITIZE_STRING) . '</title>'; |
|
160 | + $sReturn = '<title>'.filter_var($value, FILTER_SANITIZE_STRING).'</title>'; |
|
161 | 161 | } |
162 | 162 | return $sReturn; |
163 | 163 | } |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | $this->handleLanguageIntoSession(); |
195 | 195 | return '<div class="upperRightBox">' |
196 | 196 | . '<div style="text-align:right;">' |
197 | - . '<span class="flag-icon flag-icon-' . strtolower(substr($this->tCmnSession->get('lang'), -2)) |
|
197 | + . '<span class="flag-icon flag-icon-'.strtolower(substr($this->tCmnSession->get('lang'), -2)) |
|
198 | 198 | . '" style="margin-right:2px;"> </span>' |
199 | 199 | . $aAvailableLanguages[$this->tCmnSession->get('lang')] |
200 | 200 | . '</div><!-- default Language -->' |
@@ -212,17 +212,17 @@ discard block |
||
212 | 212 | $linkWithoutLanguage = ''; |
213 | 213 | $alR = $this->tCmnSuperGlobals->query->all(); |
214 | 214 | if (count($alR) > 0) { |
215 | - $linkWithoutLanguage = $this->setArrayToStringForUrl('&', $alR, ['lang']) . '&'; |
|
215 | + $linkWithoutLanguage = $this->setArrayToStringForUrl('&', $alR, ['lang']).'&'; |
|
216 | 216 | } |
217 | 217 | $sReturn = []; |
218 | 218 | foreach ($aAvailableLanguages as $key => $value) { |
219 | 219 | if ($this->tCmnSession->get('lang') !== $key) { |
220 | - $sReturn[] = '<a href="?' . $linkWithoutLanguage . 'lang=' . $key . '" style="display:block;">' |
|
221 | - . '<span class="flag-icon flag-icon-' . strtolower(substr($key, -2)) |
|
222 | - . '" style="margin-right:2px;"> </span>' . $value . '</a>'; |
|
220 | + $sReturn[] = '<a href="?'.$linkWithoutLanguage.'lang='.$key.'" style="display:block;">' |
|
221 | + . '<span class="flag-icon flag-icon-'.strtolower(substr($key, -2)) |
|
222 | + . '" style="margin-right:2px;"> </span>'.$value.'</a>'; |
|
223 | 223 | } |
224 | 224 | } |
225 | - return '<div id="visibleOnHover">' . implode('', $sReturn) . '</div><!-- visibleOnHover end -->'; |
|
225 | + return '<div id="visibleOnHover">'.implode('', $sReturn).'</div><!-- visibleOnHover end -->'; |
|
226 | 226 | } |
227 | 227 | |
228 | 228 | } |