2011-04-04 15:16:10 +00:00
|
|
|
<?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/ListaPedido.php");
|
|
|
|
|
include_once("Objects/HTML.php");
|
|
|
|
|
$html = new HTML($locale);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo $html->menuPedidos($usuario,"");
|
|
|
|
|
echo "<h2>".$locale['1006']."</h2>";
|
|
|
|
|
// Recuperamos la lista de los pedidos
|
|
|
|
|
// Variables por si es una ordenacion
|
|
|
|
|
$order_by="";
|
2011-04-06 12:07:57 +00:00
|
|
|
|
|
|
|
|
if (isset($_GET["order"]) && ($_GET["order"]!="")) {
|
2011-04-04 15:16:10 +00:00
|
|
|
$order_by = " ORDER by ".stripinput($_GET["order"])." ".$_GET["modo"];
|
|
|
|
|
}
|
2011-04-06 12:07:57 +00:00
|
|
|
|
|
|
|
|
$modo = (isset($_GET["modo"])) ? stripinput($_GET["modo"]) : "";
|
|
|
|
|
|
|
|
|
|
$tipoPedidos = (isset($_GET["byEstado"]) && ($_GET['byEstado'] != "")) ? $_GET['byEstado'] : "10";
|
|
|
|
|
|
2011-04-04 15:16:10 +00:00
|
|
|
$listaPedidos=new ListaPedido($usuario,$order_by,"",$tipoPedidos);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include_once("ver_lista_pedidos.php");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
include_once("html/pie.php");
|
|
|
|
|
|
|
|
|
|
?>
|