From 07a203312b4641afa2a2f374c37b3ff85bf85a1a Mon Sep 17 00:00:00 2001 From: Catouse Date: Wed, 30 May 2018 11:14:58 +0800 Subject: [PATCH] * change pager UI in dynamic views. --- module/company/view/dynamic.html.php | 48 ++++++++++----------------- module/my/view/dynamic.html.php | 48 ++++++++++----------------- module/product/view/dynamic.html.php | 49 ++++++++++------------------ module/project/view/dynamic.html.php | 48 ++++++++++----------------- module/user/css/dynamic.css | 2 +- module/user/view/dynamic.html.php | 48 ++++++++++----------------- 6 files changed, 91 insertions(+), 152 deletions(-) diff --git a/module/company/view/dynamic.html.php b/module/company/view/dynamic.html.php index d44750ad3a..81fb857bc0 100644 --- a/module/company/view/dynamic.html.php +++ b/module/company/view/dynamic.html.php @@ -68,37 +68,25 @@ - - originalDate) + 24 * 3600); - $lastDate = substr($action->originalDate, 0, 10); - $hasPre = $this->action->hasPreOrNext($firstDate, 'pre'); - $hasNext = $this->action->hasPreOrNext($lastDate, 'next'); - ?> - - - - + +originalDate) + 24 * 3600); +$lastDate = substr($action->originalDate, 0, 10); +$hasPre = $this->action->hasPreOrNext($firstDate, 'pre'); +$hasNext = $this->action->hasPreOrNext($lastDate, 'next'); +$preLink = $hasPre ? inlink('dynamic', "browseType=$browseType¶m=$param&recTotal={$pager->recTotal}&date=" . strtotime($firstDate) . '&direction=pre') : 'javascript:;'; +$nextLink = $hasNext ? inlink('dynamic', "browseType=$browseType¶m=$param&recTotal={$pager->recTotal}&date=" . strtotime($lastDate) . '&direction=next') : 'javascript:;'; +?> + +
+ +
+ +