usort ($tmp_headers, create_function('$col1,$col2','return strcmp($col1["label"],$col2["label"]);'));
-foreach ($tmp_headers as $t)
+foreach ($tmp_headers as $t)
$this->all_headers[$t['header']] = $t;
//$this->all_headers = array_merge($this->all_headers, $tmp_headers);
return "y";
else if ($this->all_headers[$label]['visible'])
return "";
-
+
return "";
}
function node_tags() {
- $fetched_tags = array('node_id','hostname');
+ $fetched_tags = array('node_id','hostname');
foreach ($this->all_headers as $h)
{
function print_headers() {
- $headers = "";
+ $headers = "";
foreach ($this->all_headers as $l => $h)
{
function get_visible() {
- $visibleHeaders = array();
+ $visibleHeaders = array();
foreach ($this->all_headers as $h)
{
}
-
+
/*
if ($data_type == "string")
return $value;
- if ($data_type == "date")
+ if ($data_type == "date")
return date("Y-m-d", $value);
- if ($data_type == "uptime")
+ if ($data_type == "uptime")
return (int)((int) $value / 86400);
if (is_numeric($value))
return ((int) ($value * 10))/10;
-
+
return $value;
}
$requested_data = explode(",", $data);
$r = array ('hostname');
-
+
foreach ($requested_data as $rd)
if ($rd) $r[] = $rd;
//comon data
if ($this->comon_live_data != "") {
-
+
//print ("live data to be fetched =".$this->comon_live_data);
$this->ComonData= $this->comon_query_nodes($this->comon_live_data);
//print_r($this->ComonData);
foreach ($this->all_headers as $h) {
-if (!$h['fixed']) {
+if (!$h['fixed']) {
if ($h['visible'] != "") {
//$node_string.= "\"".$value."\",";
}
}
-else
+else
if ($node[$h['tagname']])
{
$value = $this->convert_data($node[$h['tagname']], $h['type']);
<input type='hidden' id='source".$h['label']."' value='".$h['source']."'></input>
<div id='".$h['label']."' name='columnlist' class='".$optionclass."' onclick='highlightOption(this.id)'>
<table class='columnlist' id='table".$h['label']."'><tr>
-<td class='header'><span class='header'>".$h['label']."</span></td>
+<td class='header'><span class='header'>".$h['label']."</span></td>
<td align=left> <span class='short' id ='htitle".$h['label']."'>".$h['title']."</span> </td>
<td class='smallright'> <span class='short' id ='loading".$h['label']."'></span> </td>
<td class='smallright'><input id='check".$h['label']."' name='".$h['tagname']."' type='checkbox' ".$selected." ".$disabled." autocomplete='off' value='".$h['label']."' onclick='changeCheckStatus(this.id)'></input></td>
function column_html ($colHeader, $colName, $colId, $fulldesc, $visible) {
- if ($visible)
+ if ($visible)
$display = 'display:table-cell';
- else
+ else
$display = 'color:red;display:none';
return "