File: /home/asjudine/www/avigilajudicial/menu_revistas_supervisor.php
<?php
$ced = $_GET["ced"];
$nom = $_GET["nom"];
error_reporting(0);
require_once("../Conectarse_.php");
$usuario = mysql_query('SELECT codigo FROM Usuarios WHERE sucursal = "EXTERNO"');
list($c) = mysql_fetch_row($usuario);
//busca_usuarios para ver permisos
$ctrl_usuarios = 'SELECT codigo, nivel FROM Usuarios WHERE cedula = "'.$_GET["ced"].'" and Nombre_completo = "'.$_GET["nom"].'" ';
list($codigo, $nivel) = mysql_fetch_row($ctrl_usuarios);
if($nivel == "0"){
echo "<script>alert('No tiene permisos para revisar');</script>";
echo "<script languaje='javascript' type='text/javascript'>window.location.href='menu_vigilancia_judicial.php?ced=$ced&nom=$nom';</script>";
}
else{
?>
<!DOCTYPE HTML>
<html>
<head>
<title>MENU REVISTAS JURIDICA</title>
<meta http-equiv="X-UA-Compatible" content="IE=8; IE=9; IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="css/estilos.css">
<!--
<style type="text/css">
*{margin: 0;padding: 0;}
body{background-image:url(../ELEMENTS/fondo.jpg);font-family:Geneva, Arial, Helvetica, sans-serif;}
header {background-color: #B7271F; text-align: center;}
.cerrarsesion{width: auto;height: 20px;background-color: #DBD8C9;color: #000;font-size: 13px;position:absolute;top: 15px;right:10px;z-index:0;padding: 10px;border-radius: 10px;cursor: pointer;}
.titulo{width: 100%;text-align: center;background-color: #dbd8c9;color: #b20606;padding: 6px 0;font-size: 18px;}
table{margin: 0 auto;border: 8px solid #bebebe; text-align: center;}
.divirmenu{text-align: center;}
.irmenu{width: 200px;background-color: #1c4fa0;color: #fff; padding: 4px;border-radius: 6px;margin-top: 5px;margin-bottom: 5px;}
.irmenu:hover{background-color: #67a0d9; color: #000;}
.fecha{background-color: #d6e08b; padding: 2px;color: #000;font-size: 15px; text-align: center;}
td{padding: 0px; border: 0px solid #a0a0a0;}
.td{background-color: #e5e5e5; padding: 1px 30px;color: #00135F;font-size: 14px;font-weight: 600; text-align: center;}
.boton1{width:30%;background-color: #ffffff;color: #000;padding: 2px;border:2px solid #580000;border-radius:10px;}
.boton1:hover{background-color: #6f0000;color: #fff;cursor: pointer;}
input[type=text]{border-radius: 5px; padding: 3px;background-color: #fffde8;}
.boton{width: 100%; margin: 0 auto; font-size: 13px; font-weight: 500; padding: 4px; background-color: #fffbe8; cursor: pointer; text-align: left; padding-left: 20px;}
.boton:hover{background-color: #4d598b;color: #fff;}
.titulos{color: red; font-size: 12px; font-weight: 300; }
</style>
-->
</head>
<body>
<?php include('header.php'); ?>
<h3 class="titulo">MENU REVISTAS</h3>
<?php echo "<div class='cerrarsesion' onclick='location.href=\"../cerrar_session.php\"'>CERRAR SESION</div>";?>
<form action="" method="post" name="formulario" >
<fieldset>
<!--<legend class="Estilo1">AREA DE NOMINA </legend>-->
<table border="3" align="center" cellpadding="2" cellspacing="3" >
<tr>
<td>
<fieldset>
<table width="341" border="2" cellpadding="2" cellspacing="3">
<tr>
<!--<td bgcolor="#CCCC99"><span class="label"><?php echo "<a href='cartera_consul_titu_nom.php'>Consulta Por Cedula</a>" ?></span></td>-->
<td>
<!--<input type="button" class="boton" onclick="location.href='ingresar_revista_por_proceso.php';" value="Por # Proceso " />-->
<?php echo "<input type='button' class='boton' onclick='location.href=\"ingresar_revista_por_proceso.php?ced=$ced&nom=$nom&c=$c\"' value='Por # Proceso '>";?>
</td>
</tr>
<tr>
<td>
<!--<input type="button" class="boton" onclick="location.href='ingresar_revista_por_despacho.php';" value="Por Despacho Judicial" />-->
<?php echo "<input type='button' class='boton' onclick='location.href=\"ingresar_revista_por_despacho.php?ced=$ced&nom=$nom&c=$c\"' value='Por Despacho Judicial'>";?>
</td>
</tr>
<tr>
<td>
<!--<input type="button" class="boton" onclick="location.href='ingresar_revista_por_sucursal.php';" value="Por Sucursal" />-->
<?php echo "<input type='button' class='boton' onclick='location.href=\"ingresar_revista_por_sucursal.php?ced=$ced&nom=$nom&c=$c\"' value='Por Sucursal'>";?>
</td>
</tr>
<tr>
<td>
<!--<input type="button" class="boton" onclick="location.href='ingresar_revista_por_abogado.php';" value="Por Abogado" />-->
<?php echo "<input type='button' class='boton' onclick='location.href=\"ingresar_revista_por_abogado.php?ced=$ced&nom=$nom&c=$c\"' value='Por Abogado'>";?>
</td>
</tr>
</table>
</fieldset>
</td></tr></table></fieldset></form></body>
<!--<p align="center"><input name="menu2" type="button" class="irmenu" id="menu2" onClick="window.location.href='menu_vigilancia_judicial.php'" value="IR AL MENU"></p>-->
<div align="center">
<?php
$nom = $_GET["nom"];
$ced = $_GET["ced"];
echo"<div class='divirmenu'>
<input type='button' name='menu' id='menu' class='irmenu' onClick='window.location.href=\"menu_vigilancia_judicial_supervisor.php?ced=$ced&nom=$nom\"' value='IR AL MENU'></div>";
/*echo"<div class='divirmenu'>
<input type='button' name='menu' id='menu' class='irmenu' onClick='window.history.back();' value='IR AL MENU'></div>";*/
?>
</div>
<?php
}
?>