From: x2000habouzit Date: Tue, 4 Jan 2005 23:13:26 +0000 (+0000) Subject: forgotten one X-Git-Tag: 1.8~328 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=958c7ab37f9a96665398cd5642b9f9832160931a;p=banana.git forgotten one --- 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; } }