[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/Campaigns/ -> LoadList.php (source)

   1  <?php
   2  /*********************************************************************************
   3  
   4  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
   5   * ("License"); You may not use this file except in compliance with the License
   6   * The Original Code is:  vtiger CRM Open Source
   7   * The Initial Developer of the Original Code is vtiger.
   8   * Portions created by vtiger are Copyright (C) vtiger.
   9   * All Rights Reserved.
  10   * Contributor(s): mmbrich
  11   ********************************************************************************/
  12        
  13  require_once ('modules/CustomView/CustomView.php');
  14  require_once ('user_privileges/default_module_view.php');
  15  
  16  global $singlepane_view;
  17  $cvObj = new CustomView($_REQUEST["return_type"]);
  18  
  19  $listquery = getListQuery($_REQUEST["list_type"]);
  20  $rs = $adb->query($cvObj->getModifiedCvListQuery($_REQUEST["cvid"],$listquery,$_REQUEST["list_type"]));
  21  
  22  if($_REQUEST["list_type"] == "Leads")
  23          $reltable = "vtiger_campaignleadrel";
  24  elseif($_REQUEST["list_type"] == "Contacts")
  25          $reltable = "vtiger_campaigncontrel";
  26  
  27  while($row=$adb->fetch_array($rs)) {
  28      $adb->query("INSERT INTO ".$reltable." VALUES('".$_REQUEST["return_id"]."','".$row["crmid"]."')");
  29  }
  30  
  31  if ($singlepane_view == 'true')
  32  {
  33  ?>
  34  <script>
  35  addOnloadEvent(function() {
  36      window.location.href = "index.php?action=DetailView&module=Campaigns&record=<? echo $_REQUEST['return_id'];?>";
  37  });
  38  </script>
  39  <?php
  40  }
  41  else
  42  {
  43  ?>
  44  <script>
  45  addOnloadEvent(function() {
  46      window.location.href = "index.php?action=CallRelatedList&module=Campaigns&record=<? echo $_REQUEST['return_id'];?>";
  47  });
  48  </script>
  49  <?php
  50  }
  51  ?>


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