/* code to BROWSE categories/apps */ include("path.php"); require(BASE."include/"."incl.php"); require(BASE."include/"."appdb.php"); require(BASE."include/"."category.php"); function admin_menu() { global $catId; $m = new htmlmenu("Admin"); $m->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(!$catId) $catId = 0; // ROOT // 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 "