[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/Users/ -> EditNotification.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 ('Smarty_setup.php');
  13  global $mod_strings;
  14  global $app_strings;
  15  global $app_list_strings;
  16  
  17  global $adb;
  18  global $theme;
  19  $theme_path="themes/".$theme."/";
  20  $image_path=$theme_path."images/";
  21  require_once ($theme_path.'layout_utils.php');
  22  $smarty = new vtigerCRM_Smarty;
  23  
  24  if(isset($_REQUEST['record']) && $_REQUEST['record']!='') 
  25  {
  26      $id = $_REQUEST['record'];
  27      
  28      $sql="select * from vtiger_notificationscheduler where schedulednotificationid = ".$id;
  29      $result = $adb->query($sql);
  30      if($adb->num_rows($result) ==1);
  31      {
  32          $notification = Array();
  33          $notification['active'] = $adb->query_result($result,0,'active');
  34          $notification['subject'] = $adb->query_result($result,0,'notificationsubject');
  35          $notification['body'] = $adb->query_result($result,0,'notificationbody');
  36          $notification['name'] = $mod_strings[$adb->query_result($result,0,'label')];
  37          $notification['id'] = $adb->query_result($result,0,'schedulednotificationid');
  38      }
  39      
  40      $smarty->assign("NOTIFY_DETAILS",$notification);
  41  }
  42  
  43  $smarty->assign("MOD", return_module_language($current_language,'Settings'));
  44  $smarty->assign("IMAGE_PATH",$image_path);
  45  $smarty->assign("APP", $app_strings);
  46  $smarty->assign("CMOD", $mod_strings);
  47  $smarty->display("Settings/EditEmailNotification.tpl");
  48  ?>


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