.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; } "; return $html.adm_render_mnode($menu,$sub); } function adm_render_mnode(&$menu,$sub) { global $_CONF; $html = ""; $iter = $menu->getIterator(); while($iter->hasNext()) { $curr = $iter->getNext(); $html .= ""; if($sub == 0) { $html .= ""; } $html .= "
getImage()."' />".$curr->getName()."
"; if($curr->hasOpenCat() != 0) { $html .= "
".adm_render_mnode($curr,($sub+4))."
"; } } return $html; } function atom_render_category(&$cat) { $html = " "; $iter = $cat->getOpen(); while($iter->hasNext()) { $curr = $iter->getNext(); $html .= ach_render_achievement_open($curr); } return $html; } function ach_render_achievement_open(&$ach) { $open = explode(";",$_REQUEST['id']); $o = "none"; if($open[1] == $ach->getID()) { $o = "block"; } $html = "
[+] ".$ach->getName()."
".ach_render_task_open($ach)."
"; return $html; } function ach_render_task_open(&$ach) { $html = ""; $open = explode(";",$_REQUEST['id']); $task_list = $ach->getOpen(); while($task_list->hasNext()) { $task = $task_list->getNext(); $o = "none"; if($open[2] == $task->getID()) { $o = "block"; } $html .= "
[+] ".$task->getDisplayName()." (condition= ".$task->getCondition().": ".$task->getConditionValue().")
".ach_render_obj_list($task->getIterator(),$task)."
"; } return $html; } function ach_render_obj_list($obj,$task) { $html = ""; while($obj->hasNext()) { $elem = $obj->getNext(); if($task->isInherited($elem->getID()) || $elem->getDisplay() == "meta") { continue; } $o = "block"; $html .= "
[+] ".$elem->getDisplayName()." (condition= ".$elem->getCondition().": ".$elem->getValue().")
add
".ach_render_atom_list($elem->getIterator())."
"; } return $html; } function ach_render_atom_list($atom) { $html = ""; while($atom->hasNext()) { $elem = $atom->getNext(); $html .= "
getPathID()."#obj_".$elem->getObjective()."'>
getPathID()."#obj_".$elem->getObjective()."'>[X]
".$elem->getRulesetParsed()."
getMandatory() == 1) { $html .= " checked='checked'"; } $html .= " /> mandatory

"; } return $html; } ?>