$first_time_configuration = 'false';
if (plc_is_admin())
- $default_configuration = "ID:f|hostname:f|ST:f|AU:f|SN|DN|LCN|R|L";
+ $default_configuration = "ID:f|hostname:f|ST:f|AU:f";
else
- $default_configuration = "hostname:f|ST:f|AU:f|SN|LCN|DN|R|L";
+ $default_configuration = "hostname:f|ST:f|AU:f";
+//$extra_default = "LCN|DN|R|L|OS|MS|SN";
$column_configuration = "";
$slice_column_configuration = "";
$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);
$ConfigureColumns =new PlekitColumns($full_configuration, $fix_columns, $tag_columns, $extra_columns);
?>
-<script type='text/javascript'>
-document.defaultAction = false;
-document.onkeyup = detectEvent;
-
-function detectEvent(e) {
- var evt = e || window.event;
- debugfilter(evt.type);
- debugfilter('keyCode is ' + evt.keyCode);
- debugfilter('charCode is ' + evt.charCode);
- debugfilter(document.getElementById('scrolldiv').focused);
- return document.defaultAction;
-}
-
-</script>
-
$sites= $api->GetSites( array( $site_id ) );
$site=$sites[0];
$site_name= $site['name'];
+$max_slices = $site['max_slices'];
if ($profiling) plc_debug_prof('4: sites',count($sites));
//////////////////////////////////////// building blocks for the renew area
} else {
print <<< EOF
<div class='my-slice-renewal'>
-<p>You <span class='bold'>must</span> provide a short description,
+<p>You are strongly encouraged to provide a short description,
as well as a link to a project website, before renewing it.
<br/> Please make sure to provide reasonable details on <span class='bold'>
the kind of traffic</span>, and <span class='bold'>copyrights</span> if relevant.
-Do <span class='bold'>not</span> provide bogus information; if a complaint is lodged against
+Be sure not to provide bogus information; Otherwise, if a complaint is lodged against
your slice and your PlanetLab Operations Center is unable to determine what the normal behavior
-of your slice is, your slice may be deleted to resolve the complaint.</p>
+of your slice is, your slice may be deleted without your persmission to resolve the complaint.</p>
<p><span class='bold'>NOTE:</span>
Slices cannot be renewed beyond another $max_renewal_weeks week(s) ($max_renewal_date).
// are these the right privileges for deletion ?
if ($privileges) {
- $tabs["Events"]=array_merge(tablook_event(),
- array('url'=>l_event("Slice","slice",$slice_id),
- 'bubble'=>"Events for slice $name"));
$tabs ['Delete']= array('url'=>l_actions(),
'method'=>'post',
'values'=>array('action'=>'delete-slice','slice_id'=>$slice_id),
'bubble'=>"Delete slice $name",
'confirm'=>"Are you sure to delete slice $name");
- //$tabs["Comon"]=array_merge(tablook_comon(),
- //array('url'=>l_comon("slice_id",$slice_id),
- //'bubble'=>"Comon page about slice $name"));
+ $tabs["Events"]=array_merge(tablook_event(),
+ array('url'=>l_event("Slice","slice",$slice_id),
+ 'bubble'=>"Events for slice $name"));
+ $tabs["Comon"]=array_merge(tablook_comon(),
+ array('url'=>l_comon("slice_id",$slice_id),
+ 'bubble'=>"Comon page about slice $name"));
}
plekit_linetabs($tabs);
//Get user's column configuration
-$default_configuration = "hostname:f|ST:f|AU:f|RES:f|R|L|OS|MS";
+$first_time_configuration = false;
+$default_configuration = "hostname:f|ST:f|AU:f|RES:f";
+//$extra_default = "";
$column_configuration = "";
$slice_column_configuration = "";
$show_configuration = "";
$show_reservable_message = '1';
-$show_columns_message = true;
+$show_columns_message = '1';
//$PersonTags=$api->GetPersonTags (array('person_id'=>$plc->person['person_id']));
$sliceconf_exists = false;
if ($column_configuration == "")
{
+ $first_time_configuration = true;
$column_configuration = $slice_id.";default";
$sliceconf_exists = true;
}
if ($ss =="reservable")
$show_reservable_message = '0';
if ($ss =="columns")
- $show_columns_message = false;
+ $show_columns_message = '0';
}
//print("res:".$show_reservable_message." - cols:".$show_columns_message);
<br>
<div id='note_reservable_div' style="align:center; background-color:#CAE8EA; padding:4px; width:800px; $note_display">
<table align=center><tr><td valign=top>
-You have attached one or more <span class='bold'>reservable nodes</span> to your slice.
+You have attached one or more reservable nodes to your slice.
Reservable nodes show up with the '$mark' mark.
-Your slivers will be available <span class='bold'>only during timeslots
-where you have obtained leases</span>.
+Your slivers will be available only during timeslots
+where you have obtained leases.
You can manage your leases in the tab below.
<br>
Please note that as of August 2010 this feature is experimental.
//////////////////// node configuration panel
-if ($show_columns_message)
+if ($first_time_configuration)
$column_conf_visible = '1';
else
$column_conf_visible = '0';
print("<input type='hidden' id='defaultConf' value='".$default_configuration."'></input>");
//print ("showing column message = ".$show_columns_message);
-if ($show_columns_message)
-$note_display = "";
-else
+if ($show_columns_message == '0')
$note_display = "display:none;";
+else
+$note_display = "";
print <<<EOF
<div id='note_columns_div' style="align:center; background-color:#CAE8EA; padding:4px; width:800px; $note_display">
$all_sites=$api->GetSites(NULL, array('site_id','login_base'));
$site_hash=array();
-foreach ($all_sites as $tmp_site) $site_hash[$tmp_site['site_id']]=$tmp_site['login_base'];
+foreach ($all_sites as $site) $site_hash[$site['site_id']]=$site['login_base'];
$interface_columns=array('ip','node_id','interface_id');
$interface_filter=array('is_primary'=>TRUE);
if (to_load)
{
+ document.getElementById('loading'+column).innerHTML = "<img width=10 src=/plekit/icons/ajax-loader.gif>";
var url = "/plekit/php/updateColumn.php?slice_id="+slice_id+"&tagName="+t;
load_data(column, header, url);
}
var selectedperiod="";
var header=column;
- document.getElementById('loading'+column).innerHTML = "<img width=10 src=/plekit/icons/ajax-loader.gif>";
if (inTypeC(column)!=-1)
{
if (fetch)
addColumnAjax(column, header);
- else
- document.getElementById('loading'+column).innerHTML = "";
addColumnToConfiguration(header);
-
}
}
-
function deleteColumn(column) {
var selectedperiod="";
deleteColumnCells(header);
deleteColumnFromConfiguration(header);
-
- //document.getElementById('check'+column).checked = false;
}
-function scrollList() {
-debugfilter("here "+document.getElementById('scrolldiv').focused);
-if (event.keyCode == 40)
- debugfilter("down");
-else if (event.keyCode == 38)
- debugfilter("up");
-}
/*
//to be used for scrolling the column list with down/up arrows
+function scrollList() {
+debugfilter("here "+document.getElementById('scrolldiv').focused);
+if (event.keyCode == 40)
+ debugfilter("down");
+else if (event.keyCode == 38)
+ debugfilter("up");
+}
function resetColumns() {