PATH:
home
/
letacommog
/
letaweb
/
admin
/
widgets
<?php class Pagination extends CPagination { public $pageVar = 'start'; protected $_currentPage; public $start; public function getCurrentPage($recalculate = true) { //echo $_GET[$this->pageVar]; if ($this->_currentPage === null || $recalculate) { if (isset($_GET[$this->pageVar])) { $this->_currentPage = (int) $_GET[$this->pageVar] - 1; //echo $this->pageVar; if ($this->validateCurrentPage) { $pageCount = $this->getPageCount(); if ($this->_currentPage >= $pageCount) { $this->_currentPage = $pageCount - 1; } } if ($this->_currentPage < 0) { $this->_currentPage = 0; } } else if(isset($this->start)) { $itemCount = $this->getItemCount(); $pageCount = (int)($this->start / $this->getPageSize()); return $pageCount;; } else { $this->_currentPage = 0; } } return $this->_currentPage; } }
[+]
..
[+]
views
[-] Pagination.php
[edit]
[-] CWidgetCustomModule.php
[edit]
[-] CWidgetModuleRenderer.php
[edit]
[-] CWidgetZone.php
[edit]
[-] CTab.php
[edit]
[-] CWidgetRow.php
[edit]
[-] CWidgetEcommerce.php
[edit]
[+]
modules
[-] CWidgetCMS.php
[edit]
[-] CPanel.php
[edit]
[-] ActiveDataProvider.php
[edit]
[-] CPager.php
[edit]
[-] CWidgetModule.php
[edit]
[-] CWidgetColumn.php
[edit]
[-] CTabContent.php
[edit]
[-] CWidgetStructure.php
[edit]
[-] CPriceTable.php
[edit]