From: Carsten K. <car...@us...> - 2002-02-19 03:42:41
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv2785 Modified Files: PageType.php Log Message: new css classes for interwikimap Index: PageType.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/PageType.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -2 -b -p -d -r1.7 -r1.8 --- PageType.php 19 Feb 2002 00:08:24 -0000 1.7 +++ PageType.php 19 Feb 2002 03:42:36 -0000 1.8 @@ -148,12 +148,26 @@ class interWikiMapPageType extends PageT function _arrayToTable ($array, &$request) { + $thead = HTML::thead(); + $label[0] = _("Name"); + $label[1] = _("InterWiki Address"); + $thead->pushContent(HTML::tr(HTML::td($label[0]), + HTML::td($label[1]))); + + $tbody = HTML::tbody(); $dbi = $request->getDbh(); - $table = HTML::table(); - foreach ($array as $moniker => $url) { + foreach ($array as $moniker => $interurl) { if ($dbi->isWikiPage($moniker)) { $moniker = WikiLink($moniker); } - $table->pushContent(HTML::tr(HTML::td($moniker), HTML::td(HTML::tt($url)))); + $moniker = HTML::td(array('class' => 'interwiki-moniker'), $moniker); + $interurl = HTML::td(array('class' =>'interwiki-url'), HTML::tt($interurl)); + + $tbody->pushContent(HTML::tr($moniker, $interurl)); } + $table = HTML::table(); + $table->setAttr('class', 'interwiki-map'); + $table->pushContent($thead); + $table->pushContent($tbody); + return $table; } |