[Vtigercrm-commits] [vtiger-commits] r5707 - /vtigercrm/trunk/modules/Users/listemailtemplates.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed May 3 07:06:31 EDT 2006
Author: saraj
Date: Wed May 3 05:06:26 2006
New Revision: 5707
Log:
Logs made proper for email templates listview - ahmed
Modified:
vtigercrm/trunk/modules/Users/listemailtemplates.php
Modified: vtigercrm/trunk/modules/Users/listemailtemplates.php
==============================================================================
--- vtigercrm/trunk/modules/Users/listemailtemplates.php (original)
+++ vtigercrm/trunk/modules/Users/listemailtemplates.php Wed May 3 05:06:26 2006
@@ -12,7 +12,12 @@
require_once('Smarty_setup.php');
require_once('include/database/PearDatabase.php');
-
+
+global $adb;
+global $log;
+
+$log->info("Inside Email Templates List View");
+
$sql = "select * from emailtemplates order by templateid DESC";
$result = $adb->query($sql);
$temprow = $adb->fetch_array($result);
@@ -49,6 +54,9 @@
$return_data[]=$templatearray;
$cnt++;
}while($temprow = $adb->fetch_array($result));
+
+$log->info("Exiting Email Templates List View");
+
$smarty->assign("TEMPLATES",$return_data);
$smarty->display("ListEmailTemplates.tpl");
More information about the vtigercrm-commits
mailing list