Call Us: 9850743122
Connect With Us: 

Classic Hospital



World Class care. Affordable Fare.

Super Specialty Departments
Contact Us
Name:
Number:
E-Mail:
Queries:
Enter The Given Code
Only humans will leave this blank

News & Events

setRs($obj); $this->setPageSize($displayRows); $this->assignPageNumber($pageNum); $this->setRowNumber(0); $this->setOffSet(($this->getPageNumber() - 1) * ($this->getPageSize())); } //implement getters and setters public function setOffSet($offSet) { $this->offSet = $offSet; } public function getOffSet() { return $this->offSet; } public function getRs() { return $this->rs; } public function setRs($obj) { $this->rs = $obj; } public function getPageSize() { return $this->pageSize; } public function setPageSize($pages) { $this->pageSize = $pages; } //accessor and mutator for page numbers public function getPageNumber() { return $this->pageNumber; } public function setPageNumber($number) { $this->pageNumber = $number; } //fetches the row number public function getRowNumber() { return $this->rowNumber; } public function setRowNumber($number) { $this->rowNumber = $number; } public function fetchNumberPages() { if (!$this->getRs()) { return false; } $pages = ceil(count($this->getRs()) / (float)$this->getPageSize()); return $pages; } //sets the current page being viewed to the value of the parameter public function assignPageNumber($page) { if(($page <= 0) || ($page > $this->fetchNumberPages()) || ($page == "")) { $this->setPageNumber(1); } else { $this->setPageNumber($page); } //upon assigning the current page, move the cursor in the result set to (page number minus one) multiply by the page size //example (2 - 1) * 10 } public function fetchPagedRow() { if((!$this->getRs()) || ($this->getRowNumber() >= $this->getPageSize())) { return false; } $this->setRowNumber($this->getRowNumber() + 1); $index = $this->getOffSet(); $this->setOffSet($this->getOffSet() + 1); return $this->rs[$index]; } public function isFirstPage() { return ($this->getPageNumber() <= 1); } public function isLastPage() { return ($this->getPageNumber() >= $this->fetchNumberPages()); } /** * * @return PageLayout */ public function getLayout() { return $this->layout; } /** * * @param PageLayout */ public function setLayout(PageLayout $layout) { $this->layout = $layout; } //returns a string with the base navigation for the page //if queryVars are to be added then the first parameter should be preceeded by a ampersand public function fetchPagedNavigation($queryVars = "") { return $this->getLayout()->fetchPagedLinks($this, $queryVars); }//end writeNavigation }//end Paginated ?>
Notice: Constant DATABASE_NAME already defined in /home/admin/web/classichospitalgoa.co.in/public_html/inc/config.inc.php on line 6

Notice: Constant DATABASE_HOST already defined in /home/admin/web/classichospitalgoa.co.in/public_html/inc/config.inc.php on line 7

Notice: Constant DATABASE_USERNAME already defined in /home/admin/web/classichospitalgoa.co.in/public_html/inc/config.inc.php on line 8

Notice: Constant DATABASE_PASSWORD already defined in /home/admin/web/classichospitalgoa.co.in/public_html/inc/config.inc.php on line 9

Notice: Constant EMAIL_HOST already defined in /home/admin/web/classichospitalgoa.co.in/public_html/inc/config.inc.php on line 23

Notice: Constant EMAIL_PASSWORD already defined in /home/admin/web/classichospitalgoa.co.in/public_html/inc/config.inc.php on line 24

Notice: Constant ADMIN already defined in /home/admin/web/classichospitalgoa.co.in/public_html/inc/config.inc.php on line 25

Warning: require_once(classes/PageLayout.class.php): failed to open stream: No such file or directory in /home/admin/web/classichospitalgoa.co.in/public_html/inc/index.inc.php on line 26

Fatal error: require_once(): Failed opening required 'classes/PageLayout.class.php' (include_path='.:/usr/share/php') in /home/admin/web/classichospitalgoa.co.in/public_html/inc/index.inc.php on line 26