[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/Accounts/ -> 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/Accounts/Accounts.php');
  15  require_once ('include/utils/utils.php');
  16  //Redirecting Header for single page layout
  17  require_once ('user_privileges/default_module_view.php');
  18  global $singlepane_view;
  19  if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' )
  20  {
  21      header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']);
  22  }
  23  else
  24  {
  25  $focus = new Accounts();
  26  $currentmodule = $_REQUEST['module'];
  27  $RECORD = $_REQUEST['record'];
  28  if(isset($_REQUEST['record']) && $_REQUEST['record']!='') {
  29      $focus->retrieve_entity_info($_REQUEST['record'],"Accounts");
  30      $focus->id = $_REQUEST['record'];
  31      $focus->name=$focus->column_fields['accountname'];
  32  
  33  $log->debug("id is ".$focus->id);
  34  
  35  $log->debug("name is ".$focus->name);
  36  }
  37  
  38  global $mod_strings;
  39  global $app_strings;
  40  global $theme;
  41  $theme_path="themes/".$theme."/";
  42  $image_path=$theme_path."images/";
  43  require_once ($theme_path.'layout_utils.php');
  44  
  45  $smarty = new vtigerCRM_Smarty;
  46  
  47  if(isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
  48          $focus->id = "";
  49  }
  50  if(isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') {
  51      $smarty->assign("OP_MODE",$_REQUEST['mode']);
  52  }
  53   if(!$_SESSION['rlvs'][$module])
  54   {
  55         unset($_SESSION['rlvs']);
  56   }
  57  
  58  $category = getParentTab();
  59  $smarty->assign("CATEGORY",$category);
  60  $smarty->assign("UPDATEINFO",updateInfo($focus->id));
  61  if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
  62  $related_array=getRelatedLists("Accounts",$focus);
  63  $smarty->assign("RELATEDLISTS", $related_array);
  64  $smarty->assign("ID",$focus->id);
  65  $smarty->assign("MODULE",$currentmodule);
  66  $smarty->assign("SINGLE_MOD",$app_strings['Account']);
  67  $smarty->assign("MOD",$mod_strings);
  68  $smarty->assign("APP",$app_strings);
  69  $smarty->assign("THEME", $theme);
  70  $smarty->assign("IMAGE_PATH", $image_path);
  71  
  72  $check_button = Button_Check($module);
  73  $smarty->assign("CHECK", $check_button);
  74  
  75  $smarty->display("RelatedLists.tpl");
  76  }
  77  ?>


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