Complete template var setting for filter

This commit is contained in:
Miles Lott 2001-03-26 08:24:35 +00:00
parent 7b2ab4f697
commit ece1208b07
4 changed files with 10 additions and 9 deletions

View File

@ -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 .= '<select name="filter">';
$str .= '<select name="filter">'."\n";
$indexlimit = count($filter_obj);
@ -333,10 +333,11 @@
$str .= ' selected';
}
$str .= '>' . $filter_obj[$index][1] . '</option>';
$str .= '>' . $filter_obj[$index][1] . '</option>'."\n";
}
$str .= '</select>';
$str .= '</select>'."\n";
$tpl->set_var('select',$str);
$tpl->set_var('lang_filter',lang('Filter'));
}

View File

@ -1 +1 @@
<td width="14%">{search}<input type="submit" value="{lang_filter}"></td>
<td width="14%">{select}<input type="submit" value="{lang_filter}"></td>

View File

@ -1 +1 @@
<td width="14%">{search}<input type="submit" value="{lang_filter}"></td>
<td width="14%">{select}<input type="submit" value="{lang_filter}"></td>

View File

@ -1 +1 @@
<td width="14%">{search}<input type="submit" value="{lang_filter}"></td>
<td width="14%">{select}<input type="submit" value="{lang_filter}"></td>