git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk/src@1 e2b1556b-49f8-d141-9351-52d6861a72d9
38 lines
902 B
PHP
38 lines
902 B
PHP
<?php
|
|
|
|
include("seguridad.php");
|
|
include("functions.php");
|
|
if (!comprobar_permisos("AF")){
|
|
header("Location: aplicacion.php?e=permiso");
|
|
exit;
|
|
}
|
|
|
|
$oid = stripinput($_POST["oid"]);
|
|
$rango_min = stripinput($_POST["rango_min"]);
|
|
$rango_max = stripinput($_POST["rango_max"]);
|
|
$rango = $rango_min."-".$rango_max;
|
|
$vista = $_GET["vista"];
|
|
$cantidad = $_GET["cantidad"];
|
|
|
|
$errores = "";
|
|
|
|
if($link = conectar()){
|
|
if($s == "cantidad") $consulta = "update salario set id='$cantidad' where id='$oid'";
|
|
else $consulta = "update salarios set id='$rango' where id='$oid'";
|
|
$resultado = mysql_query($consulta, $link);
|
|
if(!$resultado){
|
|
$errores .= $locale['503'];
|
|
}else{
|
|
$aciertos .= $locale['504'];
|
|
}
|
|
}else{
|
|
$errores .= $locale['bd'];
|
|
}
|
|
|
|
header("Location: administracion_salarios.php?vista=$vista&e=$errores&a=$aciertos");
|
|
exit();
|
|
|
|
include_once("html/pie.php");
|
|
|
|
?>
|