@@ -50,21 +50,21 @@ discard block |
||
50 | 50 | $sReturn = null; |
51 | 51 | $iRecPrPg = min($iRecPrPg, $iAllRec); |
52 | 52 | $iStartingPageRecord = $this->setStartingPageRecord($iCrtPgNo, $iRecPrPg, $iAllRec, $bKpFlPg); |
53 | - $sReturn .= '<span style="float:left;font-size:smaller;margin-top:1px; margin-right:1px;">' |
|
53 | + $sReturn .= '<span style="float:left;font-size:smaller;margin-top:1px; margin-right:1px;">' |
|
54 | 54 | . $this->setStringIntoTag($iAllRec, 'b') |
55 | 55 | . $this->lclMsgCmn('i18n_RecordsAvailableNowDisplaying') |
56 | 56 | . $this->setStringIntoTag(($iStartingPageRecord + 1), 'b') |
57 | - . ' - ' . $this->setStringIntoTag(min($iAllRec, ($iStartingPageRecord + $iRecPrPg)), 'b') |
|
57 | + . ' - '.$this->setStringIntoTag(min($iAllRec, ($iStartingPageRecord + $iRecPrPg)), 'b') |
|
58 | 58 | . ' </span>'; |
59 | 59 | switch ($iCrtPgNo) { |
60 | 60 | case 'first': |
61 | - $iCrtPgNo = ceil(($iStartingPageRecord + 1 ) / $iRecPrPg); |
|
61 | + $iCrtPgNo = ceil(($iStartingPageRecord + 1) / $iRecPrPg); |
|
62 | 62 | break; |
63 | 63 | case 'last': |
64 | 64 | $iCrtPgNo = ceil($iAllRec / $iRecPrPg); |
65 | 65 | break; |
66 | 66 | } |
67 | - $sReturn .= '<span style="float:right;font-size:smaller;margin-top:1px; margin-right:1px;">'; |
|
67 | + $sReturn .= '<span style="float:right;font-size:smaller;margin-top:1px; margin-right:1px;">'; |
|
68 | 68 | $iNumberOfPages = ceil($iAllRec / $iRecPrPg); |
69 | 69 | $sAdditionalArguments = ''; |
70 | 70 | if (isset($_GET)) { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | } |
79 | 79 | if ($iCrtPgNo != 1) { |
80 | 80 | $sReturn .= $this->setStringIntoTag($this->lclMsgCmn('i18n_Previous'), 'a', [ |
81 | - 'href' => ('?page=' . ($iCrtPgNo - 1 ) . $sAdditionalArguments ), |
|
81 | + 'href' => ('?page='.($iCrtPgNo - 1).$sAdditionalArguments), |
|
82 | 82 | 'class' => 'pagination' |
83 | 83 | ]); |
84 | 84 | } else { |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | for ($counter = 1; $counter <= $iNumberOfPages; $counter++) { |
91 | 91 | $pages2display[$counter] = $counter; |
92 | 92 | } |
93 | - $sReturn .= '<span class="pagination"><form method="get" action="' . $_SERVER['SCRIPT_NAME'] . '">'; |
|
93 | + $sReturn .= '<span class="pagination"><form method="get" action="'.$_SERVER['SCRIPT_NAME'].'">'; |
|
94 | 94 | $sReturn .= $this->setArrayToSelect($pages2display, @$_REQUEST['page'] |
95 | 95 | , 'page', ['size' => 1, 'autosubmit', 'id_no' => mt_rand()]); |
96 | 96 | if (isset($_GET)) { |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | foreach ($value as $value2) { |
101 | 101 | $sReturn .= $this->setStringIntoShortTag('input', [ |
102 | 102 | 'type' => 'hidden', |
103 | - 'name' => $key . '[]', |
|
103 | + 'name' => $key.'[]', |
|
104 | 104 | 'value' => $value2, |
105 | 105 | ]); |
106 | 106 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | $sReturn .= '</form></span>'; |
118 | 118 | if ($iCrtPgNo != $iNumberOfPages) { |
119 | 119 | $sReturn .= $this->setStringIntoTag($this->lclMsgCmn('i18n_Next'), 'a', [ |
120 | - 'href' => ('?page=' . ($iCrtPgNo + 1 ) . $sAdditionalArguments ), |
|
120 | + 'href' => ('?page='.($iCrtPgNo + 1).$sAdditionalArguments), |
|
121 | 121 | 'class' => 'pagination', |
122 | 122 | ]); |
123 | 123 | } else { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | , $iAllRecords, $bKeepFullPage = true) |
144 | 144 | { |
145 | 145 | if (isset($_REQUEST['page'])) { |
146 | - $iStartingPageRecord = ($_REQUEST['page'] - 1 ) * $iRecordsPerPage; |
|
146 | + $iStartingPageRecord = ($_REQUEST['page'] - 1) * $iRecordsPerPage; |
|
147 | 147 | } else { |
148 | 148 | switch ($sDefaultPageNo) { |
149 | 149 | case 'last': |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | break; |
156 | 156 | } |
157 | 157 | } |
158 | - if (($bKeepFullPage ) && (($iStartingPageRecord + $iRecordsPerPage ) > $iAllRecords)) { |
|
158 | + if (($bKeepFullPage) && (($iStartingPageRecord + $iRecordsPerPage) > $iAllRecords)) { |
|
159 | 159 | $iStartingPageRecord = $iAllRecords - $iRecordsPerPage; |
160 | 160 | } |
161 | 161 | return max(0, $iStartingPageRecord); |