[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/CustomView/ -> Delete.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  require_once ('include/logging.php');
  12  require_once ('include/database/PearDatabase.php');
  13  global $adb;
  14  
  15  $cvid = $_REQUEST["record"];
  16  $module = $_REQUEST["dmodule"];
  17  $smodule = $REQUEST["smodule"];
  18  $parenttab = $_REQUEST["parenttab"];
  19  
  20  if(isset($cvid) && $cvid != '')
  21  {
  22      $deletesql = "delete from vtiger_customview where cvid =".$cvid;
  23      $deleteresult = $adb->query($deletesql);
  24      $_SESSION['lvs'][$module]["viewname"] = '';
  25  }
  26  if(isset($smodule) && $smodule != '')
  27  {
  28      $smodule_url = "&smodule=".$smodule;
  29  }
  30  
  31  header("Location: index.php?action=ListView&parenttab=$parenttab&module=$module".$smodule_url);
  32  ?>


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