@@ -45,8 +45,8 @@ discard block |
||
45 | 45 | } |
46 | 46 | $attributes = ''; |
47 | 47 | foreach ($features as $key => $value) { |
48 | - $val = $this->buildAttributesForTagValueArray($value); |
|
49 | - $attributes .= ' ' . $key . '="' . $val . '"'; |
|
48 | + $val = $this->buildAttributesForTagValueArray($value); |
|
49 | + $attributes .= ' '.$key.'="'.$val.'"'; |
|
50 | 50 | } |
51 | 51 | return $attributes; |
52 | 52 | } |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | if (is_array($value)) { |
58 | 58 | $valA = []; |
59 | 59 | foreach ($value as $key2 => $value2) { |
60 | - $valA[] = $key2 . ':' . $value2; |
|
60 | + $valA[] = $key2.':'.$value2; |
|
61 | 61 | } |
62 | - $val = implode(';', $valA) . ';'; |
|
62 | + $val = implode(';', $valA).';'; |
|
63 | 63 | } |
64 | 64 | return $val; |
65 | 65 | } |
@@ -103,8 +103,8 @@ discard block |
||
103 | 103 | protected function setClearBoth1px($height = 1) |
104 | 104 | { |
105 | 105 | $divStyle = implode('', [ |
106 | - 'height:' . $height . 'px;', |
|
107 | - 'line-height:' . $height . 'px;', |
|
106 | + 'height:'.$height.'px;', |
|
107 | + 'line-height:'.$height.'px;', |
|
108 | 108 | 'float:none;', |
109 | 109 | 'clear:both;', |
110 | 110 | 'margin:0px;' |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $legend = $this->setStringIntoTag($sTitle, 'legend', ['style' => $this->setFeedbackStyle($sType)]); |
129 | 129 | return implode('', [ |
130 | 130 | ($skipBr ? '' : '<br/>'), |
131 | - $this->setStringIntoTag($legend . $sMsg, 'fieldset', ['style' => $this->setFeedbackStyle($sType)]), |
|
131 | + $this->setStringIntoTag($legend.$sMsg, 'fieldset', ['style' => $this->setFeedbackStyle($sType)]), |
|
132 | 132 | ]); |
133 | 133 | } |
134 | 134 | |
@@ -146,10 +146,10 @@ discard block |
||
146 | 146 | private function setFeedbackStyleArray($color1, $color2) |
147 | 147 | { |
148 | 148 | return [ |
149 | - 'Title' => 'margin-top:-5px;margin-right:20px;padding:5px;background-color:' . $color1 |
|
150 | - . ';color:' . $color2 . 'border:medium solid ' . $color1 . ';', |
|
151 | - 'Msg' => 'display:inline;padding-right:5px;padding-bottom:5px;background-color:' . $color2 |
|
152 | - . ';color:' . $color1 . ';border:medium solid ' . $color1 . ';', |
|
149 | + 'Title' => 'margin-top:-5px;margin-right:20px;padding:5px;background-color:'.$color1 |
|
150 | + . ';color:'.$color2.'border:medium solid '.$color1.';', |
|
151 | + 'Msg' => 'display:inline;padding-right:5px;padding-bottom:5px;background-color:'.$color2 |
|
152 | + . ';color:'.$color1.';border:medium solid '.$color1.';', |
|
153 | 153 | ]; |
154 | 154 | } |
155 | 155 | |
@@ -180,8 +180,8 @@ discard block |
||
180 | 180 | $gzipCntntOriginal = ob_get_contents(); |
181 | 181 | ob_end_clean(); |
182 | 182 | $gzipCntnt = gzcompress($gzipCntntOriginal, 9); |
183 | - echo "\x1f\x8b\x08\x00\x00\x00\x00\x00" . substr($gzipCntnt, 0, strlen($gzipCntnt) - 4) |
|
184 | - . pack('V', crc32($gzipCntntOriginal)) . pack('V', strlen($gzipCntntOriginal)); |
|
183 | + echo "\x1f\x8b\x08\x00\x00\x00\x00\x00".substr($gzipCntnt, 0, strlen($gzipCntnt) - 4) |
|
184 | + . pack('V', crc32($gzipCntntOriginal)).pack('V', strlen($gzipCntntOriginal)); |
|
185 | 185 | } elseif ($outputType === 'Header') { |
186 | 186 | ob_start(); |
187 | 187 | ob_implicit_flush(0); |
@@ -205,8 +205,8 @@ discard block |
||
205 | 205 | */ |
206 | 206 | protected function setHeaderNoCache($contentType = 'application/json') |
207 | 207 | { |
208 | - header("Content-Type: " . $contentType . "; charset=utf-8"); |
|
209 | - header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); |
|
208 | + header("Content-Type: ".$contentType."; charset=utf-8"); |
|
209 | + header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); |
|
210 | 210 | header("Cache-Control: no-store, no-cache, must-revalidate"); |
211 | 211 | header("Cache-Control: post-check=0, pre-check=0", false); |
212 | 212 | header("Pragma: no-cache"); |
@@ -237,18 +237,18 @@ discard block |
||
237 | 237 | . $this->setStringIntoTag($iAllRec, 'b') |
238 | 238 | . $this->lclMsgCntrl('i18n_RecordsAvailableNowDisplaying') |
239 | 239 | . $this->setStringIntoTag(($iStartingPageRecord + 1), 'b') |
240 | - . ' - ' . $this->setStringIntoTag( |
|
240 | + . ' - '.$this->setStringIntoTag( |
|
241 | 241 | min($iAllRec, ($iStartingPageRecord + $iRecPrPg)), 'b') |
242 | 242 | . ' </span>'; |
243 | 243 | switch ($iCrtPgNo) { |
244 | 244 | case 'first': |
245 | - $iCrtPgNo = ceil(($iStartingPageRecord + 1 ) / $iRecPrPg); |
|
245 | + $iCrtPgNo = ceil(($iStartingPageRecord + 1) / $iRecPrPg); |
|
246 | 246 | break; |
247 | 247 | case 'last': |
248 | 248 | $iCrtPgNo = ceil($iAllRec / $iRecPrPg); |
249 | 249 | break; |
250 | 250 | } |
251 | - $sReturn .= '<span style="float:right;font-size:smaller; ' |
|
251 | + $sReturn .= '<span style="float:right;font-size:smaller; ' |
|
252 | 252 | . 'margin-top:1px; margin-right:1px;">'; |
253 | 253 | $iNumberOfPages = ceil($iAllRec / $iRecPrPg); |
254 | 254 | $sAdditionalArguments = ''; |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | } |
265 | 265 | if ($iCrtPgNo != 1) { |
266 | 266 | $sReturn .= $this->setStringIntoTag($this->lclMsgCntrl('i18n_Previous'), 'a', [ |
267 | - 'href' => ('?page=' . ($iCrtPgNo - 1 ) . $sAdditionalArguments ), |
|
267 | + 'href' => ('?page='.($iCrtPgNo - 1).$sAdditionalArguments), |
|
268 | 268 | 'class' => 'pagination' |
269 | 269 | ]); |
270 | 270 | } else { |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | $pages2display[$counter] = $counter; |
277 | 277 | } |
278 | 278 | $sReturn .= '<span class="pagination"><form method="get" action="' |
279 | - . $_SERVER['SCRIPT_NAME'] . '">'; |
|
279 | + . $_SERVER['SCRIPT_NAME'].'">'; |
|
280 | 280 | $sReturn .= $this->setArrayToSelect($pages2display, @$_REQUEST['page'] |
281 | 281 | , 'page', ['size' => 1, 'autosubmit', 'id_no' => mt_rand()]); |
282 | 282 | if (isset($_GET)) { |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | foreach ($value as $value2) { |
287 | 287 | $sReturn .= $this->setStringIntoShortTag('input' |
288 | 288 | , ['type' => 'hidden' |
289 | - , 'name' => $key . '[]' |
|
289 | + , 'name' => $key.'[]' |
|
290 | 290 | , 'value' => $value2]); |
291 | 291 | } |
292 | 292 | } else { |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | $sReturn .= '</form></span>'; |
301 | 301 | if ($iCrtPgNo != $iNumberOfPages) { |
302 | 302 | $sReturn .= $this->setStringIntoTag($this->lclMsgCntrl('i18n_Next'), 'a', [ |
303 | - 'href' => ('?page=' . ($iCrtPgNo + 1 ) . $sAdditionalArguments ), |
|
303 | + 'href' => ('?page='.($iCrtPgNo + 1).$sAdditionalArguments), |
|
304 | 304 | 'class' => 'pagination' |
305 | 305 | ]); |
306 | 306 | } else { |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | , $iAllRecords, $bKeepFullPage = true) |
327 | 327 | { |
328 | 328 | if (isset($_REQUEST['page'])) { |
329 | - $iStartingPageRecord = ($_REQUEST['page'] - 1 ) * $iRecordsPerPage; |
|
329 | + $iStartingPageRecord = ($_REQUEST['page'] - 1) * $iRecordsPerPage; |
|
330 | 330 | } else { |
331 | 331 | switch ($sDefaultPageNo) { |
332 | 332 | case 'last': |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | break; |
339 | 339 | } |
340 | 340 | } |
341 | - if (($bKeepFullPage ) && (($iStartingPageRecord + $iRecordsPerPage ) > $iAllRecords)) { |
|
341 | + if (($bKeepFullPage) && (($iStartingPageRecord + $iRecordsPerPage) > $iAllRecords)) { |
|
342 | 342 | $iStartingPageRecord = $iAllRecords - $iRecordsPerPage; |
343 | 343 | } |
344 | 344 | return max(0, $iStartingPageRecord); |
@@ -353,8 +353,8 @@ discard block |
||
353 | 353 | */ |
354 | 354 | protected function setStringIntoShortTag($sTag, $features = null) |
355 | 355 | { |
356 | - return '<' . $sTag . $this->buildAttributesForTag($features) |
|
357 | - . (isset($features['dont_close']) ? '' : '/') . '>'; |
|
356 | + return '<'.$sTag.$this->buildAttributesForTag($features) |
|
357 | + . (isset($features['dont_close']) ? '' : '/').'>'; |
|
358 | 358 | } |
359 | 359 | |
360 | 360 | /** |
@@ -367,12 +367,12 @@ discard block |
||
367 | 367 | */ |
368 | 368 | protected function setStringIntoTag($sString, $sTag, $features = null) |
369 | 369 | { |
370 | - return '<' . $sTag . $this->buildAttributesForTag($features) . '>' . $sString . '</' . $sTag . '>'; |
|
370 | + return '<'.$sTag.$this->buildAttributesForTag($features).'>'.$sString.'</'.$sTag.'>'; |
|
371 | 371 | } |
372 | 372 | |
373 | 373 | protected function setViewModernLinkAdd($identifier, $ftrs = null) |
374 | 374 | { |
375 | - $btnText = '<i class="fa fa-plus-square"> </i>' . ' ' . $this->lclMsgCmn('i18n_AddNewRecord'); |
|
375 | + $btnText = '<i class="fa fa-plus-square"> </i>'.' '.$this->lclMsgCmn('i18n_AddNewRecord'); |
|
376 | 376 | $tagFeatures = [ |
377 | 377 | 'href' => $this->setViewModernLinkAddUrl($identifier, $ftrs), |
378 | 378 | 'style' => 'margin: 5px 0px 10px 0px; display: inline-block;', |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | $sArgmnts = ''; |
386 | 386 | if (isset($ftrs['injectAddArguments'])) { |
387 | 387 | foreach ($ftrs['injectAddArguments'] as $key => $value) { |
388 | - $sArgmnts .= '&' . $key . '=' . $value; |
|
388 | + $sArgmnts .= '&'.$key.'='.$value; |
|
389 | 389 | } |
390 | 390 | } |
391 | 391 | return $sArgmnts; |
@@ -395,9 +395,9 @@ discard block |
||
395 | 395 | { |
396 | 396 | $sArgmnts = $this->setViewModernLinkAddInjectedArguments($ftrs); |
397 | 397 | $this->initializeSprGlbAndSession(); |
398 | - $addingUrl = $this->tCmnRequest->server->get('PHP_SELF') . '?view=add_' . $identifier . $sArgmnts; |
|
398 | + $addingUrl = $this->tCmnRequest->server->get('PHP_SELF').'?view=add_'.$identifier.$sArgmnts; |
|
399 | 399 | if (!isset($ftrs['NoAjax'])) { |
400 | - $addingUrl = 'javascript:loadAE(\'' . $addingUrl . '\');'; |
|
400 | + $addingUrl = 'javascript:loadAE(\''.$addingUrl.'\');'; |
|
401 | 401 | } |
402 | 402 | return $addingUrl; |
403 | 403 | } |