pkgreq_results.php: Split out package results box

Do not include the wrapper div container in the template.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2017-02-07 08:29:53 +01:00
parent ff8eb62a75
commit 05007d8b1a
2 changed files with 126 additions and 126 deletions

View file

@ -77,7 +77,9 @@ if (isset($base_id)) {
$SID = $_COOKIE['AURSID']; $SID = $_COOKIE['AURSID'];
html_header(__("Requests")); html_header(__("Requests"));
echo '<div id="pkglist-results" class="box">';
include('pkgreq_results.php'); include('pkgreq_results.php');
echo '</div>';
} }
html_footer(AURWEB_VERSION); html_footer(AURWEB_VERSION);

View file

@ -1,5 +1,4 @@
<div id="pkglist-results" class="box"> <div class="pkglist-stats">
<div class="pkglist-stats">
<p> <p>
<?= _n('%d package request found.', '%d package requests found.', $total) ?> <?= _n('%d package request found.', '%d package requests found.', $total) ?>
<?= __('Page %d of %d.', $current, $pages) ?> <?= __('Page %d of %d.', $current, $pages) ?>
@ -17,10 +16,10 @@
<?php endforeach; ?> <?php endforeach; ?>
</p> </p>
<?php endif; ?> <?php endif; ?>
</div> </div>
<table class="results"> <table class="results">
<thead> <thead>
<tr> <tr>
<th><?= __("Package") ?></th> <th><?= __("Package") ?></th>
<th><?= __("Type") ?></th> <th><?= __("Type") ?></th>
@ -29,8 +28,8 @@
<th><?= __("Date") ?></th> <th><?= __("Date") ?></th>
<th><?= __("Status") ?></th> <th><?= __("Status") ?></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php while (list($indx, $row) = each($results)): ?> <?php while (list($indx, $row) = each($results)): ?>
<?php <?php
@ -104,10 +103,10 @@
</tr> </tr>
<?php endwhile; ?> <?php endwhile; ?>
</tbody> </tbody>
</table> </table>
<div class="pkglist-stats"> <div class="pkglist-stats">
<p> <p>
<?= _n('%d package request found.', '%d package requests found.', $total) ?> <?= _n('%d package request found.', '%d package requests found.', $total) ?>
<?= __('Page %d of %d.', $current, $pages) ?> <?= __('Page %d of %d.', $current, $pages) ?>
@ -125,5 +124,4 @@
<?php endforeach; ?> <?php endforeach; ?>
</p> </p>
<?php endif; ?> <?php endif; ?>
</div>
</div> </div>