[ 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 require_once ('Smarty_setup.php'); 12 require_once ('data/Tracker.php'); 13 require_once ('include/utils/UserInfoUtil.php'); 14 require_once ('include/database/PearDatabase.php'); 15 global $adb; 16 global $log; 17 global $mod_strings; 18 global $app_strings; 19 global $current_language; 20 global $theme; 21 $theme_path="themes/".$theme."/"; 22 $image_path=$theme_path."images/"; 23 require_once ($theme_path.'layout_utils.php'); 24 25 $log->info("Inside Email Template Detail View"); 26 27 $smarty = new vtigerCRM_smarty; 28 29 $smarty->assign("APP", $app_strings); 30 $smarty->assign("THEME", $theme); 31 $smarty->assign("UMOD", $mod_strings); 32 $smod_strings = return_module_language($current_language,'Settings'); 33 $smarty->assign("MOD", $smod_strings); 34 $smarty->assign("MODULE", 'Settings'); 35 $smarty->assign("IMAGE_PATH", $image_path); 36 37 if(isset($_REQUEST['templateid']) && $_REQUEST['templateid']!='') 38 { 39 $log->info("The templateid is set"); 40 $tempid = $_REQUEST['templateid']; 41 $sql = "select * from vtiger_emailtemplates where templateid=".$tempid; 42 $result = $adb->query($sql); 43 $emailtemplateResult = $adb->fetch_array($result); 44 } 45 $smarty->assign("FOLDERNAME", $emailtemplateResult["foldername"]); 46 47 $smarty->assign("TEMPLATENAME", $emailtemplateResult["templatename"]); 48 $smarty->assign("DESCRIPTION", $emailtemplateResult["description"]); 49 $smarty->assign("TEMPLATEID", $emailtemplateResult["templateid"]); 50 51 $smarty->assign("SUBJECT", $emailtemplateResult["subject"]); 52 $smarty->assign("BODY", nl2br($emailtemplateResult["body"])); 53 54 $smarty->display("DetailViewEmailTemplate.tpl"); 55 56 ?> 57 58 59 60 61 62
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 |