if($ctag->GetName()=="list") { $limitstart = ($this->PageNo-1) * $this->PageSize; $row = $this->PageSize; |
if($ctag->GetName()=="list") { $limitstart = ($this->PageNo-1) * $this->PageSize; if($this->PageNo>2) { $limitstart = ($this->PageNo-1) * ($this->PageSize+3)-3; } $row = $this->PageSize; if($this->PageNo>1) { $row = $this->PageSize+3; } |
$totalpage = ceil($this->TotalResult/$this->PageSize);//总共有两处分别为静态和动态 |
$totalpage = ceil(1+($this->TotalResult-$this->PageSize)/($this->PageSize+3)); |