change for cat-selection in nextmatch

This commit is contained in:
Ralf Becker 2001-09-26 13:08:11 +00:00
parent fa9c5c1943
commit fc6aeb0368
2 changed files with 4 additions and 31 deletions

View File

@ -336,13 +336,6 @@
$hidden_vars+$action_vars+array('referer'=>$referer),
'/index.php',$this->menuaction('edit')));
}
$t->set_var('cat_form',$html->link('/index.php',
ereg_replace('&*cat_id=[0-9]*','',$QUERY_STRING)));
$t->set_var('lang_category',lang('Category'));
$t->set_var('lang_all',lang('All'));
$t->set_var('lang_select',lang('Select'));
$t->set_var('categories',$this->categories->formated_list('select',
'all',$cat_id,'True'));
$add_icons = lang('Add').':';
$icons = array( 'task' => True,
@ -403,14 +396,9 @@
break;
}
// catergory selection
$t->set_block('info_list_t','cat_selection','cat_selectionhandle');
if (!$for_include || $total > $maxmatchs ||
$query || $cat_id)
{
$t->parse('cat_selectionhandle','cat_selection',True);
// ===========================================
// nextmatch variable template-declarations
// ===========================================
@ -428,7 +416,7 @@
}
$next_matchs = $this->nextmatchs->show_tpl('/index.php',$start,
$total,'&'.$q_string,'95%',$phpgw_info['theme']['th_bg'],
0,$filters);
0,$filters,1,0,$cat_id,'cat_id');
$t->set_var('next_matchs',$next_matchs);

View File

@ -1,6 +1,8 @@
{info_css}
<table width=98%><tr><td>
<span class=action>{lang_info_action}</span>
</td><td align=center>
{total_matchs}
</td><td align=right>
<span class=action>{add_icons}</span>
</td></tr></table>
@ -28,23 +30,6 @@
</table><p>
<!-- END projdetails -->
<!-- BEGIN cat_selection -->
<table><tr valign="middle">
<td>
<form method="POST" name="cat" action="{cat_form}">
{lang_category}
<select name="cat_filter" onChange="this.form.submit();">
<option value="0">{lang_all}</option>
{categories}
</select>
<noscript><input type="submit" name="cats" value="{lang_select}"></noscript>
</form>
</td><td>
{total_matchs}
</td>
</tr></table>
<!-- END cat_selection -->
{next_matchs}
<table width=95% border=0 cellspacing=1 cellpadding=3>