add("Edit this Category", $apidb_root."admin/editCategory.php?catId=$catId"); $url = $apidb_root."admin/deleteAny.php?what=category&catId=$catId&confirmed=yes"; $m->add("Delete this Category", "javascript:deleteURL(\"Are you sure?\", \"".$url."\")"); $m->done(); } if(isset($_REQUEST['catId'])) $catId=$_REQUEST['catId']; else $catId=0; // ROOT if( !is_numeric($catId) ) { errorpage("Something went wrong with the category ID"); exit; } // list sub categories $cat = new Category($catId); $catFullPath = make_cat_path($cat->getCategoryPath()); $subs = $cat->getCategoryList(); //display admin box if(havepriv("admin") && $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 "
| ".stripslashes($name)." | \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 "
| ".stripslashes($name)." | \n"; echo "$desc | \n"; echo "$ob->versions | \n"; echo "