X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fslices%2Fslice.php;h=dd713753c4c9375d84cdfb8d9498beb86b66b50a;hb=6c94f043ee4e0dcc83fc8ddf70ec4fa1462a529f;hp=51248f90547c9c283f1275fc11a385038099cf20;hpb=f2acbd7968767b8cc929d70f3d4257584c95b2e8;p=plewww.git diff --git a/planetlab/slices/slice.php b/planetlab/slices/slice.php index 51248f9..dd71375 100644 --- a/planetlab/slices/slice.php +++ b/planetlab/slices/slice.php @@ -1,7 +1,5 @@ GetLeaseGranularity(); + + // these elements are for passing data to the javascript layer + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + + // cut off if ($profiling) plc_debug_prof('6 granul',$grain); // where to start from, expressed as an offset in hours from now - $rough_start=time()+$resa_offset*3600; + $rough_start=time()+$leases_offset*3600; // show the next 36 grains - $duration=$resa_slots*$grain; + $duration=$leases_slots*$grain; $steps=$duration/$grain; $start=intval($rough_start/$grain)*$grain; $end=$rough_start+$duration; @@ -642,9 +651,9 @@ EOF; $host_hash[$hostname] []= $lease; } // leases_data is the name used by leases.js to locate this table - echo ""; + echo "
"; // pass (slice_id,slicename,x_grain) in the upper-left cell, as thead>tr>td - echo ""; + echo ""; // the timeslot headers read (timestamp,label) $day_names=array('Su','M','Tu','W','Th','F','Sa'); for ($i=0; $i<$steps; $i++) { @@ -689,7 +698,7 @@ EOF;
- +
EOF;