[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 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 ('Smarty_setup.php'); 15 16 global $theme; 17 $theme_path="themes/".$theme."/"; 18 $image_path=$theme_path."images/"; 19 20 $smarty = new vtigerCRM_Smarty; 21 $query = "SELECT * FROM vtiger_inventorynotification"; 22 $result = $adb->query($query); 23 $num_rows = $adb->num_rows($result); 24 $output = Array(); 25 for($i=0; $i<$num_rows; $i++) 26 { 27 $out = Array(); 28 $not_id = $adb->query_result($result,$i,'notificationid'); 29 $not_mod = $adb->query_result($result,$i,'notificationname'); 30 $not_des = $adb->query_result($result,$i,'label'); 31 $out ['notificationname'] = $mod_strings[$not_mod]; 32 $out ['label'] = $mod_strings[$not_des]; 33 $out ['id'] = $not_id; 34 $output [] = $out; 35 } 36 $smarty->assign("NOTIFICATION",$output); 37 $smarty->assign("MOD", return_module_language($current_language,'Settings')); 38 $smarty->assign("IMAGE_PATH",$image_path); 39 $smarty->assign("APP", $app_strings); 40 $smarty->assign("CMOD", $mod_strings); 41 42 if($_REQUEST['directmode'] != '') 43 $smarty->display("Settings/InventoryNotifyContents.tpl"); 44 else 45 $smarty->display("Settings/InventoryNotify.tpl");
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 |