mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Fix HTML code in the account search results table
Do not add an opening <tbody> tag for every row. Instead, wrap all rows in <tbody></tbody>. While at it, also simplify the code used to color the rows. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
afe3f5d0e5
commit
cbab9870c1
1 changed files with 5 additions and 15 deletions
|
@ -16,17 +16,9 @@ else:
|
||||||
<th><?= __("Edit Account") ?></th>
|
<th><?= __("Edit Account") ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<?php
|
<tbody>
|
||||||
$i = 0;
|
<?php foreach ($userinfo as $idx => $row): ?>
|
||||||
foreach ($userinfo as $indx => $row):
|
<tr class ="<?= ($idx % 2 == 0) ? 'odd' : 'even' ?>">
|
||||||
if ($i % 2):
|
|
||||||
$c = "even";
|
|
||||||
else:
|
|
||||||
$c = "odd";
|
|
||||||
endif;
|
|
||||||
?>
|
|
||||||
<tbody>
|
|
||||||
<tr class ="<?= $c ?>">
|
|
||||||
<td><a href="<?= get_uri('/packages/'); ?>?SeB=m&K=<?= $row["Username"] ?>"><?= $row["Username"] ?></a></td>
|
<td><a href="<?= get_uri('/packages/'); ?>?SeB=m&K=<?= $row["Username"] ?>"><?= $row["Username"] ?></a></td>
|
||||||
<td><?= $row["AccountType"] ?></td>
|
<td><?= $row["AccountType"] ?></td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -49,10 +41,8 @@ else:
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php endforeach; ?>
|
||||||
$i++;
|
</tbody>
|
||||||
endforeach;
|
|
||||||
?>
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<table class="results">
|
<table class="results">
|
||||||
|
|
Loading…
Add table
Reference in a new issue