add("Edit this Category", BASE."admin/addCategory.php?iCatId=".$aClean['iCatId']); $url = BASE."admin/deleteAny.php?sWhat=category&iCatId=".$aClean['iCatId']."&sConfirmed=yes"; $m->add("Delete this Category", "javascript:deleteURL(\"Are you sure?\", \"".$url."\")"); $m->done(); } // list sub categories $oCat = new Category($aClean['iCatId']?$aClean['iCatId']:"0"); $sCatFullPath = Category::make_cat_path($oCat->getCategoryPath()); $subs = $oCat->aSubcatsIds; //display admin box if($_SESSION['current']->hasPriv("admin") && $aClean['iCatId'] != 0) apidb_sidebar_add("admin_menu"); //output header apidb_header("Browse Applications"); if($subs) { echo html_frame_start("",'98%','',2); echo "

Category: ". $sCatFullPath ."
\n"; echo html_frame_end(); echo html_frame_start("","98%","",0); echo "\n\n"; echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo "\n\n"; while(list($i,$iSubcatId) = each($subs)) { $oSubCat= new Category($iSubcatId); //set row color $bgcolor = ($i % 2) ? "color0" : "color1"; //get number of apps in this sub-category $appcount = $oSubCat->getApplicationCount(); //format desc $desc = substr(stripslashes($oSubCat->sDescription),0,70); //display row echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo "\n\n"; } echo "
Sub CategoryDescriptionNo. Apps
".$oSubCat->sName."$desc  $appcount  
\n\n"; echo html_frame_end("$c categories"); } // list applications in this category $apps = $oCat->aApplicationsIds; if($apps) { echo html_frame_start("",'98%','',2); echo "

Category: ". $sCatFullPath ."
\n"; echo html_frame_end(); 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->objectMakeLink()."$desc  ".sizeof($oApp->aVersionsIds)."
\n\n"; echo html_frame_end("$c applications in this category"); } // Disabled for now //if ($aClean['iCatId'] != 0) //{ // log_category_visit($cat->id); //} echo p(); apidb_footer(); ?>