From ece1208b07b7ef53ffd7418922e8bd6f2d673c28 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 26 Mar 2001 08:24:35 +0000 Subject: [PATCH] Complete template var setting for filter --- phpgwapi/inc/class.nextmatchs.inc.php | 13 +++++++------ phpgwapi/templates/default/nextmatchs_filter.tpl | 2 +- phpgwapi/templates/justweb/nextmatchs_filter.tpl | 2 +- phpgwapi/templates/verdilak/nextmatchs_filter.tpl | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/phpgwapi/inc/class.nextmatchs.inc.php b/phpgwapi/inc/class.nextmatchs.inc.php index 20a2c5f39c..070458b0e9 100644 --- a/phpgwapi/inc/class.nextmatchs.inc.php +++ b/phpgwapi/inc/class.nextmatchs.inc.php @@ -307,15 +307,15 @@ array('private',lang('Only yours'))); for ($index=0; $index<$indexlimit; $index++) { - $filter_obj[2+$index][0] = $user_groups[$index][0]; - $filter_obj[2+$index][1] = 'Group - ' . $user_groups[$index][1]; + $filter_obj[2+$index][0] = $user_groups[$index]['account_id']; + $filter_obj[2+$index][1] = 'Group - ' . $user_groups[$index]['account_name']; } } } if (is_array($filter_obj)) { - $str .= ''."\n"; $indexlimit = count($filter_obj); @@ -333,10 +333,11 @@ $str .= ' selected'; } - $str .= '>' . $filter_obj[$index][1] . ''; + $str .= '>' . $filter_obj[$index][1] . ''."\n"; } - $str .= ''; + $str .= ''."\n"; + $tpl->set_var('select',$str); $tpl->set_var('lang_filter',lang('Filter')); } @@ -414,4 +415,4 @@ } } // End of nextmatchs class -?> \ No newline at end of file +?> diff --git a/phpgwapi/templates/default/nextmatchs_filter.tpl b/phpgwapi/templates/default/nextmatchs_filter.tpl index bb1da0b89e..cd33a39d71 100644 --- a/phpgwapi/templates/default/nextmatchs_filter.tpl +++ b/phpgwapi/templates/default/nextmatchs_filter.tpl @@ -1 +1 @@ -{search} \ No newline at end of file +{select} diff --git a/phpgwapi/templates/justweb/nextmatchs_filter.tpl b/phpgwapi/templates/justweb/nextmatchs_filter.tpl index bb1da0b89e..cd33a39d71 100644 --- a/phpgwapi/templates/justweb/nextmatchs_filter.tpl +++ b/phpgwapi/templates/justweb/nextmatchs_filter.tpl @@ -1 +1 @@ -{search} \ No newline at end of file +{select} diff --git a/phpgwapi/templates/verdilak/nextmatchs_filter.tpl b/phpgwapi/templates/verdilak/nextmatchs_filter.tpl index bb1da0b89e..cd33a39d71 100644 --- a/phpgwapi/templates/verdilak/nextmatchs_filter.tpl +++ b/phpgwapi/templates/verdilak/nextmatchs_filter.tpl @@ -1 +1 @@ -{search} \ No newline at end of file +{select}