diff --git a/phpgwapi/inc/class.listbox.inc.php b/phpgwapi/inc/class.listbox.inc.php index 64b6f2c59b..bfa4e55ef7 100755 --- a/phpgwapi/inc/class.listbox.inc.php +++ b/phpgwapi/inc/class.listbox.inc.php @@ -65,6 +65,28 @@ it draws the table(s), placing the required data in the appropriate place. */ function draw($extra_data='') + { + $this->start_template(); + + if(count($this->data)) + { + for ($x = 0; $x < count($this->data); $x++) + { + $var[] = array + ( + 'text' => $this->data[$x]['text'], + 'link' => $this->data[$x]['link'], + 'lang_link_statustext' => $this->data[$x]['lang_link_statustext'] + ); + } + $this->output['listbox'] = $var; + } + + $this->set_internal($extra_data); + return $this->draw_box(); + } + + function xdraw($extra_data='') { if ($extra_data) { @@ -89,7 +111,7 @@ $this->output['listbox'] = $var; } - $this->set_internal($extra_data); + $this->set_xinternal($extra_data); return $this->draw_box(); } } diff --git a/phpgwapi/inc/class.portalbox.inc.php b/phpgwapi/inc/class.portalbox.inc.php index 51d816cf45..212de89f0a 100755 --- a/phpgwapi/inc/class.portalbox.inc.php +++ b/phpgwapi/inc/class.portalbox.inc.php @@ -83,7 +83,7 @@ // echo 'After SetVar Title = '.$this->getvar('title')."
\n"; } - function start_template($extra = False) + function start_template($extra = '') { if ($extra) { @@ -123,6 +123,15 @@ $this->output['extrabox'] = $data; } + function set_xinternal($data='') + { + if($data=='' && !count($this->data)) + { + $data = ' '; + } + $this->output['xextrabox'] = $data; + } + function draw_box() { $control = ''; diff --git a/phpgwapi/templates/default/portal.xsl b/phpgwapi/templates/default/portal.xsl index 24d7d2c469..885b07e4cf 100644 --- a/phpgwapi/templates/default/portal.xsl +++ b/phpgwapi/templates/default/portal.xsl @@ -24,6 +24,9 @@ + + + diff --git a/phpgwapi/templates/default/widgets.xsl b/phpgwapi/templates/default/widgets.xsl index 904a915f59..fa6cbfe84d 100644 --- a/phpgwapi/templates/default/widgets.xsl +++ b/phpgwapi/templates/default/widgets.xsl @@ -1,116 +1,148 @@ - - - - - - - - - - - - - - - &currow=1 - - - - - - - - - - - - - - - &currow= - - - - &currow=1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - &currow= - - - - - - - - - - - - - - - - - &currow= - - - - - - - - - - - - - - - &currow=1 - - - - &allrows=1 - - - - -
 0 - 0 of 0  - of   - of  
- - -
+ + + + + + + + + + + + + + + &currow=1 + + + + + + + + + + + + + + + &currow= + + + + &currow=1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + &currow= + + + + + + + + + + + + + + + + + + &currow= + + + + + + + + + + + + + + + &currow=1 + + + + &allrows=1 + + + + +
+ + + + + + + + + + + + 0 - 0 of 0  + - of   + + - of   + + + + + + + + + + + + + + + + +
+