summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-19 14:36:40 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-19 14:36:40 +0100
commit8faef82f3ad9eafa081e74a84cb68d80d4a44c2c (patch)
treeb8fd2230827677752d4e2eecdfa1b7bc7b6325ff /templates
parent4bec6ebb34f8a811483f732fba93aa66839495b3 (diff)
downloadstock-8faef82f3ad9eafa081e74a84cb68d80d4a44c2c.tar.gz
stock-8faef82f3ad9eafa081e74a84cb68d80d4a44c2c.tar.bz2
stock-8faef82f3ad9eafa081e74a84cb68d80d4a44c2c.zip
Add pagination to list_stock.php, default 20 records per page
General list only (BOM view is assembly-bounded). Full result set is fetched and grouped in PHP first so shortages filter and CSV export see all rows; array_slice applies the page window after CSV exits. Extra URL params (user_id, find, shortages) are threaded into listInfo for the pagination links. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/list_stock.tpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/list_stock.tpl b/templates/list_stock.tpl
index 5a992f3..71b7c88 100644
--- a/templates/list_stock.tpl
+++ b/templates/list_stock.tpl
@@ -106,6 +106,7 @@
{else}
<p class="muted">{tr}No stock records found.{/tr}</p>
{/if}
+ {if $listInfo}{include file="bitpackage:kernel/pagination.tpl"}{/if}
</section>
</div>