summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-06-28 20:59:10 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-07-04 12:32:26 +0200
commit5cd77a826f5a52168335e1db0926215da6e23ad0 (patch)
tree424b9b7f3cb927dd1af8f204e544bf016fa99a38 /web/template
parent062fa097c9adb1254fa215fa1735cac9195f71bf (diff)
downloadaurweb-checked-count.tar.xz
Show number of selected packages on search pagechecked-count
Fixes FS#45379. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/pkg_search_results.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php
index cce533c..4d99dd6 100644
--- a/web/template/pkg_search_results.php
+++ b/web/template/pkg_search_results.php
@@ -9,6 +9,7 @@ if (!$result): ?>
<p>
<?= _n('%d package found.', '%d packages found.', $total) ?>
<?= __('Page %d of %d.', $current, $pages) ?>
+ <span id="pkglist-checked-count"></span>
</p>
<?php if (count($templ_pages) > 1): ?>
<p class="pkglist-nav">
@@ -49,7 +50,7 @@ if (!$result): ?>
<?php while (list($indx, $row) = each($searchresults)): ?>
<tr class="<?= ($indx % 2 == 0) ? 'odd' : 'even' ?>">
<?php if ($SID): ?>
- <td><input type="checkbox" name="IDs[<?= $row["PackageBaseID"] ?>]" value="1" /></td>
+ <td><input class="package-checkbox" type="checkbox" name="IDs[<?= $row["PackageBaseID"] ?>]" value="1" /></td>
<?php endif; ?>
<td><a href="<?= htmlspecialchars(get_pkg_uri($row["Name"]), ENT_QUOTES); ?>"><?= htmlspecialchars($row["Name"]) ?></a></td>
<td<?php if ($row["OutOfDateTS"]): ?> class="flagged"<?php endif; ?>><?= htmlspecialchars($row["Version"]) ?></td>
@@ -89,6 +90,8 @@ if (!$result): ?>
<p>
<?= _n('%d package found.', '%d packages found.', $total) ?>
<?= __('Page %d of %d.', $current, $pages) ?>
+
+ <span id="pkglist-checked-count"></span>
</p>
<?php if (count($templ_pages) > 1): ?>
<p class="pkglist-nav">