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:;'; +?> + +
+ +
+ +