44 lines
1008 B
PHP
44 lines
1008 B
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/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="";
|
||
|
|
if($_GET["order"]!=""){
|
||
|
|
$order_by = " ORDER by ".stripinput($_GET["order"])." ".$_GET["modo"];
|
||
|
|
}
|
||
|
|
$modo = stripinput($_GET["modo"]);
|
||
|
|
if($_GET['byEstado']!=""){
|
||
|
|
$tipoPedidos=$_GET['byEstado'];
|
||
|
|
} else {
|
||
|
|
$tipoPedidos="10";
|
||
|
|
}
|
||
|
|
$listaPedidos=new ListaPedido($usuario,$order_by,"",$tipoPedidos);
|
||
|
|
|
||
|
|
|
||
|
|
include_once("ver_lista_pedidos.php");
|
||
|
|
|
||
|
|
|
||
|
|
include_once("html/pie.php");
|
||
|
|
|
||
|
|
?>
|