code related with monitor interface is put here. */ function displayMapper_mon($mapper) { //display the Mapper for monitoring interface; //the argument $mapper is an array //$mapper = { // "home" => "main.php", // "Monitor" => "monitor/monlist.php", //}; echo "
",implode(' ', $errors), "
"; exit; } #then, parse the xml data $ooe = 0; $line = 0; foreach($xml->children() as $response) foreach($response->children() as $data) { list($name, $stat, $nodemonstatus) = preg_split("/\s+/", $data); $ooe = $ooe%2; echo "Tips:
'; foreach ($tips as $tip) { echo "$tip
"; echo "\n"; } echo 'This interface is still under development -use accordingly.
Condition | Response | Node | State | Action |
$cond | "; echo "$resp | "; echo "$node | "; echo "$state | "; echo ""; if($state == "Active") { insertButtons(array('label'=>'DeActivate', 'id'=>'deactivate', 'onclick'=>"control_RMCAssoc(\"$cond\", \"$node\", \"$resp\", \"stop\")")); }else if($state == "Not active"){ insertButtons(array('label'=>'Activate', 'id'=>'activate', 'onclick'=>"control_RMCAssoc(\"$cond\", \"$node\", \"$resp\", \"start\")")); } echo " | "; echo "
Conditions | |
"; echo " | $elem | "; echo "
Response | |
"; echo " | $elem | "; echo "
Can't find header line in $tab
"); } echo "