add("Edit this Category", BASE."admin/addCategory.php?catId']}"); $url = BASE."admin/deleteAny.php?what=category&catId={$aClean['catId']}&confirmed=yes"; $m->add("Delete this Category", "javascript:deleteURL(\"Are you sure?\", \"".$url."\")"); $m->done(); } if( empty( $aClean['catId'] ) ) { $aClean['catId'] = 0; // ROOT } if( !is_numeric($aClean['catId']) ) { errorpage("Something went wrong with the category ID"); exit; } // list sub categories $cat = new Category($aClean['catId']); $catFullPath = make_cat_path($cat->getCategoryPath()); $subs = $cat->aSubcatsIds; //display admin box if($_SESSION['current']->hasPriv("admin") && $aClean['catId'] != 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 "