<?php
//if ((isset($_SESSION['usuario']))and $_SESSION['id_perfil']==4)
//{
?>
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" />
<title>EDITAR USUARIO</title>
<script languaje = "javascript">
< script type = "text/javascript" src = "../validaciones/validar.js" ></script>
<script type="text/javascript" src="../validaciones/validar2.js"></script>
<script>
<!--
/*VALIDACION PARA SOLO NUMEROS*/
function validarNumero(e) {
tecla = (document.all) ? e.keyCode : e.which;
if (tecla == 8 || tecla == 0)
return true;
patron = /[0123456789.]/;
te = String.fromCharCode(tecla);
return patron.test(te);
}
function validarletras(e) {
tecla = (document.all) ? e.keyCode : e.which;
if (tecla == 8 || tecla == 0)
return true;
patron = /[qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM]/;
te = String.fromCharCode(tecla);
return patron.test(te);
}
//-->
</script>
</head>
<body >
<?php
//include('../plantilla/cabecera6.php');
?>
<h3 class="art-postheader">EDITAR EMPLEADO</h3>
<table align="center" width="100%" border="1">
<tr>
<td align="center" width="20%"><input type="button" value="ATRAS" name="atras"/></td>
<td align="center" width="20%"><input type="button" value="NUEVO" name="nuevo"/></td>
<td align="center" width="20%"><input type="reset" value="LIMPIAR" name="limpiar"/></td>
<td align="center" width="20%"><input type="button" value="ADELANTE" name="adelante"/></td>
<td align="center" width="10%">
<!-- <form name="form_reloj">
<input type="text" id="reloj" name="relo" />
</form>-->
</td>
</tr>
</table>
</head>
<?php
// put your code here
if ($emp1->hayDatos()) {
$fila = $emp1->obtenerFila();
}
?>
<form name="form1" method="post" action="Control_Empleado.php?accion=EmpleadoModificar&ID=<?php echo $fila['Cedula_Persona'] ?>">
<table width="100%" align="center">
<tr>
<tr>
<th height = "29" align = "left" scope = "col"><div align = "right">CEDULA PERSONA:</div></th>
<td><label></label>
<input name = "Cedula_Persona" type = "text" id = "Cedula_Persona" onkeypress = "return validarNumero()(event);" onkeyup = "this.value = this.value.toUpperCase();
" value = "" size = "45" readonly = "readonly" required = "required"/></td>
</tr>
<tr>
<th height="29" align="left" scope="col"><div align="right">ID_USUARIO:</div></th>
<td><label></label>
<input name="ID_Usuario" type="text" id="ID_Usuario" size="50" onkeypress="return validarletras()(event);" required="required" onkeyup="this.value = this.value.toUpperCase();"/></td>
</tr>
<tr>
<th height="29" align="left" scope="col"><div align="right">DEPARTAMENTO:</div></th>
<td><label></label>
<input name="Departamento" type="text" id="Departamento" size="50" onkeypress="return validarletras()(event);" required="required" onkeyup="this.value = this.value.toUpperCase();"/></td>
</tr>
<tr>
<th height="29" align="left" scope="col"><div align="right">INICIO DE CONTRATO:</div></th>
<td><label></label>
<input name="Inicio_Contrato" type="text" id="Inicio_Contrato" size="50" required="required" onkeyup="this.value = this.value.toUpperCase();"/></td>
</tr>
<tr>
<th height="29" align="left" scope="col"><div align="right">FIN DE CONTRATO:</div></th>
<td><label></label>
<input name="Fin_Contrato" type="text" id="Fin_Contrato" size="50" required="required" onkeyup="this.value = this.value.toUpperCase();"/></td>
</tr>
<tr>
<th height="29" align="left" scope="col"><div align="right">SALARIO:</div></th>
<td><label></label>
<input name="Salario" type="Salario" id="Celular" size="50" onkeypress="return validarNumero()()(event);" required="required" onkeyup="this.value = this.value.toUpperCase();"/></td>
</tr>
<tr>
<th height="29" align="left" scope="col"><div align="right">AÑOS DE TRABAJO:</div></th>
<td><label></label>
<input name="Año_Trabajo" type="Salario" id="Año_Trabajo" size="50" onkeypress="return validarNumero()()(event);" required="required" onkeyup="this.value = this.value.toUpperCase();"/></td>
</tr>
<tr>
<td align = "right">
</td>
<td><label>
<input type = "submit" name = "Submit" value = "GUARDAR" />
</label></td>
</tr>
</table>
</form>
<?php
include('../plantilla/pie.php');
?>
</body>
</html>
<?php
/*
}
else
{
session_destroy();
header("Location: ../index.php");
}
*/
?>