[Vtigercrm-commits] [vtiger-commits] r5319 - /vtigercrm/trunk/include/utils/CommonUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Apr 25 04:56:14 EDT 2006
Author: richie
Date: Tue Apr 25 02:56:09 2006
New Revision: 5319
Log:
function added to support mass change owner in listviews
Modified:
vtigercrm/trunk/include/utils/CommonUtils.php
Modified: vtigercrm/trunk/include/utils/CommonUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/CommonUtils.php (original)
+++ vtigercrm/trunk/include/utils/CommonUtils.php Tue Apr 25 02:56:09 2006
@@ -1649,6 +1649,16 @@
return $status;
}
-
-
+function getUserslist()
+{
+ global $adb;
+ $result=$adb->query("select * from users");
+ for($i=0;$i<$adb->num_rows($result);$i++)
+ {
+ $useridlist[$i]=$adb->query_result($result,$i,'id');
+ $usernamelist[$useridlist[$i]]=$adb->query_result($result,$i,'user_name');
+ }
+ $change_owner = get_select_options_with_id($usernamelist,'admin');
+ return $change_owner;
+}
?>
More information about the vtigercrm-commits
mailing list