[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 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 ('Smarty_setup.php'); 14 require_once ('include/database/PearDatabase.php'); 15 16 global $adb; 17 global $log; 18 19 $log->info("Inside Email Templates List View"); 20 21 $sql = "select * from vtiger_emailtemplates order by templateid DESC"; 22 $result = $adb->query($sql); 23 $temprow = $adb->fetch_array($result); 24 25 $edit="Edit "; 26 $del="Del "; 27 $bar=" | "; 28 $cnt=1; 29 30 require_once ('include/utils/UserInfoUtil.php'); 31 global $app_strings; 32 global $app_list_strings; 33 global $mod_strings; 34 global $theme; 35 $theme_path="themes/".$theme."/"; 36 $image_path=$theme_path."images/"; 37 38 $smarty = new vtigerCRM_Smarty; 39 $smarty->assign("UMOD", $mod_strings); 40 global $current_language; 41 $smod_strings = return_module_language($current_language,'Settings'); 42 $smarty->assign("MOD", $smod_strings); 43 $smarty->assign("MODULE", 'Settings'); 44 $smarty->assign("IMAGE_PATH", $image_path); 45 $smarty->assign("PARENTTAB", $_REQUEST['parenttab']); 46 47 $return_data=array(); 48 if ($temprow != null) 49 { 50 do 51 { 52 $templatearray=array(); 53 $templatearray['templatename'] = $temprow["templatename"]; 54 $templatearray['templateid'] = $temprow["templateid"]; 55 $templatearray['description'] = $temprow["description"]; 56 $templatearray['foldername'] = $temprow["foldername"]; 57 $return_data[]=$templatearray; 58 $cnt++; 59 }while($temprow = $adb->fetch_array($result)); 60 } 61 62 $log->info("Exiting Email Templates List View"); 63 64 $smarty->assign("TEMPLATES",$return_data); 65 $smarty->display("ListEmailTemplates.tpl"); 66 67 ?>
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 |