Main"; echo html_frame_start("", '98%', '', 2); if (empty($aClean['sRating'])) { echo "Rating: $sPathtrail"; echo html_frame_end(); echo html_frame_start("", '98%', '', 2); echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; html_tr_highlight_clickable("browse_by_rating.php?sRating=".PLATINUM_RATING, "platinum", "platinum", "platinum"); echo " "; echo " \n"; echo " \n"; echo " \n"; html_tr_highlight_clickable("browse_by_rating.php?sRating=".GOLD_RATING, "gold", "gold", "gold"); echo " "; echo " \n"; echo " \n"; echo " \n"; html_tr_highlight_clickable("browse_by_rating.php?sRating=".SILVER_RATING, "silver", "silver", "silver"); echo " "; echo " \n"; echo " \n"; echo " \n"; html_tr_highlight_clickable("browse_by_rating.php?sRating=".BRONZE_RATING, "bronze", "bronze", "bronze"); echo " "; echo " \n"; echo " \n"; echo " \n"; html_tr_highlight_clickable("browse_by_rating.php?sRating=".GARBAGE_RATING, "garbage", "garbage", "garbage"); echo " "; echo " \n"; echo " \n"; echo " \n"; echo "
RatingDescriptionNo. Apps
PlatinumApplications that install and run out of the box".Application::countWithRating(PLATINUM_RATING)."
GoldApplications that work flawlessly with some DLL overrides or other settings, crack etc.".Application::countWithRating(GOLD_RATING)."
SilverApplications that work excellently for 'normal use'".Application::countWithRating(SILVER_RATING)."
BronzeApplications that work but have some issues, even for 'normal use'".Application::countWithRating(BRONZE_RATING)."
GarbageApplications that don't work as intended, there should be at least one bug report if an app gets this rating".Application::countWithRating(GARBAGE_RATING)."
\n"; echo html_frame_end(); } else { /* display a range of 10 pages */ $iPageRange = 10; $iItemsPerPage = 50; $iCurrentPage = 1; if($aClean['iItemsPerPage']) $iItemsPerPage = $aClean['iItemsPerPage']; if($aClean['iPage']) $iCurrentPage = $aClean['iPage']; $iItemsPerPage = min($iItemsPerPage,500); switch($aClean['sRating']) { case PLATINUM_RATING: $sPathtrail.=" > Platinum"; $iTotalPages = ceil(Application::countWithRating(PLATINUM_RATING)/$iItemsPerPage); $sRating = PLATINUM_RATING; break; case GOLD_RATING: $sPathtrail.=" > Gold"; $iTotalPages = ceil(Application::countWithRating(GOLD_RATING)/$iItemsPerPage); $sRating = GOLD_RATING; break; case SILVER_RATING: $sPathtrail.=" > Silver"; $iTotalPages = ceil(Application::countWithRating(SILVER_RATING)/$iItemsPerPage); $sRating = SILVER_RATING; break; case BRONZE_RATING: $sPathtrail.=" > Bronze"; $iTotalPages = ceil(Application::countWithRating(BRONZE_RATING)/$iItemsPerPage); $sRating = BRONZE_RATING; break; case GARBAGE_RATING: $sPathtrail.=" > Garbage"; $iTotalPages = ceil(Application::countWithRating(GARBAGE_RATING)/$iItemsPerPage); $sRating=GARBAGE_RATING; break; } $iCurrentPage = min($iCurrentPage,$iTotalPages); $iOffset = (($iCurrentPage-1) * $iItemsPerPage); $apps=Application::getWithRating($sRating, $iOffset, $iItemsPerPage); echo "Rating: $sPathtrail

"; echo html_frame_end(); /* display page selection links */ echo "

"; echo "Page $iCurrentPage of $iTotalPages
"; display_page_range($iCurrentPage, $iPageRange, $iTotalPages, $_SERVER['PHP_SELF']."?sRating=".$aClean['sRating']."&iItemsPerPage=".$iItemsPerPage); echo "
"; echo "
"; /* display the option to choose how many applications per-page to display */ echo '
'; echo 'Number of Applications per page:'; echo " "; echo ""; echo ""; echo " "; echo "
"; echo "
"; echo html_frame_start("","98%","",0); echo "\n\n"; echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo "\n\n"; while(list($i, $iAppId) = each($apps)) { $oApp = new Application($iAppId); //set row color $bgcolor = ($i % 2) ? "color0" : "color1"; //format desc $desc = util_trim_description($oApp->sDescription); //display row echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo "\n\n"; } echo "
Application NameDescriptionNo. Versions
".$oApp->sName."$desc  ".sizeof($oApp->aVersionsIds)."
\n\n"; echo html_frame_end(); echo "
"; display_page_range($iCurrentPage, $iPageRange, $iTotalPages, $_SERVER['PHP_SELF']."?sRating=".$aClean['sRating']."&iItemsPerPage=".$iItemsPerPage); echo "
"; } apidb_footer(); ?>