Esempio n. 1
0
		}else{
			$error_msg .= "Error updating Company!\n";
			debug_message($company->getLastError());
		}
	}
}else if($_REQUEST['mode'] == 'delete'){
	$title = "Delete Company";

	if(!$company->get($_REQUEST['id'])){
		$error_msg .= "Error retrieving company information!\n";
		debug_message($company->getLastError());
	}

	if($_POST['confirm']){
		if($_POST['confirm'] == "Yes"){
			if($company->delete($_REQUEST['id'])){
				goBack();
			}else{
				$error_msg .= "Error deleting Company!\n";
			}
		}else{
			goBack();
		}
	}
}else{
	$title = "Invalid Mode";
	$error_msg .= "Error: Invalid mode!\n";
}

?>
<? require('header.php'); ?>