[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/modules/Users/ -> UserGroups.php (source)

   1  <?php
   2  
   3  /*********************************************************************************
   4  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
   5   * ("License"); You may not use this file except in compliance with the License
   6   * The Original Code is:  vtiger CRM Open Source
   7   * The Initial Developer of the Original Code is vtiger.
   8   * Portions created by vtiger are Copyright (C) vtiger.
   9   * All Rights Reserved.
  10  *
  11   ********************************************************************************/
  12  require_once ('include/utils/GetUserGroups.php');
  13  require_once ('Smarty_setup.php');
  14  
  15  
  16  $user_id = $_REQUEST['record'];
  17  global $current_user;
  18  global $mod_strings;
  19  $smarty = new vtigerCRM_Smarty;
  20  $oGetUserGroups = new GetUserGroups();
  21  $oGetUserGroups->getAllUserGroups($user_id);
  22  $user_group_info = Array();
  23  foreach($oGetUserGroups->user_groups as $groupid)
  24  {
  25      $user_group_info[$groupid] = getGroupDetails($groupid);
  26  }
  27  $smarty->assign("IS_ADMIN",is_admin($current_user));
  28  $smarty->assign("GROUPLIST",$user_group_info);
  29  $smarty->assign("UMOD", $mod_strings);
  30  $smarty->display("UserGroups.tpl");
  31  ?>


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7