mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-01 02:49:39 +01:00
Complete template var setting for filter
This commit is contained in:
parent
7b2ab4f697
commit
ece1208b07
@ -307,15 +307,15 @@
|
|||||||
array('private',lang('Only yours')));
|
array('private',lang('Only yours')));
|
||||||
for ($index=0; $index<$indexlimit; $index++)
|
for ($index=0; $index<$indexlimit; $index++)
|
||||||
{
|
{
|
||||||
$filter_obj[2+$index][0] = $user_groups[$index][0];
|
$filter_obj[2+$index][0] = $user_groups[$index]['account_id'];
|
||||||
$filter_obj[2+$index][1] = 'Group - ' . $user_groups[$index][1];
|
$filter_obj[2+$index][1] = 'Group - ' . $user_groups[$index]['account_name'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($filter_obj))
|
if (is_array($filter_obj))
|
||||||
{
|
{
|
||||||
$str .= '<select name="filter">';
|
$str .= '<select name="filter">'."\n";
|
||||||
|
|
||||||
$indexlimit = count($filter_obj);
|
$indexlimit = count($filter_obj);
|
||||||
|
|
||||||
@ -333,10 +333,11 @@
|
|||||||
$str .= ' selected';
|
$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'));
|
$tpl->set_var('lang_filter',lang('Filter'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
<td width="14%">{search}<input type="submit" value="{lang_filter}"></td>
|
<td width="14%">{select}<input type="submit" value="{lang_filter}"></td>
|
||||||
|
@ -1 +1 @@
|
|||||||
<td width="14%">{search}<input type="submit" value="{lang_filter}"></td>
|
<td width="14%">{select}<input type="submit" value="{lang_filter}"></td>
|
||||||
|
@ -1 +1 @@
|
|||||||
<td width="14%">{search}<input type="submit" value="{lang_filter}"></td>
|
<td width="14%">{select}<input type="submit" value="{lang_filter}"></td>
|
||||||
|
Loading…
Reference in New Issue
Block a user