[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

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


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