2008-10-29 13:57:19 +00:00
|
|
|
<?php
|
|
|
|
// Show some key attributes of the selected nodes
|
|
|
|
$TOPDIR = '..';
|
|
|
|
require_once "$TOPDIR/lib/functions.php";
|
|
|
|
|
|
|
|
//echo "<LINK rel=stylesheet href='$TOPDIR/manage/dsh.css' type='text/css'>\n";
|
|
|
|
//echo "<script type='text/javascript' src='$TOPDIR/manage/dsh.js'></script>\n";
|
|
|
|
|
2008-11-19 21:26:43 +00:00
|
|
|
// Get the noderange
|
|
|
|
$noderange = @$_REQUEST['noderange'];
|
|
|
|
//echo "<p>noderange=$noderange.</p>\n";
|
|
|
|
if (empty($noderange)) { echo "<p>Select one or more groups or nodes for rvitals.</p>\n"; exit; }
|
2008-10-29 13:57:19 +00:00
|
|
|
|
2008-11-19 21:26:43 +00:00
|
|
|
$xml = docmd('rvitals',$noderange,array('all'));
|
|
|
|
//echo "<p>"; print_r($xml); echo "</p>\n";
|
|
|
|
if (getXmlErrors($xml,$errors)) { echo "<p class=Error>rvitals failed: ", implode(' ',$errors), "</p>\n"; exit; }
|
|
|
|
//echo "<p>"; print_r($xml); echo "</p>\n";
|
2008-10-29 13:57:19 +00:00
|
|
|
|
2008-11-19 21:26:43 +00:00
|
|
|
echo "<p>\n";
|
|
|
|
foreach ($xml->children() as $response) foreach ($response->children() as $o) {
|
|
|
|
$nodename = (string)$o->name;
|
2009-06-04 07:30:24 +00:00
|
|
|
if(empty($nodename)) {
|
|
|
|
continue;
|
|
|
|
}
|
2008-11-19 21:26:43 +00:00
|
|
|
$data = & $o->data;
|
|
|
|
$contents = (string)$data->contents;
|
|
|
|
$desc = (string)$data->desc;
|
|
|
|
//echo "<p>"; print_r($data); echo "</p>\n";
|
|
|
|
echo "$nodename: $desc: $contents<br>\n";
|
2009-06-09 05:09:08 +00:00
|
|
|
}
|
2008-11-19 21:26:43 +00:00
|
|
|
echo "</p>\n";
|
2008-10-29 13:57:19 +00:00
|
|
|
|
2008-11-19 21:26:43 +00:00
|
|
|
|
|
|
|
//echo "<FORM NAME=rvitalsForm>\n";
|
|
|
|
|
|
|
|
|
|
|
|
//echo "</FORM>\n";
|
|
|
|
//echo "<script type='text/javascript'>vitalsReady();</script>\n";
|
|
|
|
|
|
|
|
//insertNotDoneYet();
|
2009-06-04 07:30:24 +00:00
|
|
|
?>
|