git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk/src@1 e2b1556b-49f8-d141-9351-52d6861a72d9
41 lines
1.0 KiB
PHP
41 lines
1.0 KiB
PHP
<?php
|
|
include("seguridad.php");
|
|
include("functions.php");
|
|
|
|
if(!$usuario->tieneRol("4")
|
|
&& !$usuario->tieneRol("1")){
|
|
header("Location: aplicacion.php?e=permiso");
|
|
exit;
|
|
}
|
|
include_once("html/cabecera.php");
|
|
|
|
$consulta = "";
|
|
include_once("Objects/ListaEmpleados.php");
|
|
include_once("Objects/HTML.php");
|
|
$html = new HTML($locale);
|
|
|
|
|
|
echo $html->menuEmpleados($usuario);
|
|
echo "<h2>".$locale['811']."</h2>";
|
|
// Recuperamos la lista de los candidatos
|
|
// Variables por si es una ordenacion
|
|
$order_by="";
|
|
if(stripinput($_GET["order"])!=""){
|
|
$order_by = " ORDER by ".stripinput(stripinput($_GET["order"]))." ".stripinput($_GET["modo"]);
|
|
}else {
|
|
$order_by = " ORDER BY fecha_modificacion DESC";
|
|
}
|
|
$modo = stripinput($_GET["modo"]);
|
|
if($_GET['byEstado']!=""){
|
|
$tipoPedidos=stripinput($_GET['byEstado']);
|
|
} else {
|
|
$tipoPedidos="0";
|
|
}
|
|
$listaEmpleados=new ListaEmpleados($usuario,$order_by,"",$tipoPedidos);
|
|
|
|
include_once("ver_lista_empleados.php");
|
|
|
|
|
|
include_once("html/pie.php");
|
|
?>
|