[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

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

   1  <?php
   2  /*********************************************************************************
   3  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
   4   * ("License"); You may not use this file except in compliance with the License
   5   * The Original Code is:  vtiger CRM Open Source
   6   * The Initial Developer of the Original Code is vtiger.
   7   * Portions created by vtiger are Copyright (C) vtiger.
   8   * All Rights Reserved.
   9  *
  10   ********************************************************************************/
  11  
  12  require_once ('include/database/PearDatabase.php');
  13  require_once ('Smarty_setup.php');
  14  global $theme;
  15  $theme_path="themes/".$theme."/";
  16  $image_path=$theme_path."images/";
  17  
  18  $smarty = new vtigerCRM_Smarty;
  19  $query = "SELECT * FROM vtiger_notificationscheduler";
  20  $result = $adb->query($query);
  21  if($adb->num_rows($result) >=1)
  22  {
  23      $notifiy_array = Array();
  24      while($result_row = $adb->fetch_array($result))
  25      {
  26          $result_data = Array();
  27          $result_data['active'] = $result_row['active'];
  28          $result_data['schedulename'] = $mod_strings[$result_row['schedulednotificationname']];
  29          $result_data['id'] = $result_row['schedulednotificationid'];
  30      
  31          if($result_data['active'] != 1)    
  32              $result_data['active'] = $mod_strings['LBL_INACTIVE'];
  33          else
  34              $result_data['active'] = $mod_strings['LBL_ACTIVE'];
  35              
  36          $result_data['label'] = $mod_strings[$result_row['label']];
  37          $notifiy_array []= $result_data;
  38      }
  39      $smarty->assign("NOTIFICATION",$notifiy_array);
  40  }    
  41          
  42  $smarty->assign("MOD", return_module_language($current_language,'Settings'));
  43  $smarty->assign("IMAGE_PATH",$image_path);
  44  $smarty->assign("APP", $app_strings);
  45  $smarty->assign("CMOD", $mod_strings);
  46  if($_REQUEST['directmode'] != '')
  47      $smarty->display("Settings/EmailNotificationContents.tpl");
  48  else
  49      $smarty->display("Settings/EmailNotification.tpl");
  50      
  51  ?>        


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