[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/Users/ -> listgroups.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  
  13  require_once ('include/database/PearDatabase.php');
  14  require_once ('include/utils/UserInfoUtil.php');
  15  
  16  global $mod_strings;
  17  global $app_strings;
  18  global $app_list_strings;
  19  
  20  $smarty = new vtigerCRM_Smarty;
  21  $groupInfo=getAllGroupInfo();
  22  
  23  $cnt=1;
  24  $output='';
  25  $list_header = array($mod_strings['LBL_LIST_TOOLS'],$mod_strings['LBL_GROUP_NAME'],$mod_strings['LBL_DESCRIPTION']);
  26  $return_data = array();
  27  foreach($groupInfo as $groupId=>$groupInfo)
  28  {
  29      
  30      $standCustFld = array();
  31      $standCustFld['groupid']= $groupId;    
  32      $standCustFld['groupname']= $groupInfo[0];
  33      $standCustFld['description']= $groupInfo[1];
  34      $return_data[]=$standCustFld;
  35      $cnt++;
  36  }
  37  
  38  $smarty->assign("LIST_HEADER",$list_header);
  39  $smarty->assign("LIST_ENTRIES",$return_data);
  40  $smarty->assign("PROFILES", $standCustFld);
  41  $smarty->assign("IMAGE_PATH",$image_path);
  42  $smarty->assign("APP", $app_strings);
  43  $smarty->assign("CMOD", $mod_strings);
  44  $smarty->assign("MOD", return_module_language($current_language,'Settings'));
  45  $smarty->assign('GRPCNT', count($return_data));
  46  
  47  $smarty->display("ListGroup.tpl");
  48  ?>


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