[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/Emails/ -> CallRelatedList.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  
  12  
  13  require_once ('Smarty_setup.php');
  14  require_once ('modules/Emails/Emails.php');
  15  require_once ('include/utils/utils.php');
  16  
  17  $focus = new Emails();
  18  $currentmodule = $_REQUEST['module'];
  19  $RECORD = $_REQUEST['record'];
  20  if(isset($_REQUEST['record']) && isset($_REQUEST['record'])) {
  21      $focus->retrieve_entity_info($_REQUEST['record'],"Emails");
  22      $focus->id = $_REQUEST['record'];
  23      $focus->name=$focus->column_fields['subject'];
  24  
  25  $log->debug("id is ".$focus->id);
  26  
  27  $log->debug("name is ".$focus->name);
  28  
  29  }
  30  
  31  global $mod_strings;
  32  global $app_strings;
  33  global $currentModule;
  34  global $theme;
  35  $theme_path="themes/".$theme."/";
  36  $image_path=$theme_path."images/";
  37  require_once ($theme_path.'layout_utils.php');
  38  
  39  $smarty = new vtigerCRM_Smarty;
  40  
  41  if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
  42  $related_array=getRelatedLists($currentModule,$focus);
  43  $category = getParentTab();
  44  $smarty->assign("CATEGORY",$category);
  45  if(isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') {
  46          $smarty->assign("OP_MODE",$_REQUEST['mode']);
  47  }
  48  $smarty->assign("id",$focus->id);
  49  $smarty->assign("RELATEDLISTS", $related_array);
  50  $smarty->assign("ID",$RECORD );
  51  $smarty->assign("MODULE",$currentmodule);
  52  $smarty->assign("SINGLE_MOD",$app_strings['Email']);
  53  $smarty->assign("UPDATEINFO",updateInfo($focus->id));
  54  $smarty->assign("MOD",$mod_strings);
  55  $smarty->assign("APP",$app_strings);
  56  $smarty->assign("THEME", $theme);
  57  $smarty->assign("IMAGE_PATH", $image_path);
  58  
  59  $check_button = Button_Check($module);
  60  $smarty->assign("CHECK", $check_button);
  61  
  62  $smarty->display("RelatedLists.tpl");
  63  ?>


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