From 86524a69b48c348a0f67b9b59ea4b34038c8d817 Mon Sep 17 00:00:00 2001 From: rurban Date: Mon, 1 Mar 2004 09:36:02 +0000 Subject: [PATCH] added no_order.png for constant col width git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@3103 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/PageList.php | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/lib/PageList.php b/lib/PageList.php index 4f68d13af..2a06168ab 100644 --- a/lib/PageList.php +++ b/lib/PageList.php @@ -1,4 +1,4 @@ - $GLOBALS['request']->GetURLtoSelf(array('sortby' => $sortby, - 'nopurge' => 'cache')), + 'nopurge' => '1')), 'class' => 'pagetitle', 'title' => sprintf(_("Sort by %s"),$this->_field)), HTML::raw(' '), HTML::u($this->_heading), HTML::raw(' ')); @@ -97,6 +97,7 @@ class _PageList_Column_base { } // new grid-style + // see activeui.js function button_heading () { global $Theme, $request; // allow sorting? @@ -117,17 +118,23 @@ class _PageList_Column_base { } $s = HTML::a(array('href' => //Fixme: pass all also other GET args along. (limit, p[]) + //Fixme: convert to POST submit[sortby] $request->GetURLtoSelf(array('sortby' => $sortby, - 'nopurge' => 'cache')), + 'nopurge' => '1')), 'class' => 'gridbutton', - 'title' => sprintf(_("Sort by %s"),$this->_field)), - $this->_heading, - $src ? HTML(HTML::raw(' '), - HTML::img(array('src' => $src, - 'width' => '', - 'height' => '', - 'alt' => _("Click to reverse sort order")))) - : HTML::raw('')); + 'title' => sprintf(_("Click to sort by %s"),$this->_field)), + HTML::span(array('align'=>'left'), + $this->_heading), + HTML::raw(' '), + HTML::span(array('align'=>'right'), + $src ? HTML::img(array('src' => $src, + 'width' => '7', + 'height' => '7', + 'alt' => _("Click to reverse sort order"))) + : HTML::img(array('src' => $Theme->getButtonURL('no_order'), + 'width' => '7', + 'height' => '7', + 'alt' => _("Click to sort"))))); } else { $s = $this->_heading; } @@ -742,6 +749,7 @@ function flipAll(formObj) { $out = HTML(); //Warning: This is quite fragile. It depends solely on a private variable // in ->_addColumn() + // questionable if its of use here anyway. this is a one-col list only. if (in_array('checkbox',$this->_columns_seen)) { $out->pushContent($this->_jsFlipAll()); } -- 2.45.0