mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
36 lines
1.2 KiB
PHP
Executable File
36 lines
1.2 KiB
PHP
Executable File
<?php
|
|
/**************************************************************************\
|
|
* phpGroupWare - account administration *
|
|
* http://www.phpgroupware.org *
|
|
* -------------------------------------------- *
|
|
* This program is free software; you can redistribute it and/or modify it *
|
|
* under the terms of the GNU General Public License as published by the *
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
* option) any later version. *
|
|
\**************************************************************************/
|
|
|
|
/* $Id$ */
|
|
|
|
class soaccounts
|
|
{
|
|
|
|
function soaccounts()
|
|
{
|
|
}
|
|
|
|
function account_total($account_type,$query='')
|
|
{
|
|
if ($query)
|
|
{
|
|
$querymethod = " AND (account_firstname LIKE '%$query%' OR account_lastname LIKE "
|
|
. "'%$query%' OR account_lid LIKE '%$query%') ";
|
|
}
|
|
|
|
$GLOBALS['phpgw']->db->query("SELECT COUNT(*) FROM phpgw_accounts WHERE account_type='".$account_type."'".$querymethod,__LINE__,__FILE__);
|
|
$GLOBALS['phpgw']->db->next_record();
|
|
|
|
return $GLOBALS['phpgw']->db->f(0);
|
|
}
|
|
}
|
|
?>
|