getPage($iOffset, PAGE_SIZE); DEBUG($arPage, "The page", true, PAGE_INFO); $iLast = ($iOffset + PAGE_SIZE > $objSearch->length() ? $objSearch->length() : $iOffset + PAGE_SIZE); DEBUG($iLast, "iLast", true, PAGE_INFO); $iFirst = ($iLast == 0 ? 0 : $iOffset + 1); $sPaging = ($iFirst == 0 && $iLast == 0 ? "" : "" . $iFirst . "-" . $iLast. " of " . $objSearch->length() . ""); DEBUG($sPaging, "sPaging", true, PAGE_INFO); DEBUG(sizeof($arPage), "sizeof arPage", true, PAGE_INFO); DEBUG($iOffset, "iOffset", true, PAGE_INFO); DEBUG(PAGE_SIZE, "page size", true, PAGE_INFO); $sPaging = $objPage->vResultsPaging("feedbackSummary", $objSearch->length(), $sPaging, $iOffset, PAGE_SIZE, "", "w"); // List the page #'s along with the start and end date of feedback on each page $arPages = array(); if($objSearch->length()) { $iNumPages = ceil($objSearch->length() / PAGE_SIZE); for($iCnt = 1; $iCnt <= $iNumPages; $iCnt++) { $iStartIndex = ($iCnt - 1) * PAGE_SIZE; $arThisPage = $objSearch->getPage($iStartIndex, PAGE_SIZE); $arPages[] = array('name' => DisplayDateTime(SHORT_DATE,$arThisPage[0]['dtbegin']) . ' - ' . DisplayDateTime(SHORT_DATE,$arThisPage[sizeof($arThisPage) - 1]['dtbegin']), 'value' => $iStartIndex); } } // this is the standard rating number to name array $arRatings[1] = "poor"; $arRatings[2] = "fair"; $arRatings[3] = "good"; $arRatings[4] = "very good"; $arRatings[5] = "excellent"; ?>
"; } else { print ""; foreach($arPage as $arFeedbackRow) { $sBgcolor = ($sBgcolor == '#FFFFFF')?'#E7E7E7':'#FFFFFF'; ?>
There is no feedback in the database for this corporation.
" . $sPaging . "
Project: ,
Name:
Rating:
Feedback:
Feedback: