Tarea #646 -> Crear la acción "Creación de oferta" que cree una oferta relacionada con la solicitud de oferta que se está mostrando. Tarea #607 -> Nueva entidad 'Oferta' con estados nuevos Tarea #606 -> Nuevos estados y transiciones para una solicitud de oferta Tarea #601 -> Nuevos estados y transiciones para un candidato Tarea #599 -> Repasar los registros que se meten en el historial de cambios Tarea #586 -> Cuando una solicitud tiene varios perfiles, hay que visualizarlos ocupando las menos filas posibles Tarea #585 -> Cuando un candidato tiene varios perfiles, hay que visualizarlos ocupando las menos filas posibles git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk/src@65 e2b1556b-49f8-d141-9351-52d6861a72d9
42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
|
|
|
include("seguridad.php");
|
|
include("functions.php");
|
|
if (!$usuario->tieneRol("4") && !$usuario->tieneRol("1") && !$usuario->tieneRol("3")) {
|
|
header("Location: aplicacion.php?e=permiso&rol=" . $usuario->getValor("rol"));
|
|
exit;
|
|
}
|
|
include_once("html/cabecera.php");
|
|
|
|
/* LISTA_PROYECTOS.PHP */
|
|
|
|
$consulta = "";
|
|
include_once("Objects/ListaOfertas.php");
|
|
include_once("Objects/HTML.php");
|
|
$html = new HTML($locale);
|
|
|
|
echo $html->menuOfertas($usuario, "");
|
|
echo "<h2>" . "Lista de ofertas" . "</h2>";
|
|
|
|
$tipoOfertas = (!empty($_GET["byEstado"])) ? $_GET['byEstado'] : "";
|
|
$order_by = (!empty($_GET['order'])) ? $_GET['order'] : "";
|
|
$modo = (!empty($_GET['modo'])) ? $_GET["modo"] : "";
|
|
|
|
// sacado de http://patrickallaert.blogspot.com/2007/09/building-dynamic-sql-queries-elegant.html
|
|
$cond = array();
|
|
if ($tipoOfertas != "") {
|
|
$cond[] = "estado = '$tipoOfertas'";
|
|
}
|
|
|
|
$orden = array();
|
|
if ($order_by != "") {
|
|
$orden[] = $order_by.' '.$modo;
|
|
}
|
|
|
|
$listaOfertas = new ListaOfertas($usuario, $cond, $orden);
|
|
|
|
include_once("ver_lista_ofertas.php");
|
|
|
|
include_once("html/pie.php");
|
|
?>
|