add("Edit this Category", BASE."admin/addCategory.php?iCatId=$iCatId"); $url = BASE."admin/deleteAny.php?sWhat=category&iCatId=$iCatId&confirmed=yes"; $m->add("Delete this Category", "javascript:deleteURL(\"Are you sure?\", \"".$url."\")"); $m->done(); } if( empty( $aClean['iCatId'] ) ) { $aClean['iCatId'] = 0; // ROOT } if( !is_numeric($aClean['iCatId']) ) { util_show_error_page("Something went wrong with the category ID"); exit; } // list sub categories $cat = new Category($aClean['iCatId']); $catFullPath = make_cat_path($cat->getCategoryPath()); $subs = $cat->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: ". $catFullPath ."
\n";
echo html_frame_end();
echo html_frame_start("","98%","",0);
echo "
| Sub Category | \n"; echo "Description | \n"; echo "No. Apps | \n"; echo "
| ".$oSubCat->sName." | \n"; echo "$desc | \n"; echo "$appcount | \n"; echo "
Category: ". $catFullPath ."
\n";
echo html_frame_end();
echo html_frame_start("","98%","",0);
echo "
| Application Name | \n"; echo "Description | \n"; echo "No. Versions | \n"; echo "
| ".$oApp->sName." | \n"; echo "$desc | \n"; echo "".sizeof($oApp->aVersionsIds)." | \n"; echo "