| [ PHPXref.com ] | [ Generated: Sun Jul 20 20:47:44 2008 ] | [ TUTOS 1.2 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Copyright 1999 - 2004 by Gero Kohnert 4 * 5 * @modulegroup company 6 * @module company_del 7 * @package company 8 */ 9 include_once 'webelements.p3'; 10 include_once 'permission.p3'; 11 include_once 'product.pinc'; 12 include_once 'appointment.pinc'; 13 14 /* Check if user is allowed to use it */ 15 check_user(); 16 loadmodules("company","del"); 17 18 $msg = ""; 19 $obj = new company($dbconn); 20 21 if ( !isset($_GET['id']) ) { 22 $msg .= "Could not delete company<br>"; 23 } else { 24 $obj = $obj->read($_GET['id'],$obj); 25 } 26 27 if ( ! $obj->del_ok() ) { 28 $msg = sprintf($lang['Err0023'],$lang[$obj->getType()]); 29 $gotourl = $obj->getUrl() ; 30 } 31 32 33 if ( $msg == "" ) { 34 $dbconn->Begin("WORK"); 35 $msg = $obj->delete(); 36 $dbconn->Commit("WORK"); 37 38 $gotourl = "address_select.php" ; 39 } else { 40 $gotourl= addUrlParameter($gotourl,"id=". $id); 41 } 42 43 $gotourl = addMessage($gotourl,$msg,true); 44 $gotourl = addSessionKey($gotourl,true); 45 46 /* Go back to calendar */ 47 Header("Status: 302 Moved Temporarily"); 48 Header("Location: ". getBaseUrl() . $gotourl); 49 $dbconn->Close(); 50 /* 51 * CVS Info: $Id: company_del.php,v 1.19.4.1 2004/07/26 19:54:57 gokohnert Exp $ 52 * $Author: gokohnert $ 53 */ 54 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |