[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

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


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