0, "Location" => 1, "StatusCur" => 17, "Active" => 12, "Type" => 19); // NOTE: Becasue this page has ONLINE/OFFLINE buttons the nomal // DRIVES_PER_PAGE define in common is to big. This needs to be 4 // So I am using my Own Define on this page. define( 'MYITEMS_PER_PAGE', 4 ); // # drives / page if ($_SERVER[REQUEST_METHOD] == "POST") { $sortCriteria = new SortCriteria($columnMap[$_POST['orderOn']], ($_POST['orderBy'] == "ASC")); } else { $sortCriteria = new SortCriteria(0, true); } $drives = get_all_drives($user, $sortCriteria); error_log( print_r( $drives, true ) ); $numRows = count($drives); $numPages = ceil($numRows / MYITEMS_PER_PAGE); // Note: You must init these values here or they DO NOT WORK! $lowPageList = 1; $highPageList = min($numRows, MYITEMS_PER_PAGE); ?> Drive Report List
isReady ); // if( !($drive->isReady) ) // continue; ?>