@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | echo "</tr>"; |
59 | 59 | |
60 | 60 | echo "<tr>"; |
61 | - echo "<th>" . tra("Rank") . "</th><th>" . tra("Name") . "</th>\n"; |
|
61 | + echo "<th>".tra("Rank")."</th><th>".tra("Name")."</th>\n"; |
|
62 | 62 | foreach ($apps as $app) { |
63 | 63 | for ($i = 0; $i < 2; $i++) { |
64 | 64 | $x = col_title($is_team, $app, $appid, $is_total, $i); |
@@ -78,13 +78,13 @@ discard block |
||
78 | 78 | echo "<tr>"; |
79 | 79 | echo "<td>$i</td>"; |
80 | 80 | |
81 | - echo "<td>" . $item[0][$x] . "</td>"; |
|
81 | + echo "<td>".$item[0][$x]."</td>"; |
|
82 | 82 | $y = 1; |
83 | 83 | foreach ($apps as $app) { |
84 | 84 | $z = 0; |
85 | - echo "<td>" . format_credit($item[$y][$x][$z]) . "</td>"; |
|
85 | + echo "<td>".format_credit($item[$y][$x][$z])."</td>"; |
|
86 | 86 | $z++; |
87 | - echo "<td>" . format_credit_large($item[$y][$x][$z]) . "</td>"; |
|
87 | + echo "<td>".format_credit_large($item[$y][$x][$z])."</td>"; |
|
88 | 88 | $y++; |
89 | 89 | } |
90 | 90 | echo "</tr>"; |
@@ -179,10 +179,10 @@ discard block |
||
179 | 179 | |
180 | 180 | if ($is_team) { |
181 | 181 | |
182 | - $data = BoincCreditTeam::get_list("appid=$appid", $x, $offset . ", " . $items_per_page); |
|
182 | + $data = BoincCreditTeam::get_list("appid=$appid", $x, $offset.", ".$items_per_page); |
|
183 | 183 | $store = retrieve_credit_team($data); |
184 | 184 | } else { |
185 | - $data = BoincCreditUser::get_list("appid=$appid", $x, $offset . ", " . $items_per_page); |
|
185 | + $data = BoincCreditUser::get_list("appid=$appid", $x, $offset.", ".$items_per_page); |
|
186 | 186 | $store = retrieve_credit_user($data); |
187 | 187 | } |
188 | 188 | |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | |
198 | 198 | if (!$offset) |
199 | 199 | $offset = 0; |
200 | -if ($offset % $items_per_page) |
|
200 | +if ($offset%$items_per_page) |
|
201 | 201 | $offset = 0; |
202 | 202 | |
203 | 203 | $x = $is_team ? tra("Top teams by application") : tra("Top participants by application"); |
@@ -245,12 +245,12 @@ discard block |
||
245 | 245 | |
246 | 246 | if ($offset > 0) { |
247 | 247 | $new_offset = $offset - $items_per_page; |
248 | - echo "<a href=per_app_list.php?appid=$appid&is_team=$is_team&is_total=$is_total&offset=$new_offset>" . tra("Previous %1", $items_per_page) . "</a> · "; |
|
248 | + echo "<a href=per_app_list.php?appid=$appid&is_team=$is_team&is_total=$is_total&offset=$new_offset>".tra("Previous %1", $items_per_page)."</a> · "; |
|
249 | 249 | } |
250 | 250 | |
251 | 251 | if (sizeof($data[0]) == $items_per_page) { |
252 | 252 | $new_offset = $offset + $items_per_page; |
253 | - echo "<a href=per_app_list.php?appid=$appid&is_team=$is_team&is_total=$is_total&offset=$new_offset>" . tra("Next %1", $items_per_page) . "</a>"; |
|
253 | + echo "<a href=per_app_list.php?appid=$appid&is_team=$is_team&is_total=$is_total&offset=$new_offset>".tra("Next %1", $items_per_page)."</a>"; |
|
254 | 254 | } |
255 | 255 | |
256 | 256 | page_tail(); |