X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fslices%2Fslice.php;h=3975fbb736b54c18e192aa9ce02d210b756f8996;hb=bbdd2d949c4f1dc8db02dcc184d651f534a7b2a5;hp=d65e147e02578628f173601c23e9db3955117d62;hpb=a4caddaed5e2d702e9f1b7295a8f009a2d0c5549;p=plewww.git diff --git a/planetlab/slices/slice.php b/planetlab/slices/slice.php index d65e147..3975fbb 100644 --- a/planetlab/slices/slice.php +++ b/planetlab/slices/slice.php @@ -1,5 +1,7 @@ columns(); $tag_columns = $visibletags->headers(); -// extra columns that are not tags (for the moment not sorted correctly) - $extra_columns = array(); $extra_columns[]=array('tagname'=>'sitename', 'header'=>'SN', 'type'=>'string', 'title'=>'Site name', 'fetched'=>true); $extra_columns[]=array('tagname'=>'domain', 'header'=>'DN', 'type'=>'string', 'title'=>'Toplevel domain name', 'fetched'=>true); $extra_columns[]=array('tagname'=>'ipaddress', 'header'=>'IP', 'type'=>'string', 'title'=>'IP Address', 'fetched'=>true); $extra_columns[]=array('tagname'=>'fcdistro', 'header'=>'OS', 'type'=>'string', 'title'=>'Operating system', 'fetched'=>false); +$extra_columns[]=array('tagname'=>'uptime', 'header'=>'UT', 'source'=>'comon', 'type'=>'sortAlphaNumericTop', 'title'=>'Continuous uptime until now', 'fetched'=>false); +$extra_columns[]=array('tagname'=>'date_created', 'header'=>'DA', 'source'=>'myplc', 'type'=>'date', 'title'=>'Date added', 'fetched'=>false); + //Get user's column configuration @@ -513,6 +516,8 @@ $node_columns=array_merge($node_fixed_columns,$visiblecolumns); //print_r($node_columns); $all_nodes=$api->GetNodes(NULL,$node_columns); +$ConfigureColumns->fetch_live_data($all_nodes); + //print("
person show configuration = ".$show_configuration); $show_conf = explode(";",$show_configuration); @@ -707,7 +712,7 @@ $note_display = ""; print <<
-This tab allows you to customize the columns in the node tables, below. Information on the nodes comes from a variety of monitoring sources. If you, as either a user or a provider of monitoring data, would like to see additional columns made available, please send us your request in mail to devel@planet-lab.org +This tab allows you to customize the columns in the node tables, below. Information on the nodes comes from a variety of monitoring sources. If you, as either a user or a provider of monitoring data, would like to see additional columns made available, please send us your request in mail to support@myslice.info. You can find more information about the MySlice project at http://trac.myslice.info. hide message permanently
@@ -795,8 +800,10 @@ $table->cell($node['node_id'], array('display'=>'none')); //extra columns $node['domain'] = topdomain($hostname); $node['sitename'] = l_site_t($node['site_id'],$site_hash[$node['site_id']]); -$node['ipaddress'] = l_interface_t($interface_id,$ip); - +if ($interface_id) + $node['ipaddress'] = l_interface_t($interface_id,$ip); + else + $node['ipaddress'] = "n/a"; //foreach ($visiblecolumns as $tagname) $table->cell($node[$tagname]); $ConfigureColumns->cells($table, $node);