git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk/src@82 e2b1556b-49f8-d141-9351-52d6861a72d9
24 lines
475 B
PHP
24 lines
475 B
PHP
<?php
|
|
|
|
include("seguridad.php");
|
|
include("functions.php");
|
|
include_once("Objects/Oferta.php");
|
|
$idOferta=$_GET['idOferta'];
|
|
$usuario = $_SESSION["usuario"];
|
|
$oferta = new Oferta($idOferta,$usuario);
|
|
|
|
/* ELIMINAR_OFERTA.PHP */
|
|
try{
|
|
$resultado=$oferta->eliminar();
|
|
if($resultado){
|
|
header("Location: lista_ofertas.php?msg=1");
|
|
} else {
|
|
header("Location: lista_ofertas.php?msg=2");
|
|
}
|
|
} catch (Exception $e) {
|
|
$msg=$e->getMessage();
|
|
include_once("showError.php");
|
|
}
|
|
?>
|
|
|