From 1f56e6df3ce5388702c258fb5801f95f3cd903ee Mon Sep 17 00:00:00 2001 From: biglyderv Date: Wed, 11 Dec 2024 01:54:38 -0500 Subject: [PATCH] fix pager and dates --- docs/css/main.css | 1 - libs/comment.php | 22 ++++++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/docs/css/main.css b/docs/css/main.css index cd0126b..19267a0 100755 --- a/docs/css/main.css +++ b/docs/css/main.css @@ -70,7 +70,6 @@ pre { .avatar { display: flex; - width: 200px; align-items: center; margin-bottom: 5px; } diff --git a/libs/comment.php b/libs/comment.php index 60a7d3c..9ba3140 100644 --- a/libs/comment.php +++ b/libs/comment.php @@ -11,15 +11,29 @@ array('key' => '','type' => 'hidden','name' => 'type', 'default' => $typer), array('key' => '','type' => 'hidden','name' => 'id', 'default' => $idr), array('key' => 'Attachments', 'type' => 'file', 'name' => 'file', 'default' => '') - ),'/index.php'); + ),'/index.php'); } + + $qs = parse_url($_SERVER['REQUEST_URI']); + + if (is_null($qs)) $qs = array('query' => '?'); + $qsq = $qs['query']; + + $qss = array(); + + parse_str($qsq,$qss); + + $qss['page'] = $page + 1; + $qs_next = http_build_query($qss); + $qss['page'] = $page - 1; + $qs_prev = http_build_query($qss); ?>
0) { ?> - Previous + Previous - Next + Next
- +