git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk/src@1 e2b1556b-49f8-d141-9351-52d6861a72d9
36 lines
786 B
PHP
36 lines
786 B
PHP
<?php
|
|
|
|
include("seguridad.php");
|
|
include("functions.php");
|
|
if (!comprobar_permisos("AF")){
|
|
header("Location: aplicacion.php?e=permiso");
|
|
exit;
|
|
}
|
|
//Tenemos que comprobar qué campos se han modificado
|
|
|
|
$oid = stripinput($_POST["oid"]);
|
|
$s = $_GET["s"];
|
|
$vista = $_GET["vista"];
|
|
|
|
$errores = "";
|
|
|
|
if($link = conectar()){
|
|
if($s == "cantidad") $consulta = "delete from salario where id='$oid'";
|
|
else $consulta = "delete from salarios where id='$oid'";
|
|
$resultado = mysql_query($consulta, $link);
|
|
if(!$resultado){
|
|
$errores .= $locale['505'];
|
|
}else{
|
|
$aciertos .= $locale['506'];
|
|
}
|
|
}else{
|
|
$errores .= $locale['bd'];
|
|
}
|
|
|
|
header("Location: administracion_salarios.php?vista=$vista&e=$errores&a=$aciertos");
|
|
exit();
|
|
|
|
include_once("html/pie.php");
|
|
|
|
?>
|