\n"; //echo "\n"; echo "\n"; //get the noderange $noderange = @$_REQUEST['noderange']; if (empty($noderange)) { echo "

Select one or more groups or nodes for rpower.

\n"; exit; } //echo "

noderange=$noderange.

\n"; $xml = docmd('rpower', $noderange, array('stat')); if (getXmlErrors($xml,$errors)) { echo "

rpower failed:", implode(' ',$errors), "

\n"; exit; } //echo "

debug
";print_r($xml);echo "
debug end

\n"; echo '
'; echo "

"; echo << Node Name Rpower Status TAB1; foreach ($xml->children() as $response) foreach ($response->children() as $o) { $nodename = (string)$o->name; if(empty($nodename)) { continue; } $data = & $o->data; $contents = (string)$data->contents; $desc = (string)$data->desc; echo "\n"; echo "$nodename"; echo "$contents"; echo "\n"; //echo "$nodename: $contents
\n"; } echo << TAB2; echo "

\n"; echo "
\n"; //echo "
\n"; //insertButtons(array('label' => 'Show Attributes', 'id' => 'attrButton', 'onclick' => '')); //echo "
\n"; // //insertNotDoneYet(); ?>