From: Barış Metin Date: Mon, 8 Jun 2009 12:19:22 +0000 (+0000) Subject: fix sorting - thanks to Thierry. X-Git-Tag: PLEWWW-4.3-19~15 X-Git-Url: http://git.onelab.eu/?p=plewww.git;a=commitdiff_plain;h=88cbcd06d4406e038e933de6a8cc724be655196d fix sorting - thanks to Thierry. --- 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();