[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
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 ('modules/Reports/Reports.php'); 12 require_once ('include/logging.php'); 13 require_once ('include/database/PearDatabase.php'); 14 15 if(isset($_REQUEST['idlist']) && $_REQUEST['idlist']!= '') 16 { 17 $id_array = Array(); 18 $id_array = explode(':',$_REQUEST['idlist']); 19 for($i = 0;$i < count($id_array)-1;$i++) 20 { 21 DeleteReport($id_array[$i]); 22 } 23 header("Location: index.php?action=ReportsAjax&file=ListView&mode=ajax&module=Reports"); 24 }elseif(isset($_REQUEST['record']) && $_REQUEST['record']!= '') 25 { 26 $id = $_REQUEST["record"]; 27 DeleteReport($id); 28 header("Location: index.php?action=ReportsAjax&file=ListView&mode=ajaxdelete&module=Reports"); 29 } 30 31 /** To Delete a Report 32 * @param $reportid -- The report id 33 * @returns nothing 34 */ 35 36 function DeleteReport($reportid) 37 { 38 global $adb; 39 $idelreportsql = "delete from vtiger_selectquery where queryid=".$reportid; 40 $idelreportsqlresult = $adb->query($idelreportsql); 41 42 $ireportsql = "delete from vtiger_report where reportid=".$reportid; 43 $ireportsqlresult = $adb->query($ireportsql); 44 } 45 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |