From 958c7ab37f9a96665398cd5642b9f9832160931a Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Tue, 4 Jan 2005 23:13:26 +0000 Subject: [PATCH] forgotten one --- include/groups.inc.php | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/include/groups.inc.php b/include/groups.inc.php index b86e9f0..1ca719d 100644 --- a/include/groups.inc.php +++ b/include/groups.inc.php @@ -76,7 +76,7 @@ class BananaGroups { return true; } - function to_html() + function to_html($show_form = false) { global $banana; if (empty($this->overview)) { @@ -85,7 +85,9 @@ class BananaGroups { $html = ''."\n"; $html .= ''."\n"; @@ -98,14 +100,25 @@ class BananaGroups { $html .= ''."\n"; $html .= ""; - if ($this->type == BANANA_GROUP_SUB) { + if ($show_form) { + $html .= ''; + } elseif ($this->type == BANANA_GROUP_SUB) { $html .= ''; } $html .= ""; } - + $html .= '
'._b_('Total').''; - if ($this->type == BANANA_GROUP_SUB) { + if ($show_form) { + $html .= _b_('Abo.').''; + } elseif ($this->type == BANANA_GROUP_SUB) { $html .= _b_('Nouveaux').''; } $html .= _b_('Nom').''._b_('Description').'
{$ginfo[0]}profile['subscribe'])) { + $html .= ' checked="checked"'; + } + $html .= ' />'.($new ? $new : '-').'$g{$d[0]}
'; + if ($show_form) { + return '
' + .$html.'
'; + } + return $html; } } -- 2.1.4