[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] admin/inc class.uiaccounts.inc.php, 1.23.2.9.2.34
From: |
skwashd |
Subject: |
[Phpgroupware-cvs] admin/inc class.uiaccounts.inc.php, 1.23.2.9.2.34 |
Date: |
Mon, 21 Nov 2005 00:16:00 +0100 |
Update of admin/inc
Modified Files:
Branch: Version-0_9_16-branch
class.uiaccounts.inc.php lines: +15 -23
Log Message:
fix paging
====================================================
Index: admin/inc/class.uiaccounts.inc.php
diff -u admin/inc/class.uiaccounts.inc.php:1.23.2.9.2.33
admin/inc/class.uiaccounts.inc.php:1.23.2.9.2.34
--- admin/inc/class.uiaccounts.inc.php:1.23.2.9.2.33 Wed Sep 28 13:29:48 2005
+++ admin/inc/class.uiaccounts.inc.php Sun Nov 20 23:16:23 2005
@@ -182,36 +182,28 @@
$cd = $param_cd;
}
- if(isset($_POST['query']))
+ $query = '';
+ if( isset($_REQUEST['query']) && $_REQUEST['query'])
{
- $GLOBALS['query'] = $_POST['query'];
+ $query = $_REQUEST['query'];
}
- if(isset($_POST['start']))
+ $start = 0;
+ if( isset($_REQUEST['start']) && $_REQUEST['start'] )
{
- $start = intval($_POST['start']);
- }
- else
- {
- $start = 0;
+ $start = intval($_REQUEST['start']);
}
- if(isset($_GET['order']))
+ $order = 'account_lid';
+ if( isset($_REQUEST['order']) && $_REQUEST['order'])
{
- $order = $_GET['order'];
- }
- else
- {
- $order = 'account_lid';
+ $order = $_REQUEST['order'];
}
- if(isset($_GET['sort']))
- {
- $sort = $_GET['sort'];
- }
- else
+ $sort = 'ASC';
+ if( isset($_REQUEST['sort']) && $_REQUEST['sort'] )
{
- $sort = 'ASC';
+ $sort = $_REQUEST['sort'];
}
unset($GLOBALS['phpgw_info']['flags']['noheader']);
@@ -231,12 +223,12 @@
if
($GLOBALS['phpgw']->acl->check('account_access',2,'admin'))
{
- $account_info =
$GLOBALS['phpgw']->accounts->get_list('accounts',$start,$sort,$order,$GLOBALS['query']);
+ $account_info =
$GLOBALS['phpgw']->accounts->get_list('accounts',$start,$sort,$order,$query);
$total = $GLOBALS['phpgw']->accounts->total;
}
else
{
- $account_info =
$GLOBALS['phpgw']->accounts->get_list('accounts',$start,$sort,$order,$GLOBALS['query']);
+ $account_info =
$GLOBALS['phpgw']->accounts->get_list('accounts',$start,$sort,$order,$query);
$total = $GLOBALS['phpgw']->accounts->total;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] admin/inc class.uiaccounts.inc.php, 1.23.2.9.2.34,
skwashd <=
- Prev by Date:
[Phpgroupware-cvs] phpsysinfo/templates/black/images aq_background.gif, 1.2 bar_left.gif, 1.2 bar_right.gif, 1.2 bar_middle.gif, 1.2 coininfd.gif, 1.2 coininfg.gif, 1.2 redbar_middle.gif, 1.2 redbar_left.gif, 1.2 redbar_right.gif, 1.2 space15_15.gif, 1.2 sup.gif, 1.2 inf.gif, 1.2 index.html, 1.1 coinsupg.gif, 1.2 coinsupd.gif, 1.2 fond.gif, 1.2 g.gif, 1.2 d.gif, 1.2
- Next by Date:
[Phpgroupware-cvs] phpgwapi/setup tables_update.inc.php, 1.53.2.9.2.43 setup.inc.php, 1.37.2.6.2.27
- Previous by thread:
[Phpgroupware-cvs] phpsysinfo/templates/black/images aq_background.gif, 1.2 bar_left.gif, 1.2 bar_right.gif, 1.2 bar_middle.gif, 1.2 coininfd.gif, 1.2 coininfg.gif, 1.2 redbar_middle.gif, 1.2 redbar_left.gif, 1.2 redbar_right.gif, 1.2 space15_15.gif, 1.2 sup.gif, 1.2 inf.gif, 1.2 index.html, 1.1 coinsupg.gif, 1.2 coinsupd.gif, 1.2 fond.gif, 1.2 g.gif, 1.2 d.gif, 1.2
- Next by thread:
[Phpgroupware-cvs] phpgwapi/setup tables_update.inc.php, 1.53.2.9.2.43 setup.inc.php, 1.37.2.6.2.27
- Index(es):