.ach_menu { display:block; padding:2px; border:1px solid #000000; margin-bottom:2px; color:#FFFFFF; } .ach_menu:hover { color:orange; } .ach_mspan a { text-decoration:none; } "; $html .= "
"; if($_REQUEST['ac_id'] > 0 && $_REQUEST['confirm'] == "delete") { $curr = $menu->getNode($_REQUEST['ac_id']); $html .= "
Are you sure you want to delete this category?"; if($curr->hasAchievements()) { $html .= "You may NOT DELETE this category since there are still achievements tied to it or one of its sub-categories!"; } else { $html .= "".$curr->getName()."

"; if($curr->getParentID() == null) { $html .= "WARNING: Deleting this category will also delete ALL sub-categories!
"; } $html .= "delete"; } $html .= "

"; } $html .= "
"; return $html.ach_render_mnode($menu,$sub); } function ach_render_mnode(&$menu,$sub) { global $_CONF; # echo "1"; $iter = $menu->getIterator(); while($iter->hasNext()) { $curr = $iter->getNext(); #$sz = $menu->getSize(); #for($i=0;$i<$sz;$i++) { # $curr = $menu->getChild($i); $html .= ""; if($sub == 0) { $html .= ""; } $html .= "
getImage()."' />"; if($curr->inDev()) { $html .= ""; } $html .= $curr->getName(); if($curr->inDev()) { $html .= ""; } $html .= "  "; if($sub == 0) { $html .= " "; } $html .= "   
"; if($sub == 0) { $html .= ""; } $html .= ""; if(!$curr->isEmpty()) { $html .= "
".ach_render_mnode($curr,($sub+4))."
"; } } return $html; } ?>