session list:

- fixed not working "go to start or list" button
- added start/total display
This commit is contained in:
Ralf Becker 2008-08-14 12:45:19 +00:00
parent 04ddf51d90
commit 563ac8c71c
2 changed files with 4 additions and 6 deletions

View File

@ -57,7 +57,7 @@
$this->store_location($info); $this->store_location($info);
} }
if ($_REQUEST['start'] || $_REQUEST['sort'] || $_REQUEST['order']) if (isset($_REQUEST['start']) || $_REQUEST['sort'] || $_REQUEST['order'])
{ {
if ($_REQUEST['start'] == 0 || $_REQUEST['start'] && $_REQUEST['start'] != $info['start']) if ($_REQUEST['start'] == 0 || $_REQUEST['start'] && $_REQUEST['start'] != $info['start'])
{ {
@ -90,10 +90,9 @@
$total = $this->bo->total(); $total = $this->bo->total();
$this->template->set_var('bg_color',$GLOBALS['egw_info']['theme']['bg_color']);
$this->template->set_var('left_next_matchs',$this->nextmatchs->left('/admin/currentusers.php',$info['start'],$total)); $this->template->set_var('left_next_matchs',$this->nextmatchs->left('/admin/currentusers.php',$info['start'],$total));
$this->template->set_var('right_next_matchs',$this->nextmatchs->right('/admin/currentusers.php',$info['start'],$total)); $this->template->set_var('right_next_matchs',$this->nextmatchs->right('/admin/currentusers.php',$info['start'],$total));
$this->template->set_var('th_bg',$GLOBALS['egw_info']['theme']['th_bg']); $this->template->set_var('start_total',$this->nextmatchs->show_hits($total,$info['start']));
$this->template->set_var('sort_loginid',$this->nextmatchs->show_sort_order($info['sort'],'session_lid',$info['order'], $this->template->set_var('sort_loginid',$this->nextmatchs->show_sort_order($info['sort'],'session_lid',$info['order'],
'/admin/currentusers.php',lang('LoginID'))); '/admin/currentusers.php',lang('LoginID')));

View File

@ -3,10 +3,9 @@
<table border="0" width="95%" align="center"> <table border="0" width="95%" align="center">
<tr> <tr>
{left_next_matchs} {left_next_matchs}
<td>&nbsp;</td> <td align="center">{start_total}</td>
<td>&nbsp;</td>
{right_next_matchs} {right_next_matchs}
</tr> </tr>
</td> </td>
<table border="0" width="95%" align="center"> <table border="0" width="95%" align="center">