[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: etemplate/inc class.nextmatch_widget.inc.php,1.2
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: etemplate/inc class.nextmatch_widget.inc.php,1.2,1.3 |
Date: |
Sun, 22 Sep 2002 05:30:32 -0400 |
Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv28908
Modified Files:
class.nextmatch_widget.inc.php
Log Message:
fixed the behavior of the right and last arrows,
added the parm 'no_cat' to disable the cats-selection
Index: class.nextmatch_widget.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.nextmatch_widget.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** class.nextmatch_widget.inc.php 17 Sep 2002 22:53:32 -0000 1.2
--- class.nextmatch_widget.inc.php 22 Sep 2002 09:30:29 -0000 1.3
***************
*** 48,51 ****
--- 48,55 ----
}
$nextmatch = new
etemplate('etemplate.nextmatch_widget');
+ if ($value['no_cat'])
+ {
+ $nextmatch->disable_cells('cat_id');
+ }
if ($value['no_filter'])
{
***************
*** 104,113 ****
elseif ($value['left'])
{
! $value['start'] -= $max;
$templ->loop = True;
}
elseif ($value['right'])
{
! $value['start'] = $old_value['total'] / $max *
$max;
$templ->loop = True;
}
--- 108,122 ----
elseif ($value['left'])
{
! $value['start'] = $old_value['start'] - $max;
$templ->loop = True;
}
elseif ($value['right'])
{
! $value['start'] = $old_value['start'] + $max;
! $templ->loop = True;
! }
! elseif ($value['last'])
! {
! $value['start'] = (int)
(($old_value['total']-2) / $max) * $max;
$templ->loop = True;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: etemplate/inc class.nextmatch_widget.inc.php,1.2,1.3,
Ralf Becker <address@hidden> <=