[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/modules/Users/ -> editemailtemplate.php (source)

   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  
  16  global $mod_strings;
  17  global $app_strings;
  18  global $theme;
  19  global $current_language;
  20  
  21  $theme_path="themes/".$theme."/";
  22  $image_path=$theme_path."images/";
  23  require_once ($theme_path.'layout_utils.php');
  24  global $log;
  25  
  26  $mode = 'create';
  27  
  28  if(isset($_REQUEST['templateid']) && $_REQUEST['templateid']!='')
  29  {
  30      $mode = 'edit';
  31      $templateid = $_REQUEST['templateid'];
  32       $log->debug("the templateid is set to the value ".$templateid);
  33  }
  34  $sql = "select * from vtiger_emailtemplates where templateid=".$templateid;
  35  $result = $adb->query($sql);
  36  $emailtemplateResult = $adb->fetch_array($result);
  37  
  38  $smod_strings = return_module_language($current_language,'Settings');
  39  
  40  $smarty = new vtigerCRM_smarty;
  41  
  42  $smarty->assign("UMOD", $mod_strings);
  43  $smarty->assign("APP", $app_strings);
  44  $smarty->assign("THEME", $theme_path);
  45  $smarty->assign("IMAGE_PATH", $image_path);
  46  $smarty->assign("MOD", $smod_strings);
  47  $smarty->assign("FOLDERNAME", $emailtemplateResult["foldername"]);
  48  $smarty->assign("TEMPLATENAME", $emailtemplateResult["templatename"]);
  49  $smarty->assign("TEMPLATEID", $emailtemplateResult["templateid"]);
  50  $smarty->assign("DESCRIPTION", $emailtemplateResult["description"]);
  51  $smarty->assign("SUBJECT", $emailtemplateResult["subject"]);
  52  $smarty->assign("BODY", $emailtemplateResult["body"]);
  53  $smarty->assign("MODULE", 'Settings');
  54  $smarty->assign("PARENTTAB", $_REQUEST['parenttab']);
  55  $smarty->assign("EMODE", $mode);
  56  
  57  $smarty->display("CreateEmailTemplate.tpl");
  58  ?>


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7