'; echo '

Tips:(Click me to display tips)

'; echo '
'; foreach ($tips as $tip) { echo "

$tip

"; echo "\n"; } echo "
"; echo ''; echo ''; return 0; } function insertDiv($id) { echo "
"; } function displayMonTable() { //create one table to display the monitoring plugins' list echo '
'; echo << Plug-in Name Status Node Status Monitoring Configure Action TOS1; echo << hoverOnMonlist(); TOS9; echo ''; displayMonitorLists(); echo "
"; return 0; } function displayStatus() { //tell the user that the current interface is not done yet... echo "

This interface is still under development -use accordingly.

"; } function displayOSITree() { //display the node range tree, but only with the nodes with OSI type //this follows the function showNrTreeInput(); echo "
"; echo << $(function() { nrtree = new tree_component(); // -Tree begin nrtree.init($("#nrtree-input"),{ rules: { multiple: "Ctrl" }, ui: { animation: 250 }, callback : { onchange : printtree }, data : { type : "json", async : "true", url: "noderangesource.php" } }); //Tree finish }); TOS3; echo "
"; } function displayAssociation() { //TODO: the return message of "webrun lscondresp" is changed //and, also, DataTables is used to draw the tabls echo '
'; echo << $("#association").dataTable({ "bLengthChange": false, "bFilter": true, "bSort": true }); TOS5; $xml = docmd("webrun", "", array("lscondresp")); if(getXmlErrors($xml,$errors)) { echo "

",implode(' ', $errors), "

"; exit; } //get all the condition&response associations for RMC foreach ($xml->children() as $response) foreach($response->children() as $data) { //get the data from xcatd $record = split('"',$data); echo ""; echo <<$record[1] TOS6; //TODO: insert the button here echo ""; echo ""; } echo "
Condition Response Node State Action
$record[3] $record[5] $record[7]"; if($record[7] == "Active") { echo ""; }else { echo ""; } echo "
"; return 0; } function displayCond() { //display all the avaiable conditions to a element echo <<
COND; $xml = docmd("webrun", '', array("lscondition")); foreach($xml->children() as $response) foreach($response->children() as $data) { /* * the data format like this * "HFI_not_configured" "ca4lpar02" "Not monitored" * "Drawer_not_configured" "ca4lpar02" "Not monitored" * "AnyNodeFileSystemSpaceUsed_H" "ca4lpar02" "Not monitored" */ $tmp = split('"', $data); //$tmp[1] = condition name //$tmp[3] = nodename //$tmp[5] = status echo << TOS99; } echo "
Conditions
$tmp[1]
"; return 0; } function displayResp() { echo <<