[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
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 23 $smarty = new vtigerCRM_Smarty; 24 if(isset($_REQUEST['record']) && $_REQUEST['record']!='') 25 { 26 $id = $_REQUEST['record']; 27 $sql="select * from vtiger_inventorynotification where notificationid = ".$id; 28 $result = $adb->query($sql); 29 if($adb->num_rows($result) ==1); 30 { 31 $label = $mod_strings[$adb->query_result($result,0,'notificationname')]; 32 $notification_subject = $adb->query_result($result,0,'notificationsubject'); 33 $notification_body = $adb->query_result($result,0,'notificationbody'); 34 $notification_id = $adb->query_result($result,0,'notificationid'); 35 36 $notification = Array(); 37 $notification['label'] = $label; 38 $notification['subject'] = $notification_subject; 39 $notification['body'] = $notification_body; 40 $notification['id'] = $notification_id; 41 } 42 43 $smarty->assign("NOTIFY_DETAILS",$notification); 44 $smarty->assign("MOD", return_module_language($current_language,'Settings')); 45 $smarty->assign("IMAGE_PATH",$image_path); 46 $smarty->assign("APP", $app_strings); 47 $smarty->assign("CMOD", $mod_strings); 48 $smarty->display("Settings/EditInventoryNotify.tpl"); 49 } 50 else 51 { 52 header("Location:index.php?module=Users&action=listnotificationschedulers&directmode=ajax"); 53 } 54 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |