From 88cbcd06d4406e038e933de6a8cc724be655196d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 8 Jun 2009 12:19:22 +0000 Subject: [PATCH] fix sorting - thanks to Thierry. --- planetlab/sites/sites.php | 6 +++++- planetlab/slices/slices.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/planetlab/sites/sites.php b/planetlab/sites/sites.php index 1220038..dfabe5c 100644 --- a/planetlab/sites/sites.php +++ b/planetlab/sites/sites.php @@ -126,7 +126,11 @@ if (plc_is_admin()) { $headers['?']="string"; } -$table=new PlekitTable("sites",$headers,2); +if (plc_is_admin()) { + $table=new PlekitTable("sites",$headers,3); +} else { + $table=new PlekitTable("sites",$headers,2); +} $table->start(); if ($sites) foreach ($sites as $site) { diff --git a/planetlab/slices/slices.php b/planetlab/slices/slices.php index 7747b01..e541e0d 100644 --- a/planetlab/slices/slices.php +++ b/planetlab/slices/slices.php @@ -115,7 +115,7 @@ $headers["N"]="int"; $headers["Exp. d/m/y"]="date-dmy"; # initial sort on hostnames -$table=new PlekitTable ("slices",$headers,2, +$table=new PlekitTable ("slices",$headers,3, array('search_width'=>20)); $table->start(); -- 2.47.0