[Vtigercrm-commits] [vtiger-commits] r4248 - /vtigercrm/trunk/modules/Users/createemailtemplate.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 16 06:59:27 EST 2006


Author: saraj
Date: Thu Mar 16 04:59:22 2006
New Revision: 4248

Log:
Modified the file for smartification of create new Email Template

Modified:
    vtigercrm/trunk/modules/Users/createemailtemplate.php

Modified: vtigercrm/trunk/modules/Users/createemailtemplate.php
==============================================================================
--- vtigercrm/trunk/modules/Users/createemailtemplate.php (original)
+++ vtigercrm/trunk/modules/Users/createemailtemplate.php Thu Mar 16 04:59:22 2006
@@ -9,27 +9,35 @@
 *
  ********************************************************************************/
 require_once('database/DatabaseConnection.php');
-require_once('XTemplate/xtpl.php');
+require_once('Smarty_setup.php');
 require_once('include/utils/utils.php');
-
-
+require_once('data/Tracker.php');
+require_once('include/utils/UserInfoUtil.php');
+require_once('include/database/PearDatabase.php');
 
 global $app_strings;
 global $app_list_strings;
 global $mod_strings;
 global $current_user;
+global $current_language;
 
 global $theme;
 $theme_path="themes/".$theme."/";
 $image_path=$theme_path."images/";
+$smod_strings = return_module_language($current_language,'Settings');
 require_once($theme_path.'layout_utils.php');
 
-$xtpl=new XTemplate ('modules/Users/createemailtemplate.html');
-$xtpl->assign("MOD", $mod_strings);
-$xtpl->assign("APP", $app_strings);
-$xtpl->parse("main");
-$xtpl->out("main");
+$smarty = new vtigerCRM_smarty;
 
+$smarty->assign("APP", $app_strings);
+$smarty->assign("IMAGE_PATH", $image_path);
+$smarty->assign("THEME_PATH", $theme_path);
+$smarty->assign("UMOD", $mod_strings);
+
+$smarty->assign("MOD", $smod_strings);
+$smarty->assign("MODULE", 'Settings');
+
+$smarty->display("CreateEmailTemplate.tpl");
 
 ?>
 





More information about the vtigercrm-commits mailing list