[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

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


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