$nifty=new PlekitNifty ('','objects-list','big');
$nifty->start();
-$headers["I"]="int";
+if (plc_is_admin()) $headers["I"]="int";
$headers["Peer"]="string";
$headers["Name"]="string";
$headers["Users"]="string";
$headers["Exp. d/m/y"]="date-dmy";
# initial sort on hostnames
-$table=new PlekitTable ("slices",$headers,3,
+if (plc_is_admin()) $slices_sort_column = 3;
+else $slices_sort_column = 2;
+
+$table=new PlekitTable ("slices",$headers,$slices_sort_column,
array('search_width'=>20));
$table->start();
$expires= date( "d/m/Y", $slice['expires'] );
$table->row_start();
- $table->cell (l_slice_t($slice_id,$slice_id));
+ if (plc_is_admin()) $table->cell (l_slice_t($slice_id,$slice_id));
$peers->cell($table,$peer_id);
$table->cell (l_slice_obj($slice));
$table->cell ($users);