Groups HW TypeOSModeStatusHW Ctrl PtComment EOS; return; } function insertGroupTableFooter() { echo ""; return; } /** * @param String nodeGroupName The name of the node group. */ function getToggleString($nodeGroupName) { global $TOPDIR; //$colTxt = "Click to collapse section"; $exTxt = "Click to expand section"; //$bulgif = "$TOPDIR/images/h3bg_new.gif"; //$minusgif = "$TOPDIR/images/minus-sign.gif"; $plusgif = "$TOPDIR/images/plus-sign.gif"; $html = << EOS; return $html; } /** * @param String nodeGroup The group. */ function insertGroupTableRow($nodeGroup) { $nodeGroupName = $nodeGroup->getName(); $img_string = XCATNodeGroupUtil::getImageString($nodeGroup->getStatus()); //echo ''; echo ''; echo GroupNodeTable::getToggleString($nodeGroupName); echo <<$nodeGroupName       $img_string     EOE; return; } /** * @param XCATNodeGroup nodeGroup The node group for which we want to generate the html. * returns the table that contains all the nodes information of that group */ function getXCATNodeGroupSection($nodeGroup) { $imagedir = 'images'; $right_arrow_gif = $imagedir . "/grey_arrow_r.gif"; $left_arrow_gif = $imagedir . "/grey_arrow_l.gif"; $html .= << EOS; $nodes = $nodeGroup->getNodes(); foreach($nodes as $nodeName => $node) { $html .= GroupNodeTable::getXCATNodeTableRow($node); } $html .= "\"Previous    \"Next  "; $html .= << EOS; return $html; } /** * @param XCATNode node The node for which we want to generate the html. */ function getXCATNodeTableRow($node) { $imagedir = 'images'; //echo $node->getName(); $html = " getName(). "\" />" .$node->getName(). "" . "
" . $node->getHwType(). "
". "
" . $node->getOs(). "
". "
" . $node->getMode(). "
"; $stat = $node->getStatus(); $img_string = XCATNodeGroupUtil::getImageString($stat); $html .= "
" . $img_string . "
". "
" . $node->getHwCtrlPt(). "
". "
" . $node->getComment(). "
"; EOS; return $html; } } ?>